/*==========================================
            GOOGLE FONT
==========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    text-decoration:none;
    list-style:none;
    scroll-behavior:smooth;
}

:root{
    --primary:#0A4E9B;
    --primary-dark:#123E70;
    --primary-light:#2F80ED;
    --white:#FFFFFF;
    --gray:#F4F6F9;
    --text:#2B2B2B;
    --shadow:0 15px 35px rgba(0,0,0,.08);
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--text);
    overflow-x:hidden;
}

/*==========================================
            NAVBAR
==========================================*/

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:999;
}

.navbar{
    width:100%;
    max-width:1700px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 35px;
}


.logo{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo img{
    width:65px;
}

.logo-text{
    display:flex;
    flex-direction:column;
}

.logo-text h2{
    font-size:42px;
    font-weight:800;
    letter-spacing:2px;
    color:var(--primary);
    line-height:1;
}

.logo-line{
    width:100%;
    height:3px;
    background:var(--primary);
    margin:6px 0;
}

.logo-text p{
    font-size:11px;
    font-weight:700;
    letter-spacing:4px;
    color:var(--primary);
    white-space:nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: .3s;
}

.nav-links a:hover{
    color:var(--primary);
}

.btn-nav{
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s ease;
    white-space: nowrap;
}

.btn-nav:hover{
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/*==========================================
            HERO
==========================================*/

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:130px 9%;
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,#ffffff 0%,#edf5ff 100%);
}

.hero-content{
    width:55%;
    z-index:2;
}

.hero-tag{
    display:inline-block;
    background:#EAF3FF;
    color:var(--primary);
    padding:10px 18px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    margin-bottom:25px;
}

.hero h1{
    font-size:65px;
    line-height:1.1;
    color:#222;
    margin-bottom:25px;
}

.hero h1 span{
    color:var(--primary);
}

.hero p{
    font-size:18px;
    line-height:1.8;
    color:#555;
    margin-bottom:45px;
    max-width:700px;
}

.hero .hero-evaluation-text{
    margin-top:-22px;
    margin-bottom:28px;
    max-width:700px;

    color:var(--primary-dark);
    font-size:15px;
    font-weight:600;
    line-height:1.6;

    opacity:.85;
}

.hero-buttons{
    display:flex;
    gap:20px;
    transform: translateY(-20px);
}

.btn-primary{
    background:var(--primary);
    color:white;
    padding:18px 35px;
    border-radius:50px;
    transition:.35s;
    font-weight:600;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-5px);
}

.btn-secondary{
    border:2px solid var(--primary);
    color:var(--primary);
    padding:18px 35px;
    border-radius:50px;
    font-weight:600;
    transition:.35s;
}

.btn-secondary:hover{
    background:var(--primary);
    color:white;
}

.hero-data{
    display:flex;
    gap:30px;
    margin-top:60px;
}

.data-card{
    background:white;
    width:180px;
    padding:30px;
    border-radius:20px;
    box-shadow:var(--shadow);
    text-align:center;
    transition:.4s;
}

.data-card:hover{
    transform:translateY(-10px);
}

.data-card h3{
    font-size:34px;
    color:var(--primary);
    margin-bottom:10px;
}

.data-card span{
    color:#666;
    font-size:15px;
}

.hero-image{
    width:45%;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:2;
    animation:floatImage 5s ease-in-out infinite;
    transform: translateY(-145px);
}

.hero-bg{
    position:absolute;
    width:90%;
    height:90%;
    background:var(--primary);
    border-radius:30px;
    right:10px;
    bottom:-18px;
    z-index:1;
}

.hero-image img{
    position:relative;
    z-index:2;
    width:92%;
    height:390px;
    object-fit:cover;
    object-position:center;
    border-radius:30px;
    box-shadow:0 25px 60px rgba(0,0,0,.16);

    animation:float 5s ease-in-out infinite;
}

/*==========================================
        FIGURAS
==========================================*/

.circle{
    position:absolute;
    border-radius:50%;
    z-index:1;
}

.circle1{
    width:550px;
    height:550px;
    background:#dcebff;
    top:-150px;
    right:-180px;
}

.circle2{
    width:250px;
    height:250px;
    background:#bdd9ff;
    bottom:-100px;
    left:-120px;
}

/*==========================================
        ANIMACIONES
==========================================*/

@keyframes float{
    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }
}

/*==========================================
                ABOUT
==========================================*/

.about{
    padding:120px 9%;
    background:white;
}

.about-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:90px;
    margin:120px 0;
}

.about-row.reverse{
    direction:rtl;
}

.about-row.reverse .about-info{
    direction:ltr;
}

.about-row.reverse .about-photo{
    direction:ltr;
}

.about-row:last-child{
    margin-bottom:0;
}

.about-info{
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.number{
    font-size:90px;
    font-weight:800;
    color: #8aa8cf;
    display:block;
    margin-bottom:-30px;
}

.about-info h3{
    font-size:38px;
    color:var(--primary-dark);
    margin-bottom:25px;
    position:relative;
}

.about-info h3::before{
    content:"";
    width:70px;
    height:5px;
    background:var(--primary);
    display:block;
    margin-bottom:18px;
    border-radius:20px;
}

.about-info p{
    line-height:2;
    color:#666;
    font-size:17px;
}

.about-info ul{
    margin-top:30px;
}

.about-info li{
    margin-bottom:18px;
    font-size:17px;
    color:#555;
}

.about-info i{
    color:var(--primary);
    margin-right:12px;
}

.about-photo{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

.about-photo img{
    width:100%;
    max-width:600px;
    height:430px;
    object-fit:cover;
    border-radius:30px;
    box-shadow:0 30px 70px rgba(10,78,155,.18);
    transition:.5s;

    filter:brightness(1.08) contrast(1.05);
}

.about-photo img:hover{
    transform:scale(1.03);
}

.about-photo::before{
    content:"";
    width:180px;
    height:180px;
    border-radius:30px;
    background:#EAF3FF;
    position:absolute;
    top:-30px;
    left:-30px;
    z-index:-1;
}

.about-row.reverse .about-photo::before{
    left:auto;
    right:-30px;
}

/*==========================================
                SERVICIOS
==========================================*/

.services{
    max-width:1400px;
    margin:auto;
    padding:10px 40px 120px;
    scroll-margin-top:105px;
}

.services-title {
    position: relative;
}

.services-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
    padding: 13px 26px 13px 13px;

    color: var(--primary-dark);

    background: linear-gradient(
        135deg,
        rgba(10, 78, 155, 0.12),
        rgba(47, 128, 237, 0.06)
    );

    border: 1px solid rgba(10, 78, 155, 0.18);
    border-radius: 50px;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    box-shadow: 0 8px 22px rgba(10, 78, 155, 0.1);
}

.services-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    border-radius: 50%;
    font-size: 18px;

    box-shadow: 0 6px 14px rgba(10, 78, 155, 0.25);
}

.services-title h2 {
    margin-top: 0;
}

