/* ==========================================================================
   VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --color-primary: #0a2540;    /* Azul corporativo sólido */
    --color-secondary: #00d4b2;  /* Tono aqua institucional */
    --color-dark: #1c1c1e;
    --color-light: #ffffff;
    --color-gray: #f5f5f7;
    --font-main: 'Arial', sans-serif;
    --header-height: 85px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

@media (max-width: 992px) {
    html {
        scroll-snap-type: none;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

@keyframes kenBurnsBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

body::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(rgba(10, 37, 64, 0.70), rgba(6, 22, 38, 0.82)), 
                url('../img/hero-bg.webp') no-repeat center center / cover;
    z-index: -2;
    pointer-events: none;
    animation: kenBurnsBackground 25s infinite alternate ease-in-out;
}

section {
    scroll-margin-top: 75px; 
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: always; 
}


/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1010;
}

.logo a {
    display: block;
    height: 75px; 
    transition: transform 0.3s ease;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    image-rendering: high-quality;
    -webkit-filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.6)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.6)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.logo a:hover {
    transform: scale(1.02);
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    position: relative;
    display: flex;
    list-style: none;
    gap: 15px; 
    align-items: center;
}

.nav-menu li {
    position: relative;
    z-index: 2;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-light);
}

.menu-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 8px; 
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    opacity: 0; 
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background-color: var(--color-secondary);
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    border-radius: 6px;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(0, 212, 178, 0.2);
    transition: all 0.3s ease !important;
    margin-left: 10px;
}

.nav-cta:hover {
    background-color: #00bfa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 178, 0.4);
}

.main-header.scrolled {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    height: 60px;
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 10px;
}

.main-header.scrolled .nav-container {
    padding: 0 25px;
}

.main-header.scrolled .logo a {
    height: 59px; 
}

/* ==========================================================================
   ESTILOS BOTÓN HAMBURGUESA Y MOBILE MENU
   ========================================================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.nav-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    background-color: var(--color-secondary);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    background-color: var(--color-secondary);
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background-color: rgba(10, 37, 64, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding: 120px 40px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation.open {
        right: 0; 
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 25px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 10px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        background-color: var(--color-secondary);
        border-bottom: none !important;
        margin-top: 10px;
        padding: 12px 24px !important;
    }

    .menu-indicator {
        display: none !important;
    }

    .main-header.scrolled {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        height: var(--header-height);
        padding: 0;
    }

    .main-header.scrolled .nav-container {
        padding: 0 20px;
    }

    .main-header.scrolled .logo a {
        height: 75px;
    }
}


/* ==========================================================================
   SECCIÓN: HERO PRINCIPAL (EFECTO PRO MÁQUINA DE ESCRIBIR)
   ========================================================================== */
@keyframes fadeInUpEscalonado {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--color-secondary); }
}

.main-hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: var(--color-light);
    background: transparent; 
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUpEscalonado 0.8s ease-out forwards;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    color: var(--color-light);
    opacity: 0;
    animation: fadeInUpEscalonado 0.8s ease-out 0.2s forwards;
}

.hero-slider-text {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 45px;
    min-height: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    border-right: 2px solid var(--color-secondary);
    white-space: normal;
    padding-right: 4px;
    animation: blinkCursor 0.8s step-end infinite;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUpEscalonado 0.8s ease-out 0.6s forwards;
}

.hero-actions a.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.hero-actions a.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
}

.hero-actions a.btn-primary:hover {
    background-color: #00bfa0;
    border-color: #00bfa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 178, 0.3);
}

.hero-actions a.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
}

.hero-actions a.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-actions a.btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ==========================================================================
   SECCIÓN: ESPECIALIDADES (BENTO GRID)
   ========================================================================== */
.services-section {
    height: 100vh;
    min-height: 650px; 
    padding-top: 30px !important; 
    padding-bottom: 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    background: transparent;
}

.services-header {
    text-align: center;
    margin-top: 0 !important; 
    margin-bottom: 15px; 
    flex-shrink: 0;
}

.services-header h2 {
    font-size: 2.2rem;
    color: var(--color-light);
    margin-bottom: 5px;
    margin-top: 0;
}

.services-header p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content; 
    gap: 12px; 
}

.bento-card {
    background: rgba(255, 255, 255, 0.06); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative; 
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 212, 178, 0.4);
}

.bento-large {
    grid-column: span 2;
}

