/* =====================================================
   1. VARIABLES
===================================================== */
: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
    );
}

/* =====================================================
   2. BASE / RESET
===================================================== */
*,
*::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;
}

a {
    text-decoration: none;
    transition: all .3s ease;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   3. NAVBAR PROFESIONAL
===================================================== */
/* ================= NAVBAR CORPORATIVO DEFINITIVO ================= */

.nav-premium{
    position: fixed;
    inset: 0 0 auto 0;
    height: 70px;
    z-index: 1000;

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    background: var(--navbar-bg);

    border-bottom: 1px solid rgba(255,255,255,0.12);

    box-shadow: 0 8px 28px rgba(0,0,0,.45);

    transition: all .35s ease;
}

/* ====== MATERIAL DE VIDRIO REAL ====== */
/*.nav-premium{
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}*/

/* 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 ===== */
/* ===== NAVBAR SCROLL CORRECTO ===== */

.nav-premium.scrolled{
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);

    background: linear-gradient(
        180deg,
        rgba(20,45,70,0.96),
        rgba(16,35,55,0.96)
    );

    box-shadow: 0 12px 38px rgba(0,0,0,.65);
}

/*.nav-premium.scrolled::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(240,244,248,0.85);
    pointer-events:none;
}*/

/* al hacer scroll (vidrio) */
/* LINKS SIEMPRE VISIBLES */
.nav-premium .nav-link{
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: .3px;
}

/* HOVER */
.nav-premium .nav-link:hover{
    color: var(--accent) !important;
}

/* ACTIVO */
.nav-premium .nav-link.active{
    color: #ffffff !important;
    font-weight: 700;
}

.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) */
/*.nav-premium .nav-link{
    color:#0b1320;
    font-weight:600;
    letter-spacing:.2px;
    text-rendering:auto;
}*/

.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) */
.nav-premium .nav-link.active{
    color:#000000;
    font-weight:700;
}

/* hover elegante (sin mostaza) */
.nav-premium .nav-link:hover{
    color:#000000;
}

.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-light p{
    color: var(--text-primary);
}

.section-light .text-muted{
    color: var(--muted) !important;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

/* ================= SOLUCIONES PRINCIPALES ================= */

.main-solutions h2{
    letter-spacing:.3px;
}

/* wrapper imagen (ESTO SOLUCIONA LA UPS DESALINEADA) */
.product-img-wrapper{
    height:240px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
}

.product-img-wrapper img{
    max-height:100%;
    width:auto;
    object-fit:contain;
}

/* contenido */
.product-content{
    display:flex;
    flex-direction:column;
    height:100%;
}

/* titulo */
.product-title{
    font-size:1.45rem;
    font-weight:700;
    margin-bottom:10px;
}

/* texto */
.product-card p{
    flex-grow:1;
    font-size:.97rem;
    line-height:1.7;
    color:var(--muted);
}

/* link abajo SIEMPRE */
.product-card .link-premium{
    margin-top:auto;
}

/* efecto hover más industrial */
.product-card:hover{
    transform:translateY(-12px);
}

/* DARK MODE */
:root[data-theme="dark"] .product-card{
    background:var(--card-bg);
    border:1px solid var(--card-border);
}

:root[data-theme="dark"] .product-card p{
    color:#b6c2cf;
}

:root[data-theme="dark"] .product-title{
    color:#f1f5f9;
}

/* ===== BADGE PRODUCTO ===== */
.product-badge{
    display:inline-block;
    margin-top:12px;
    padding:6px 14px;
    border-radius:999px;
    background:rgba(212,175,55,.15);
    color:var(--accent);
    font-size:.85rem;
    font-weight:600;
}

/* ===== EQUIPOS SUMINISTRADOS ===== */
.supplied-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:35px;
}

.supplied-gallery figure{
    margin:0;
    text-align:center;
}

.supplied-gallery img{
    width:100%;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
    transition:.35s;
}

