:root{
    --primary:#123C69;
    --primary-dark:#0B2545;
    --accent:#1CA79A;
    --accent-soft:#E7F7F4;
    --ink:#111827;
    --dark:#162033;
    --dark-soft:#314156;
    --white:#FFFFFF;
    --surface:#F6F8FB;
    --gray:#F8FAFC;
    --border:#D9E2EC;
    --text:#465568;
    --success:#22C55E;
    --radius:12px;
    --shadow:0 18px 45px rgba(17,24,39,.10);
    --font-body:'Inter','Segoe UI',Arial,sans-serif;
    --text-xs:.8125rem;
    --text-sm:.9375rem;
    --text-base:1rem;
    --text-md:1.125rem;
    --text-lg:1.25rem;
    --text-xl:1.75rem;
    --text-2xl:2.625rem;
    --text-hero:4rem;
    --leading-tight:1.08;
    --leading-title:1.16;
    --leading-body:1.72;
    --measure:68ch;
}
/* ==================================
   RESET / BASE
================================== */
.intro-image img{
    width:100%;
    max-width:450px;
    height:auto;
}


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

html{
    scroll-behavior:smooth;
}

body{
    font-family:var(--font-body);
    color:var(--text);
    background:var(--white);
    font-size:var(--text-base);
    line-height:var(--leading-body);
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

h1,
h2,
h3,
h4,
h5,
h6{
    color:var(--dark);
    font-weight:800;
    line-height:var(--leading-title);
    letter-spacing:0;
    text-wrap:balance;
}

p,
li{
    max-width:var(--measure);
    line-height:var(--leading-body);
}

p{
    text-wrap:pretty;
}

a,
button,
input,
textarea{
    font:inherit;
}

/* ==================================
   HEADER / NAVBAR
   (solo si header_public.php usa estas clases)
================================== */

.header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.86);
    border-bottom:1px solid rgba(217,226,236,.62);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    transition:background .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.header.scrolled{
    background:rgba(255,255,255,.94);
    border-color:rgba(217,226,236,.95);
    box-shadow:0 16px 40px rgba(17,24,39,.08);
}

.header::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-36px;
    width:100%;
    height:36px;
    pointer-events:none;
    opacity:0;
    transition:opacity .28s ease;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,.72),
        rgba(255,255,255,0)
    );
}

.header.scrolled::after{
    opacity:1;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:82px;
    transition:min-height .28s ease;
}

.header.scrolled .navbar{
    min-height:74px;
}

.logo{
    display:inline-flex;
    align-items:center;
}

.logo img{
    height:68px;
    display:block;
    transition:height .28s ease;
}

.header.scrolled .logo img{
    height:60px;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:8px;
    list-style:none;
    margin:0;
}

.nav-menu a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    text-decoration:none;
    color:var(--dark);
    font-size:var(--text-sm);
    font-weight:700;
    letter-spacing:0;
    border-radius:8px;
    transition:color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.nav-link{
    padding:0 14px;
}

.nav-link:hover{
    color:var(--primary);
    background:var(--accent-soft);
}

.btn-portal{
    padding:0 16px;
    color:var(--primary) !important;
    border:1px solid rgba(18,60,105,.24);
    background:rgba(255,255,255,.68);
}

.btn-portal:hover{
    color:var(--primary-dark) !important;
    border-color:rgba(18,60,105,.42);
    background:#ffffff;
}

.btn-nav{
    min-height:44px;
    background:var(--primary);
    color:#ffffff !important;
    padding:0 18px;
    border:1px solid var(--primary);
    border-radius:8px;
    box-shadow:0 12px 26px rgba(18,60,105,.18);
}

.btn-nav:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
    color:#ffffff !important;
    transform:translateY(-1px);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:1px solid rgba(18,60,105,.18);
    border-radius:8px;
    background:#ffffff;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 24px rgba(17,24,39,.08);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after{
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:var(--primary);
    content:'';
    transition:transform .24s ease, opacity .24s ease;
}

.menu-toggle span{
    position:relative;
}

.menu-toggle span::before,
.menu-toggle span::after{
    position:absolute;
    left:0;
}

.menu-toggle span::before{
    top:-7px;
}

.menu-toggle span::after{
    top:7px;
}

.menu-toggle.is-open span{
    background:transparent;
}

.menu-toggle.is-open span::before{
    transform:translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span::after{
    transform:translateY(-7px) rotate(-45deg);
}
/* ==================================
   BOTONES
================================== */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

.btn-primary{
    background:var(--primary);
    color:var(--white);
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-3px);
}

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

.btn-outline:hover{
    background:var(--primary);
    color:var(--white);
}

/* Variante para fondos oscuros como HERO y CTA */
.hero .btn-outline,
.cta .btn-outline{
    border:2px solid #fff;
    color:#fff;
    background:transparent;
}

.hero .btn-outline:hover,
.cta .btn-outline:hover{
    background:#fff;
    color:var(--primary);
}

/* ==================================
   HERO
================================== */

.hero{
    position:relative;
    min-height:calc(100vh - 82px);
    display:flex;
    align-items:center;
    overflow:hidden;
    background:linear-gradient(110deg,#f7fbff 0%,#eef5fb 52%,#dbe9f4 100%);
}

.hero-bg-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center right;
    z-index:1;
}

.hero-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:
        linear-gradient(90deg,rgba(247,251,255,.98) 0%,rgba(247,251,255,.88) 34%,rgba(247,251,255,.40) 62%,rgba(18,60,105,.10) 100%),
        linear-gradient(180deg,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 42%,rgba(11,37,69,.18) 100%);
}

.hero .container{
    position:relative;
    z-index:3;
}

.hero-content{
    max-width:720px;
    color:var(--ink);
    padding:84px 0 72px;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(231,247,244,.86);
    border:1px solid rgba(28,167,154,.22);
    color:var(--primary);
    font-size:var(--text-xs);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:22px;
}