.services-title p {
    max-width: 1350px;
}

/* ==========================================
        CUADRÍCULA DE SERVICIOS
========================================== */

.services .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 32px;
    margin-top: 60px;
}


/* ==========================================
        TARJETA DE SERVICIO
========================================== */

.services .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
    padding: 34px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 74%,
            #f4f8fd 100%
        );

    border: 1px solid rgba(10, 78, 155, 0.12);
    border-radius: 26px;

    box-shadow:
        0 16px 40px rgba(10, 78, 155, 0.09);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* LÍNEA SUPERIOR */

.services .service-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );
}


/* CÍRCULO DECORATIVO */

.services .service-card::after {
    content: "";
    position: absolute;

    right: -70px;
    bottom: -75px;

    width: 170px;
    height: 170px;

    background: rgba(47, 128, 237, 0.055);
    border-radius: 50%;

    pointer-events: none;
    transition: transform 0.4s ease;
}


/* HOVER */

.services .service-card:hover {
    transform: translateY(-8px);

    border-color: rgba(10, 78, 155, 0.25);

    box-shadow:
        0 25px 55px rgba(10, 78, 155, 0.16);
}

.services .service-card:hover::after {
    transform: scale(1.18);
}


/* ==========================================
        CABECERA DE LA TARJETA
========================================== */

.services .service-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;

    margin-bottom: 26px;
}

.services .service-top h3 {
    flex: 1;
    margin: 0;

    color: var(--primary-dark);

    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.3;
}


/* ICONO */

.services .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin: 0;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    border-radius: 18px;

    box-shadow:
        0 10px 22px rgba(10, 78, 155, 0.22);

    transition:
        transform 0.35s ease,
        border-radius 0.35s ease;
}

.services .service-icon i {
    color: #ffffff;
    font-size: 26px;
}

.services .service-card:hover .service-icon {
    transform: translateY(-3px);
    border-radius: 50%;
}


/* ==========================================
        CONTENIDO
========================================== */

.services .service-card-content {
    position: relative;
    z-index: 1;
}


/* TÍTULO */

.services .service-card-content h3 {
    margin: 0 0 16px;

    color: var(--primary-dark);

    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.3;
}


/* SUBTÍTULO */

.services .service-card h4 {
    position: relative;

    margin: 0 0 18px;
    padding: 4px 0 4px 16px;

    color: #223b5d;
    background: transparent;

    border-left: 4px solid var(--primary);
    border-radius: 0;

    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.55;
}


/* ELIMINA LA LÍNEA ANTERIOR DEL H4 */

.services .service-card h4::before {
    display: none;
}


/* DESCRIPCIÓN */

.services .service-card p {
    margin: 0;

    color: #5f6877;

    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
}

/*==========================================
                EQUIPO
==========================================*/

.team{
    max-width:1600px;
    margin:80px auto 30px;
    padding:90px 45px 100px;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(47,128,237,.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(10,78,155,.07),
            transparent 30%
        ),
        #f4f7fb;

    border-radius:40px;
    overflow:hidden;
    scroll-margin-top:45px;
}


/* ==========================================
        PERSONAS / SELECTOR VISUAL
========================================== */

.team-showcase{
    max-width:1250px;
    margin:55px auto 0;

    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:25px;
}


/* TARJETA PEQUEÑA */

.team-person{
    position:relative;

    width:100%;
    min-width:0;

    padding:28px 20px 24px;

    background:rgba(255,255,255,.9);

    border:1px solid rgba(10,78,155,.08);
    border-radius:26px;

    display:flex;
    flex-direction:column;
    align-items:center;

    text-align:center;

    font-family:inherit;

    cursor:pointer;

    box-shadow:
        0 12px 30px rgba(16,45,82,.06);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease;

    opacity:0;
    transform:translateY(25px);

    animation:
        teamEntrada .65s ease forwards;
}


/* ENTRADA ESCALONADA */

.team-person:nth-child(1){
    animation-delay:.05s;
}

.team-person:nth-child(2){
    animation-delay:.12s;
}

.team-person:nth-child(3){
    animation-delay:.19s;
}

.team-person:nth-child(4){
    animation-delay:.26s;
}

.team-person:nth-child(5){
    animation-delay:.33s;
}

.team-person:nth-child(6){
    animation-delay:.40s;
}


@keyframes teamEntrada{

    to{
        opacity:1;
        transform:translateY(0);
    }

}


/* HOVER */

.team-person:hover{
    transform:translateY(-7px);

    border-color:rgba(10,78,155,.22);

    box-shadow:
        0 22px 45px rgba(10,78,155,.13);
}

/* Línea superior de la seleccionada */

.team-person::before{
    content:"";

    position:absolute;

    top:0;
    left:50%;

    width:0;
    height:4px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius:0 0 10px 10px;

    transform:translateX(-50%);

    transition:width .35s ease;
}


/* ==========================================
                FOTOGRAFÍA
========================================== */

.team-person-photo{
    position:relative;

    width:150px;
    height:150px;

    margin-bottom:20px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;
}


/* Círculo decorativo detrás */

.team-person-photo::before{
    content:"";

    position:absolute;

    width:100%;
    height:100%;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            rgba(47,128,237,.20),
            rgba(10,78,155,.05)
        );

    transform:scale(1.08);

    transition:
        transform .4s ease,
        opacity .4s ease;
}


.team-person-photo img{
    position:relative;
    z-index:2;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    border-radius:50%;

    border:5px solid #ffffff;

    box-shadow:
        0 10px 25px rgba(10,78,155,.15);

    transition:transform .4s ease;
}


/* Movimiento de foto */

.team-person:hover .team-person-photo img{
    transform:scale(1.045);
}

.team-person:hover .team-person-photo::before{
    transform:scale(1.15);
}


/* ==========================================
                NOMBRE / PUESTO
========================================== */

.team-person-text{
    width:100%;
}

.team-person-text h3{
    margin:0 0 8px;

    color:var(--primary-dark);

    font-size:1.2rem;
    line-height:1.25;
    font-weight:700;
}

.team-person-text span{
    display:block;

    color:var(--primary);

    font-size:.9rem;
    line-height:1.4;
    font-weight:600;
}


/* ==========================================
                FLECHA
========================================== */

.team-person-arrow{
    width:32px;
    height:32px;

    margin-top:18px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#edf5ff;

    color:var(--primary);

    font-size:12px;

    transition:
        transform .35s ease,
        background .35s ease,
        color .35s ease;
}


.team-person:hover .team-person-arrow{
    background:var(--primary);
    color:#ffffff;

    transform:translateY(3px);
}

/* ==========================================
        MODAL FLOTANTE DEL EQUIPO
========================================== */

.team-modal{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    z-index:6000;
}


/* MODAL ABIERTO */

.team-modal.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}


/* FONDO OSCURO */

.team-modal-overlay{
    position:absolute;
    inset:0;

    background:rgba(5,20,40,.72);
    backdrop-filter:blur(6px);

    cursor:pointer;
}


