/* ==========================
   LO ÚLTIMO EN FORMACIÓN
========================== */

.latest-training {
    padding: 30px 30px 34px;

    background: var(--color-white);

    overflow: hidden;
}

.latest-training,
.course-showcase,
.popular-programs,
.clients-section,
.resource-hub,
.final-cta,
.site-footer {
    content-visibility: auto;
}

.latest-training {
    contain-intrinsic-size: 420px;
}

.course-showcase {
    contain-intrinsic-size: 420px;
}

.popular-programs {
    contain-intrinsic-size: 620px;
}

.clients-section {
    contain-intrinsic-size: 260px;
}

.resource-hub {
    contain-intrinsic-size: 760px;
}

.final-cta {
    contain-intrinsic-size: 420px;
}

.site-footer {
    contain-intrinsic-size: 520px;
}

.latest-container {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
}


/* CABECERA */

.latest-header {
    margin-bottom: 30px;
    text-align: center;
}

.latest-header h2 {
    margin: 0 0 6px;

    color:var(--color-heading);
    font-size: 25px;
    font-weight: 700;

    letter-spacing: -0.8px;
}

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

.latest-carousel-wrapper {
    width: 100%;
}

.latest-carousel {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 18px;

    width: 100%;

    padding: 0;

    overflow: visible;

    scroll-snap-type: none;
}


/* ==========================
   TARJETAS
========================== */

.latest-card {
    position: relative;

    width: 100%;
    height: 185px;

    overflow: hidden;

    border-radius: 18px;

    background:var(--color-heading);

    box-shadow:
        0 8px 22px rgba(18, 32, 50, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.latest-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(18, 32, 50, 0.13);
}


/* IMAGEN */

.latest-card-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.latest-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.latest-card:hover .latest-card-image img {
    transform: scale(1.04);
}


/* OSCURECIDO SOBRE LA FOTO */

.latest-card::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(12, 24, 42, 0.78) 0%,
            rgba(12, 24, 42, 0.38) 58%,
            rgba(12, 24, 42, 0.08) 100%
        );

    pointer-events: none;
}


/* TEXTO */

.latest-card-content {
    position: absolute;

    z-index: 2;

    left: 18px;
    right: 18px;
    bottom: 18px;

    padding: 0;

    text-align: left;
}

.latest-card h3 {
    margin: 0 0 7px;

    color:var(--color-white);

    font-size: 18px;
    font-weight: 750;

    line-height: 1.12;

    letter-spacing: -0.35px;
}

.latest-card p {
    margin: 0;

    color: rgba(255,255,255,0.88);

    font-size: 12px;
    line-height: 1.4;
}


/* Ya no usamos flechas */

.latest-arrow {
    display: none;
}


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

@media (max-width: 1150px) {

    .latest-carousel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .latest-training {
        padding: 58px 24px 68px;
    }

    .latest-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}
