/* =====================================================
   1. RESET & BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   2. VARIABLES GLOBALES
===================================================== */

:root {
    /* 🎨 PALETA BASE (Se usa como Light por defecto) */
    --primary: #244a73;
    --primary-soft: #2f5f8f;
    
    --accent: #d4af37;
    --accent-hover: #b9962f;

    --light: #eef2f7;
    --dark: #1e293b;
    --white: #ffffff;
    --muted: #5b6b7c;

    --section-padding: 100px 0;

    --transition-fast: .3s ease;
    --transition-medium: .4s ease;

    --navbar-bg: linear-gradient(
        180deg,
        #223f55,
        #162734
    );
}

/*body {
    margin: 0;
    padding-top: 70px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}*/

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,h2,h3,h4,h5,h6{
    color: var(--text-title);
}

p{
    color: var(--text-body);
}


/* =====================================================
   3. NAVBAR PROFESIONAL
===================================================== */
.nav-premium{
    height: 70px;
    z-index: 1000;
    top:0;
    left:0;
    right:0;
    will-change: transform;
    transform: translateZ(0);

    background: var(--navbar-bg);

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    border-bottom: 1px solid var(--navbar-border);

    box-shadow: 0 8px 28px rgba(0,0,0,.45);

    transition: box-shadow .35s ease;
}

/* vidrio */
.nav-premium::before{
    content:"";
    position:absolute;
    inset:0;
    background: var(--navbar-glass);
    pointer-events:none;
}

.nav-premium::after{
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.04) 45%,
        transparent
    );
}

/* ===== CUANDO BAJAS LA PAGINA ===== */
/*.nav-premium.scrolled{
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%)
}/*

/* scroll SOLO agrega profundidad (NO cambia color) */
/* scroll solo agrega profundidad, NO cambia el vidrio */
.nav-premium.scrolled{
    height:70px;

    /* NO CAMBIAR EL BLUR */
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}


/*.nav-premium.scrolled::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(240,244,248,0.85);
    pointer-events:none;
}

/* al hacer scroll (vidrio) */
/*.nav-premium.scrolled .nav-link{
    color:#111827;
    text-shadow: 0 0 0.01px rgba(0,0,0,0.01);
    font-weight:650;
    /*text-rendering: optimizeLegibility;
    /*-webkit-font-smoothing: antialiased;
}*/