/* TARJETA */

.team-modal-card{
    position:relative;
    z-index:2;

    width:min(1050px, 94%);

    padding:45px;

    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    align-items:center;
    gap:50px;

    background:#ffffff;

    border:1px solid rgba(10,78,155,.10);
    border-radius:30px;

    box-shadow:
        0 30px 80px rgba(0,20,50,.30);

    overflow:hidden;

    opacity:0;

    transform:
        translateY(35px)
        scale(.96);

    transition:
        opacity .35s ease,
        transform .35s ease;
}


/* ANIMACIÓN DE ENTRADA */

.team-modal.active .team-modal-card{
    opacity:1;

    transform:
        translateY(0)
        scale(1);
}


/* DECORACIÓN */

.team-modal-card::after{
    content:"";

    position:absolute;

    width:280px;
    height:280px;

    right:-120px;
    bottom:-150px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(47,128,237,.13),
            transparent 68%
        );

    pointer-events:none;
}


/* ==========================================
            BOTÓN CERRAR
========================================== */

.team-modal-close{
    position:absolute;

    top:18px;
    right:18px;

    z-index:10;

    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

    background:#eef4fb;
    color:var(--primary);

    font-family:inherit;
    font-size:20px;

    cursor:pointer;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}


.team-modal-close:hover{
    background:var(--primary);
    color:#ffffff;

    transform:rotate(90deg);
}


/* CAMBIO DE PERSONA */

.team-modal-card.changing{
    opacity:0;
    transform:translateY(12px) scale(.98);
}

/* ==========================================
        FOTO GRANDE DEL PERFIL
========================================== */

.team-detail-photo{
    position:relative;

    min-height:310px;

    display:flex;
    justify-content:center;
    align-items:center;
}


.team-detail-photo-bg{
    position:absolute;

    width:260px;
    height:260px;

    border-radius:38% 62% 58% 42% /
                  46% 38% 62% 54%;

    background:
        linear-gradient(
            135deg,
            #dcecff,
            #edf5ff
        );

    transform:rotate(-7deg);

    transition:
        transform .6s ease,
        border-radius .6s ease;
}


.team-modal-card:hover .team-detail-photo-bg{
    transform:rotate(4deg);

    border-radius:
        55% 45% 38% 62% /
        42% 58% 42% 58%;
}


.team-detail-photo img{
    position:relative;
    z-index:2;

    width:225px;
    height:225px;

    object-fit:cover;
    object-position:center;

    border-radius:50%;

    border:7px solid #ffffff;

    box-shadow:
        0 18px 40px rgba(10,78,155,.20);

    transition:transform .45s ease;
}


.team-modal-card:hover .team-detail-photo img{
    transform:scale(1.035);
}


/* ==========================================
        INFORMACIÓN DEL PERFIL
========================================== */

.team-detail-content{
    position:relative;
    z-index:2;

    min-width:0;
}


.team-detail-label{
    display:inline-flex;
    align-items:center;

    gap:8px;

    margin-bottom:14px;
    padding:8px 14px;

    background:#eaf3ff;

    border-radius:50px;

    color:var(--primary);

    font-size:.78rem;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.6px;
}


.team-detail-content h3{
    margin:0 0 8px;

    color:var(--primary-dark);

    font-size:2rem;
    line-height:1.2;
    font-weight:800;
}


.team-detail-position{
    display:block;

    color:var(--primary);

    font-size:1.05rem;
    font-weight:700;

    margin-bottom:20px;
}


.team-detail-description{
    max-width:650px;

    margin:0;

    color:#5f6670;

    font-size:1rem;
    line-height:1.8;

    text-align:left;
}


/* ==========================================
            CONTACTO
========================================== */

.team-detail-contact{
    display:grid;

    grid-template-columns:
        minmax(0,.8fr)
        minmax(0,1.4fr);

    gap:14px;

    margin-top:28px;
}