/* ==========================================================
   LO ÚLTIMO EN FORMACIÓN
   RESPONSIVE - MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    .latest-training {
        contain-intrinsic-size: 310px;
    }

    .course-showcase {
        contain-intrinsic-size: 980px;
    }

    .popular-programs {
        contain-intrinsic-size: 560px;
    }

    .clients-section {
        contain-intrinsic-size: 230px;
    }

    .resource-hub {
        contain-intrinsic-size: 680px;
    }

    .final-cta,
    .site-footer {
        contain-intrinsic-size: 480px;
    }

    .latest-training {
        padding: 34px 0 20px;
    }

    .latest-header {
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .latest-carousel {
        display: flex;

        gap: 14px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 20px 16px;

        scroll-padding-left: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .latest-carousel::-webkit-scrollbar {
        height: 4px;
    }

    .latest-carousel::-webkit-scrollbar-thumb {
        background: rgba(25, 35, 52, 0.22);
        border-radius: 999px;
    }

    .latest-card {
        position: relative;

        flex: 0 0 min(78vw, 310px);
        height: 220px;

        overflow: hidden;

        border-radius: 16px;

        scroll-snap-align: start;

        background: #172033;
    }

    .latest-card:first-child {
        flex-basis: min(86vw, 340px);
    }

    /* Imagen */
    .latest-card-image {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }

    .latest-card-image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    /* Degradado */
    .latest-card::after {
        content: "";

        position: absolute;

        inset: 0;

        z-index: 1;

        background:
            linear-gradient(
                to bottom,
                rgba(15, 25, 40, 0.02) 20%,
                rgba(15, 25, 40, 0.12) 42%,
                rgba(15, 25, 40, 0.82) 100%
            );

        pointer-events: none;
    }

    /* Texto */
    .latest-card-content {
        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 2;

        padding: 22px 20px;

        background: transparent;
    }


    /* Título */
    .latest-card h3 {
        margin: 0 0 9px;

        color:var(--color-white);

        font-size: 20px;
        font-weight: 750;

        line-height: 1.12;
        letter-spacing: -0.4px;
    }


    /* Descripción */
    .latest-card p {
        margin: 0;

        color: rgba(255, 255, 255, 0.92);

        font-size: 14px;
        line-height: 1.45;
    }

}
@media (max-width: 650px) {

    .latest-header h2 {
        font-size: 25px;
    }

    .latest-header p {
        font-size: 15px;
    }

}
/* ==========================
   BLOQUES DE CURSOS
========================== */

.course-showcase {
    padding: 2px 30px 40px;

    background: var(--color-white);
}

.course-showcase-container {
    width: 100%;
    max-width: 1380px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* Columna */

.course-column {
    position: relative;

    padding: 20px;

    overflow: hidden;

    border: 1px solid rgba(195, 22, 10, 0.08);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 10px 30px rgba(25, 35, 52, 0.055);
}


/* pequeño acento rojo superior */

.course-column::before {
    content: "";

    position: absolute;

    top: 0;
    left: 22px;
    right: 22px;

    height: 3px;

    border-radius: 0 0 6px 6px;

    background:
        linear-gradient(
            90deg,
            #f00 0%,
            #ef5144 50%,
            #c3160a 100%
        );
}


/* Centro destacado */

.course-column:last-child {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.94) 0%,
            #fff5f1 55%,
            #ffe7df 100%
        );

    border-color: rgba(239, 81, 68, 0.16);
}


/* Título de columna */