.nav-premium .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.nav-premium .navbar-brand img {
    height: 50px;
    max-height: none;
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-premium .navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-premium .navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* estado normal (sobre hero) */
/* LINKS SIEMPRE VISIBLES */
.nav-premium .nav-link{
    color: var(--navbar-text) !important;
    font-weight: 500;
    letter-spacing:.3px;
    transition: color .25s ease;
}

.nav-premium .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

/*.nav-premium .nav-link:hover,
.nav-premium .nav-link.active {
    color: var(--accent);
}*/

/* activo (página actual) */
/* ACTIVO */
.nav-premium .nav-link.active{
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 0 0.6px rgba(255,255,255,.85);
}

/* HOVER */
.nav-premium .nav-link:hover{
    color: var(--navbar-hover) !important;
}

.nav-premium .nav-link:hover::after {
    width: 100%;
}

/* =====================================================
   4. SECCIONES GENERALES
===================================================== */
.section-light,
.section-dark {
    padding: var(--section-padding);
    overflow: hidden;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   5. HERO
===================================================== */
.hero{
    position: relative;
    min-height: 100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
}

/* ===== FIX CRÍTICO LEAFLET ===== */
.hero{
    isolation:isolate;
}

/* CAPAS DEL SLIDER */
.hero::before,
.hero::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    animation: heroSlider 18s infinite;
    filter:brightness(.55);
    pointer-events:none;
}

/* Imagen 1 */
.hero::before{
    background-image:url("../img/1920x1080/01.jpg");
}

/* Imagen 2 */
.hero::after{
    background-image:url("../img/1920x1080/02.jpg");
    animation-delay:9s;
}

/* OSCURECER PARA QUE EL TEXTO SE LEA */
.hero .hero-content{
    position:relative;
    z-index:2;
}

.hero::marker{display:none;}

.hero::selection{background:none;}

.hero:after,
.hero:before{
    filter:brightness(.55);
}

@keyframes heroSlider{
    0%{opacity:1;}
    45%{opacity:1;}
    50%{opacity:0;}
    95%{opacity:0;}
    100%{opacity:1;}
}

.hero span{
    position:absolute;
    inset:0;
    z-index:-3;
    /*background:url("../img/1920x1080/03.jpg") center/cover no-repeat;*/
    animation: heroSlider 18s infinite;
    animation-delay:6s;
    filter:brightness(.55);
}

.hero h1 {
    font-weight: 700;
    color: var(--white);
}

.hero p {
    color: #e5e7eb;
    max-width: 720px;
    margin: 20px auto;
}

/* =====================================================
   6. COMPONENTES
===================================================== */

/* BOTÓN PREMIUM */
.btn-premium {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        #e6c978 50%,
        var(--accent-hover) 100%
    );

    color: #1e293b;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 999px;
    border: none;
    letter-spacing: .5px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.15),
        0 0 0 0 rgba(212,175,55,.5);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s cubic-bezier(.2,.8,.2,1),
        filter .35s ease;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 40px rgba(0,0,0,.25),
        0 0 0 6px rgba(212,175,55,.15);
    filter: brightness(1.05);
}

.btn-premium:active {
    transform: translateY(-1px);
}

.btn-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.5),
        transparent
    );
    transition: left .7s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

/* CARD PREMIUM */
.card-premium {
    background: var(--white);
    border-radius: 22px;
    padding: 45px 35px;
    box-shadow: 0 18px 40px rgba(0,0,0,.08);

    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
}

/* =====================================================
   7. FOOTER
===================================================== */
.footer-intelliall {
    background: linear-gradient(
        180deg,
        var(--primary-soft),
        var(--primary)
    );
    border-top: 3px solid var(--accent);
    box-shadow: 0 -8px 30px rgba(0,0,0,.15);
    color: #ffffff;
    padding: 80px 0 60px;
}