.hero-badge::before{
    content:'';
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--accent);
    box-shadow:0 0 0 6px rgba(28,167,154,.12);
}

.hero-content h1{
    max-width:690px;
    font-size:var(--text-hero);
    line-height:var(--leading-tight);
    font-weight:800;
    color:var(--primary-dark);
    margin-bottom:24px;
}

.hero-content p{
    max-width:610px;
    font-size:var(--text-lg);
    line-height:1.65;
    color:var(--dark-soft);
    margin-bottom:32px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:center;
}

.hero .btn{
    min-height:48px;
    border-radius:8px;
    font-weight:800;
    box-shadow:none;
}

.hero .btn-primary{
    background:var(--primary);
    border:1px solid var(--primary);
    box-shadow:0 16px 32px rgba(18,60,105,.18);
}

.hero .btn-primary:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
}

.hero .btn-outline{
    border:1px solid rgba(18,60,105,.24);
    color:var(--primary);
    background:rgba(255,255,255,.74);
}

.hero .btn-outline:hover{
    background:#ffffff;
    color:var(--primary-dark);
    border-color:rgba(18,60,105,.42);
}

/* ==================================
   NOSOTROS
================================== */

#nosotros{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    padding:116px 20px 104px;
    overflow:hidden;
    isolation:isolate;
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #ffffff 42%,
            #f2f7fb 100%
        );
}

#nosotros::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    pointer-events:none;
    background:
        radial-gradient(circle at 12% 12%, rgba(29,78,137,.14), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(18,60,105,.10), transparent 30%);
}

#nosotros::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:-1;
    height:44%;
    pointer-events:none;
    background:linear-gradient(180deg, rgba(255,255,255,0), rgba(18,60,105,.055));
}

.nosotros-container{
    position:relative;
    max-width:1200px;
    margin:0 auto;
}

.nosotros-header{
    max-width:820px;
    margin:0 0 66px;
}

.nosotros-badge{
    display:inline-flex;
    align-items:center;
    min-height:36px;
    padding:0 14px;
    background:var(--accent-soft);
    color:var(--primary);
    border:1px solid rgba(29,78,137,.20);
    border-radius:999px;
    font-size:var(--text-xs);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.nosotros-header h2{
    max-width:860px;
    margin-top:20px;
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    color:var(--primary-dark);
    font-weight:800;
    text-align:left;
}

.nosotros-header p{
    max-width:760px;
    margin-top:24px;
    font-size:var(--text-md);
    line-height:1.7;
    color:var(--dark-soft);
}

.nosotros-content{
    display:grid;
    grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);
    gap:72px;
    align-items:center;
}

.nosotros-text{
    max-width:520px;
}

.nosotros-description p{
    color:var(--text);
    line-height:1.75;
    margin-bottom:0;
    font-size:var(--text-base);
}

.nosotros-beneficios{
    display:grid;
    gap:12px;
    margin-top:30px;
}

.beneficio{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:58px;
    padding:13px 15px;
    color:var(--dark);
    background:rgba(255,255,255,.94);
    border:1px solid rgba(18,60,105,.10);
    border-radius:10px;
    box-shadow:0 16px 34px rgba(18,60,105,.07);
    font-weight:700;
    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease;
}

.beneficio:hover{
    transform:translateY(-2px);
    background:#ffffff;
    border-color:rgba(28,167,154,.28);
    box-shadow:0 22px 42px rgba(18,60,105,.11);
}

.check{
    flex:0 0 auto;
    width:30px;
    height:30px;
    border-radius:999px;
    background:rgba(29,78,137,.10);
    color:var(--accent);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.nosotros-actions{
    margin-top:34px;
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.nosotros-actions .btn{
    border-radius:8px;
    font-weight:800;
}

.nosotros-image{
    position:relative;
    min-height:520px;
}

.nosotros-image::before{
    content:'';
    position:absolute;
    right:-18px;
    top:-18px;
    width:70%;
    height:72%;
    border:1px solid rgba(29,78,137,.24);
    border-radius:12px;
    z-index:0;
    background:rgba(234,242,250,.58);
}

.nosotros-image img{
    position:relative;
    z-index:1;
    width:100%;
    height:520px;
    object-fit:cover;
    display:block;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    box-shadow:0 28px 72px rgba(18,60,105,.18);
}

.experience-card{
    position:absolute;
    z-index:2;
    left:-34px;
    bottom:34px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    padding:22px;
    max-width:300px;
    border-radius:14px;
    box-shadow:0 24px 60px rgba(18,60,105,.17);
    border:1px solid rgba(18,60,105,.10);
}

.experience-card span{
    display:block;
    margin-bottom:10px;
    color:var(--accent);
    font-size:var(--text-xs);
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.experience-card h3{
    color:var(--primary);
    font-size:var(--text-xl);
    line-height:1;
    margin-bottom:12px;
    font-weight:800;
}

.experience-card p{
    color:var(--text);
    line-height:1.55;
    font-size:var(--text-sm);
    margin:0;
}

.nosotros-stats{
    margin-top:54px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:hidden;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    background:rgba(18,60,105,.10);
    box-shadow:0 24px 58px rgba(18,60,105,.10);
}

.stat{
    background:rgba(255,255,255,.92);
    padding:30px 22px;
    text-align:left;
    transition:background .24s ease, transform .24s ease;
}

.stat:hover{
    background:#ffffff;
    transform:translateY(-2px);
}

.stat h3{
    color:var(--primary);
    font-size:var(--text-xl);
    line-height:1;
    font-weight:800;
    margin-bottom:10px;
}

.stat p{
    color:var(--text);
    font-weight:700;
    margin:0;
}

@media (max-width: 992px){
    .nosotros-header{
        margin-bottom:44px;
    }

    .nosotros-content{
        grid-template-columns:1fr;
        gap:44px;
    }

    .nosotros-text{
        max-width:100%;
    }

    .nosotros-image{
        min-height:auto;
    }

    .nosotros-image img{
        height:auto;
        aspect-ratio:16 / 10;
    }

    .experience-card{
        left:18px;
        bottom:18px;
    }

    .nosotros-stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width: 576px){
    #nosotros{
        padding:78px 20px;
    }

    .nosotros-header h2{
        font-size:var(--text-2xl);
        line-height:1.16;
    }

    .nosotros-actions{
        flex-direction:column;
    }

    .experience-card{
        position:relative;
        left:auto;
        bottom:auto;
        margin:-64px 16px 0;
    }

    .nosotros-stats{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
        margin-top:30px;
    }
    
    .stat{
        display:flex;
        min-height:100px;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        padding:16px 8px;
    }
    
     .stat h3{
        margin-bottom:8px;
        font-size:var(--text-xl);
        white-space:nowrap;
    }
    
    .stat p{
        max-width:12ch;
        font-size:var(--text-xs);
        line-height:1.25;
    }
    
}
/* ==================================
   SERVICES
================================== */

.services{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:100px 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f2f7fb 48%,
            #eaf4f6 100%
        );
}

.services::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 12% 12%, rgba(29,78,137,.13), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(18,60,105,.10), transparent 30%);
}