.team-detail-contact > a{
    min-width:0;

    padding:14px 16px;

    border:1px solid #dbe9f8;
    border-radius:15px;

    display:flex;
    align-items:center;

    gap:12px;

    background:#f7fbff;

    color:var(--primary-dark);

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.team-detail-contact > a:hover{
    transform:translateY(-3px);

    background:#ffffff;

    border-color:rgba(10,78,155,.25);

    box-shadow:
        0 10px 25px rgba(10,78,155,.10);
}


.team-contact-icon{
    flex:0 0 38px;

    width:38px;
    height:38px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:12px;

    background:var(--primary);

    color:#ffffff;
}


.team-detail-contact a > span:last-child{
    min-width:0;

    display:flex;
    flex-direction:column;
}


.team-detail-contact small{
    margin-bottom:2px;

    color:#7a8491;

    font-size:.72rem;
    font-weight:500;
}


.team-detail-contact strong{
    min-width:0;

    color:var(--primary-dark);

    font-size:.82rem;
    line-height:1.3;
    font-weight:600;

    overflow-wrap:anywhere;
}

/*==========================================
            ESTADÍSTICAS
==========================================*/

.stats{
    padding:70px 9%;
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
}

.stats-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-box{
    text-align:center;
    color:white;
    padding:20px 10px;
}

.stat-box h3{
    font-size:40px;
    font-weight:800;
    margin-bottom:8px;
}

.stat-box p{
    font-size:14px;
    opacity:.9;
}

/*==========================================
                CONTACTO
==========================================*/

.contact{
    padding:130px 9%;
    background:linear-gradient(135deg,#ffffff 0%,#edf5ff 100%);
    scroll-margin-top:35px;
}

.contact-content{
    max-width:1000px;
    margin:auto;
    text-align:center;
}

.section-subtitle{
    display:inline-block;
    background:#EAF3FF;
    color:var(--primary);
    padding:10px 20px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    margin-bottom:25px;
}

.contact-content h2{
    font-size:48px;
    color:var(--primary-dark);
    margin-bottom:25px;
}

.contact-content span{
    font-size:28px;
    color:var(--primary-dark);
    margin-bottom:25px;
    font-weight:bold;
}

.contact-content p{
    font-size:18px;
    line-height:1.8;
    color:#666;
    max-width:800px;
    margin:0 auto 45px;
}

.contact-buttons{
    display:flex;
    justify-content:center;
    gap:22px;
    margin-top:10px;
}

.contact-buttons a{
    display:flex;
    align-items:center;
    gap:10px;
}

/*==========================================
                FOOTER
==========================================*/

.footer{

    background:#071E3D;

    color:white;

    padding:80px 9% 25px;

}

.footer-container{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1.3fr;

    gap:50px;

}

/* LOGO */

.footer-logo{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:25px;

}

.footer-logo img{

    width:75px;

    height:auto;

}

.footer-logo-text h2{

    font-size:30px;

    margin:0;

    color:white;

    line-height:1;

}

.footer-logo-text span{

    display:block;

    margin-top:6px;

    font-size:10px;

    letter-spacing:2px;

    color:#cbd5e1;

}

/* CONTENIDO */

.footer-box h3{

    font-size:22px;

    margin-bottom:25px;

    color:white;

}

.footer-box p{

    color:#cbd5e1;

    line-height:1.8;

    margin-bottom:15px;

}

.footer-brand p{

    max-width:420px;

}

.footer-box a{

    display:block;

    color:#cbd5e1;

    margin-bottom:14px;

    transition:.3s;

}

.footer-box a:hover{

    color:white;

    transform:translateX(6px);

}

.footer-box i{

    color:#5DA9FF;

    margin-right:10px;

}

/* COPYRIGHT */

.footer-bottom{
    max-width:1400px;
    margin:60px auto 0;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
}

.footer-bottom p{
    color:#cbd5e1;
    font-size:15px;
    text-align:center !important;
}

/* ENLACES LEGALES DEL FOOTER */

.footer-legal{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    margin-bottom:25px;
}

.footer-legal a{
    color:#cbd5e1;
    font-size:15px;
    font-weight:500;
    transition:.3s;
}

.footer-legal a:hover{
    color:#ffffff;
}

/*==========================================
            WHATSAPP FLOTANTE
==========================================*/

.whatsapp-float{
    position:fixed;
    width:65px;
    height:65px;
    right:30px;
    bottom:30px;
    background:#25D366;
    color:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:34px;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    z-index:999;
    transition:.35s;
}

.whatsapp-float:hover{
    transform:translateY(-6px) scale(1.05);
    box-shadow:0 20px 45px rgba(0,0,0,.35);
}

/*==========================================
            VOLVER ARRIBA
==========================================*/

.scroll-top{

    position:fixed;

    right:30px;

    bottom:110px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:var(--primary);

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.20);

    z-index:998;

    transition:.35s;

}

.scroll-top:hover{

    background:var(--primary-dark);

    transform:translateY(-5px);

}

/*==========================================
            MENU HAMBURGUESA
==========================================*/

.menu-toggle{
    display:none;

    border:none;
    background:transparent;
    padding:0;
    margin:0;

    font-size:28px;
    color:var(--primary);

    cursor:pointer;
    z-index:1001;

    transition:.3s;
}

.menu-toggle:hover{
    color:var(--primary-dark);
    transform:scale(1.08);
}

.menu-toggle:focus{
    outline:none;
}

.menu-toggle i{
    pointer-events:none;
}

html{
    scroll-behavior:smooth;
}

.navbar{
    transition:.4s;
}

.navbar.scrolled{
    background:white;
    padding:14px 40px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    border-radius:0 0 20px 20px;
}

/*==========================================
                CLIENTES
==========================================*/

.clients{
    padding:120px 9%;
    background:white;
    overflow:hidden;
    scroll-margin-top:65px;
}

.clients-slider{
    max-width:1200px;
    margin:70px auto 0;
    overflow:hidden;
    position:relative;
}

.clients-slider::before,
.clients-slider::after{
    content:"";
    position:absolute;
    top:0;
    width:120px;
    height:100%;
    z-index:2;
    pointer-events:none;
}

.clients-slider::before{
    left:0;
    background:linear-gradient(to right, white, transparent);
}

.clients-slider::after{
    right:0;
    background:linear-gradient(to left, white, transparent);
}

.clients-track{
    display:flex;
    gap:30px;
    width:max-content;
    animation:scrollClients 60s linear infinite;
}

.clients-track:hover{
    animation-play-state:paused;
}

.client-card{
    min-width:250px;
    height:150px;
    background:#F8FAFD;
    border-radius:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
    box-shadow:0 15px 35px rgba(0,0,0,.06);
    transition:.4s;
}

.client-card img{
    max-width:100%;
    max-height:80px;
    object-fit:contain;
    transition:.4s;
}

.client-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollClients{
    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }
}

/* =========================================
        NUEVO APARTADO NOSOTROS
========================================= */

.about-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-info h3,
.about-heading h3,
.highlight-content h3,
.why-us-header h3 {
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.about-info p,
.about-heading p,
.highlight-content p,
.why-us-header p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

/* VALORES */

.values-section {
    margin-top: 90px;
    padding: 45px;
    background: #f4f7fb;
    border-radius: 30px;
}

.about-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    position: relative;
    padding: 25px;
    background: #ffffff;
    border: 1px solid rgba(10, 78, 155, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(10, 78, 155, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(10, 78, 155, 0.16);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    color: var(--primary);
    background: rgba(10, 78, 155, 0.1);
    border-radius: 16px;
    font-size: 1.45rem;
}

.value-card h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.value-card p {
    color: #667085;
    line-height: 1.7;
}

/* PROMESA Y FILOSOFÍA */

.about-highlight {
    position: relative;
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 25px;
    align-items: flex-start;
    width: calc(50% - 13px);
    margin-top: 45px;
    padding: 35px;
    vertical-align: top;
    background: #ffffff;
    border: 1px solid rgba(10, 78, 155, 0.12);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(10, 78, 155, 0.08);
    overflow: hidden;
    transition: 0.3s ease;
    min-height: 440px;
}

.about-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--primary),
        var(--primary-light)
    );
}

.about-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(10, 78, 155, 0.14);
}

.values-section + .about-highlight {
    display: inline-grid;
    margin-right: 20px;
}

.values-section + .about-highlight + .about-highlight {
    display: inline-grid;
}

.about-highlight .number {
    color: #8aa8cf;
    font-size: 55px;
    margin-bottom: -12px;
}

.about-highlight .about-label {
    color: var(--primary);
}

.about-highlight h3 {
    color: var(--primary-dark);
}

.about-highlight p {
    color: #667085;
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: var(--primary);
    background: #eaf3ff;
    border-radius: 18px;
    font-size: 27px;
}

.philosophy-card {
    background: #ffffff;
}

/* POR QUÉ ELEGIRNOS */

.why-us {
    margin-top: 45px;
    padding: 45px;
    background: #ffffff;
    border: 1px solid rgba(10, 78, 155, 0.1);
    border-radius: 30px;
    box-shadow: 0 18px 50px rgba(10, 78, 155, 0.1);
}

.why-us-header {
    max-width: 760px;
    margin-bottom: 36px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    background: #f7f9fc;
    border: 1px solid rgba(10, 78, 155, 0.08);
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    background: #ffffff;
}

.why-item i {
    margin-top: 4px;
    color: var(--primary);
    font-size: 1.2rem;
}

.why-item p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-section,
    .why-us {
        padding: 42px;
    }

}

@media (max-width: 768px) {

    .values-section,
    .why-us {
        margin-top: 55px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .values-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .about-highlight {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100% !important;
    margin: 25px 0 0 !important;
    padding: 28px 22px;
    border-radius: 22px;
}

    .highlight-icon {
        width: 65px;
        height: 65px;
        border-radius: 18px;
        font-size: 1.55rem;
    }

    .value-card {
        padding: 25px;
    }

}

/*==========================================
     INICIO DIAGNÓSTICO EXPRESS
==========================================*/

.diagnostico-inicio-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;

    padding:30px;

    background:rgba(5,20,40,.72);
    backdrop-filter:blur(5px);

    z-index:5000;

    overflow-y:auto;
}