.course-column-title {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    color:var(--color-heading);

    font-size: 16px;
    font-weight: 750;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.course-column-title span {
    color:var(--color-primary);
    font-size: 20px;
    transition: transform 0.18s ease;
}

.course-column-center {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color:var(--color-text) !important;
    font-size: 16px !important;
    font-weight: 750;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.course-column-center img {
    flex-shrink: 0;
    padding: 2px;
    border: 1px solid rgba(239, 81, 68, 0.28);
    border-radius: 5px;
    background: #fff;
    object-fit: contain;
}

.course-column-title:hover {
    color:var(--color-primary);
}

.course-column-title:hover span {
    transform: translateX(5px);
}


/* título especial del destacado */

.course-column:last-child .course-column-title {
    color:var(--color-primary);
}


/* Lista */

.course-mini-list {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

/* Tarjeta */
.course-mini-card {
    min-height: 98px;

    display: grid;

    grid-template-columns:
        78px
        minmax(0, 1fr);

    gap: 12px;

    padding: 10px;

    border: 1px solid rgba(25, 35, 52, 0.055);
    border-radius: 13px;

    background:var(--color-white);

    box-shadow:
        0 3px 10px rgba(25, 35, 52, 0.025);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.course-mini-card:hover {
    transform: translateY(-3px);

    border-color: rgba(239, 81, 68, 0.26);

    box-shadow:
        0 10px 24px rgba(25, 35, 52, 0.085);
}

/* Imagen */
.course-mini-image {
    width: 78px;
    height: 78px;

    overflow: hidden;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #f6f3ef,
            #fff8f4
        );
}

.course-mini-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Texto */
.course-mini-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Centro + logo */
.course-provider {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 4px;

    color: #727b89;

    font-size: 12px;
    font-weight: 550;
}

.course-provider img {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    padding: 2px;

    border: 1px solid rgba(239, 81, 68, 0.18);
    border-radius: 5px;

    background: #fff;

    object-fit: contain;
}

.course-provider span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nombre curso */
.course-mini-card h3 {
    margin: 0 0 6px;

    overflow: hidden;

    color:var(--color-heading);

    font-size: 14px;
    font-weight: 720;
    line-height: 1.25;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    transition: color 0.18s ease;
}

.course-mini-card:hover h3 {
    color:var(--color-primary);
}

/* Tipo */
.course-mini-card p {
    margin: 0;

    color: #818996;

    font-size: 12px;
    line-height: 1.2;
}

/* pequeña diferencia visual
   para Centro Destacado */

.course-column:last-child .course-mini-card {
    background: rgba(255, 255, 255, 0.96);
}

.course-column:last-child .course-provider img {
    border-color: rgba(239, 81, 68, 0.28);
}

/* Responsive */
@media (max-width: 950px) {

    .course-showcase-container {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .course-showcase {
        padding: 14px 20px 52px;
    }

    .course-column {
        padding: 17px;
    }

}

/* ==========================
   PROGRAMAS MÁS POPULARES
========================== */

.popular-programs {
    position: relative;

    padding: 0px 30px 5px;

    overflow: hidden;

    background: var(--color-white);
}
.popular-programs::before,
.popular-programs::after {
    content: "";

    position: absolute;

    pointer-events: none;

    z-index: 0;
}

.popular-programs::before {
    width: 240px;
    height: 240px;

    left: -95px;
    top: 90px;

    border: 34px solid rgba(235, 44, 34, 0.08);
    border-radius: 50%;
}

.popular-programs::after {
    width: 190px;
    height: 190px;

    right: -70px;
    bottom: 55px;

    border-radius: 50%;

    background:
        repeating-linear-gradient(
            -35deg,
            rgba(235, 44, 34, 0.09) 0,
            rgba(235, 44, 34, 0.09) 2px,
            transparent 2px,
            transparent 9px
        );
}

.popular-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}
/* Cabecera */
.popular-header {
    margin-bottom: 18px;
    text-align: center;
}

.popular-header h2 {
    margin: 0;

    color:var(--color-heading);

    font-size: 25px;
    font-weight: 750;

    letter-spacing: -0.9px;
}

.popular-header h2::after {
    content: "";

    display: block;

    width: 52px;
    height: 4px;

    margin: 14px auto 0;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            #f06c55
        );
}
/* Tabs */
.popular-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;

    width: 100%;
    margin: 0 auto 38px;
}

.popular-tab {
    position: relative;

    padding: 11px 18px;

    border: 0;

    background: transparent;

    color: var(--color-muted);

    font-family: inherit;
    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.popular-tab:hover {
    color:var(--color-heading);
}

.popular-tab.active {
    color:var(--color-primary);
}

.popular-tab::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 3px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            var(--color-primary-light)
        );

    transform: scaleX(0);

    transition: transform 0.2s ease;
}

.popular-tab.active::after {
    transform: scaleX(1);
}
/* Paneles */
.popular-panel {
    display: none;
}

.popular-panel.active {
    display: block;

    animation: popular-panel-enter 0.35s ease both;
}

