/* =====================================================
   1. 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;
}


/* =====================================================
   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
    );
}

/* =====================================================
   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-dark {
    background: var(--primary);
    color: var(--white);
}

.section-header{
    text-align:center;
    margin-bottom:40px;
}

/* ====== SECCIÓN DETALLE SERVICIO ====== */
.service-detail{
    padding:100px 0;
    background:var(--light);
}

.detail-title{
    text-align:center;
    font-size:2.3rem;
    font-weight:700;
    margin-bottom:20px;
}

.detail-intro{
    max-width:900px;
    margin:0 auto 50px;
    margin-bottom: 80px;
    color:var(--muted);
    font-size:1.05rem;
    line-height:1.75;

    text-align:justify;
    text-justify:inter-word;

    hyphens:auto;
    -webkit-hyphens:auto;
    -ms-hyphens:auto;
}

/* ===== BLOQUE SOLUCIONES PRINCIPALES ===== */

.solutions-section{
    margin-top:70px;
}

.solutions-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:28px;
    margin-top:40px;
}

/* tarjeta principal */
.solution-card{
    background:var(--card-bg);
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--card-border);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    transition:.35s ease;
}

.solution-card:hover{
    transform:translateY(-10px);
    box-shadow:0 30px 70px rgba(0,0,0,.22);
}

.solution-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.solution-card h4{
    font-size:1.2rem;
    font-weight:700;
    margin:18px 18px 10px;
    color:var(--text-primary);
}

.solution-card p{
    font-size:.95rem;
    color:var(--muted);
    padding:0 18px 22px;
    line-height:1.55;
}

/* ===== TITULO DEL SLIDER (CABECERA TECNICA) ===== */

.subservices-heading{
    text-align:center;
    margin: 60px auto 70px; /* ← separación real profesional */
    max-width:900px;
}

.subservices-heading h3{
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:.4px;
    color:var(--text-primary);
    margin-bottom:14px;
}

/* linea dorada corporativa */
.subservices-line{
    display:block;
    width:80px;
    height:3px;
    margin:0 auto;
    border-radius:4px;

    background:linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
}

/* ===== SLIDER CONTENEDOR ===== */

.subservices-slider{
    position:relative;
    margin-top: 30px;
    padding: 0 35px;   
}

.subservices-viewport{
    overflow:hidden;
    width:100%;
}

/* TRACK */
.subservices-track{
    display:flex;
    gap:28px;
    transition:transform .5s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
}

/* ===== TARJETA ===== */

/* 4 tarjetas exactas */
.subservice{
    flex:0 0 calc((100% - 84px) / 4);
    /* 84px = 3 gaps de 28px */
    
    background:var(--card-bg);
    border-radius:18px;
    overflow:hidden;
    border:1px solid var(--card-border);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    transition:all .35s ease;
}

.subservice:hover{
    transform:translateY(-8px);
    box-shadow:0 28px 60px rgba(0,0,0,.2);
}

.subservice img{
    width:100%;
    height:200px;
    object-fit:cover;
}

/* TEXTOS */
.subservice h5{
    font-size:1.15rem;
    font-weight:700;
    margin:18px 18px 8px;
    color:var(--text-primary);
}

.subservice p{
    font-size:.95rem;
    color:var(--muted);
    padding:0 18px 22px;
    line-height:1.5;
}

/* ===== BOTONES ===== */

.sub-nav{
    position:absolute;
    top:45%;
    transform:translateY(-50%);
    width:46px;
    height:46px;
    border-radius:50%;
    border:none;
    background:var(--card-bg);
    color:var(--text-primary);
    box-shadow:0 12px 30px rgba(0,0,0,.25);
    cursor:pointer;
    z-index:20;
    font-size:22px;
    transition:.25s;
}

.sub-nav:hover{
    background:var(--accent);
    color:#fff;
}

.sub-nav.prev{ left:-18px; }
.sub-nav.next{ right:-18px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px){
    .subservice{
        flex:0 0 calc((100% - 56px) / 3);
    }
}

@media (max-width: 768px){
    .subservice{
        flex:0 0 calc((100% - 28px) / 2);
    }
}

@media (max-width: 480px){
    .subservice{
        flex:0 0 100%;
    }
}

/* RESPONSIVE SOLUCIONES */
@media(max-width:1200px){
    .solutions-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media(max-width:768px){
    .solutions-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:480px){
    .solutions-grid{
        grid-template-columns:1fr;
    }
}

/* =====================================================
   5. HERO
===================================================== */
.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/02.jpg");
}

/* Imagen 2 */
.hero::after{
    background-image:url("../img/1920x1080/03.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. ESTADÍSTICAS
===================================================== */
.stats-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;

    opacity: 0;
    transform: scale(.85);
    transition: opacity .6s ease .2s, transform .6s ease .2s;
}

.stat-item.visible .stat-number {
    opacity: 1;
    transform: scale(1);
}

.stat-label {
    font-size: 1rem;
    color: var(--white);

    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease .4s, transform .6s ease .4s;
}

.stat-item.visible .stat-label {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   8. 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);
}


