/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    /* Brand Colors (from Manual de Marca) -- iguales en ambos temas */
    --color-primary: #2D53A1;         /* Azul Corporativo */
    --color-primary-light: #4D76CD;
    --color-primary-dark: #1E376C;
    --color-secondary: #6C7786;       /* Gris Corporativo */
    --color-secondary-light: #8B98A9;
    --color-secondary-dark: #4F5865;
    --color-accent: #3B82F6;          /* Bright Blue Accent */

    /* Compat: alias historicos usados en el resto del archivo */
    --color-dark: var(--color-bg);
    --color-dark-surface: var(--color-surface);
    --color-dark-nav: var(--color-nav-bg);
    --color-light: var(--color-text);

    /* ---------- Tema OSCURO (default del sitio) ---------- */
    --color-bg: #0A0E1A;              /* Fondo general */
    --color-bg-alt: #0F1526;          /* Fondo alterno (degrade de Contacto) */
    --color-surface: #121829;         /* Tarjetas solidas (toast, nav mobile) */
    --color-surface-alpha: rgba(18, 24, 41, 0.6);   /* Glass cards */
    --color-nav-bg: rgba(10, 14, 26, 0.75);         /* Header al hacer scroll */
    --color-input-bg: rgba(10, 14, 26, 0.6);
    --color-input-bg-focus: rgba(10, 14, 26, 0.8);
    --color-text: #F8FAFC;            /* Texto de cuerpo */
    --color-heading: #FFFFFF;         /* Titulos */
    --color-text-muted: #8B98A9;      /* Texto secundario (= --color-secondary-light) */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-focus: rgba(45, 83, 161, 0.4);
    --color-chip-bg: rgba(255, 255, 255, 0.04);     /* Chips sutiles (social icons) */
    --color-dot-bg: rgba(255, 255, 255, 0.2);       /* Puntitos de sliders sobre glass-card */
    --color-scrollbar-track: var(--color-bg);
    --color-scrollbar-thumb: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow-primary: 0 0 20px rgba(45, 83, 161, 0.3);

    /* Layout Constants */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Tema CLARO ----------
   Se activa automaticamente si el sistema operativo pide modo claro
   (y el usuario no eligio explicitamente "oscuro"), o manualmente
   con el boton de la cabecera (guarda la eleccion en localStorage). */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --color-bg: #F7F9FC;
        --color-bg-alt: #EDF1F7;
        --color-surface: #FFFFFF;
        --color-surface-alpha: rgba(255, 255, 255, 0.75);
        --color-nav-bg: rgba(247, 249, 252, 0.85);
        --color-input-bg: rgba(255, 255, 255, 0.9);
        --color-input-bg-focus: #FFFFFF;
        --color-text: #2A3140;
        --color-heading: #10151F;
        --color-text-muted: #5B6472;
        --color-border: rgba(16, 21, 31, 0.1);
        --color-border-focus: rgba(45, 83, 161, 0.35);
        --color-chip-bg: rgba(16, 21, 31, 0.04);
        --color-dot-bg: rgba(16, 21, 31, 0.15);
        --color-scrollbar-track: var(--color-bg-alt);
        --color-scrollbar-thumb: rgba(16, 21, 31, 0.15);
    }
}

:root[data-theme="light"] {
    --color-bg: #F7F9FC;
    --color-bg-alt: #EDF1F7;
    --color-surface: #FFFFFF;
    --color-surface-alpha: rgba(255, 255, 255, 0.75);
    --color-nav-bg: rgba(247, 249, 252, 0.85);
    --color-input-bg: rgba(255, 255, 255, 0.9);
    --color-input-bg-focus: #FFFFFF;
    --color-text: #2A3140;
    --color-heading: #10151F;
    --color-text-muted: #5B6472;
    --color-border: rgba(16, 21, 31, 0.1);
    --color-border-focus: rgba(45, 83, 161, 0.35);
    --color-chip-bg: rgba(16, 21, 31, 0.04);
    --color-dot-bg: rgba(16, 21, 31, 0.15);
    --color-scrollbar-track: var(--color-bg-alt);
    --color-scrollbar-thumb: rgba(16, 21, 31, 0.15);
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.glass-card {
    background: var(--color-surface-alpha);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: #fff;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Form Submit Loading State */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary-light);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-heading);
    line-height: 1.2;
}

.section-title-line {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title.text-left + .section-title-line {
    margin: 20px 0 0;
}

.section-description {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--color-secondary-light);
    font-size: 1.1rem;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 35px;
}

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

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary-light);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-light);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active-link {
    color: #fff; /* header transparente sobre la foto del hero: siempre claro */
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active-link {
    color: var(--color-heading); /* header solido: se adapta al tema */
}

.nav-link.active-link::after,
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff; /* header transparente sobre la foto del hero: siempre claro */
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.header.scrolled .theme-toggle {
    color: var(--color-heading);
}

.header.scrolled .theme-toggle:hover {
    background-color: var(--color-chip-bg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon {
        display: none;
    }
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun {
        display: block;
    }
}

.nav-toggle {
    display: none;
    color: #fff; /* header transparente sobre la foto del hero: siempre claro */
    cursor: pointer;
    z-index: 1001;
}

.header.scrolled .nav-toggle {
    color: var(--color-heading);
}

.hamburger-icon {
    width: 28px;
    height: 28px;
}

.hamburger-icon line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-cta-mobile {
    display: none;
}

/* Responsive Nav Styles */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-surface);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 48px;
        padding: 80px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.open {
        right: 0;
    }

    /* El panel mobile siempre tiene fondo solido: los links se adaptan al tema
       sin depender de si el header esta "scrolled" */
    .nav.open .nav-link:hover,
    .nav.open .nav-link.active-link {
        color: var(--color-heading);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-cta-mobile {
        display: block;
        width: 100%;
        margin-top: 16px;
    }
    
    .nav-cta-mobile .btn {
        width: 100%;
    }

    /* Hamburger Animation to 'X' */
    .nav-toggle.open .line-1 {
        transform: translateY(6px) rotate(45deg);
    }
    
    .nav-toggle.open .line-2 {
        opacity: 0;
    }
    
    .nav-toggle.open .line-3 {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('../img/hero-bg-1.jpg');
    background-size: cover;
    background-position: center;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    background: transparent;
}

.hero__media .hero-webgl {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.6) 30%, rgba(10, 14, 26, 0.22) 100%);
    z-index: 1;
    pointer-events: none; /* Permitir clicks a través del gradiente de overlay */
}