@keyframes popular-panel-enter {

    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
/* Carrusel */
.popular-carousel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/*
   Aquí solo vemos 3 tarjetas.
   La cuarta permanece fuera de escena.
*/

.popular-stage {
    position: relative;

    width: 960px;
    height: 500px;
}

/* Tarjetas */
.popular-card {
    position: absolute;

    top: 40px;

    width: 300px;
    height: 420px;

    overflow: hidden;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 14px 35px rgba(70, 36, 38, 0.10);

    opacity: 0;

    pointer-events: none;

    transition:
        left 0.42s ease,
        top 0.42s ease,
        transform 0.42s ease,
        opacity 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;
}


/* IZQUIERDA */

.popular-card.is-left {
    left: 0;

    top: 55px;

    opacity: 0.55;

    transform: scale(0.92);

    filter: saturate(0.75);

    pointer-events: auto;
}


/* CENTRO */

.popular-card.is-center {
    left: 330px;

    top: 15px;

    opacity: 1;

    transform: scale(1);

    filter: none;

    z-index: 3;

    pointer-events: auto;

    background:var(--color-white);

    border: 1px solid rgba(235, 44, 34, 0.08);

    box-shadow:
        0 22px 50px rgba(116, 54, 44, 0.16);
}


/* DERECHA */

.popular-card.is-right {
    left: 660px;

    top: 55px;

    opacity: 0.55;

    transform: scale(0.92);

    filter: saturate(0.75);

    pointer-events: auto;
}


/* TARJETA OCULTA */

.popular-card.is-hidden {
    opacity: 0;

    transform: scale(0.84);

    pointer-events: none;
}


/* ==========================
   IMAGEN
========================== */

.popular-card-image {
    width: 100%;
    height: 220px;

    background:
        linear-gradient(
            135deg,
            #f2ede8,
            #f8f3ef
        );
}

.popular-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================
   CONTENIDO
========================== */

.popular-card-content {
    padding: 25px 26px;
}

.popular-card-label {
    display: inline-block;

    margin-bottom: 9px;

    color:var(--color-primary);

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.popular-card h3 {
    margin: 0 0 10px;

    color:var(--color-heading);

    font-size: 18px;
    font-weight: 750;

    line-height: 1.15;

    letter-spacing: -0.5px;
}

.popular-card p {
    margin: 0 0 12px;

    color: #687181;

    font-size: 14px;
    line-height: 1.5;
}

.popular-card a {
    color:var(--color-heading);

    font-size: 14px;
    font-weight: 700;

    border-bottom: 2px solid var(--color-primary);
}
/* ==========================
   FLECHAS
========================== */

.popular-arrow {
    position: absolute;

    top: 50%;

    width: 54px;
    height: 54px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.96);

    color:var(--color-heading);

    border: 1px solid rgba(233, 52, 44, 0.08);

    font-family: inherit;
    font-size: 36px;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(70, 36, 38, 0.12);

    z-index: 10;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}

.popular-arrow:hover {
    color:var(--color-primary);

    background:var(--color-white);

    transform:
        translateY(-50%)
        scale(1.06);
}

.popular-prev {
    left: -65px;
}

.popular-next {
    right: -65px;
}


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

@media (max-width: 1100px) {

    .popular-stage {
        width: 840px;
    }

    .popular-card {
        width: 260px;
    }

    .popular-card.is-center {
        left: 290px;
    }

    .popular-card.is-right {
        left: 580px;
    }

}


@media (max-width: 850px) {

    .popular-stage {
        width: 100%;
        max-width: 620px;
    }

    .popular-card {
        width: 280px;
    }

    .popular-card.is-left {
        left: 10px;

        opacity: 0.35;
    }

    .popular-card.is-center {
        left: 50%;

        transform:
            translateX(-50%)
            scale(1);
    }

    .popular-card.is-right {
        right: 10px;
        left: auto;

        opacity: 0.35;
    }

}
@media (max-width: 650px) {

    .popular-programs {
        padding: 64px 20px 75px;
    }

    .popular-header h2 {
        font-size: 25px;
    }
    .popular-tab {
        padding: 10px 11px;

        font-size: 14px;
    }

    .popular-stage {
        height: 470px;
    }

    .popular-card {
        width: min(82vw, 320px);
    }

    .popular-card.is-left,
    .popular-card.is-right {
        opacity: 0;
        pointer-events: none;
    }

    .popular-arrow {
        width: 46px;
        height: 46px;
    }

    .popular-prev {
        left: -10px;
    }

    .popular-next {
        right: -10px;
    }

}
/* ==========================
   CARRUSEL + DESTACA TU CENTRO
========================== */
.clients-carousel {
    position: relative;

    flex: 1;
    min-width: 0;

    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent,
            black 7%,
            black 93%,
            transparent
        );

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black 7%,
            black 93%,
            transparent
        );
}


