*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    --header-height: 80px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.header-container.header-hidden {
    transform: translateY(-100%);
}


.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: auto;
    gap: 10px; /* Espacio entre el SVG y el texto */
}

.logo svg {
    height: 40px;
    width: auto;
    stroke: black;
    fill: none;
}

.logo svg path {
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLogo 2s ease forwards;
}

/* Estilos para el texto del logo - MODIFICADOS */
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
    opacity: 0; /* Inicialmente invisible */
    transform: translateX(-30px); /* Posición inicial desplazada a la izquierda */
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 3s; /* Aparece después de que termine la animación del SVG (2.4s + 0.6s buffer) */
    display: flex;
}

.logo-text .pla {
    color: #f5e336; /* Dorado */
    display: inline-block;
    animation: letterSlideIn 0.3s ease-out forwards;
    animation-delay: 3.2s; /* Ligero retraso adicional */
    opacity: 0;
    transform: translateX(-20px);
}

.logo-text .con {
    color: #333333; /* Negro */
    display: inline-block;
    animation: letterSlideIn 0.3s ease-out forwards;
    animation-delay: 3.4s; /* Retraso para efecto secuencial */
    opacity: 0;
    transform: translateX(-20px);
}

/* Nuevas animaciones */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes letterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ajuste de los delays de animación del SVG para que termine antes */
.logo svg path:nth-of-type(1) { animation-delay: 0.2s; }
.logo svg path:nth-of-type(2) { animation-delay: 0.4s; }
.logo svg path:nth-of-type(3) { animation-delay: 0.6s; }
.logo svg path:nth-of-type(4) { animation-delay: 0.8s; }
.logo svg path:nth-of-type(5) { animation-delay: 1.0s; }
.logo svg path:nth-of-type(6) { animation-delay: 1.2s; }
.logo svg path:nth-of-type(7) { animation-delay: 1.4s; }
.logo svg path:nth-of-type(8) { animation-delay: 1.6s; }
.logo svg path:nth-of-type(9) { animation-delay: 1.8s; }
.logo svg path:nth-of-type(10) { animation-delay: 2.0s; }
.logo svg path:nth-of-type(11) { animation-delay: 2.2s; }

/* Animación más rápida para el SVG */
@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
    }
}





/* Responsive para el logo */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.4rem;
        animation-delay: 2.8s; /* Ligeramente más rápido en móvil */
    }
    
    .logo-text .pla {
        animation-delay: 3.0s;
    }
    
    .logo-text .con {
        animation-delay: 3.2s;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 6px;
    }
    
    .logo-text {
        font-size: 1.2rem;
        animation-delay: 2.6s; /* Aún más rápido en pantallas muy pequeñas */
    }
    
    .logo-text .pla {
        animation-delay: 2.8s;
    }
    
    .logo-text .con {
        animation-delay: 3.0s;
    }
}



.clientes{
   
    font-size: 2rem!important;
    

}

/* Menu Styles */
.menu-toggle {
    border: none;
    background: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 9996;
    position: relative;
}

.menu-toggle span {
    font-size: 14px;
    letter-spacing: 1px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 9996;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: black;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.8);
    transition: 0.3s ease;
    z-index: 9998;
    overflow-y: auto; /* Add scroll */
    padding: 2rem;
}

.nav-menu.active {
    left: 0;
    padding-top: 0;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto; /* Enable scroll for long menus */
}

.menu-items li {
    margin-bottom: 1.5rem;
}

.menu-items a {
    font-size: 1.5rem;
    text-decoration: none;
    color: black;
    display: block;
    transition: opacity 0.2s;
}

.menu-items a:hover {
    opacity: 0.7;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
}

.services-dropdown:hover .submenu {
    display: block;
}

.submenu li {
    margin: 0.5rem 0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    display: none;
    padding-left: 1rem;
    margin-top: 1rem;
    z-index: 9997;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 10px 0;
}

.dropdown-menu a {
    font-size: 18px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu-items {
        position: relative;  /* Cambiar de absolute a relative */
        top: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 1rem;
    }
}

/* Carousel Styles */


.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-control {
    display: none; /* Ocultar las flechas de navegación */
}

.carousel-overlay {
    width: 100%;
    position: absolute;
    bottom: 20%; /* Cambiar de bottom: 0 a bottom: 50% */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro */
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: white;
    text-align: center;
    transform: translateY(50%); /* Centrar verticalmente */
    z-index: 9994;
}

.carousel-overlay h1 {
    text-align: center;
    margin: 0;
    font-size: 1.8rem; /* Texto más grande */
    font-weight: bold;
    letter-spacing: 2px; /* Espacio entre letras */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejor legibilidad */
}