.services::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:-1;
    height:42%;
    background:linear-gradient(180deg, rgba(255,255,255,0), rgba(18,60,105,.06));
}

.services .container{
    position:relative;
    z-index:1;
}

.section-title{
    text-align:center;
    max-width:700px;
    margin:0 auto 60px;
}

.section-title h2{
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    color:var(--primary-dark);
    margin-bottom:15px;
}

.section-title p{
    color:#64748B;
    font-size:var(--text-md);
    line-height:1.65;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
}

.service-card{
    position:relative;
    overflow:hidden;
    min-height:100%;
    background:rgba(255,255,255,.94);
    padding:34px 32px;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    box-shadow:0 22px 48px rgba(18,60,105,.10);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background .28s ease;
}

.service-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, var(--accent), rgba(18,60,105,.72));
    opacity:.78;
}

.service-card:hover{
    transform:translateY(-8px);
    border-color:rgba(28,167,154,.30);
    background:#ffffff;
    box-shadow:0 30px 62px rgba(18,60,105,.16);
}

.service-icon{
    width:58px;
    height:58px;
    border-radius:14px;
    background:linear-gradient(135deg,#eef5fb,var(--accent-soft));
    border:1px solid rgba(18,60,105,.12);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:25px;
    font-size:22px;
    box-shadow:0 14px 28px rgba(18,60,105,.08);
}

.service-icon-svg{
    width:42px;
    height:42px;
}

.service-card h3{
    font-size:var(--text-xl);
    margin-bottom:15px;
    color:var(--primary-dark);
}

.service-card p{
    color:var(--dark-soft);
    font-size:var(--text-base);
    line-height:1.7;
    margin-bottom:25px;
}

.service-link{
    display:inline-flex;
    align-items:center;
    color:var(--primary);
    text-decoration:none;
    font-weight:800;
    transition:color .22s ease, transform .22s ease;
}

.service-link:hover{
    color:var(--accent-hover);
    transform:translateX(4px);
}

/* ==================================
   SECCIONES GENERALES
================================== */

.section{
    padding:100px 0;
}

/* ==================================
   GRID GENERAL
================================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

/* ==================================
   CARDS
================================== */

.card{
    background:#fff;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
}

.card{
    transition:.35s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 45px rgba(0,0,0,.15);
}

.card-body{
    padding:25px;
}

.card-body h3{
    color:var(--dark);
    margin-bottom:15px;
}

.card img{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block;
}

.card-body h3{
    font-size:var(--text-xl);
    color:var(--dark);
    margin-bottom:15px;
}

.card-body p{
    color:var(--text);
    font-size:var(--text-base);
    line-height:1.7;
    margin-bottom:25px;
}

.card-body .btn{
    margin-top:20px;
}
/* ==================================
   CLIENTES CAROUSEL
================================== */

.clients-carousel-section{
    padding:70px 0;
    background:#fff;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    overflow:hidden;
}

.clients-carousel-header{
    text-align:center;
    margin-bottom:32px;
}

.clients-carousel-header span{
    display:inline-block;
    color:var(--primary);
    font-size:.9rem;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.clients-carousel{
    position:relative;
    width:100%;
    overflow:hidden;
    mask-image:linear-gradient(
        to right,
        transparent,
        #000 12%,
        #000 88%,
        transparent
    );
    -webkit-mask-image:linear-gradient(
        to right,
        transparent,
        #000 12%,
        #000 88%,
        transparent
    );
}

.clients-track{
    display:flex;
    width:max-content;
    gap:22px;
    animation:clients-scroll 28s linear infinite;
}

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

.client-logo-card{
    flex:0 0 auto;
    min-width:210px;
    height:92px;
    padding:18px 28px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--gray);
    color:var(--dark-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:1rem;
    font-weight:800;
    line-height:1.25;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
    white-space:normal;
}

@keyframes clients-scroll{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce){
    .clients-track{
        animation:none;
        flex-wrap:wrap;
        justify-content:center;
        width:100%;
    }
}
/* ==================================
   SECCIONES GENERALES
================================== */

.section{
    padding:100px 0;
}

/* ==================================
   GRID GENERAL
================================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

/* ==================================
   CARDS
================================== */

.card{
    background:#fff;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
}

.card{
    transition:.35s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 45px rgba(0,0,0,.15);
}

.card-body{
    padding:25px;
}

.card-body h3{
    color:var(--dark);
    margin-bottom:15px;
}

.card img{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block;
}

.card-body h3{
    font-size:28px;
    color:var(--dark);
    margin-bottom:15px;
}

.card-body p{
    color:var(--text);
    line-height:1.8;
    margin-bottom:25px;
}

.card-body .btn{
    margin-top:20px;
}
/* ==================================
   PROYECTOS
================================== */

.projects-section{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:108px 0;
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #eef5fb 52%,
            #ffffff 100%
        );
}

.projects-section::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 12% 18%, rgba(18,60,105,.12), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(29,78,137,.12), transparent 30%);
}