/* DESTACA TU CENTRO */

.feature-center-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    color: #1677a3;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.feature-center-link:hover {
    color: #125a88;

    transform: translateX(2px);
}

.feature-center-link span {
    font-size: 18px;

    transition: transform 0.15s ease;
}

.feature-center-link:hover span {
    transform: translateX(4px);
}


/* MOBILE */

@media (max-width: 650px) {

    .clients-row {
        flex-direction: column;
        gap: 16px;
    }

    .clients-carousel {
        width: 100%;
    }

    .feature-center-link {
        align-self: center;
    }

}

/* Línea que se mueve */

.clients-track {
    display: flex;
    align-items: center;

    width: max-content;

    animation: clients-scroll 32s linear infinite;
}

/* ==========================
   CARRUSEL DE CENTROS
========================== */

.clients-section {
    width: 100%;

    padding: 20px 30px 20px;

    background: var(--color-white);
    border-top: 1px solid rgba(222, 227, 233, 0.7);
    border-bottom: 1px solid rgba(222, 227, 233, 0.7);
}

.clients {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}

.clients-heading {
    width: 100%;

    margin-bottom: 24px;

    text-align: center;
}

.clients-heading h2 {
    margin: 0 0 5px;

    color:var(--color-heading);

    font-size: 25px;
    font-weight: 750;

    letter-spacing: -0.6px;
}

.clients-heading p {
    margin: 0;

    color: var(--color-muted);

    font-size: 14px;
    font-weight: 500;
}

.clients-row {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 26px;
}