.supplied-gallery img:hover{
    transform:scale(1.04);
}

.supplied-gallery figcaption{
    margin-top:10px;
    font-size:.9rem;
    color:var(--muted);
}

/* ===== INSTRUMENTACION PROPORCIONAL ===== */

.instrument-images img:hover{
    transform:translateY(-6px);
}

/* ===== INSTRUMENTACION INDUSTRIAL NUEVA ===== */

.instrumentation-section{
    padding:110px 0;
}

.section-intro{
    max-width:720px;
    margin:0 auto 40px;
    text-align:center;
    color:var(--muted);
}

/* capacidades */
.instrument-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:35px;
}

.feature{
    background:var(--card-bg);
    border:1px solid var(--card-border);
    border-radius:18px;
    padding:28px;
    text-align:left;
    transition:.35s ease;
}

.feature i{
    font-size:28px;
    color:var(--accent);
    margin-bottom:12px;
}

.feature h4{
    font-size:1.15rem;
    margin-bottom:8px;
}

.feature p{
    font-size:.95rem;
    color:var(--muted);
    line-height:1.7;
}

.feature:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/* galeria visual */
.instrument-gallery{
    margin-top:35px;   /* antes 60 */
    margin-bottom:10px; /* ← clave */
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:26px;
    align-items:center;
}

.instrument-gallery img{
    width:100%;
    height:300px;   /* ↓ menos altura = menos bloque visual */
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 22px 50px rgba(0,0,0,.16);
}

.instrument-gallery img:hover{
    transform:translateY(-6px) scale(1.02);
}

/* ===== FIX ZOOM / LAPTOPS ===== */
@media (max-width:1200px){

    .product-row{
        grid-template-columns: 1fr 1fr;
        gap:50px;
        align-items:center;
    }

    .product-row-text{
        max-width:100%;
    }

    .product-row-image img{
        max-width:420px;
        height:260px;
    }
}

/* ===== BREAKPOINT TABLET REAL ===== */
@media (max-width:1024px){

    .product-row,
    .product-row.reverse{
        grid-template-columns:1fr;
        text-align:center;
        gap:35px;
    }

    .product-row-text{
        margin:0 auto;
    }

    .product-row-image{
        justify-content:center;
    }

    .product-row-image img{
        max-width:500px;
        height:auto;
    }
}

/* ===== ESPACIADO UX CORRECTO ENTRE SECCIONES ===== */

.electronic-components{
    padding:45px 0 70px;
}

/* separación visual suave antes de clientes */
.clients-carousel-section{
    margin-top:35px;
}

/* espacio interno de las imágenes */
.materials-gallery{
    margin-top:28px;
    margin-bottom:25px;
}

/* mejora la grilla */
.materials-gallery{
    margin-top:45px;
    margin-bottom:50px; /* ← ESTE ES EL IMPORTANTE */
}

/* ================= INDUSTRIAL SUPPLY ================= */

.section-header{
    text-align:center;
    margin-bottom:28px;
}

.section-header h2{
    font-weight:700;
    margin-bottom:10px;
}

.section-header p{
    color:var(--muted);
}

/* grid informativo */
.supply-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
    margin-bottom:90px;
}

.supply-grid.reverse{
    direction:rtl;
}
.supply-grid.reverse *{
    direction:ltr;
}

.supply-image img{
    width:100%;
    border-radius:18px;
    box-shadow:0 20px 45px rgba(0,0,0,.15);
}

.supply-text h3{
    margin-bottom:18px;
    line-height:1.25;
}

.supply-text p{
    line-height:1.9;
    max-width:520px;
}

/* ===== INDUSTRIAL PRODUCT ROW (RESPONSIVE REAL) ===== */

.product-row{
    display:grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 1fr);
    gap:70px;
    align-items:center;
    margin:110px auto;
    max-width:1200px;
    padding-inline:40px;
}

/* alternado */
.product-row.reverse{
    grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr);
}