.projects-section::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    top:0;
    z-index:-1;
    height:46%;
    background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,0));
}

.projects-section .container{
    position:relative;
    z-index:1;
}

.projects-section .section-title{
    margin-bottom:54px;
}

.projects-section .section-title h2{
    color:var(--primary-dark);
}

.projects-section .grid{
    gap:34px;
}

.projects-section .card{
    position:relative;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 22px 48px rgba(18,60,105,.11);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.projects-section .card:hover{
    transform:translateY(-8px);
    border-color:rgba(28,167,154,.30);
    box-shadow:0 30px 62px rgba(18,60,105,.17);
}

.projects-section .card img{
    height:260px;
    border-bottom:1px solid rgba(18,60,105,.08);
}

.projects-section .card-body{
    position:relative;
    padding:28px;
}

.projects-section .card-body::before{
    content:'';
    position:absolute;
    top:0;
    left:28px;
    width:46px;
    height:4px;
    border-radius:999px;
    background:var(--accent);
    transform:translateY(-50%);
}

.projects-section .card-body h3{
    color:var(--primary-dark);
}

.projects-section .card-body p{
    color:var(--dark-soft);
}

.projects-section .card-body .btn{
    min-height:46px;
    border-radius:8px;
    border:1px solid var(--primary);
    box-shadow:0 14px 28px rgba(18,60,105,.14);
}

.projects-section .card-body .btn:hover{
    border-color:var(--primary-dark);
}

/* =====================================================
   GALERÍA DE SERVICIOS
===================================================== */

.service-gallery-section{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:104px 0;
    background:
        linear-gradient(180deg,#ffffff 0%,#f4f8fc 48%,#eef5fb 100%);
}

.service-gallery-section::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
        radial-gradient(circle at 14% 18%, rgba(29,78,137,.12), transparent 32%),
        radial-gradient(circle at 88% 16%, rgba(28,167,154,.08), transparent 30%);
}

.service-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
}

.service-gallery-card{
    position:relative;
    min-height:320px;
    overflow:hidden;
    border-radius:4px;
    border:1px solid rgba(18,60,105,.08);
    background:var(--primary-dark);
    box-shadow:0 16px 34px rgba(18,60,105,.10);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.service-gallery-card:hover{
    transform:translateY(-3px);
    border-color:rgba(28,167,154,.22);
    box-shadow:0 22px 42px rgba(18,60,105,.14);
}

.service-gallery-card img{
    width:100%;
    height:100%;
    min-height:320px;
    object-fit:cover;
    display:block;
    transform:scale(1.02);
    transition:transform .55s ease, filter .55s ease;
}

.service-gallery-card:hover img{
    transform:scale(1.05);
    filter:none;
}

.service-gallery-card.is-expanded img{
    filter:none;
    transform:none;
}

.service-gallery-card-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    padding:18px;
    background:
        linear-gradient(
            180deg,
            rgba(11,37,69,0) 46%,
            rgba(11,37,69,.12) 72%,
            rgba(11,37,69,.36) 100%
        );
}

.service-gallery-card h3{
    max-width:96%;
    margin:0;
    padding:8px 11px;
    border-radius:4px;
    background:rgba(11,37,69,.54);
    color:#ffffff;
    font-size:var(--text-base);
    line-height:1.18;
    text-shadow:0 2px 8px rgba(0,0,0,.24);
}

html.gallery-lock-scroll,
body.gallery-lock-scroll{
    overflow:hidden;
}

body.gallery-lock-scroll::before{
    content:'';
    position:fixed;
    inset:0;
    z-index:49998;
    pointer-events:none;
    background:rgba(255,255,255,.92);
}

@media (min-width: 993px){
    body.gallery-lock-scroll .service-gallery-section{
        z-index:50000;
        overflow:visible;
    }

    .service-gallery-card{
        cursor:zoom-in;
    }

    .service-gallery-card.is-expanded{
        position:fixed;
        inset:72px 5vw;
        z-index:49999;
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:auto;
        border-radius:10px;
        background:#ffffff;
        border:1px solid rgba(18,60,105,.16);
        box-shadow:0 34px 90px rgba(17,24,39,.24);
        cursor:zoom-out;
        transform:none;
    }

    .service-gallery-card.is-expanded:hover{
        transform:none;
        border-color:rgba(18,60,105,.16);
        box-shadow:0 34px 90px rgba(17,24,39,.24);
    }

    .service-gallery-card.is-expanded img{
        width:100%;
        height:100%;
        min-height:0;
        max-width:100%;
        max-height:100%;
        object-fit:contain;
        display:block;
        background:#ffffff;
    }

    .service-gallery-card.is-expanded:hover img{
        filter:none;
        transform:none;
    }

    .service-gallery-card.is-expanded .service-gallery-card-overlay{
        display:none;
    }
}

/* =====================================================
   GESTIÓN DE PROYECTO
===================================================== */

.management-flow-section{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:104px 0;
    background:
        linear-gradient(135deg,#0B2545 0%,#123C69 55%,#162033 100%);
}

.management-flow-section::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
        radial-gradient(circle at 16% 20%, rgba(127,164,200,.20), transparent 34%),
        radial-gradient(circle at 84% 20%, rgba(28,167,154,.16), transparent 30%);
}

.management-flow-section .section-title h2{
    color:#ffffff;
}

.management-flow-section .section-title p{
    color:rgba(255,255,255,.78);
}

.management-flow-grid{
    position:relative;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:28px;
}