.client-logo {
    width: 160px;
    height: 64px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    display: block;

    max-width: 112px;
    max-height: 42px;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* Movimiento */

@keyframes clients-scroll {

    from {
        transform: translateX(0);
    }

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

}

/* Pausa al poner el cursor */

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


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

    .clients-track,
    .final-cta-track {
        animation: none;
    }

    .popular-panel.active,
    .resource-panel.active {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
/* ==========================
   INFORMACIÓN Y RECURSOS
========================== */

.resource-hub {
    padding: 30px 30px 30px;
    background:var(--color-white);
}

.resource-hub-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}


/* CABECERA CENTRADA */

.resource-hub-header {
    text-align: center;
    margin-bottom: 30px;
}

.resource-hub-header h2 {
    margin: 0 0 8px;

    color:var(--color-heading);

    font-size:25px;
    font-weight: 750;

    letter-spacing: -0.9px;
}

.resource-hub-header p {
    margin: 0;

    color: var(--color-muted);

    font-size: 16px;
    font-weight: 500;
}


/* ==========================
   TABS
========================== */

.resource-tabs {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 34px;

    flex-wrap: wrap;
}

.resource-tab {
    position: relative;

    padding: 12px 18px;

    border: 0;
    background: transparent;

    color:var(--color-muted);

    font-family: inherit;
    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.resource-tab::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 2px;

    height: 2px;

    background:var(--color-primary);

    transform: scaleX(0);

    transition: transform 0.18s ease;
}

.resource-tab:hover {
    color:var(--color-heading);
}

.resource-tab.active {
    color:var(--color-primary);
}

.resource-tab.active::after {
    transform: scaleX(1);
}


/* ==========================
   PANELES
========================== */

.resource-panel {
    display: none;
}

.resource-panel.active {
    display: block;

    animation: resource-enter 0.32s ease both;
}

@keyframes resource-enter {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================
   RANKINGS
========================== */

.ranking-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.ranking-card {
    position: relative;

    min-height: 220px;

    overflow: hidden;

    border-radius: 18px;

    background:var(--color-heading);

    box-shadow:
        0 10px 28px rgba(20, 32, 50, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 34px rgba(20, 32, 50, 0.13);
}

.ranking-card img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.ranking-card:hover img {
    transform: scale(1.04);
}

.ranking-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(12, 24, 42, 0.86) 0%,
            rgba(12, 24, 42, 0.48) 48%,
            rgba(12, 24, 42, 0.12) 100%
        );
}

.ranking-content {
    position: absolute;
    top:40%;
    text-align: center;

    left: 22px;
    right: 22px;
    bottom: 20px;

    z-index: 2;

    color:var(--color-white);
}

.ranking-content h3 {
    margin: 0 0 8px;

    font-size: 19px;
    font-weight: 300;

    line-height: 1.2;
}

.ranking-content h2 {
    font-weight: 700;
}


/* ==========================
   CABECERA INTERNA
========================== */

.resource-section-top {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 18px;
}

.resource-view-all {
    color: #1677a3;

    font-size: 14px;
    font-weight: 700;
}

.resource-view-all:hover {
    text-decoration: underline;
}


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

.editorial-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.editorial-card {
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    background:var(--color-white);

    box-shadow:
        0 10px 28px rgba(20, 32, 50, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.editorial-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 34px rgba(20, 32, 50, 0.10);
}

.editorial-card-image {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;
}

.editorial-card-body {
    padding: 24px;
}

.editorial-date {
    display: inline-block;

    margin-bottom: 12px;

    padding: 6px 10px;

    border-radius: 8px;

    background: rgba(233, 75, 67, 0.10);

    color:var(--color-primary);

    font-size: 12px;
    font-weight: 750;

    letter-spacing: 0.4px;
}

.editorial-card h3 {
    margin: 0 0 12px;

    color:var(--color-heading);

    font-size: 21px;
    line-height: 1.25;

    font-weight: 700;
}

.editorial-card p {
    margin: 0 0 22px;

    color: #667181;

    font-size: 14px;
    line-height: 1.55;
}

.editorial-card a {
    color:var(--color-primary);

    font-size: 14px;
    font-weight: 750;
}


/* ==========================
   PROFESIONES
========================== */

.profession-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.profession-card {
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    background:var(--color-white);

    box-shadow:
        0 10px 28px rgba(20, 32, 50, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.profession-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 34px rgba(20, 32, 50, 0.10);
}

.profession-card > img {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;
}

.profession-card-body {
    padding: 24px;

    display: flex;
    flex-direction: column;
}

.profession-label {
    align-self: flex-start;

    margin-bottom: 16px;

    padding: 7px 11px;

    border-radius: 8px;

    background: rgba(233, 75, 67, 0.10);

    color:var(--color-primary);

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.profession-card h3 {
    margin: 0 0 14px;

    color:var(--color-heading);

    font-size: 23px;
    line-height: 1.28;

    font-weight: 700;
}

.profession-card p {
    margin: 0;

    color: #667181;

    font-size: 15px;
    line-height: 1.55;
}

.profession-card-footer {
    margin-top: auto;

    padding-top: 22px;

    border-top: 1px solid #e8ecf0;

    text-align: right;
}

.profession-card-footer a {
    color:var(--color-primary);

    font-size: 14px;
    font-weight: 750;
}


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

@media (max-width: 1100px) {

    .ranking-grid,
    .editorial-grid,
    .profession-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .resource-hub {
        padding: 60px 20px 70px;
    }

    .resource-hub-header h2 {
        font-size: 25px;
    }

    .resource-tabs {
        gap: 4px;
    }

    .resource-tab {
        padding: 10px 12px;

        font-size: 14px;
    }

    .ranking-grid,
    .editorial-grid,
    .profession-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================
   CTA FINAL
========================== */

.final-cta {
    position: relative;

    width: 100%;

    background:  white;

    overflow: hidden;
}
/* ==========================
   MINI CARRUSEL SUPERIOR
========================== */

.final-cta-marquee {
    width: 100%;

    overflow: hidden;

    padding: 18px 0;

    background:var(--color-white);

    border-top: 1px solid #eeeeec;
    border-bottom: 1px solid #e8e7e4;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
}


.final-cta-track {
    display: flex;
    align-items: center;

    width: max-content;

    animation: finalCtaMarquee 35s linear infinite;
}


.final-cta-item {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    margin-right: 70px;

    color: #686d75;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


.final-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #a3a5a9;

    font-size: 17px;
}


@keyframes finalCtaMarquee {

    from {
        transform: translateX(0);
    }

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

}

/* Pausa al pasar el ratón */

.final-cta-marquee:hover .final-cta-track {
    animation-play-state: paused;
}
/* ==========================
   CONTENIDO CENTRAL
========================== */

.final-cta-content {
    min-height: 430px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px 30px 20px;

    text-align: center;
}


.final-cta-content h2 {
    max-width: 900px;

    margin: 0;

    color: var(--color-heading);

    font-size: 38px;
    line-height: 1.05;

    font-weight: 550;

    letter-spacing: -2px;
}


.final-cta-content p {
    margin: 20px 0 0;
    font-weight: 600;
    color: #6c7480;

    font-size: 20px;
    line-height: 1.6;
}

/* BOTONES */
.final-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}
/* ==========================
   BOTONES CTA
========================== */

.final-cta-phone,
.cta-whatsapp {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 13px 28px;

    border-radius: 12px;

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


/* Teléfono */

.final-cta-phone {
    color: var(--color-white);

    background: var(--gradient-brand);

    box-shadow:
        0 8px 20px rgba(239, 81, 68, 0.22);
}

.final-cta-phone:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(239, 81, 68, 0.30);
}

.final-cta-phone-icon {
    font-size: 15px;
}


/* WhatsApp */

.cta-whatsapp {
    color: var(--color-white);

    background:
        linear-gradient(
        135deg,
        #249715 0%,
        #26c91d 48%,
        #069f04 100%
        );

    border: 1px solid #c9ead5;

    box-shadow:
        0 5px 15px rgba(37, 211, 102, 0.08);
}

.cta-whatsapp svg {
    width: 23px;
    height: 23px;

    flex-shrink: 0;

    fill: var(--color-white);
}
.cta-whatsapp:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #1f8513 0%,
            #20b719 48%,
            #058b03 100%
        );

    box-shadow:
        0 8px 20px rgba(37, 211, 102, 0.18);
}
.final-cta-values {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    margin-top: 38px;

    color: #8b919b;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.2px;
}

.final-cta-separator {
    color: #ef6b5b;
    font-size: 17px;
    font-weight: 700;
}
/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 700px) {

    .final-cta-content {
        min-height: 390px;

        padding:
            75px 22px
            90px;
    }


    .final-cta-content h2 {
        font-size: 25px;

        letter-spacing: -1.4px;
    }


    .final-cta-content p {
        font-size: 15px;
    }


    .final-cta-actions {
        width: 100%;

        flex-direction: column;
    }

    .final-cta-item {
        margin-right: 45px;

        font-size: 13px;
    }

    .final-cta-values {
        flex-wrap: wrap;

        gap: 8px 11px;

        margin-top: 30px;

        font-size: 13px;
    }

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

.site-footer {
    width: 100%;
    overflow: hidden;
}


/* ==========================
   BLOQUE PRINCIPAL
========================== */

.footer-main {
    position: relative;

    min-height: 520px;

    overflow: hidden;

    background:rgb(5, 19, 45);
}


/* FIGURA DIAGONAL IZQUIERDA */

.footer-shape {
    position: absolute;

    left: 0;
    top: 0;

    width: 36%;
    height: 100%;

    background: rgba(6, 39, 83, 0.32);

    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );

    pointer-events: none;
}
/* ==========================
   CONTENIDO
========================== */

.footer-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    padding: 80px 70px 75px;

    display: grid;

    grid-template-columns:
        1fr
        1.1fr
        0.95fr;

    gap: 110px;
}