.diagnostico-inicio-modal.active{
    display:flex;
}

.diagnostico-inicio-contenido{
    position:relative;

    width:min(720px,92%);
    max-height:85vh;

    padding:45px 42px;

    background:#ffffff;
    border-radius:28px;

    box-shadow:0 25px 70px rgba(0,36,84,.25);

    text-align:center;

    overflow-y:auto;
    overflow-x:hidden;

    scrollbar-width:thin;
    scrollbar-color:#9fb6d1 transparent;
}

.diagnostico-inicio-contenido::-webkit-scrollbar{
    width:6px;
}

.diagnostico-inicio-contenido::-webkit-scrollbar-track{
    background:transparent;
}

.diagnostico-inicio-contenido::-webkit-scrollbar-thumb{
    background:#a9bdd4;
    border-radius:20px;
}

.diagnostico-inicio-contenido::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

.diagnostico-inicio-cerrar{
    position:absolute;

    top:14px;
    right:14px;

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:#eef4fb;
    color:var(--primary);

    font-size:20px;

    cursor:pointer;
    transition:.3s;
}

.diagnostico-inicio-cerrar:hover{
    background:var(--primary);
    color:#ffffff;
    transform:rotate(90deg);
}

.diagnostico-inicio-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;

    margin-bottom:30px;
}

.diagnostico-inicio-icono{
    width:78px;
    height:78px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eaf3ff;
    color:var(--primary);

    border-radius:20px;

    font-size:30px;

    margin:0;
}

.diagnostico-inicio-header h2{
    margin:0;

    font-size:32px;
    line-height:1.25;

    color:#123e70;
    font-weight:700;

    text-align:left;
}

.diagnostico-inicio-contenido p{
    max-width:620px;

    margin:0 auto 18px;

    color:#667085;

    font-size:16px;
    line-height:1.8;

    text-align:justify;
}

.diagnostico-inicio-duracion{
    display:block;

    margin:26px 0;

    color:var(--primary-dark);

    font-size:16px;
    font-weight:700;
}

.diagnostico-inicio-boton{
    padding:16px 32px;

    border:none;
    border-radius:50px;

    background:var(--primary);
    color:#ffffff;

    font-family:'Poppins',sans-serif;
    font-size:16px;
    font-weight:700;

    cursor:pointer;

    transition:.3s;
}

.diagnostico-inicio-boton:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

/*==========================================
        MODAL DIAGNÓSTICO
==========================================*/

.diagnostico-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    padding:30px;
    background:rgba(5,20,40,.72);
    backdrop-filter:blur(5px);
    z-index:5000;
}

.diagnostico-modal.active{
    display:flex;
}

.diagnostico-contenido{
    position:relative;
    width:min(940px, 92%);
    max-height:82vh;

    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;

    background:#ffffff;
    border:8px solid #ffffff;
    border-radius:28px;
    padding:32px;

    box-shadow:0 25px 70px rgba(0,36,84,.25);

    scrollbar-width:thin;
    scrollbar-color:#9fb6d1 transparent;
}

/* Scroll personalizado del modal */
.diagnostico-contenido::-webkit-scrollbar{
    width:6px;
}

.diagnostico-contenido::-webkit-scrollbar-track{
    background:transparent;
}

.diagnostico-contenido::-webkit-scrollbar-thumb{
    background:#a9bdd4;
    border-radius:20px;
}

.diagnostico-contenido::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

/* Elimina las flechas superiores e inferiores de Chrome */
.diagnostico-contenido::-webkit-scrollbar-button{
    display:none;
    width:0;
    height:0;
}

.diagnostico-cerrar{
    position:absolute;
    top:10px;
    right:10px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#eef4fb;
    color:var(--primary);
    font-size:20px;
    cursor:pointer;
    transition:.3s;
    z-index:5;
}

.diagnostico-cerrar:hover{
    background:var(--primary);
    color:#ffffff;
    transform:rotate(90deg);
}

.diagnostico-encabezado{
    display:flex;
    align-items:center;
    gap:18px;
    padding-right:55px;
    margin-bottom:20px;
}

.diagnostico-icono{
    flex-shrink:0;
    width:65px;
    height:65px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:18px;
    background:#eaf3ff;
    color:var(--primary);
    font-size:28px;
}

.diagnostico-encabezado span{
    color:var(--primary);
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}

.diagnostico-encabezado h2{
    margin-top:5px;
    color:var(--primary-dark);
    font-size:30px;
    line-height:1.2;
}

.diagnostico-descripcion{
    margin-bottom:28px;
    color:#667085;
    line-height:1.8;
}

.diagnostico-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.campo-diagnostico{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.campo-completo{
    grid-column:1 / -1;
}

.campo-diagnostico label{
    color:var(--primary-dark);
    font-size:14px;
    font-weight:600;
}

.campo-diagnostico input,
.campo-diagnostico textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #d8e0ea;
    border-radius:14px;
    background:#f9fbfd;
    color:#333;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.campo-diagnostico textarea{
    resize:vertical;
    min-height:120px;
}

.campo-diagnostico input:focus,
.campo-diagnostico textarea:focus{
    border-color:var(--primary);
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(10,78,155,.1);
}