.footer-logo {
    height: 46px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-text,
.footer-contact {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.footer-contact span {
    color: var(--accent);
    margin-right: 6px;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding-left: 26px;
    transition: color var(--transition-fast);
}

.footer-links a::before {
    content: "➜";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links a:hover::before {
    transform: translateY(-50%) translateX(6px);
}

/* SOCIAL */
.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
}

.footer-copy {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ---------- LOGO EMPRESA ---------- */

.footer-logo{
    width:210px;
    max-width:100%;
    height:auto;
    margin-bottom:14px;
}

/* evita que flex lo deforme */
.footer-col img{
    align-self:flex-start;
}

/* textos empresa */
.footer-text{
    max-width:320px;
}

/* ---------- CERTIFICACIONES ---------- */

.footer-certifications{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:8px;
}

.cert-img{
    width:165px;
    background:#fff;
    padding:6px 10px;
    border-radius:8px;
    align-self:flex-start;
}

/* ---------- REDES SOCIALES ---------- */

.footer-social-col{
    align-items:flex-start;
}

.footer-social{
    display:flex;
    gap:14px;
    margin-top:12px;
}

/* alinea el titulo con los iconos */
.footer-social-col .footer-title{
    margin-bottom:6px;
}

/* copyright abajo correctamente */
.footer-copy{
    margin-top:18px;
    font-size:.9rem;
    opacity:.85;
}

/* ===== CENTRAR TODO EL FOOTER ===== */

.footer-intelliall .container{
    max-width:1200px;
    margin:0 auto;
    padding-left:40px;
    padding-right:40px;
}

/* centra visualmente la grilla */
.footer-row{
    justify-content:center;
}

/* separación uniforme entre columnas */
.footer-col{
    padding-left:25px;
    padding-right:25px;
}

/* columna empresa ligeramente compensada */
.footer-col:first-child{
    padding-left:10px;
}

/* centra verticalmente todo respecto al alto */
.footer-intelliall{
    padding-top:70px;
    padding-bottom:60px;
}

/* ===== FIX DEFINITIVO REDES FOOTER ===== */

.footer-intelliall .footer-social{
    display: inline-flex;        /* ya no ocupa todo el ancho */
    justify-content: flex-start; /* elimina el empuje a la derecha */
    align-items: center;
    gap:14px;
}

/* la columna completa se alinea a la izquierda */
.footer-social-col{
    align-items:flex-start;
    text-align:left;
}

/* asegura misma línea vertical */
.footer-social-col .footer-title,
.footer-social-col .footer-copy{
    text-align:left;
}

/* evita que bootstrap o herencias la centren */
.footer-social-col *{
    margin-left:0 !important;
}

/* ---------- RESPONSIVE ---------- */

@media(max-width:992px){

    .footer-col{
        margin-bottom:35px;
    }

    .footer-social{
        justify-content:flex-start;
    }
}

/* =========================================
   FOOTER CONTRASTE FIJO (LIGHT + DARK)
========================================= */

.footer-intelliall {
    color: #ffffff;
}

/* Títulos dentro del footer */
.footer-intelliall h1,
.footer-intelliall h2,
.footer-intelliall h3,
.footer-intelliall h4,
.footer-intelliall h5,
.footer-intelliall h6,
.footer-intelliall .footer-title {
    color: #ffffff;
}

/* Texto general */
.footer-intelliall p,
.footer-intelliall span,
.footer-intelliall small,
.footer-intelliall .footer-text,
.footer-intelliall .footer-contact,
.footer-intelliall .footer-copy {
    color: #e2e8f0;
}

/* Enlaces */
.footer-intelliall a,
.footer-intelliall .footer-links a {
    color: #ffffff;
}

.footer-intelliall .footer-links a:hover {
    color: var(--accent);
}

/* Iconos redes */
.footer-intelliall .footer-social a {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.footer-intelliall .footer-social a i,
.footer-intelliall .footer-social a svg {
    color: #ffffff;
    fill: #ffffff;
}

/* Hover redes */
.footer-intelliall .footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer-intelliall .footer-social a:hover i,
.footer-intelliall .footer-social a:hover svg {
    color: var(--primary);
    fill: var(--primary);
}


/* =====================================================
   8. RESPONSIVE
===================================================== */
@media (max-width: 991px) {

    .nav-premium .navbar-nav {
        gap: 18px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-intelliall .text-lg-end {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
    }
}

/* =====================================================
   9. ACCESIBILIDAD
===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   10. CONTACTO
===================================================== */
/* =========================================
   FIX DEFINITIVO MAPA LEAFLET + BOOTSTRAP
========================================= */

/* La fila debe estirarse */
.section-separator .row{
    align-items: stretch !important;
}

/* la columna del mapa debe comportarse como contenedor flexible */
.section-separator .col-lg-7,
.section-separator .col-md-6{
    display: flex;
    flex-direction: column;
}

/* el mapa debe ocupar todo */
.contact-map{
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 520px;   /* <- AQUÍ está la magia */
    border-radius: 18px;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* quitar espacios internos del container */
.section-separator .container{
    height: 100%;
}

/* =========================
   TARJETA CONTACTO PRO
========================= */

.contact-card{
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 40px 42px;

    max-width: 520px;
    width:100%;

    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.contact-card:hover{
    transform: translateY(-5px);
    box-shadow:
        0 18px 45px rgba(0,0,0,.28);
}

/* efecto sutil corporativo */
.contact-card:hover{
    transform: translateY(-6px);
    box-shadow:
        0 28px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.06);
}

/*.contact-card { padding: 32px; }*/

/* TITULO */
.contact-title{
    font-size: 1.7rem;
    font-weight:700;
    margin-bottom:22px;
}

/* línea corporativa inferior */
.contact-title::after{
    content:"";
    display:block;
    width:60px;
    height:3px;
    margin-top:10px;
    border-radius:3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
    opacity:.8;
}

/* CONTENEDOR DEL MAPA */
.contact-map{
    width:100%;
    height:100%;
    min-height:420px;   /* ← CLAVE */
    border-radius:18px;
    overflow:hidden;
}

/* COLUMNA DEL MAPA */
.col-lg-7{
    display:flex;
}

#map{
    position: relative;
    z-index: 10;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane{
    z-index: 20 !important;
}

/* =========================================
   LINK UBICACIÓN (LIGHT + DARK MODE)
========================================= */

.map-link a{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 600;
    text-decoration: none;

    color: var(--text-body);
    transition: all .25s ease;
}

/* hover elegante corporativo */
.map-link a:hover{
    color: var(--accent);
    transform: translateX(3px);
}

/* modo oscuro */
:root[data-theme="dark"] .map-link a{
    color: #cbd5e1;
}

/* modo claro */
:root[data-theme="light"] .map-link a{
    color: #334155;
}

.contact-list{
    margin-top:20px;
    padding:22px 26px;
    border-radius:14px;
    background: rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.05);
}

.contact-list li{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    font-size:.97rem;
    line-height:1.6;
    color:var(--text-body);
}

/* iconos */
.contact-list li i{
    width:26px;
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background: rgba(212,175,55,.15);
    color: var(--accent);
    font-size:13px;
}

.contact-list a {
    font-weight: 500;
    color: var(--primary);
    transition: color .3s ease;
}

.contact-list a:hover {
    color: var(--accent);
}

/* ================= BOTON OFICIAL CONTACTO ================= */

/* =====================================================
   BOTÓN BUZÓN — TEXTO SIEMPRE BLANCO (FIX DEFINITIVO)
===================================================== */
.contact-complaints{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    margin-top:18px;
    padding:14px 26px;
    border-radius:12px;

    /* AZUL INDUSTRIAL */
    background: linear-gradient(
        135deg,
        #1f4f7a 0%,
        #173a5a 100%
    );

    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff;

    font-weight:700;
    letter-spacing:.35px;
    font-size:.97rem;

    text-decoration:none !important;
    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 8px 22px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.12);

    transition: all .15s ease;
}

.contact-complaints:hover{
    background: linear-gradient(
        135deg,
        #2a669e 0%,
        #1d4c76 100%
    );

    transform: translateY(-2px);
    box-shadow:
        0 14px 35px rgba(0,0,0,.6),
        inset 0 1px 0 rgba(255,255,255,.18);
}

/* CLICK */
.contact-complaints:active{
    transform: translateY(0);
    box-shadow:0 5px 15px rgba(0,0,0,.35);
}

/* 👇 AISLAMIENTO TOTAL DE LINKS */
.contact-complaints:visited,
.contact-complaints:focus,
.contact-complaints:focus-visible{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff;
    text-decoration:none !important;
    outline:none;
}

a:not(.contact-complaints):hover{
    color: var(--accent);
}

.section-seperator{
     background: var(--bg-color);
}

.section-seperator h1,
.section-seperator h2,
.section-seperator h3,
.section-seperator h4{
    color: var(--text-title);
}

.section-seperator p,
.section-seperator li{
    color: var(--text-body);
}

/* =====================================================
   7. BACK TO TOP
===================================================== */
/*.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}*/

/* =====================================================
   8. ANIMATIONS
===================================================== */
/*@keyframes socialFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}*/

/* =====================================================
   12. MODO CLARO Y OSCURO
===================================================== */

/* 🌞 LIGHT MODE */
:root[data-theme="light"] {
    --primary: #1e3a5f;
    --primary-soft: #2b4c74;
    --accent: #d4af37;
    --accent-hover: #c39b2f;

    --light: #f8fafc;
    --dark: #0f172a;
    --white: #ffffff;
    --muted: #64748b;

    --text-primary: #1e293b;
    --bg-color: #eef2f7;
    --bg-secondary: #ffffff;

    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.08);

    --surface-1:#ffffff;
    --surface-border:rgba(0,0,0,0.08);

    --btn-bg: #ffffff;
    --btn-border: rgba(0,0,0,0.15);
    --btn-text: #1e293b;

    --shadow-light: rgba(0,0,0,0.08);
    --shadow-medium: rgba(0,0,0,0.15);
    --shadow-hover: rgba(0,0,0,0.25);
}

/* 🌙 DARK MODE */
:root[data-theme="dark"] {

    /* Fondo real oscuro (neutral, no azul) */
    --light: #0b1117;
    --bg-color: #0b1117;
    --bg-secondary: #111a22;

    /* Azul corporativo solo para navbar */
    --primary: #1c344a;
    --primary-soft: #243f57;

    /* Texto */
    --dark: #e6edf3;
    --text-primary: #e6edf3;
    --muted: #9fb0c0;

    --surface-1:#0f1c26;
    --surface-border:rgba(255,255,255,0.08);
    --text-title: #e6edf3;
    --text-body: #9fb0c0;

    /* Elementos */
    --card-bg: #131c24;
    --card-border: rgba(255,255,255,0.06);
    

    --btn-bg: rgba(255,255,255,0.05);
    --btn-border: rgba(255,255,255,0.15);
    --btn-text: #e6edf3;

    --navbar-bg: linear-gradient(
        180deg,
        #1a2a36,
        #0f1c26
    );

    --navbar-glass: rgba(255,255,255,0.05);

    --navbar-border: rgba(255,255,255,0.08);

    --navbar-text: #ffffff;

    --navbar-hover: #d4af37;
}

/* =====================================================
   13. BOTON MODO CLARO Y OSCURO
===================================================== */

/* Botón */
.theme-toggle {
    position: relative;
    margin-left: 20px;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: linear-gradient(
        145deg,
        var(--accent),
        var(--accent-hover)
    );

    color: var(--primary);
    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 6px 15px rgba(0,0,0,.2);

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .4s ease,
        background .4s ease;
}

/* Hover */
.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 10px 22px rgba(0,0,0,.3);
}

/* Click */
.theme-toggle:active {
    transform: scale(.95);
}

/* =====================================================
   🎨 14. MODO CLARO CORPORATIVO (No tan blanco)
===================================================== */
:root[data-theme="light"] {

    --primary: #244a73;          /* Azul corporativo medio */
    --primary-soft: #2f5f8f;
    --accent: #d4af37;
    --accent-hover: #b9962f;

    --light: #eef2f7;            /* Gris claro corporativo */
    --dark: #1e293b;             /* Texto principal */
    --white: #ffffff;
    --muted: #5b6b7c;

    --surface-1: #ffffff;
    --surface-border: rgba(0,0,0,0.08);
    --text-title: #1e293b;
    --text-body: #475569;

    /*--heading-color:#0f172a;*/
}

/* Navbar en claro (más corporativo) */
:root[data-theme="light"] .nav-premium{
    background: linear-gradient(
        90deg,
        rgba(36,74,115,0.88),
        rgba(47,95,143,0.88),
        rgba(36,74,115,0.88)
    );

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-bottom: 1px solid rgba(255,255,255,0.25);

    box-shadow: 0 10px 35px rgba(15,23,42,0.35);
}

/*:root[data-theme="light"] .nav-premium .nav-link {
    color: #ffffff;
    font-weight: 500;
}

:root[data-theme="light"] .nav-premium .nav-link:hover {
    color: var(--accent);
}*/

/* Títulos más sólidos
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3 {
    color: #1e293b;
}*/

/* Estadísticas */
:root[data-theme="light"] .stat-label {
    color: #ffffff;
    font-weight: 500;
}

/* Footer más elegante */
:root[data-theme="light"] .footer-intelliall {
    background: linear-gradient(
        180deg,
        #1e3a5f,
        #1a3554
    );
}

:root[data-theme="light"] .footer-text,
:root[data-theme="light"] .footer-contact {
    color: #e2e8f0;
}

:root[data-theme="light"] .btn-premium {
    text-shadow: none;
    color: #1e293b;
}

:root[data-theme="light"] .theme-toggle {
    background: #ffffff;
    border: 2px solid #0b1f33;
    color: #0b1f33;
}

/* ================= NAVBAR VIDRIO PROFESIONAL ================= */
:root[data-theme="light"] .nav-premium.scrolled{

   background: linear-gradient(
        90deg,
        rgba(36,74,115,0.88),
        rgba(47,95,143,0.88),
        rgba(36,74,115,0.88)
    );

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-bottom: 1px solid rgba(255,255,255,0.25);

    box-shadow: 0 10px 35px rgba(15,23,42,0.35);
}

/* neutralizador de color del fondo */
/*:root[data-theme="light"] .nav-premium.scrolled::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

    background: rgba(230,236,242,0.45);

    /* ESTO es la magia
    mix-blend-mode: normal;
}*/

/* capa de luz del vidrio */
/*:root[data-theme="light"] .nav-premium.scrolled::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.65),
        rgba(255,255,255,0.08) 45%,
        rgba(255,255,255,0.02)
    );

    opacity:.55;
}*/

/* brillo superior del vidrio */
:root[data-theme="light"] .nav-premium.scrolled::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

     background: rgba(255,255,255,0.04);

    opacity:.6;
}

/* =====================================================
   🌙 15. MODO OSCURO CORPORATIVO (No tan negro)
===================================================== */
:root[data-theme="dark"] {

    /* Fondo real oscuro (neutral, no azul) */
    --light: #0b1117;
    --bg-color: #0b1117;
    --bg-secondary: #111a22;

    /* Azul corporativo solo para navbar */
    --primary: #1c344a;
    --primary-soft: #243f57;

    /* Texto */
    --dark: #e6edf3;
    --text-primary: #e6edf3;
    --muted: #9fb0c0;

    /* Elementos */
    --card-bg: #131c24;
    --card-border: rgba(255,255,255,0.06);

    --btn-bg: rgba(255,255,255,0.05);
    --btn-border: rgba(255,255,255,0.15);
    --btn-text: #e6edf3;

    /*--heading-color:#f1f5f9;*/
}

/* Navbar oscuro corporativo */
:root[data-theme="dark"] .nav-premium {
     background: linear-gradient(
        90deg,
        rgba(11,17,23,0.88),
        rgba(18,28,38,0.88),
        rgba(11,17,23,0.88)
    );

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 12px 40px rgba(0,0,0,.65);
}

:root[data-theme="dark"] .nav-premium .nav-link {
    color: #f1f5f9;
    font-weight: 500;
}

:root[data-theme="dark"] .nav-premium .nav-link:hover {
    color: var(--accent);
}

/* Secciones oscuras */
:root[data-theme="dark"] .section-dark {
    background: var(--primary);
    color: #f1f5f9;
}

/* Cards en oscuro */
:root[data-theme="dark"] .card-premium {
    background: #22364f;
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

/* Títulos
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
    color: #ffffff;
}*/

/* Estadísticas */
:root[data-theme="dark"] .stat-label {
    color: #cbd5e1;
    font-weight: 500;
}

/* Footer oscuro más limpio */
:root[data-theme="dark"] .footer-intelliall {
    background: linear-gradient(180deg, #0f1c2b, #162c44);
}

:root[data-theme="dark"] .footer-text,
:root[data-theme="dark"] .footer-contact {
    color: #cbd5e1;
}

:root[data-theme="dark"] .btn-premium {
    text-shadow: none;
    color: #1e293b;
}

:root[data-theme="dark"] .theme-toggle {
    background: #0b1f33;
    border: 2px solid #ffffff;
    color: #ffffff;
}

:root[data-theme="dark"] .nav-premium.scrolled{

     background: linear-gradient(
        90deg,
        rgba(11,17,23,0.88),
        rgba(18,28,38,0.88),
        rgba(11,17,23,0.88)
    );

    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 12px 40px rgba(0,0,0,.65);
}

/* ===== AJUSTE VISUAL SOLO MODO OSCURO ===== */

:root[data-theme="dark"] .contact-complaints{
    background: linear-gradient(
        135deg,
        #b28b1e 0%,
        #8f6f14 100%
    );

    border:1px solid rgba(255,255,255,.08);

    /* menos brillo, más profundidad */
    box-shadow:
        0 6px 18px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.08);
}

:root[data-theme="dark"] .contact-complaints:hover{
    background: linear-gradient(
        135deg,
        #9a7718 0%,
        #7a5f12 100%
    );

    box-shadow:
        0 10px 26px rgba(0,0,0,.75),
        inset 0 1px 0 rgba(255,255,255,.12);
}

/* =========================================
   16. FIX DEFINITIVO HERO (PRIORIDAD MÁXIMA)
========================================= */

:root[data-theme="light"] .hero h1,
:root[data-theme="dark"] .hero h1 {
    color: #ffffff !important;
}

:root[data-theme="light"] .hero p,
:root[data-theme="dark"] .hero p {
    color: rgba(255,255,255,0.95) !important;
}

/* ================= TEMA CLARO - ESTILOS ESPECÍFICOS ================= */
[data-theme="light"] .client-logo {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .client-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/*[data-theme="light"] .carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .carousel-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}*/

/* ================= TEMA OSCURO - ESTILOS ESPECÍFICOS ================= */
[data-theme="dark"] .client-logo {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .client-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/*[data-theme="dark"] .carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}*/

[data-theme="dark"] .clients-carousel-section h3{
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ================= ACCESIBILIDAD ================= */
/* Focus visible para navegación por teclado */
.carousel-nav:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .client-logo,
    .carousel-nav,
    .client-logo img {
        transition: none;
    }
}

/* ================= MEJORAS VISUALES ================= */
/* Efecto de brillo sutil en hover (tema claro) */
:root .client-logo:hover {
    box-shadow: 
        0 8px 20px var(--shadow-medium),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Efecto de brillo sutil en hover (tema oscuro) */
[data-theme="dark"] .client-logo:hover {
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* links modo claro */
/*:root[data-theme="light"] .nav-premium.scrolled .nav-link{
    color:#0f172a;
    font-weight:600;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}*/

/* hover elegante */
/*:root[data-theme="light"] .nav-premium.scrolled .nav-link:hover{
    color:var(--accent);
}*/

/* links modo oscuro */
/*:root[data-theme="dark"] .nav-premium .nav-link{
    color:#e6edf3;
}*/

/* ===== FIX DEFINITIVO NAVBAR BOOTSTRAP ===== */

/* color normal */
.nav-premium .navbar-nav .nav-link{
    color: #ffffff !important;
}

/* hover dorado */
.nav-premium .navbar-nav .nav-link:hover{
    color: #d4af37 !important;
}

/* activo */
.nav-premium .navbar-nav .nav-link.active{
    color: #ffffff !important;
}

/* quitar color oscuro de bootstrap */
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link{
    color: inherit !important;
}