.management-flow-grid::before{
    content:'';
    position:absolute;
    top:54px;
    left:15%;
    right:15%;
    height:1px;
    background:linear-gradient(
        90deg,
        rgba(155,226,218,0),
        rgba(155,226,218,.38),
        rgba(155,226,218,0)
    );
    pointer-events:none;
}

.management-flow-card{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    column-gap:20px;
    align-items:start;
    min-height:238px;
    padding:30px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    background:rgba(255,255,255,.075);
    color:rgba(255,255,255,.78);
    box-shadow:0 24px 58px rgba(5,12,24,.20);
    transition:
        transform .28s ease,
        border-color .28s ease,
        background .28s ease;
}

.management-flow-card::before{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0)),
        radial-gradient(circle at 16% 18%, rgba(155,226,218,.11), transparent 34%);
}

.management-flow-card:hover{
    transform:translateY(-7px);
    border-color:rgba(28,167,154,.46);
    background:rgba(255,255,255,.12);
}

.management-flow-card span{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:58px;
    margin-top:2px;
    border-radius:999px;
    background:
        linear-gradient(135deg, rgba(155,226,218,.22), rgba(28,167,154,.12));
    border:1px solid rgba(155,226,218,.32);
    color:#BDF3ED;
    font-size:var(--text-md);
    font-weight:900;
    line-height:1;
    box-shadow:
        0 16px 34px rgba(5,12,24,.20),
        0 0 0 8px rgba(155,226,218,.045);
}

.management-flow-card h3{
    position:relative;
    margin:0 0 12px;
    color:#ffffff;
    font-size:var(--text-xl);
}

.management-flow-card p{
    position:relative;
    grid-column:2;
    margin:0;
    color:rgba(255,255,255,.76);
    line-height:1.68;
    max-width:32ch;
}

/* ==================================
   ARTICULOS
================================== */

.articles-section{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:104px 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbfd 48%,
            #f2f7fb 100%
        );
}

.articles-section::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 10% 22%, rgba(29,78,137,.10), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(18,60,105,.09), transparent 32%);
}

.articles-section::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:-1;
    height:40%;
    background:linear-gradient(180deg, rgba(255,255,255,0), rgba(29,78,137,.055));
}

.articles-section .container{
    position:relative;
    z-index:1;
}

.articles-section .section-title{
    margin-bottom:48px;
}

.articles-section .section-title h2{
    color:var(--primary-dark);
}

.articles-section .grid{
    gap:30px;
}

.articles-section .card{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    background:rgba(255,255,255,.96);
    box-shadow:0 20px 44px rgba(18,60,105,.09);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.articles-section .card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, rgba(18,60,105,.82), var(--accent));
}

.articles-section .card:hover{
    transform:translateY(-7px);
    border-color:rgba(28,167,154,.30);
    box-shadow:0 28px 58px rgba(18,60,105,.15);
}

.articles-section .card-body{
    padding:30px;
}

.articles-section .card-body h3{
    color:var(--primary-dark);
    margin-bottom:16px;
}

.articles-section .card-body p{
    color:var(--dark-soft);
    margin-bottom:24px;
}

.articles-section .service-link{
    color:var(--primary);
}

.articles-section .service-link:hover{
    color:var(--accent-hover);
}

/* ==================================
   BLOG
================================== */

.blog-section{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:104px 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbff 46%,
            #eef4fa 100%
        );
}

.blog-section::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 12% 16%, rgba(29,78,137,.12), transparent 32%),
        radial-gradient(circle at 86% 24%, rgba(28,167,154,.07), transparent 28%),
        radial-gradient(circle at 72% 88%, rgba(18,60,105,.08), transparent 34%);
}

.blog-section::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:-1;
    height:42%;
    background:linear-gradient(180deg, rgba(255,255,255,0), rgba(29,78,137,.06));
}

.blog-section .container{
    position:relative;
    z-index:1;
}

.blog-section .section-title{
    max-width:720px;
    margin:0 auto 50px;
}

.blog-section .section-title h1{
    color:var(--primary-dark);
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    margin-bottom:16px;
}

.blog-section .section-title p{
    color:var(--muted);
}

.blog-section .grid{
    gap:32px;
}

.blog-section .card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:100%;
    overflow:hidden;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    background:rgba(255,255,255,.96);
    box-shadow:0 22px 52px rgba(18,60,105,.10);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.blog-section .card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:2;
    height:4px;
    background:linear-gradient(90deg, #123C69, var(--accent), var(--accent-hover));
}

.blog-section .card:hover{
    transform:translateY(-7px);
    border-color:rgba(29,78,137,.22);
    box-shadow:0 30px 64px rgba(18,60,105,.16);
}

.blog-section .card img{
    height:230px;
    filter:saturate(.98) contrast(1.02);
}

.blog-section .card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:30px;
}

.blog-section .article-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
    color:var(--primary);
    font-size:var(--text-sm);
    font-weight:800;
    line-height:1.4;
}

.blog-section .article-meta span:first-child{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 10px;
    border-radius:999px;
    background:var(--accent-soft);
    color:var(--primary);
}

.blog-section .card-body h2{
    color:var(--primary-dark);
    font-size:var(--text-xl);
    line-height:1.16;
    margin-bottom:16px;
}

.blog-section .card-body p:not(.article-meta){
    color:var(--dark-soft);
    margin-bottom:24px;
}

.blog-section .card-body .btn{
    align-self:flex-start;
    margin-top:auto;
    border-radius:8px;
    background:var(--accent);
    box-shadow:0 14px 30px rgba(29,78,137,.18);
}

.blog-section .card-body .btn:hover{
    background:#123C69;
    transform:translateY(-2px);
}

.blog-section .empty-message{
    max-width:680px;
    margin:0 auto;
    padding:34px;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    background:rgba(255,255,255,.92);
    box-shadow:0 18px 44px rgba(18,60,105,.09);
    text-align:center;
}

.blog-section .empty-message p{
    margin:0;
    color:var(--dark-soft);
}
/* ==================================
   CTA
================================== */