.diagnostico-enviar{
    width:100%;
    margin-top:25px;
    padding:16px 25px;
    border:none;
    border-radius:50px;
    background:var(--primary);
    color:#ffffff;
    font-family:'Poppins',sans-serif;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.diagnostico-enviar:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

.diagnostico-enviar{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.cargando-boton{
    display:none;
    align-items:center;
    gap:10px;
}

.diagnostico-enviar.cargando .texto-boton{
    display:none;
}

.diagnostico-enviar.cargando .cargando-boton{
    display:flex;
}

.diagnostico-enviar:disabled{
    cursor:not-allowed;
    opacity:.75;
    transform:none;
}

.diagnostico-enviar:disabled:hover{
    background:var(--primary);
    transform:none;
}

body.modal-abierto{
    overflow:hidden;
}

.diagnostico-mensaje{
    display:none;
    align-items:flex-start;
    gap:14px;
    margin-top:24px;
    padding:18px 20px;
    background:#ecfdf3;
    border:1px solid #a6f4c5;
    border-radius:16px;
    color:#166534;
}

.diagnostico-mensaje.active{
    display:flex;
}

.diagnostico-mensaje i{
    margin-top:3px;
    font-size:24px;
}

.diagnostico-mensaje strong{
    display:block;
    margin-bottom:4px;
    font-size:15px;
}

.diagnostico-mensaje p{
    margin:0;
    color:#3f6212;
    font-size:13px;
    line-height:1.6;
}

.diagnostico-mensaje.error{
    background:#fff4f2;
    border-color:#fecdca;
    color:#b42318;
}

.diagnostico-mensaje.error p{
    color:#b42318;
}

.campo-error{
    display:none;
    color:#d92d20;
    font-size:13px;
    line-height:1.4;
}

.campo-error.active{
    display:block;
}

.campo-diagnostico input.invalido,
.campo-diagnostico textarea.invalido{
    border-color:#f04438;
    background:#fff7f6;
    box-shadow:0 0 0 4px rgba(240,68,56,.12);
}

@media(max-width:768px){
    .diagnostico-inicio-header{
        gap:14px;
        margin-bottom:24px;
        align-items:center;
        padding-right:25px;
    }

    .diagnostico-inicio-icono{
        width:55px;
        height:55px;
        min-width:55px;

        border-radius:16px;

        font-size:23px;
    }

    .diagnostico-inicio-header h2{
        font-size:21px;
        line-height:1.25;
    }

    .diagnostico-modal{
        padding:15px;
    }

    .diagnostico-contenido{
        padding:28px 20px;
        border-radius:22px;
    }

    .diagnostico-grid{
        grid-template-columns:1fr;
    }

    .campo-completo{
        grid-column:auto;
    }

    .diagnostico-encabezado{
        align-items:flex-start;
    }

    .diagnostico-encabezado h2{
        font-size:24px;
    }

    .diagnostico-icono{
        width:55px;
        height:55px;
        font-size:24px;
    }

}

/*==========================================
        RECURSOS GRATUITOS
==========================================*/

.resources-section{
    padding:120px 9%;
    background:linear-gradient(135deg,#ffffff 0%,#f4f8fd 100%);
    scroll-margin-top:110px;
}

.resources-header{
    max-width:900px;
    margin:0 auto;
    text-align:center;
}

.resources-label{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    padding:9px 18px 9px 10px;
    color:var(--primary-dark);
    background:#eaf3ff;
    border:1px solid rgba(10,78,155,.15);
    border-radius:50px;
    font-size:14px;
    font-weight:700;
    letter-spacing:.7px;
    text-transform:uppercase;
}

.resources-label-icon{
    display:flex;
    justify-content:center;
    align-items:center;
    width:34px;
    height:34px;
    color:white;
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );
    border-radius:50%;
}

.resources-header h2{
    margin-bottom:20px;
    color:var(--primary-dark);
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.2;
}

.resources-header p{
    max-width:800px;
    margin:0 auto 32px;
    color:#667085;
    font-size:17px;
    line-height:1.8;
}

.resources-access-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:16px 30px;
    border:none;
    border-radius:50px;
    background:var(--primary);
    color:white;
    font-family:'Poppins',sans-serif;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(10,78,155,.22);
    transition:.35s;
}

.resources-access-button:hover{
    background:var(--primary-dark);
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(10,78,155,.28);
}

.resources-access-button.acceso-concedido{
    background:#198754;
    color:#ffffff;
    cursor:not-allowed;
    box-shadow:0 12px 30px rgba(25,135,84,.22);
}

.resources-access-button.acceso-concedido:hover{
    background:#198754;
    transform:none;
    box-shadow:0 12px 30px rgba(25,135,84,.22);
}

.resources-access-button:disabled{
    opacity:1;
}

/* BIBLIOTECA */

.resources-library{
    display:none;
    max-width:1400px;
    margin:80px auto 0;
    padding:40px;

    background:white;
    border:1px solid rgba(10,78,155,.1);
    border-radius:30px;
    box-shadow:0 20px 55px rgba(10,78,155,.1);

    overflow:hidden;
}


.resources-library.active{
    display:block;
    animation:mostrarBiblioteca .6s ease;
}

@keyframes mostrarBiblioteca{
    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.resources-library-header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:25px;
    margin-bottom:35px;
}

.resources-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:12px;
    width:100%;
}

.resources-library-header span{
    color:var(--primary);
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.resources-library-header h3{
    margin-top:6px;
    color:var(--primary-dark);
    font-size:30px;
}

.resource-filter{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    min-width:110px;
    padding:10px 16px;

    border:1px solid rgba(10,78,155,.15);
    border-radius:50px;
    background:#f4f7fb;
    color:var(--primary-dark);

    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:600;

    cursor:pointer;
    transition:.3s;
}

.resource-filter:hover,
.resource-filter.active{
    background:var(--primary);
    color:white;
    border-color:var(--primary);
}

.resource-filter-count{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:50px;
    background:rgba(10,78,155,.1);
    color:inherit;
    font-size:11px;
    font-weight:700;
    line-height:1;
    transition:.3s;
}

.resource-filter:hover .resource-filter-count,
.resource-filter.active .resource-filter-count{
    background:rgba(255,255,255,.2);
    color:white;
}

/* TARJETAS */

.resources-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;

    max-height:570px;
    padding-right:14px;

    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;

    scrollbar-width:thin;
    scrollbar-color:#9fb6d1 transparent;
}

.resources-grid::-webkit-scrollbar{
    width:7px;
}

.resources-grid::-webkit-scrollbar-track{
    background:#eef3f8;
    border-radius:20px;
}

.resources-grid::-webkit-scrollbar-thumb{
    background:#9fb6d1;
    border-radius:20px;
    border:2px solid #eef3f8;
}

.resources-grid::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

.resources-grid::-webkit-scrollbar-button{
    display:none;
    width:0;
    height:0;
}

.resource-card{
    position:relative;
    display:grid;
    grid-template-columns:72px 1fr;
    gap:20px;
    align-items:start;
    padding:26px;
    background:linear-gradient(
        145deg,
        #ffffff 0%,
        #f8fbff 100%
    );
    border:1px solid rgba(10,78,155,.1);
    border-radius:22px;
    box-shadow:0 12px 35px rgba(10,78,155,.07);
    overflow:hidden;
    transition:.35s;
}

.resource-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 45px rgba(10,78,155,.14);
}

.resource-card.oculto{
    display:none;
}

.resource-icon{
    display:flex;
    justify-content:center;
    align-items:center;
    width:68px;
    height:68px;
    border-radius:18px;
    font-size:30px;
}

.resource-icon.pdf{
    color:#d92d20;
    background:#fff1f0;
}

.resource-icon.word{
    color:#185abd;
    background:#eef4ff;
}

.resource-icon.excel{
    color:#107c41;
    background:#eaf8f0;
}

.resource-icon.powerpoint{
    color:#c43e1c;
    background:#fff1ec;
}

.resource-icon.video{
    color:#7a5af8;
    background:#f4f0ff;
}

.resource-icon.link{
    color:#027a48;
    background:#ecfdf3;
}

.resource-icon.image{
    color:#b54708;
    background:#fff7ed;
}

.resource-icon.zip{
    color:#475467;
    background:#eaecf0;
}

.resource-icon.other{
    color:#475467;
    background:#f2f4f7;
}

.resource-card-content{
    min-width:0;
}