.bento-card h3 {
    font-size: 1.35rem;
    color: var(--color-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.bento-card:hover h3 {
    color: var(--color-secondary);
}

.bento-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bento-list li {
    font-size: 0.95rem;
    color: #cbd5e1; 
    margin-bottom: 0;
    position: relative;
    padding-left: 26px; 
    line-height: 1.3;
}

.bento-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    transform: scale(1.15);
}

.bento-card:focus,
.bento-card.selected {
    outline: none;
    background: rgba(10, 37, 64, 0.55); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border-color: var(--color-secondary);
    transform: scale(1.03); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 2px var(--color-secondary); 
    z-index: 10; 
}

.bento-card:focus h3,
.bento-card.selected h3 {
    color: var(--color-secondary);
}

.bento-card:focus .bento-list li::before,
.bento-card.selected .bento-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .services-section {
        height: auto;
        padding-top: 90px !important;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        grid-column: span 1;
    }
}


/* ==========================================================================
   SECCIÓN: NOSOTROS Y ESTADÍSTICAS
   ========================================================================== */
.about-section {
    background: transparent; 
    padding: 90px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 70px; 
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--color-light); 
    margin-bottom: 20px;
}

.about-text p {
    color: #cbd5e1; 
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid var(--color-secondary);
}

.stat-number {
    display: block;
    font-size: 3.5rem; 
    font-weight: 800;
    color: var(--color-secondary); 
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   CARRUSEL DE CLIENTES
   ========================================================================== */
.clients-merged {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-title {
    text-align: center;
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 4)); }
}

.slider-track {
    display: flex;
    width: calc(200px * 8); 
    animation: scrollInfinite 25s linear infinite;
    align-items: center;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px; 
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slide {
        width: 160px;
        padding: 0 20px;
    }
    .slider-track {
        width: calc(160px * 8);
    }
    @keyframes scrollInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-160px * 4)); }
    }
}


/* ==========================================================================
   SECCIÓN: GALERÍA DE PROYECTOS (GRID, LIGHTBOX Y CONTROLES)
   ========================================================================== */
.gallery-section {
    padding: 80px 20px;
    background: transparent; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-light); 
    margin-bottom: 10px;
    margin-top: 0;
}

.gallery-section p {
    text-align: center;
    color: #cbd5e1; 
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.gallery-filters {
    display: flex;
    flex-wrap: nowrap;          
    justify-content: center;
    gap: 8px;                   
    margin-bottom: 35px;
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;           
    padding: 10px 5px;
    scrollbar-width: none;      
    -ms-overflow-style: none;   
}

.gallery-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 10px 20px;         
    border-radius: 50px;
    font-size: 0.9rem;          
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    white-space: nowrap;        
    flex-shrink: 0;             
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-light);
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0, 212, 178, 0.3);
}

@media (max-width: 992px) {
    .gallery-filters {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    justify-content: center; 
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr); 
    }
}

.hidden-item {
    display: none !important;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5; 
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.05); 
}

.gallery-item-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: var(--color-light);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #fde047; 
    font-weight: bold;
    font-size: 1.1rem;
}

.gallery-more.btn-collapse-gallery {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
}

.gallery-more.btn-collapse-gallery:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.gallery-more::after {
    display: none;
}

.gallery-more:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fde047;
    transform: translateY(-5px);
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lightbox-content img {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease;
}

.lightbox-caption {
    color: var(--color-light);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    transition: opacity 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #cbd5e1;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2005;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2005;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-arrow:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-caption { font-size: 1.05rem; max-width: 90%; }
}


/* ==========================================================================
   SECCIÓN: CONTACTO Y TOAST NOTIFICATIONS
   ========================================================================== */
.contact-section {
    padding: 80px 20px;
    background: transparent;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 1000px; 
    width: 100%;
    background: rgba(10, 37, 64, 0.65); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--color-light);
    margin-bottom: 15px;
}

.contact-info > p {
    color: #cbd5e1;
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text h4 {
    color: var(--color-light);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.info-text p, .info-text a {
    color: #cbd5e1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: var(--color-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 30px;
}

.form-control {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--color-secondary);
}

.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #00bfa0;
    border-color: #00bfa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 178, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: var(--color-light);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    background-color: rgba(0, 212, 178, 0.95); 
    border-left: 5px solid #009980;
    color: var(--color-primary);
}

.toast-notification.error {
    background-color: rgba(220, 53, 69, 0.95); 
    border-left: 5px solid #a71d2a;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 30px 20px;
    }
    .btn-submit {
        width: 100%;
    }
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: center;
    }
}