/* About Section Styles */
.about {
    padding: 3rem 1.5rem;
    
}
.about1 {
    padding: 6rem 1.5rem;
    
}

.about .tittle .tittle2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}
.tittle2 {
    margin-top: 2%;
    margin-bottom: 2%;
    color: #333;
}

.about .tittle::after .tittle2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #000;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: #666;
    line-height: 1.6;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Styles */
.footer {
    background-color: #f8f8f8;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-details {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

.contact-details a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #333;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #333;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #C4A55F;
}

.footer-social i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.credits {
    font-size: 0.7rem;
}

.credits a {
    color: #666;
    text-decoration: none;
}

.credits a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    color: white;
    text-align: center;
    transform: translateY(50%);
}

.hero-overlay h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}





/* Sección de obras destacadas */
.highlights {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr; /* Móvil: 1 columna por defecto */
    gap: 2rem;
}

.tittle.slide-up .tittle2.slide-up {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.title.slide-up::after   {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #C4A55F;
}
.tittle2.slide-up::after  {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background-color: #C4A55F;
}

/* Contenedor obsoleto - mantener para compatibilidad */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Estilos para cada obra individual */
.highlight-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Contenido de texto de cada obra */
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.card-content p {
    color: #666;
    
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1;
    line-height: 1.6;
    text-align: justify;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.projects-counter {
    font-size: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}
/* Añade media query para pantallas más grandes */
@media screen and (min-width: 1024px) {
    /* ...existing code... */
    
    .clientes {
        font-size: 4rem !important;  /* Aumentado de 2rem a 4rem */
        line-height: 1.2;  /* Mejora el espaciado entre líneas */
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .logo-item {
        padding: 1rem;
    }

    .logo-item img {
        max-width: 100px;
    }
}

/* Desktop styles (min-width: 1024px) - LOGO FIXES */
@media screen and (min-width: 1024px) {
    :root {
        --header-height: 100px; /* Aumentamos altura del header */
    }

    .header-container {
        padding: 1.5rem 2rem;
    }

    .logo {
        display: flex; /* MANTENER FLEX */
        align-items: center; /* CENTRAR VERTICALMENTE */
        gap: 10px; /* ESPACIO ENTRE SVG Y TEXTO */
        width: auto; /* PERMITIR AJUSTE AUTOMÁTICO */
    }

    .logo svg {
        height: 60px; /* Logo más grande */
        flex-shrink: 0; /* EVITAR QUE SE ENCOJA */
    }

    /* FIX PRINCIPAL PARA EL TEXTO PLACON EN LAPTOP */
    .logo-text {
        display: flex; /* CONVERTIR A FLEX */
        align-items: center; /* ALINEAR VERTICALMENTE */
        font-size: 1.8rem; /* TAMAÑO ADECUADO PARA LAPTOP */
        font-weight: 700;
        font-family: 'Arial', sans-serif;
        letter-spacing: -1px;
        line-height: 1;
        white-space: nowrap; /* EVITAR SALTO DE LÍNEA */
        opacity: 0;
        transform: translateX(-30px); /* Posición inicial desplazada a la izquierda */
        animation: slideInFromLeft 0.8s ease-out forwards;
        animation-delay: 3s; /* Aparece después de que termine la animación del SVG (2.4s + 0.6s buffer) */
    }

    .logo-text .pla {
        color:  #f5e336; /* Dorado */
        display: inline-block; /* MANTENER INLINE-BLOCK */
        animation: letterSlideIn 0.3s ease-out forwards;
        animation-delay: 3.2s; /* Ligero retraso adicional */
        opacity: 0;
        transform: translateX(-20px);
        font-weight: 700; /* CONSISTENTE CON EL PADRE */
    }

    .logo-text .con {
        color: #333333; /* Negro */
        position: relative;
        display: inline-flex; /* CAMBIAR A INLINE-FLEX */
        align-items: center; /* ALINEAR EL CÍRCULO */
        animation: letterSlideIn 0.3s ease-out forwards;
        animation-delay: 3.4s; /* Retraso para efecto secuencial */
        opacity: 0;
        transform: translateX(-20px);
        font-weight: 700; /* CONSISTENTE CON EL PADRE */
    }

    /* RESTO DEL CÓDIGO DESKTOP EXISTENTE... */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: auto;
        right: -300px;
        width: 300px;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.8);
        transition: 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .menu-items {
        padding: 2rem;
    }

    .menu-items li {
        margin-bottom: 2rem;
    }

    .dropdown-menu {
        position: relative;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
    }

    .menu-items a {
        font-size: 1.2rem;
    }

    .dropdown-menu a {
        font-size: 1rem;
    }

    .hero-overlay h1,
    .carousel-overlay h1 {
        font-size: 4rem;
        letter-spacing: 4px;
    }

    .tittle {
        font-size: 2rem;
    }
    .tittle2 {
        font-size: 3rem;
        text-align: center;
    }
    .card-content h2 {
        font-size: 2.2rem;
    }

    .card-content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .info-item {
        font-size: 1.1rem;
    }

    .footer {
        font-size: 1rem;
    }

    .footer-social a {
        font-size: 1.8rem;
    }

   

    .clientes {
        font-size: 4rem !important;
        line-height: 1.2;
    }
}



/* Video Section Styles - Index Page Only */
.video-section {
    width: 100%;
    height: 90vh;
    padding: 2rem 0;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section .video-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.video-section .video-container video {
    width: 100%;
    height: 100%;
    
    object-position: center;
}

.video-section .audio-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-section .audio-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-section .audio-toggle i {
    font-size: 1.2rem;
}

/* Card Carousel Video Styles - Obras Page Only */
/* Estilos para carruseles de imágenes en obras */
.card-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f5f5f5;
    cursor: pointer;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-carousel:hover .carousel-slide img {
    transform: scale(1.05);
}

/* Controles de navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1rem;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.card-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Indicadores de puntos */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Indicadores de carrusel */
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide.active::after {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Overlay gradient para mejor legibilidad */
.carousel-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    z-index: 3;
    pointer-events: none;
}

/* Estilos para carruseles con video */
.highlights .card-carousel .video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.highlights .card-carousel .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Media Queries for Video Section */
/* Responsive Design para Tablet */
@media screen and (min-width: 768px) {
    .highlights {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
        gap: 2rem;
        padding: 2rem;
    }
    
    .card-carousel {
        height: 280px;
    }
}

/* Responsive Design para Desktop */
@media screen and (min-width: 1024px) {
    .highlights {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columnas */
        gap: 2.5rem;
        padding: 3rem;
    }
    
    .video-section .video-container {
        height: 80vh;
    }
    
    .card-carousel {
        height: 300px;
    }
    
    .highlights .card-carousel .video-container {
        height: 300px;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .card-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .card-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Desktop grande */
@media screen and (min-width: 1200px) {
    .highlights {
        max-width: 1400px;
        gap: 3rem;
        padding: 3rem 2rem;
    }
}

/* Mobile específico */
@media screen and (max-width: 767px) {
    .highlights {
        grid-template-columns: 1fr; /* Móvil: 1 columna */
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .video-section {
        height: 70vh;
        padding: 1rem 0;
    }
    
    .video-section .video-container {
        width: 95%;
        height: 50vh;
    }
    
    .card-carousel {
        height: 220px;
    }
    
    .carousel-slide::after {
        width: 6px;
        height: 6px;
        bottom: 8px;
        right: 8px;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tittle.slide-up {
        font-size: 2rem;
        margin-bottom: 2rem;
        
    }
    .tittle2.slide-up {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
        
    }
}











@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* SECCIÓN DE CONTACTO */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    background: linear-gradient(135deg, #C4A55F, #B8A054);
    padding: 40px 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(196, 165, 95, 0.3);
    position: relative;
    overflow: hidden;
   min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.info-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.contact-message {
    flex: 1 1 100%; /* Ocupa todo el ancho */
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 400;
    order: -1; /* Lo coloca antes que los flex items */
}

.contact-message-desktop {
    display: none;
}

/* FORMULARIO DE CONTACTO */
.contact-form {
    background: white;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    position: relative;
    flex: 1 1 calc(50% - 40px); /* Ocupa la mitad del espacio menos el gap */
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C4A55F, #B8A054);
    border-radius: 15px 15px 0 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    resize: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C4A55F;
    background: white;
    box-shadow: 0 0 0 3px rgba(196, 165, 95, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Efectos de hover para los inputs */
.form-group input:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
    background: white;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #C4A55F, #B8A054);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196,165,95,0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 40px;
        padding: 40px 15px;
    }
    
    .contact-info {
        flex: 1 1 100%; /* Ancho completo en móvil */
        order: 2; /* Mueve la info de contacto después del form en móvil */
    }
    
    .contact-form {
        flex: 1 1 100%; /* Ancho completo en móvil */
        order: 1; /* Mueve el formulario primero en móvil */
    }
    
    .contact-message {
        display: none;
        order: 0;
    }
    
    .contact-message-desktop {
        display: block;
        text-align: center;
        font-size: 1.1rem;
        color: #666;
        margin: 20px auto 40px;
        max-width: 600px;
        padding: 0 20px;
    }
    
    .contact-info {
        padding: 30px 25px;
        order: 2;
    }
    
    .contact-form {
        padding: 30px 25px;
        order: 1;
    }
    
    .contact-info h2 {
        font-size: 1.7rem;
    }
    
    .info-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 10px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 18px;
    }
    
    .submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}




@media (max-width: 768px) {
    .logo-text {
        font-size: 1.4rem;
        animation-delay: 2.8s;
    }
    
    .logo-text .pla {
        animation-delay: 3.0s;
    }
    
    .logo-text .con {
        animation-delay: 3.2s;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 6px;
    }
    
    .logo-text {
        font-size: 1.2rem;
        animation-delay: 2.6s;
    }
    
    .logo-text .pla {
        animation-delay: 2.8s;
    }
    
    .logo-text .con {
        animation-delay: 3.0s;
    }
}

/* Desktop adjustments */
@media screen and (min-width: 1024px) {
    .logo-text {
        font-size: 1.8rem;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1440px) {
    .logo-text {
        font-size: 1.7rem;
    }
}

@media screen and (min-width: 1441px) {
    .logo-text {
        font-size: 2rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #22c55e;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso sutil */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Ajustes adicionales para carruseles en móvil */
@media screen and (max-width: 767px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-nav.prev {
        left: 8px;
    }
    
    .carousel-nav.next {
        right: 8px;
    }
    
    .carousel-dots {
        bottom: 8px;
        gap: 4px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* Responsive para móviles - WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* Evitar conflicto con el footer en móviles */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 10px;
    }
}

/* MODAL PARA IMÁGENES Y VIDEOS - VERSIÓN CORREGIDA */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 60px 20px 20px 20px; /* Más espacio arriba para controles */
    box-sizing: border-box;
    overflow: hidden; /* Evitar scroll */
}

.media-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: calc(100vw - 40px); /* Margen de seguridad */
    max-height: calc(100vh - 120px); /* Espacio para controles */
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalZoomIn 0.3s ease;
}

.modal-media {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene proporción sin recortar */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
    /* Asegurar que no exceda límites */
    max-width: calc(100vw - 140px); /* Espacio para navegación lateral */
    max-height: calc(100vh - 140px); /* Espacio para controles superior/inferior */
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    /* Asegurar que esté siempre visible */
    min-width: 40px;
    min-height: 40px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    /* Asegurar posicionamiento fijo */
    min-width: 50px;
    min-height: 50px;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: -60px; /* Más cerca para evitar salirse de pantalla */
}

.modal-nav.next {
    right: -60px; /* Más cerca para evitar salirse de pantalla */
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1);
}

.modal-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    /* Evitar que el texto sea muy largo */
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.3;
}

.modal-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* Animaciones */
@keyframes modalZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para modal - MÁS ESTRICTO */
@media (max-width: 768px) {
    .media-modal {
        padding: 50px 10px 10px 10px;
    }
    
    .modal-content {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
    
    .modal-media {
        max-width: calc(100vw - 80px); /* Más espacio para navegación en móvil */
        max-height: calc(100vh - 120px);
    }
    
    .modal-close {
        top: -40px;
        right: 0;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-nav.prev {
        left: -30px;
    }
    
    .modal-nav.next {
        right: -30px;
    }
    
    .modal-info {
        bottom: -40px;
        font-size: 1rem;
        max-width: 90%;
    }
    
    .modal-counter {
        top: -40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .media-modal {
        padding: 40px 5px 5px 5px;
    }
    
    .modal-content {
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 80px);
    }
    
    .modal-media {
        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 100px);
    }
    
    .modal-nav.prev {
        left: -25px;
    }
    
    .modal-nav.next {
        right: -25px;
    }
    
    .modal-info {
        font-size: 0.9rem;
        bottom: -35px;
    }
    
    .modal-counter {
        font-size: 0.7rem;
        top: -35px;
    }
}

/* ORIENTACIÓN LANDSCAPE EN MÓVILES */
@media (max-width: 896px) and (orientation: landscape) {
    .media-modal {
        padding: 30px 10px 10px 10px;
    }
    
    .modal-content {
        max-height: calc(100vh - 60px);
    }
    
    .modal-media {
        max-height: calc(100vh - 80px);
        max-width: calc(100vw - 100px);
    }
    
    .modal-close {
        top: -25px;
    }
    
    .modal-info {
        bottom: -25px;
        font-size: 0.9rem;
    }
    
    .modal-counter {
        top: -25px;
    }
}

/* Evitar scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
    height: 100vh; /* Fijar altura para evitar cambios */
}

/* PARA IMÁGENES MUY ALTAS O MUY ANCHAS */
@media (max-aspect-ratio: 1/2) {
    /* Para imágenes muy altas (verticales) */
    .modal-media {
        max-height: calc(100vh - 160px) !important;
        width: auto !important;
    }
}

@media (min-aspect-ratio: 3/1) {
    /* Para imágenes muy anchas (panorámicas) */
    .modal-media {
        max-width: calc(100vw - 160px) !important;
        height: auto !important;
    }
}

/* FALLBACK PARA CASOS EXTREMOS */
.modal-media {
    /* Límites absolutos como último recurso */
    max-width: 95vw !important;
    max-height: 85vh !important;
}











/* Asegurar que la animación fadeInUp existe */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments - ACTUALIZADOS */
@media screen and (max-width: 1024px) {
    .logo-item {
        width: calc(33.333% - 1.33rem); /* 3 elementos por fila en tablet */
    }
    
    .logo-item img {
        width: 100px;
        height: 70px;
    }
}

@media screen and (max-width: 768px) {
    .logo-gallery {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .logo-item {
        width: calc(50% - 0.75rem); /* 2 elementos por fila en móvil */
        padding: 1rem;
        min-height: 120px;
    }
    
    .logo-item img {
        width: 90px;
        height: 60px;
    }
    
    .logo-item::after {
        font-size: 0.8rem;
        padding: 6px 10px;
        bottom: -35px; /* Ajustado para móvil */
    }
    
    .logo-item:hover::after {
        bottom: -30px; /* Posición final en móvil */
    }
}

@media screen and (max-width: 480px) {
    .logo-item {
        width: 100%; /* 1 elemento por fila en móvil pequeño */
        max-width: 280px;
    }
    
    .logo-item img {
        width: 100px;
        height: 65px;
    }
    
    .logo-gallery {
        gap: 1rem;
        padding: 1rem;
    }
}

/* Ajuste para pantallas muy grandes */
@media screen and (min-width: 1400px) {
    .logo-gallery {
        max-width: 1400px;
    }
    
    .logo-item {
        width: calc(20% - 1.6rem); /* 5 elementos por fila en pantallas grandes */
    }
    
    .logo-item img {
        width: 130px;
        height: 85px;
    }
}

/* OVERRIDE PARA ASEGURAR QUE NO HAY CONFLICTOS CON ESTILOS ANTERIORES */
.logo-gallery .logo-item {
    /* Forzar estilos específicos */
    overflow: visible !important; /* Crítico para tooltips */
    position: relative !important;
}

.logo-gallery .logo-item::after,
.logo-gallery .logo-item::before {
    /* Asegurar que los pseudo-elementos funcionen */
    position: absolute !important;
    z-index: 1000 !important;
}

/* ...existing code... */

body {
    background-image: url(../asets/background/Recurso2.png);
    background-position: center;
    background-repeat: repeat-y;
    background-size: cover;
   
}

/* ...existing code... */

/* Estilos específicos para videos en carouseles */
.carousel-slide .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0; /* Sin bordes para mantener consistencia con las imágenes */
}

.carousel-slide .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-carousel:hover .carousel-slide .video-container video {
    transform: scale(1.05);
}

/* Ajustes específicos para el modal cuando muestra videos */
.modal-media video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Asegurar que no exceda límites */
    max-width: calc(100vw - 140px);
    max-height: calc(100vh - 140px);
}

/* ...existing code... */
/* ...existing code... */

/* Fix para overflow en móviles - AÑADIR AL FINAL */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    overflow-y: auto !important;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Fix específico para el contenedor principal */
.main-content {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Fix para la sección de obras */
.highlights {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 2rem 1rem; /* Reducir padding lateral en móvil */
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix para carruseles que pueden causar overflow */
.card-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel-slides {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Fix para el mapa que puede causar overflow */
#container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    padding: 1rem;
}

#map-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Fix específico para móviles */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }
    
    .highlights {
        padding: 1.5rem 0.5rem; /* Menos padding en móvil */
        gap: 1.5rem;
    }
    
    .highlight-item {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .card-carousel {
        height: 220px;
        border-radius: 10px 10px 0 0;
    }
    
    /* Fix para navegación del carrusel en móvil */
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-nav.prev {
        left: 5px; /* Más pegado al borde */
    }
    
    .carousel-nav.next {
        right: 5px; /* Más pegado al borde */
    }
}

@media (max-width: 480px) {
    .highlights {
        padding: 1rem 0.25rem; /* Padding mínimo en pantallas muy pequeñas */
    }
    
    #container {
        padding: 0.5rem;
    }
}

/* ...existing code... */