.resource-type{
    display:inline-block;
    margin-bottom:8px;
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    letter-spacing:.7px;
    text-transform:uppercase;
}

.resource-card h4{
    margin-bottom:10px;
    color:var(--primary-dark);
    font-size:20px;
    line-height:1.35;
}

.resource-card p{
    margin-bottom:18px;
    color:#667085;
    font-size:14px;
    line-height:1.7;
}

.resource-meta{
    color:#667085;
    font-size:13px;
}

.resource-meta span{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.resource-action{
    grid-column:1 / -1;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:4px;
    padding-top:18px;
    border-top:1px solid rgba(10,78,155,.1);
    color:var(--primary);
    font-size:14px;
    font-weight:700;
    transition:.3s;
}

.resource-action:hover{
    color:var(--primary-dark);
    transform:translateX(3px);
}

.resources-loading,
.resources-empty,
.resources-error{
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    min-height:240px;
    padding:40px 20px;
    text-align:center;
    border:1px dashed rgba(10,78,155,.2);
    border-radius:22px;
    background:#f8fbff;
}

.resources-loading i,
.resources-empty i,
.resources-error i{
    margin-bottom:18px;
    font-size:40px;
}

.resources-loading i,
.resources-empty i{
    color:var(--primary);
}

.resources-error i{
    color:#d92d20;
}

.resources-loading p,
.resources-empty p,
.resources-error p{
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.7;
}

.resources-empty h4,
.resources-error h4{
    margin-bottom:8px;
    color:var(--primary-dark);
    font-size:20px;
}

/* RESPONSIVE */

@media(max-width:992px){

    .resources-library-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .resources-filters{
        display:flex;
        flex-wrap:wrap;
        justify-content:flex-start;
        gap:12px;
        width:100%;
    }
}

@media(max-width:768px){

    .resources-section{
        padding:90px 12px;
        scroll-margin-top:95px;
    }

    .clients{
        scroll-margin-top:60px;
    }

    .contact{
        scroll-margin-top:30px;
    }

    .services{
        scroll-margin-top:90px;
    }

    .team{
        scroll-margin-top:50px;
    }

    .resources-library{
        width:100%;
        padding:24px 14px;
        border-radius:22px;
    }

    .resources-library-header{
        gap:18px;
        margin-bottom:24px;
    }

    .resources-library-header h3{
        font-size:24px;
    }

    .resources-filters{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
        width:100%;
    }

    .resource-filter{
        width:100%;
        min-width:0;
        padding:9px 6px;
        font-size:12px;
    }

    .resources-grid{
        grid-template-columns:1fr;
        max-height:520px;
        gap:16px;
        padding-right:8px;
        scroll-behavior:smooth;
    }

    .resource-card{
        grid-template-columns:48px minmax(0, 1fr);
        gap:12px;
        padding:18px 14px;
        border-radius:18px;
        scroll-margin-top:10px;
    }

    .resource-icon{
        width:48px;
        height:48px;
        border-radius:13px;
        font-size:21px;
    }

    .resource-card-content{
        min-width:0;
    }

    .resource-type{
        margin-bottom:5px;
        font-size:10px;
    }

    .resource-card h4{
        margin-bottom:8px;
        font-size:17px;
        line-height:1.3;
        overflow-wrap:anywhere;
    }

    .resource-card p{
        margin-bottom:12px;
        font-size:12px;
        line-height:1.5;
        overflow-wrap:anywhere;
    }

    .resource-meta{
        font-size:11px;
    }

    .resource-action{
        margin-top:2px;
        padding-top:13px;
        font-size:12px;
    }

    .resources-header p{
        font-size:15px;
    }
}

/*==========================================
        JUSTIFICAR TODOS LOS TEXTOS
==========================================*/

.hero p,
.about p,
.services p,
.team-info > p,
.value-card p,
.highlight-content p,
.about-highlight p,
.why-item p,
.footer p,
.resources-header p,
.resource-card p,
.diagnostico-descripcion,
.diagnostico-mensaje p{
    text-align: justify;
    text-justify: inter-word;
}

.stat-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-link:hover {
    transform: translateY(-4px);
}

/* ==========================================
   PANTALLA DE PREGUNTAS - DIAGNÓSTICO EXPRESS
========================================== */

.pregunta-diagnostico {
    background: #f8faff;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    padding: 22px 25px;
    margin-bottom: 20px;
}

.pregunta-diagnostico h3 {
    color: #0A4E9B;
    font-size: 14px;
    margin-bottom: 8px;
}

.pregunta-diagnostico p {
    color: #173f6d;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.pregunta-diagnostico label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.pregunta-diagnostico label:hover {
    border-color: #0A4E9B;
    background: #f0f6ff;
}

.pregunta-diagnostico input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0A4E9B;
    cursor: pointer;
}


/* BARRA DE PROGRESO */

.progreso-diagnostico {
    margin: 30px 0 25px;
}

.progreso-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #173f6d;
    font-size: 14px;
}

.progreso-info strong {
    color: #0A4E9B;
    font-size: 16px;
}

.progreso-barra {
    width: 100%;
    height: 12px;
    background: #e5edf7;
    border-radius: 20px;
    overflow: hidden;
}

.progreso-avance {
    height: 100%;
    background: #0A4E9B;
    border-radius: 20px;
    transition: width 0.4s ease;
}

#salario-minimo {
    margin-bottom: 28px;
}

/* ==========================================
   PANTALLA ANALIZANDO RESPUESTAS
========================================== */

.analizando-contenido {
    max-width: 650px;
    text-align: center;
    padding: 50px 45px;
}

.analizando-icono {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #eaf3ff;
    color: #0A4E9B;
    font-size: 32px;
}

.analizando-contenido h2 {
    color: #123E70;
    font-size: 30px;
    margin-bottom: 28px;
}

.analizando-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.loader-circulo {
    width: 48px;
    height: 48px;
    border: 5px solid #dbe7f5;
    border-top-color: #0A4E9B;
    border-radius: 50%;
    animation: girarLoader 0.8s linear infinite;
}

@keyframes girarLoader {
    to {
        transform: rotate(360deg);
    }
}

.analizando-pasos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    text-align: left;
}

.paso-analisis {
    opacity: 0.35;
    transform: translateY(5px);
    transition: 0.35s ease;
    color: #5f6877;
    font-size: 15px;
}

.paso-analisis i {
    margin-right: 10px;
    color: #0A4E9B;
}

.paso-analisis.activo {
    opacity: 1;
    transform: translateY(0);
    font-weight: 600;
    color: #123E70;
}

.analizando-barra {
    width: 100%;
    height: 10px;
    background: #e6edf6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.analizando-barra-avance {
    width: 0;
    height: 100%;
    background: #0A4E9B;
    border-radius: 20px;
    transition: width 0.8s ease;
}

.analizando-texto {
    font-size: 13px;
    color: #7a8596;
}

/* ==========================================
   PANTALLA 9 - RESULTADOS DEL DIAGNÓSTICO
========================================== */