.cta{
    --accent:#1D4E89;
    --accent-soft:#EAF2FA;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #eef7fb 52%,
            var(--accent-soft) 100%
        );
    color:var(--dark-soft);
    text-align:center;
    padding:104px 20px;
}

.cta::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 16% 18%, rgba(29,78,137,.14), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(18,60,105,.12), transparent 32%);
}

.cta::after{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.56),
            rgba(255,255,255,.18)
        );
}

.cta .container{
    position:relative;
    z-index:1;
    max-width:820px;
}

.cta h2{
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    color:var(--primary-dark);
    margin:0 auto 18px;
}

.cta p{
    max-width:560px;
    margin:0 auto 30px;
    color:var(--dark-soft);
    font-size:var(--text-lg);
    line-height:1.65;
}

.cta .btn{
    min-height:48px;
    border-radius:8px;
    font-weight:800;
}

.cta .btn-outline{
    border:1px solid rgba(18,60,105,.22);
    color:var(--primary);
    background:#ffffff;
    box-shadow:0 16px 32px rgba(18,60,105,.12);
}

.cta .btn-outline:hover{
    border-color:var(--primary-dark);
    background:var(--primary-dark);
    color:#ffffff;
    transform:translateY(-2px);
}

/* ==================================
   RESPONSIVE
================================== */

@media (max-width: 992px){
    :root{
        --text-hero:3.25rem;
        --text-2xl:2.25rem;
        --text-xl:1.55rem;
    }

    .menu-toggle{
        display:inline-flex;
    }

    .nav-menu{
        position:fixed;
        top:82px;
        left:16px;
        right:16px;
        width:auto;
        height:auto;
        max-height:calc(100vh - 112px);
        background:rgba(255,255,255,.98);
        border:1px solid rgba(217,226,236,.9);
        border-radius:12px;
        box-shadow:0 24px 60px rgba(17,24,39,.16);
        backdrop-filter:blur(20px);
        -webkit-backdrop-filter:blur(20px);
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;
        gap:4px;
        padding:10px;
        transform:translateY(-12px);
        opacity:0;
        pointer-events:none;
        transition:opacity .24s ease, transform .24s ease;
        z-index:1100;
        overflow-y:auto;
    }

    .header.scrolled .nav-menu{
        top:74px;
        max-height:calc(100vh - 104px);
    }

    .nav-menu.active{
        transform:translateY(0);
        opacity:1;
        pointer-events:auto;
    }

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

    .nav-menu a{
        width:100%;
        justify-content:flex-start;
        min-height:46px;
        padding:0 14px;
    }

    .btn-portal,
    .btn-nav{
        margin-top:4px;
    }

    .btn-nav{
        justify-content:center !important;
    }
.services-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width: 768px){
    :root{
        --text-base:.98rem;
        --text-md:1.05rem;
        --text-lg:1.125rem;
        --text-xl:1.4rem;
        --text-2xl:2rem;
        --text-hero:2.5rem;
    }

    .hero{
        min-height:auto;
        align-items:flex-start;
    }

    .hero-bg-video{
        object-position:62% center;
        opacity:.62;
    }

    .hero-overlay{
        background:linear-gradient(90deg,rgba(247,251,255,.98) 0%,rgba(247,251,255,.92) 62%,rgba(247,251,255,.62) 100%);
    }

    .hero-content{
        padding:72px 0 54px;
    }

    .hero-content h1{
        font-size:var(--text-hero);
        line-height:1.12;
    }

    .hero-content p{
        font-size:var(--text-base);
        line-height:1.65;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
    }
.services-grid{
        grid-template-columns:1fr;
    }

    .section-title h2{
        font-size:var(--text-2xl);
    }

    .service-card h3{
        font-size:var(--text-xl);
    }

    .cta{
        padding:76px 20px;
    }

    .cta p{
        font-size:var(--text-base);
    }

    .cta .btn{
        width:100%;
        max-width:320px;
    }
}

@media (max-width: 576px){
    :root{
        --text-xs:.78rem;
        --text-sm:.88rem;
        --text-base:.95rem;
        --text-md:1rem;
        --text-lg:1.05rem;
        --text-xl:1.28rem;
        --text-2xl:1.75rem;
        --text-hero:2.15rem;
        --leading-body:1.62;
    }

    .container{
        width:92%;
    }

    .btn{
        width:100%;
    }

    .hero-content{
        padding-top:56px;
    }

    .hero-content h1{
        font-size:var(--text-hero);
        line-height:1.14;
        margin-bottom:18px;
    }

    .hero-content p{
        font-size:var(--text-base);
        line-height:1.62;
        margin-bottom:24px;
    }
}


 

/* ==================================-------------------------------------------------------------------------------------
   DETALLE DE SERVICIO
================================== */

.service-hero{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    color:#ffffff;
    padding:120px 0;
    background:
        linear-gradient(
            120deg,
            rgba(11,37,69,.96),
            rgba(18,60,105,.92) 54%,
            rgba(22,32,51,.96)
        );
}

.service-hero::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 14% 18%, rgba(127,164,200,.24), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255,255,255,.12), transparent 30%);
}

.service-hero::after{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(5,12,24,.22));
}

.service-hero .container{
    position:relative;
    z-index:1;
}

.service-badge{
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    color:#ffffff;
    font-size:var(--text-xs);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:22px;
}

.service-hero h1{
    font-size:var(--text-hero);
    line-height:var(--leading-tight);
    color:#ffffff;
    margin-bottom:20px;
}

.service-hero p{
    font-size:var(--text-lg);
    line-height:1.65;
    max-width:700px;
    color:rgba(255,255,255,.80);
}

.service-intro h2{
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    color:var(--primary-dark);
    margin-bottom:25px;
}

.service-description{
    font-size:var(--text-md);
    line-height:1.75;
    color:var(--dark-soft);
}