.product-row.reverse .product-row-text{ order:2; }
.product-row.reverse .product-row-image{ order:1; }

/* texto */
.product-row-text{
    max-width:520px;
}

.product-row-text h3{
    font-size:2rem;
    line-height:1.25;
    margin-bottom:18px;
}

.product-row-text p{
    font-size:1.05rem;
    line-height:1.9;
    color:var(--muted);
}

/* imagen */
.product-row-image{
    display:flex;
    justify-content:center;
}

.product-row-image img{
    width:100%;
    max-width:520px;
    height:320px;
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 30px 70px rgba(0,0,0,.18);
}

/* ===== ADAPTACION REAL (ZOOM / LAPTOP / TABLET) ===== */

@media (max-width:1100px){

    .product-row,
    .product-row.reverse{
        grid-template-columns:1fr;
        text-align:center;
        gap:35px;
        padding-inline:20px;
    }

    .product-row-text{
        margin:auto;
    }

    .product-row-image img{
        max-width:500px;
        height:auto;
    }
}

/* DARK MODE */
:root[data-theme="dark"] .product-row-image img{
    box-shadow:0 35px 80px rgba(0,0,0,.75);
}

/* ===== SECCION COMPACTA PARA TITULOS ===== */
.compact-section{
    padding-top:60px;
    padding-bottom:40px;
}

/* reducir espacio del header */
.compact-section .section-header{
    margin-bottom:35px;
}

/* titulo */
.compact-section h2{
    margin-bottom:12px;
}

/* subtitulo */
.compact-section p{
    max-width:720px;
    margin-inline:auto;
}

/* CONTENEDOR REAL DE LECTURA (clave profesional) */
.industrial-container{
    width:min(1200px, 92%);
    margin-inline:auto;
    padding-inline:20px;
}

/* aire lateral real */
.industrial-supply{
    padding:120px 0;
}

.industrial-supply .container{
    max-width:1200px;
    padding-left:40px;
    padding-right:40px;
}

.product-row-text{
    max-width:520px;
    margin:auto;
}

/* INSTRUMENTACIÓN */
.equipment-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:30px;
}

.equipment-gallery img{
    width:100%;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.equipment-list{
    columns:2;
    margin-top:25px;
}

/* MATERIALES */
.materials-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:30px;
}

.electronic-components .section-header{
    margin-bottom:18px;
}

.electronic-components .section-intro{
    margin-bottom:28px;
}

.materials-gallery img{
    width:100%;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

/* DARK MODE */
:root[data-theme="dark"] .supply-image img,
:root[data-theme="dark"] .equipment-gallery img,
:root[data-theme="dark"] .materials-gallery img{
    box-shadow:0 18px 40px rgba(0,0,0,.7);
}

/* RESPONSIVE */
@media(max-width:900px){

    .supply-grid{
        grid-template-columns:1fr;
    }

    .brand-block{
        flex-direction:column;
        text-align:center;
    }

    .equipment-gallery,
    .materials-gallery{
        grid-template-columns:1fr;
    }

    .equipment-list{
        columns:1;
    }
}

/* =====================================================
   5. HERO PRODUCTS
===================================================== */
.hero{
    position: relative;
    min-height: 100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
}

/* 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;
}

/* Imagen 1 */
.hero::before{
    background-image:url("../img/1920x1080/03.jpg");
}

/* Imagen 2 */
.hero::after{
    background-image:url("../img/1920x1080/04.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. CARDS PRODUCTOS
===================================================== */
/* 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 p{
    color: var(--text-body);
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
}

.product-title {
    margin: 15px 0 10px;
}

.product-title a {
    color: var(--text-title);
    font-weight: 700;
}

.product-title a:hover{
    color: var(--accent);
}

.product-card p {
    font-size: .95rem;
    line-height: 1.7;
}

/* =====================================================
   7. LINK PREMIUM
===================================================== */
.link-premium {
    position: relative;
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    padding-left: 22px;
    margin-top: 10px;
}

.link-premium::before {
    content: "➜";
    position: absolute;
    left: 0;
    transition: transform .3s ease;
}

.link-premium:hover {
    color: var(--primary);
}

.link-premium:hover::before {
    transform: translateX(6px);
}

/* =====================================================
   8. 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%;
}

/* =====================================================
   9. 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;
}

/* ======== FOOTER AJUSTE PROFESIONAL ======== */

.footer-row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
}

/* cada columna */
.footer-col{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

/* ---------- 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;
}

/* ---------- 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);
}

/* =====================================================
   10. 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;
    }
}

/* =====================================================
   11. ACCESIBILIDAD
===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   12. CARRUSEL DE CLIENTES
===================================================== */
.clients-carousel-section{
    position: relative;
    padding: 110px 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.01)
    );
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clients-carousel-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #0f172a;   /* color fijo real */
    margin-bottom: 55px;
    transition: color 0.3s ease;
}

/* MODO CLARO
:root[data-theme="light"] .clients-carousel-section h3{
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

/* MODO OSCURO
:root[data-theme="dark"] .clients-carousel-section h3{
    text-shadow: 0 3px 12px rgba(0,0,0,0.85);
}*/

.clients-carousel-section h3::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .7;
}