/* ==========================
   COLUMNAS
========================== */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-column h3,
.footer-contact h3 {
    margin: 0 0 24px;

    color:var(--color-white);

    font-size: 21px;
    font-weight: 800;
}

.footer-column a {
    margin-bottom: 15px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 17px;
    font-weight: 500;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.footer-column a:hover {
    opacity: 0.78;

    transform: translateX(4px);
}


/* SUBTÍTULO LATAM */

.footer-subtitle {
    margin: 18px 0 16px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


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

.footer-contact {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


/* MARCA */

.footer-brand {
    margin-bottom: 30px;

    color:var(--color-white);

    font-size: 29px;

    letter-spacing: -1px;
}

.footer-brand strong {
    font-weight: 850;
}


/* TELÉFONO */

.footer-phone {
    display: inline-block;

    margin-bottom: 12px;

    color:var(--color-white);

    font-size: 15px;
    font-weight: 800;

    letter-spacing: -0.8px;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.footer-phone:hover {
    opacity: 0.82;

    transform: translateX(3px);
}


/* EMAIL */

.footer-email {
    display: inline-block;

    margin-bottom: 42px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 16px;
    font-weight: 650;
}


/* ==========================
   REDES
========================== */

.footer-socials {
    display: flex;

    align-items: center;

    gap: 18px;
}

.footer-socials a {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:var(--color-white);

    font-size: 21px;
    font-weight: 800;

    border: 2px solid rgba(255, 255, 255, 0.72);

    border-radius: 50%;

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;
}

.footer-socials a:hover {
    color: var(--color-primary-light);

    background:var(--color-white);

    transform: translateY(-3px);
}


/* ==========================
   FRANJA INFERIOR
========================== */

.footer-bottom {
    min-height: 78px;

    padding: 20px 70px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 35px;

    background:var(--color-white);

    border-top: 1px solid #eeeeee;
}


/* LOGO ABAJO */

.footer-bottom-logo {
    color: var(--color-heading);

    font-size: 18px;
}

.footer-bottom-logo strong {
    font-weight: 850;
}


/* LEGALES */

.footer-legal {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;
}

.footer-legal a {
    color: #697386;

    font-size: 13px;
    font-weight: 500;

    transition: color .18s ease;
}

.footer-legal a:hover {
    color: #ef4938;
}


/* COPYRIGHT */

.footer-copy {
    color: #697386;

    font-size: 13px;

    text-align: right;
}


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

@media (max-width: 1000px) {

    .footer-content {
        gap: 55px;

        padding:
            70px
            45px;
    }

}


@media (max-width: 760px) {

    .footer-main {
        min-height: auto;
    }

    .footer-shape {
        width: 100%;
        height: 330px;

        opacity: 0.55;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 48px;

        padding:
            60px
            25px;
    }

    .footer-contact {
        padding-top: 15px;
    }

    .footer-phone {
        font-size: 27px;
    }


    .footer-bottom {
        grid-template-columns: 1fr;

        padding:
            28px
            25px;

        gap: 20px;

        text-align: center;
    }

    .footer-bottom-logo {
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;

        gap: 12px 20px;
    }

    .footer-copy {
        text-align: center;
    }

}