.service-description p{
    margin-bottom:20px;
}

.section-tag{
    font-size:var(--text-xs);
    letter-spacing:.08em;
}

.btn-main{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    background:var(--primary);
    color:#ffffff;
    padding:0 24px;
    border:1px solid var(--primary);
    border-radius:8px;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 16px 32px rgba(18,60,105,.18);
    transition:background .24s ease, border-color .24s ease, transform .24s ease;
}

.btn-main:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
    color:#ffffff;
    transform:translateY(-2px);
}

.btn-outline-custom{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    border:1px solid rgba(255,255,255,.52);
    color:#ffffff;
    padding:0 24px;
    border-radius:8px;
    text-decoration:none;
    font-weight:800;
    background:rgba(255,255,255,.08);
    transition:background .24s ease, border-color .24s ease, color .24s ease, transform .24s ease;
}

.btn-outline-custom:hover{
    border-color:#ffffff;
    background:#ffffff;
    color:var(--primary-dark);
    transform:translateY(-2px);
}

.service-intro{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:100px 0;
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #ffffff 46%,
            #f2f7fb 100%
        );
}

.service-intro::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(circle at 14% 16%, rgba(29,78,137,.11), transparent 32%),
        radial-gradient(circle at 86% 10%, rgba(18,60,105,.08), transparent 30%);
}

.intro-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:64px;
    align-items:center;
}

.intro-image{
    width:100%;
    max-width:450px;
    height:420px;
    margin:auto;
    overflow:hidden;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    box-shadow:0 28px 72px rgba(18,60,105,.16);
}

.intro-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

.section-tag{
    color:var(--primary);
    font-weight:800;
    text-transform:uppercase;
}

.service-features{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:100px 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f2f7fb 50%,
            #eaf2fa 100%
        );
}

.service-features::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(circle at 12% 18%, rgba(29,78,137,.12), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(18,60,105,.09), transparent 30%);
}

.service-features .container{
    position:relative;
    z-index:1;
}

.features-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.feature-card{
    position:relative;
    overflow:hidden;
    background:rgba(255,255,255,.95);
    padding:32px;
    border:1px solid rgba(18,60,105,.10);
    border-radius:16px;
    box-shadow:0 22px 48px rgba(18,60,105,.10);
    transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,#1D4E89,rgba(18,60,105,.72));
}

.feature-card:hover{
    transform:translateY(-7px);
    border-color:rgba(28,167,154,.30);
    box-shadow:0 30px 62px rgba(18,60,105,.16);
}

.feature-icon{
    font-size:var(--text-2xl);
    color:#1D4E89;
    margin-bottom:20px;
}

.service-cta{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:100px 0;
    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #eef7fb 52%,
            #eaf2fa 100%
        );
    color:var(--dark-soft);
}

.service-cta::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(circle at 16% 18%, rgba(29,78,137,.14), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(18,60,105,.12), transparent 32%);
}

.cta-box{
    position:relative;
    z-index:1;
    text-align:center;
    max-width:800px;
    margin:auto;
}

.cta-box h2{
    color:var(--primary-dark);
}

.cta-box p{
    max-width:620px;
    margin:0 auto 30px;
    color:var(--dark-soft);
}

/* =====================================================
   CONTACTO
===================================================== */

.contact-section{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:104px 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8fc 48%, #eef4fa 100%);
}

.contact-section::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(circle at 14% 18%, rgba(29,78,137,.12), transparent 32%),
        radial-gradient(circle at 88% 76%, rgba(28,167,154,.08), transparent 30%);
    pointer-events:none;
}

.contact-box{
    position:relative;
    z-index:1;
    overflow:hidden;
    max-width:860px;
    margin:auto;
    background:rgba(255,255,255,.96);
    padding:52px;
    border-radius:16px;
    box-shadow:0 28px 72px rgba(18,60,105,.13);
    border:1px solid rgba(18,60,105,.10);
}

.contact-box::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:6px;
    background:linear-gradient(90deg, #1D4E89, #2E6DA8 62%, #1CA79A);
}

.contact-box h1,
.contact-box h2{

    color:var(--primary-dark);
    font-size:var(--text-2xl);
    line-height:var(--leading-tight);
    margin-bottom:15px;
    text-align:center;
}

.contact-box p{
    text-align:center;
    color:var(--muted);
    max-width:620px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:35px;
    font-size:var(--text-base);
    line-height:1.65;
}

.contact-form{
    display:grid;
    gap:20px;
}

.form-group{
    display:grid;
    gap:8px;
}

.contact-form label{
    color:var(--primary-dark);
    font-size:var(--text-sm);
    font-weight:800;
    line-height:1.25;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:16px 18px;
    border:1px solid rgba(18,60,105,.14);
    border-radius:10px;
    font-size:16px;
    font-family:inherit;
    background:#fff;
    color:var(--primary-dark);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
    transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contact-form textarea{
    min-height:180px;
    resize:vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:#1D4E89;
    box-shadow:0 0 0 4px rgba(29,78,137,.14);
}

.contact-form button{
    justify-self:start;
    min-height:48px;
    border-radius:8px;
    box-shadow:0 16px 34px rgba(29,78,137,.18);
}

.alert{
    padding:15px 20px;
    border-radius:12px;
    margin-bottom:25px;
    font-weight:600;
    line-height:1.55;
}

.alert-success{
    background:#e8f7ef;
    color:#12643e;
    border:1px solid #a8e6c6;
}

.alert-error{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fca5a5;
}

/* ==================================
   RESPONSIVE
================================== */

@media(max-width:768px){

    .service-hero{
        padding:86px 0;
    }

    .service-hero h1{
        font-size:var(--text-hero);
        line-height:1.14;
    }

    .service-hero p{
        font-size:var(--text-base);
        line-height:1.65;
    }

    .service-intro,
    .service-features,
    .service-cta,
    .contact-section{
        padding:72px 0;
    }

    .intro-grid{
        grid-template-columns:1fr;
        gap:34px;
    }

    .intro-image{
        height:auto;
        aspect-ratio:16 / 11;
    }

    .contact-box{

        padding:38px 24px 28px;
        border-radius:14px;

    }

    .contact-box h1,
    .contact-box h2{

        font-size:var(--text-2xl);
        line-height:1.16;

    }

    .contact-form button{

        width:100%;
        justify-self:stretch;

    }

}

/* =====================================================
   FOOTER
===================================================== */

.footer{
    --accent:#7FA4C8;
    --accent-hover:#1CA79A;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background:
        linear-gradient(
            120deg,
            rgba(11,37,69,.96),
            rgba(18,60,105,.92) 48%,
            rgba(22,32,51,.96)
        );
    color:#ffffff;
    padding:92px 0 28px;
}

.footer::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        radial-gradient(circle at 18% 12%, rgba(127,164,200,.22), transparent 34%),
        radial-gradient(circle at 86% 20%, rgba(255,255,255,.12), transparent 30%);
}