.clients-carousel {
    position: relative;
    width: 100%;
    padding: 20px 100px; /* espacio lateral real */
}

/* Wrapper para contener el overflow del track */
.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

/* Botones de navegación - FUERA del overflow */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    color: #0f172a;

    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    transition: all .25s ease;
}

.carousel-nav:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 14px 35px rgba(0,0,0,.28);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

/* Efecto disabled para botones (opcional) */
.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
    transform: translateY(-50%) scale(1);
}

.carousel-track {
    display: flex;
    gap: 80px;
    padding: 0 10px;
    width: fit-content;
    transition: transform 0.5s ease;
}

.client-logo {
    flex-shrink: 0;
    width: 190px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    border-radius: 14px;
    background: transparent;
    position: relative;

    transition: 
        transform .35s cubic-bezier(.2,.8,.2,1),
        background .35s ease,
        box-shadow .35s ease;
}

.client-logo::before{
    content:"";
    position:absolute;
    inset:-12px;
    border-radius:18px;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.08),
        transparent 70%
    );
    opacity:0;
    transition:opacity .35s ease;
}

.client-logo:hover::before{
    opacity:1;
}

.client-logo:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.client-logo img{
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;

    /* logos visibles en dark */
    filter: grayscale(100%) brightness(2.1) contrast(1.1);
    opacity: .75;

    transition: 
        filter .35s ease,
        opacity .35s ease,
        transform .35s ease;
}

.client-logo:hover img{
    filter: grayscale(0%) brightness(1.05) contrast(1.05);
    opacity: 1;
    transform: scale(1.08);
}

/* Animación del carrusel (ya no se usa pero se mantiene por compatibilidad) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
    .carousel-track-wrapper {
        margin: 0 60px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .clients-carousel-section {
        padding: 60px 0;
    }
    
    .clients-carousel-section h3 {
        font-size: 1.5rem;
    }
    
    .carousel-track-wrapper {
        margin: 0 50px;
    }
    
    .carousel-track {
        gap: 40px;
    }
    
    .client-logo {
        width: 140px;
        height: 80px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-track-wrapper {
        margin: 0 45px;
    }
    
    .carousel-track {
        gap: 30px;
    }
    
    .client-logo {
        width: 120px;
        height: 70px;
        padding: 15px;
    }
    
    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* =====================================================
   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);

    --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;

    /* 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;
}

/* =====================================================
   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;

    /*--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: linear-gradient(
        to bottom,
        rgba(255,255,255,0.55),
        rgba(255,255,255,0.05)
    );

    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);
}


/* =========================================
   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: #1e293b;
    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;
}*/