.hero-container {
    position: relative;
    z-index: 3;
    padding-top: var(--header-height);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    height: 66.6vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary-light);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-secondary-light);
    margin-bottom: 40px;
}

.hero-actions-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.hero-scroll-down a {
    color: var(--color-secondary-light);
    display: block;
}

.hero-scroll-down svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions-group .btn {
        width: 100%;
    }
}

/* ==========================================
   INSTITUTIONAL / ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.about-text {
    color: var(--color-secondary-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(45, 83, 161, 0.15);
    border: 1px solid rgba(45, 83, 161, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-info {
    flex-grow: 1;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card {
    width: 100%;
    max-width: 460px;
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-primary);
    filter: blur(50px);
    opacity: 0.5;
}

.about-card-logo {
    height: 60px;
    width: auto;
    margin-bottom: 40px;
}

.values-slider {
    position: relative;
    min-height: 160px;
    width: 100%;
    overflow: hidden;
}

.value-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.value-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.value-desc {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-dot-bg);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-primary-light);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.3) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
}

.gallery-info {
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    display: inline-block;
    margin-bottom: 6px;
}

.gallery-item-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.gallery-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.8) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.gallery-icon svg {
    width: 20px;
    height: 20px;
}

/* Hover States */
.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-info,
.gallery-item:hover .gallery-icon {
    transform: translateY(0) scale(1);
}

.gallery-item:hover .gallery-icon {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
}

.contact-grid {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 60px;
    align-items: center;
}

.contact-lead {
    color: var(--color-secondary-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(45, 83, 161, 0.12);
    border: 1px solid rgba(45, 83, 161, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-detail-text span {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary-light);
}

.contact-detail-text p {
    color: var(--color-heading);
    font-size: 1rem;
    font-weight: 500;
}

.contact-detail-text a {
    color: var(--color-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-detail-text a:hover {
    color: var(--color-primary-light);
}

.contact-card {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    width: 100%;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-heading);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control::placeholder {
    color: var(--color-secondary);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(77, 118, 205, 0.15);
    background-color: var(--color-input-bg-focus);
}

/* Validation styles */
.form-control.invalid {
    border-color: #EF4444;
}

.form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-control.valid {
    border-color: #10B981;
}

.error-msg {
    font-size: 0.75rem;
    color: #EF4444;
    position: absolute;
    bottom: -18px;
    left: 2px;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group.has-error .error-msg {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 576px) {
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-card {
        padding: 24px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--color-dark);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 4fr 3fr 5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-desc {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 24px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--color-heading);
    padding-left: 6px;
}

.footer-social-desc {
    color: var(--color-secondary-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-chip-bg);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    color: var(--color-secondary-light);
}

.social-icon:hover {
    background-color: rgba(45, 83, 161, 0.15);
    border-color: rgba(45, 83, 161, 0.3);
    color: var(--color-heading);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon span {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-secondary);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--color-heading);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .footer-social {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-social {
        grid-column: span 1;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================
   NATIVE LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 14, 26, 0.95);
    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.4s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2002;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2001;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        background-color: rgba(10, 14, 26, 0.5);
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
        font-size: 2.5rem;
    }
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #10B981;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-error .toast-icon {
    color: #EF4444;
}

.toast-text {
    flex-grow: 1;
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--color-scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary);
}

/* ==========================================
   3D KEYBOARD BACKGROUND PARALLAX
   ========================================== */
.hero__bg-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0A0E1A;
    perspective: 1000px;
    pointer-events: none;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.0s ease-in-out;
    transform: scale(1.15) translate3d(0,0,0) rotateX(0) rotateY(0);
    pointer-events: none;
}

.hero__bg-image.fade-out {
    opacity: 0;
}

/* ==========================================
   NEW GALLERY SECTION (FOTOS PASARELA)
   ========================================== */
.new-gallery-section {
    background-color: var(--color-dark);
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    aspect-ratio: 16 / 9;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.8s;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.4) 70%, transparent 100%);
    padding: 40px;
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s, opacity 0.6s ease 0.3s;
}

.slider-slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.slide-caption p {
    font-size: 0.95rem;
    color: var(--color-secondary-light);
    max-width: 600px;
    line-height: 1.5;
}

/* Slider Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(18, 24, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.slider-btn svg {
    width: 22px;
    height: 22px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots Pagination */
.slider-nav-dots {
    position: absolute;
    bottom: 24px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-primary-light);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        aspect-ratio: 4 / 3;
    }
    .slide-caption {
        padding: 24px;
    }
    .slide-caption h3 {
        font-size: 1.3rem;
    }
    .slide-caption p {
        font-size: 0.85rem;
    }
    .slider-btn {
        width: 44px;
        height: 44px;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    .slider-nav-dots {
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 211, 102, 0.5);
}

/* 100% Responsive Adaptations */
@media (max-width: 768px) {
    .hero-content {
        height: auto !important;
        min-height: 60vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .hero-title {
        font-size: 2.2rem !important;
    }
    .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 24px !important;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
}