/* =====================================================
   9. 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;
    }
}

/* =========================================
   CONTENEDOR GENERAL (LA MAGIA)
========================================= */

.contact-section{
    padding:110px 0;
}

/* TARJETA GRANDE */
.contact-wrapper{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:60px;
    padding:60px;
    border-radius:26px;

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    transition:.35s;
}

/* MODO CLARO */
:root[data-theme="light"] .contact-wrapper{
    background:#ffffff;
    box-shadow:0 25px 60px rgba(0,0,0,.12);
    border:1px solid rgba(0,0,0,.06);
}

/* MODO OSCURO */
:root[data-theme="dark"] .contact-wrapper{
    background:linear-gradient(
        180deg,
        rgba(20,35,50,.85),
        rgba(12,22,32,.92)
    );
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 35px 80px rgba(0,0,0,.65);
}

/* =========================================
   TEXTO IZQUIERDO
========================================= */

.contact-info h2{
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:18px;
    color:var(--text-primary);
}

.contact-subtext{
    margin-bottom:28px;
    line-height:1.7;
    color:var(--muted);
    font-size:1.05rem;
}

.contact-benefits{
    list-style:none;
    padding:0;
    margin:0;
}

.contact-benefits li{
    margin-bottom:14px;
    padding-left:28px;
    position:relative;
    color:var(--text-primary);
    font-weight:500;
}

/* checks dorados */
.contact-benefits li::before{
    content:"✔";
    position:absolute;
    left:0;
    color:var(--accent);
    font-weight:700;
}

/* =========================================
   FORMULARIO
========================================= */

.contact-card{
    border-radius:20px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:16px 18px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:.98rem;
    outline:none;
    transition:.25s;
}

/* LIGHT */
:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea{
    background:#f3f6fa;
    border:1px solid #dbe3ec;
    color:#1e293b;
}

/* DARK */
:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea{
    background:#0f1c27;
    border:1px solid rgba(255,255,255,.12);
    color:#e6edf3;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(212,175,55,.25);
}

/* FILA DOBLE */
.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

/* BOTÓN */
.contact-btn{
    width:100%;
    padding:18px;
    border-radius:999px;
    border:none;
    background:linear-gradient(135deg,#d4af37,#e6c978);
    color:#1e293b;
    font-weight:700;
    font-size:1.05rem;
    cursor:pointer;
    transition:.3s;
}

.contact-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(0,0,0,.25);
}

/* MENSAJE */
.form-status{
    margin-top:14px;
    font-size:.9rem;
    color:var(--text-primary);
}

/* RESPONSIVE */
@media(max-width:992px){
    .contact-wrapper{
        grid-template-columns:1fr;
        padding:40px;
    }

    .form-row{
        grid-template-columns:1fr;
    }
}

/* =====================================================
   10. ACCESIBILIDAD
===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= 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 GENERAL (gris carbón real) */
    --light: #141a20;
    --bg-color: #141a20;
    --bg-secondary: #1b232c;

    /* Navbar */
    --primary: #1e3447;
    --primary-soft: #27455d;

    /* Texto */
    --dark: #e6edf3;
    --text-primary: #eaf2f8;
    --muted: #a9bac8;

    /* Tarjetas */
    --card-bg: #1c2530;
    --card-border: rgba(255,255,255,0.08);

    /* Botones */
    --btn-bg: rgba(255,255,255,0.06);
    --btn-border: rgba(255,255,255,0.18);
    --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;
}*/

/* ===== TARJETAS MODO OSCURO PROFESIONAL ===== */
/* tarjetas slider dark premium */
:root[data-theme="dark"] .subservice{
    background: linear-gradient(
        180deg,
        #202a35,
        #18222c
    );

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* títulos */
:root[data-theme="dark"] .subservice h5{
    color:#f1f5f9;
}

/* texto */
:root[data-theme="dark"] .subservice p{
    color:#9fb0c0;
}

/* hover elegante */
:root[data-theme="dark"] .subservice:hover{
    transform:translateY(-10px);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.85),
        0 0 0 1px rgba(212,175,55,0.35);
}

:root[data-theme="dark"] .subservice img{
    filter: brightness(.82) contrast(1.08) saturate(.95);
}

:root[data-theme="dark"] .service-detail{
    background: radial-gradient(
        ellipse at top,
        #18212a 0%,
        #141a20 70%
    );
}

:root[data-theme="light"] .contact-form input:-webkit-autofill,
:root[data-theme="light"] .contact-form input:-webkit-autofill:hover,
:root[data-theme="light"] .contact-form input:-webkit-autofill:focus {

    -webkit-text-fill-color: #1e293b !important;

    box-shadow: 0 0 0px 1000px #ffffff inset !important;

    border: 1px solid rgba(0,0,0,0.15) !important;
}