.resultados-contenido {
    max-width: 900px;
    padding: 45px;
}

/* ENCABEZADO */

.resultado-encabezado {
    text-align: center;
    margin-bottom: 32px;
}

.resultado-etiqueta {
    display: inline-block;
    padding: 7px 14px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: #eaf3ff;
    color: #0A4E9B;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resultado-encabezado h2 {
    margin: 0 0 12px;
    color: #123E70;
    font-size: 32px;
}

.resultado-encabezado p {
    max-width: 650px;
    margin: auto;
    color: #667085;
    line-height: 1.7;
}


/* RESULTADO PRINCIPAL */

.resultado-principal {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 25px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.resultado-porcentaje,
.resultado-nivel {
    border: 1px solid #e3e9f1;
    border-radius: 22px;
    background: #ffffff;
    padding: 28px;
}

.resultado-porcentaje {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resultado-porcentaje strong {
    color: #0A4E9B;
    font-size: 55px;
    line-height: 1;
}

.resultado-porcentaje span {
    margin-top: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.resultado-nivel span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.resultado-nivel h3 {
    margin: 8px 0;
    color: #123E70;
    font-size: 28px;
}

.resultado-nivel p {
    margin: 0;
    color: #5f6877;
    line-height: 1.6;
}


/* SECCIONES */

.resultado-seccion {
    margin-top: 22px;
    padding: 25px;
    border: 1px solid #e3e9f1;
    border-radius: 20px;
    background: #ffffff;
}

.resultado-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.resultado-seccion-titulo > i {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eaf3ff;
    color: #0A4E9B;
    font-size: 19px;
}

.resultado-seccion-titulo span {
    color: #7b8798;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resultado-seccion-titulo h3 {
    margin: 3px 0 0;
    color: #123E70;
    font-size: 20px;
}


/* HALLAZGOS Y PRIORIDADES */

.resultado-hallazgos,
#resultado-prioridades {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resultado-hallazgo,
.resultado-prioridad {
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7f9fc;
    color: #4d5968;
    line-height: 1.55;
}

/* DISEÑO DE CADA PRIORIDAD */

.resultado-prioridad {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
}


/* NÚMERO DE PRIORIDAD */

.prioridad-numero {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf3ff;
    color: var(--primary);

    border-radius: 12px;

    font-size: 16px;
    font-weight: 700;
}


/* CONTENIDO DE LA PRIORIDAD */

.prioridad-contenido {
    flex: 1;
    min-width: 0;

    color: #5f6877;
    font-size: 15px;
    line-height: 1.6;
}


/* NOMBRE DE LA SECCIÓN */

.prioridad-contenido strong {
    color: #4d5968;
    font-weight: 700;
}


/* PORCENTAJE Y DESCRIPCIÓN */

.prioridad-contenido span {
    color: #5f6877;
    font-weight: 400;
}


/* ESCENARIO STPS */

.resultado-inspeccion {
    background: #f5f9ff;
    border-color: #d8e8fb;
}

#resultado-inspeccion-texto {
    margin: 0;
    color: #4d5968;
    line-height: 1.7;
}


/* MULTA */

.resultado-rango-multa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.resultado-rango-multa > div {
    padding: 18px;
    border-radius: 14px;
    background: #f7f9fc;
}

.resultado-rango-multa span {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 12px;
}

.resultado-rango-multa strong {
    color: #123E70;
    font-size: 23px;
}

.resultado-multa small {
    display: block;
    color: #7b8798;
    line-height: 1.5;
}


/* TABLA */

.tabla-resultados {
    overflow: hidden;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
}

.tabla-resultado-fila {
    display: grid;
    grid-template-columns: 120px 130px 1fr;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid #e3e9f1;
    font-size: 13px;
}

.tabla-resultado-fila:last-child {
    border-bottom: none;
}

.tabla-resultado-fila.encabezado {
    background: #123E70;
    color: #ffffff;
    font-weight: 700;
}

.tabla-resultado-fila:not(.encabezado) strong {
    color: #123E70;
}


/* CTA FINAL */

.resultado-cta {
    margin-top: 28px;
    padding: 30px;
    border-radius: 22px;
    background: #f2f7fd;
    text-align: center;
}

.resultado-cta h3 {
    margin: 0 0 10px;
    color: #123E70;
    font-size: 24px;
}

.resultado-cta p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: #5f6877;
    line-height: 1.6;
}

.resultado-botones {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resultado-botones .diagnostico-enviar {
    width: auto;
    margin: 0;
}

.resultado-btn-secundario {
    padding: 14px 22px;
    border: 1px solid #0A4E9B;
    border-radius: 12px;
    background: #ffffff;
    color: #0A4E9B;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.resultado-btn-secundario:hover {
    background: #eaf3ff;
}


/* ==========================================
   RESULTADOS - CELULAR
========================================== */

@media (max-width: 768px) {

    .resultados-contenido {
        padding: 35px 20px;
    }

    .resultado-encabezado h2 {
        font-size: 26px;
    }

    .resultado-principal {
        grid-template-columns: 1fr;
    }

    .resultado-porcentaje strong {
        font-size: 48px;
    }

    .resultado-rango-multa {
        grid-template-columns: 1fr;
    }

    .tabla-resultados {
        overflow-x: auto;
    }

    .tabla-resultado-fila {
        min-width: 620px;
    }

    .resultado-botones {
        flex-direction: column;
    }

    .resultado-botones button {
        width: 100% !important;
    }

}

/* ==========================================
    COLORES DINÁMICOS DEL RESULTADO
========================================== */

/* 90 - 100% */
#resultado-porcentaje.nivel-excelente {
    color: #28a745;
}

/* 75 - 89% */
#resultado-porcentaje.nivel-aceptable {
    color: #d4a017;
}

/* 50 - 74% */
#resultado-porcentaje.nivel-alto {
    color: #f28c28;
}

/* 0 - 49% */
#resultado-porcentaje.nivel-critico {
    color: #dc3545;
}

/* ==========================================
    COLORES DE LOS NIVELES DE LA TABLA
========================================== */

.tabla-resultado-fila:nth-child(2) strong {
    color: #28a745;
}

.tabla-resultado-fila:nth-child(3) strong {
    color: #d4a017;
}

.tabla-resultado-fila:nth-child(4) strong {
    color: #f28c28;
}

.tabla-resultado-fila:nth-child(5) strong {
    color: #dc3545;
}

/* ==========================================
    JUSTIFICACIÓN DE TEXTOS - RESULTADOS
========================================== */

.resultado-hallazgo span,
.prioridad-contenido span,
#resultado-inspeccion,
.resultado-multa small,
.resultado-cta p {
    text-align: justify;
}

/* =========================================
   AVISO DE PRIVACIDAD EN FORMULARIOS
========================================= */

.aviso-privacidad-formulario {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.aviso-privacidad-formulario a {
    color: #0a4e9b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aviso-privacidad-formulario a:hover {
    color: #123e70;
}