.footer::after{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:rgba(5,12,24,.34);
}

.footer .container{
    position:relative;
    z-index:1;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.2fr;
    gap:54px;
    align-items:start;
}

.footer-brand h2{
    color:#ffffff;
    margin-bottom:18px;
    font-size:var(--text-xl);
    line-height:var(--leading-title);
}

.footer-brand p{
    color:rgba(255,255,255,.78);
    line-height:1.72;
    margin-bottom:30px;
    font-size:var(--text-sm);
}

.footer-toggle{
    position:relative;
    display:block;
    width:100%;
    margin-bottom:22px;
    padding-bottom:12px;
    border:0;
    background:transparent;
    font-size:var(--text-md);
    font-weight:800;
    line-height:var(--leading-title);
    text-align:left;
    color:#ffffff;
    cursor:default;
}

.footer-toggle::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:38px;
    height:3px;
    border-radius:999px;
    background:var(--accent);
}

.footer-toggle i{
    display:none;
}

.footer-panel{
    display:block;
}

.footer-column ul{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-column li{
    margin-bottom:13px;
    color:rgba(255,255,255,.76);
}

.footer-column a{
    color:rgba(255,255,255,.76);
    text-decoration:none;
    transition:color .24s ease, transform .24s ease;
}

.footer-column a:hover{
    color:#ffffff;
    transform:translateX(4px);
}

.footer-social{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.footer-social a{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    color:#ffffff;
    text-decoration:none;
    transition:
        background .24s ease,
        border-color .24s ease,
        transform .24s ease,
        box-shadow .24s ease;
}

.footer-social a:hover{
    background:var(--accent-hover);
    border-color:var(--accent-hover);
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(28,167,154,.28);
}

.footer-contact li{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.footer-contact i{
    color:var(--accent);
    margin-top:4px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.16);
    margin-top:62px;
    padding-top:24px;
    text-align:center;
    color:rgba(255,255,255,.62);
}

.footer-bottom p{
    max-width:none;
    margin:0 auto;
    text-align:center;
}

/* =====================================================
   RESPONSIVE
===================================================== */

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

@media(max-width:768px){
    .footer{
        padding:72px 0 26px;
        text-align:center;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:38px;
        justify-items:center;
    }

    .footer-brand,
    .footer-column{
        width:100%;
        max-width:390px;
        text-align:center;
    }

    .footer-accordion{
        border:1px solid rgba(255,255,255,.14);
        border-radius:10px;
        background:rgba(255,255,255,.06);
        overflow:hidden;
    }

    .footer-toggle{
        display:flex;
        align-items:center;
        justify-content:space-between;
        min-height:54px;
        margin:0;
        padding:0 18px;
        border:0;
        color:#ffffff;
        cursor:pointer;
        text-align:left;
    }

    .footer-toggle::after{
        display:none;
    }

    .footer-toggle i{
        display:block;
        color:var(--accent);
        font-size:1rem;
        transition:transform .24s ease;
    }

    .footer-toggle[aria-expanded="true"] i{
        transform:rotate(180deg);
    }

    .footer-panel{
        display:none;
        padding:0 18px 18px;
    }

    .footer-accordion.is-open .footer-panel{
        display:block;
    }

    .footer-brand p,
    .footer-column li{
        max-width:none;
    }

    .footer-column ul{
        display:flex;
        flex-direction:column;
        align-items:center;
        width:100%;
        padding:0;
        margin:0;
    }

    .footer-column li{
        width:100%;
        display:block;
        margin-left:0;
        margin-right:0;
        text-align:center;
    }

    .footer-column a{
        display:block;
        width:100%;
        text-align:center;
        transform:none;
    }

    .footer-column a:hover{
        transform:none;
    }

    .footer-social{
        justify-content:center;
    }

    .footer-contact li{
        display:flex;
        justify-content:center;
        text-align:center;
    }
}

@media (max-width: 992px){
    .service-gallery-grid,
    .management-flow-grid{
        grid-template-columns:1fr 1fr;
    }

    .management-flow-grid::before{
        display:none;
    }

    .management-flow-card p{
        max-width:none;
    }
}

@media (max-width: 768px){
    .service-gallery-section,
    .management-flow-section{
        padding:74px 0;
    }

    .service-gallery-grid,
    .management-flow-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .service-gallery-card{
        min-height:260px;
    }

    .service-gallery-card img{
        min-height:260px;
    }

    .management-flow-card{
        min-height:auto;
        padding:26px;
        grid-template-columns:auto minmax(0, 1fr);
        column-gap:16px;
    }

    .management-flow-card span{
        width:50px;
        height:50px;
        font-size:var(--text-base);
    }

    .management-flow-card h3{
        font-size:var(--text-lg);
        margin-bottom:8px;
    }

    .management-flow-card p{
        grid-column:1 / -1;
        margin-top:14px;
    }
}
