/*
Theme Name: UM Microcredenciales
Theme URI: https://microcredenciales.unimoron.edu.ar/
Author: Florencia Chavez - Universidad de Morón
Description: Tema institucional personalizado para UM Microcredenciales.
Version: 1.2.5
Text Domain: um-microcredenciales
*/

/* Variables globales */
:root {
    /* Colores institucionales */
    --ink: #0b1738;
    --ink-soft: #52607f;
    --paper: #f7f9ff;
    --white: #ffffff;
    --line: rgba(17, 42, 95, 0.12);

    /* Colores de identidad */
    --blue: #2457ff;
    --blue-dark: #1536c9;
    --cyan: #00d4ff;
    --violet: #7a2cff;
    --magenta: #ff2fa3;
    --orange: #ff7a00;
    --green: #00c98d;

    /* Efectos */
    --shadow: 0 24px 60px rgba(29, 60, 145, 0.15);

    /* Bordes */
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;

    /* Layout */
    --max: 1180px;

    /*
     * Alias temporales de compatibilidad.
     * Permiten que el CSS inicial del tema continúe funcionando.
     */
    --um-primary: var(--blue);
    --um-secondary: var(--violet);
    --um-accent: var(--magenta);
    --um-dark: var(--ink);
    --um-text: var(--ink-soft);
    --um-background: var(--paper);
    --um-white: var(--white);

    /* Eyebrow (etiqueta de sección) — componente global */
    --um-eyebrow-color: #3155ff;
    --um-eyebrow-gradient: linear-gradient(
        90deg,
        #00d5ff 0%,
        #743cff 55%,
        #ed23bb 100%
    );
    --um-eyebrow-gradient-on-dark: linear-gradient(
        90deg,
        #00d5ff 0%,
        #ffffff 55%,
        #ed23bb 100%
    );
}

/* =========================================================
   COMPONENTE GLOBAL: EYEBROW DE SECCIÓN
   Usar en cualquier etiqueta superior de sección
   ("kicker"/"overline"). No agregar óvalo, borde ni fondo:
   el estilo visual único es línea degradada + texto.
   ========================================================= */

.um-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--um-eyebrow-color);
}

/* Variante para secciones centradas (cuando el contenedor
   del eyebrow ocupa todo el ancho y no alcanza con el
   text-align:center del padre). No cambia el look, solo
   la alineación interna. */
.um-section-eyebrow--center {
    display: flex;
    justify-content: center;
}

/* Variante para eyebrows sobre fondos oscuros (CTAs, banners). */
.um-section-eyebrow--on-dark {
    color: #ffffff;
}

.um-section-eyebrow--on-dark .um-section-eyebrow__line {
    background: var(--um-eyebrow-gradient-on-dark);
}

.um-section-eyebrow__line {
    display: block;
    width: 28px;
    height: 3px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: var(--um-eyebrow-gradient);
}

/* Normalización básica */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--um-text);
    background-color: var(--um-white);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--um-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.um-container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

/* =========================================================
   Sistema de botones compartido
   (usado también fuera del hero, p. ej. page-microcredenciales.php)
   ========================================================= */

.um-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.um-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.um-button:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.55);
    outline-offset: 3px;
}

.um-button--primary {
    color: var(--white);
    background: linear-gradient(
        125deg,
        var(--blue),
        var(--violet)
    );
    box-shadow: 0 12px 28px rgba(36, 87, 255, 0.22);
}

.um-button--primary:hover {
    color: var(--white);
    box-shadow: 0 16px 34px rgba(36, 87, 255, 0.3);
}

.um-button--secondary {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
}

.um-button--secondary:hover {
    border-color: rgba(36, 87, 255, 0.3);
    color: var(--blue-dark);
    background: var(--white);
}

/* Contenido posterior editable */

.home-content {
    padding-block: 80px;
}

/* =========================================================
   Salvaguarda global de overflow horizontal
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================================================
   Ancho del contenedor general (usado en todo el sitio)
   ========================================================= */

@media (max-width: 1180px) {
    .um-container {
        width: min(var(--max), calc(100% - 48px));
    }
}

@media (max-width: 640px) {
    .um-container {
        width: calc(100% - 32px);
    }

    .home-hero__eyebrow {
        font-size: 12px;
    }

    .um-button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .um-container {
        width: calc(100% - 24px);
    }
}

/* =========================================================
   SECCIÓN: ENFOQUE DEL PROYECTO
   ========================================================= */

.home-approach {
    position: relative;
    overflow: hidden;
    padding-block: clamp(80px, 9vw, 130px);
    background:
        radial-gradient(
            circle at 16% 20%,
            rgba(0, 212, 255, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 78%,
            rgba(255, 47, 163, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle,
            rgba(36, 87, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #f7f6ff 52%,
            #fff7fc 100%
        );
    background-position:
        center,
        center,
        0 0,
        center;
    background-size:
        auto,
        auto,
        18px 18px,
        auto;
}

.home-approach__header {
    max-width: 850px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    text-align: center;
}

.home-approach__eyebrow {
    margin: 0 0 18px;
}

.home-approach__title {
    margin: 0;
    color: var(--ink);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: clamp(40px, 4.5vw, 66px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: none;
}

.home-approach__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* =========================================================
   CARDS — ENFOQUE DEL PROYECTO
   ========================================================= */

.home-approach__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 430px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(255, 249, 253, 0.95)
        );
    box-shadow:
        0 18px 48px rgba(29, 60, 145, 0.1);
    text-align: center;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

/* Línea degradada inferior */

.home-approach__card::after {
    position: absolute;
    right: 22%;
    bottom: 0;
    left: 22%;
    z-index: 5;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--blue),
        var(--violet),
        var(--magenta)
    );
    content: "";
}

/* Hover */

.home-approach__card:hover {
    border-color: rgba(36, 87, 255, 0.2);
    box-shadow:
        0 26px 60px rgba(29, 60, 145, 0.16);
    transform: translateY(-5px);
}

/* =========================================================
   FOTO
   ========================================================= */

.home-approach__photo {
    position: relative;
    width: 100%;
    height: 205px;
    flex: 0 0 205px;
    overflow: hidden;
    background: #eef3ff;
}

.home-approach__photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 400ms ease;
}

.home-approach__card:hover .home-approach__photo-image {
    transform: scale(1.035);
}

/* =========================================================
   ÍCONO
   ========================================================= */

.home-approach__icon {
    position: relative;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin: -29px auto 32px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(36, 87, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 28px rgba(36, 87, 255, 0.14);
}

.home-approach__icon-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.home-approach__card-title {
    width: 100%;
    margin: 0 0 12px;
    padding-inline: 30px;
    color: var(--ink);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-approach__card-description {
    width: 100%;
    padding: 0 30px 34px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.home-approach__card-description p {
    margin: 0;
}

.home-approach__card-description p + p {
    margin-top: 10px;
}

/* =========================================================
   CARD SIN FOTO
   Mantiene el diseño correcto mientras cargamos las imágenes
   ========================================================= */

.home-approach__card:not(:has(.home-approach__photo)) {
    justify-content: center;
    padding-top: 38px;
}

.home-approach__card:not(:has(.home-approach__photo))
.home-approach__icon {
    margin-top: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .home-approach__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-approach__card {
        min-height: 420px;
    }

    .home-approach__photo {
        height: 195px;
        flex-basis: 195px;
    }
}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 640px) {
    .home-approach {
        padding-block: 72px;
    }

    .home-approach__header {
        margin-bottom: 38px;
    }

    .home-approach__title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .home-approach__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-approach__card {
        min-height: 0;
    }

    .home-approach__photo {
        height: 210px;
        flex-basis: 210px;
    }

    .home-approach__card-title {
        padding-inline: 24px;
    }

    .home-approach__card-description {
        padding: 0 24px 30px;
    }

    .home-approach__card:not(:has(.home-approach__photo)) {
        padding-top: 30px;
    }
}

/* =========================================================
   SECCIÓN: SKILLS
   ========================================================= */

.home-skills {
    position: relative;
    overflow: hidden;
    padding-block: clamp(85px, 9vw, 135px);
    background:
        radial-gradient(
            circle at 18% 40%,
            rgba(0, 212, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 86% 62%,
            rgba(255, 47, 163, 0.07),
            transparent 28%
        ),
        var(--white);
}

.home-skills__header {
    max-width: 940px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    text-align: center;
}

.home-skills__eyebrow {
    margin: 0 0 18px;
}

.home-skills__title {
    margin: 0;
    color: var(--ink);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: clamp(42px, 4.7vw, 68px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

/* Contenedor del acordeón */

.home-skills__accordion {
    display: flex;
    width: 100%;
    min-height: 360px;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(247, 249, 255, 0.82);
    box-shadow: var(--shadow);
}

/* Card individual */

.home-skills__card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 0;
    border-radius: var(--radius-md);
    transition:
        flex-grow 420ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms ease,
        transform 220ms ease;
}

.home-skills__card--active {
    flex-grow: 2.35;
    box-shadow:
        0 18px 38px rgba(11, 23, 56, 0.18);
}

.home-skills__button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: inherit;
    color: var(--white);
    background: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.home-skills__button:focus-visible {
    outline: 4px solid rgba(0, 212, 255, 0.7);
    outline-offset: -5px;
}

/* Imagen cargada desde WordPress */

.home-skills__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 300ms ease;
    filter: brightness(1.12) saturate(1.04);
}

.home-skills__card:hover .home-skills__image,
.home-skills__card--active .home-skills__image {
    transform: scale(1.035);
}

.home-skills__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(11, 23, 56, 0) 35%,
            rgba(11, 23, 56, 0.38) 100%
        );
    pointer-events: none;
}

.home-skills__card--active .home-skills__image,
.home-skills__card:hover .home-skills__image {
    filter: brightness(1.18) saturate(1.08);
}

/* Nombre de la skill */

.home-skills__name {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
    z-index: 2;
    display: block;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    background: rgba(11, 23, 56, 0.32);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    backdrop-filter: blur(9px);
    transition:
        opacity 220ms ease,
        transform 280ms ease;
}

.home-skills__card--active .home-skills__name {
    opacity: 1;
    transform: translateY(0);
}

.home-skills__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(
            145deg,
            var(--blue),
            var(--violet)
        );
    text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
    .home-skills__accordion {
        min-height: 315px;
    }

    .home-skills__button {
        min-height: 295px;
    }

    .home-skills__card--active {
        flex-grow: 2;
    }

    .home-skills__name {
        right: 12px;
        bottom: 16px;
        left: 12px;
        padding: 10px;
        font-size: 16px;
    }
}

/* Celular: acordeón vertical */

@media (max-width: 640px) {
    .home-skills {
        padding-block: 72px;
    }

    .home-skills__title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .home-skills__title br {
        display: none;
    }

    .home-skills__accordion {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 10px;
    }

    .home-skills__card {
        width: 100%;
        min-height: 82px;
        flex: none;
        transition:
            min-height 380ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .home-skills__card--active {
        min-height: 270px;
    }

    .home-skills__button {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .home-skills__image {
        object-position: center;
    }

    .home-skills__name {
        right: 16px;
        bottom: 16px;
        left: 16px;
        font-size: 17px;
    }
}

/* Reduce las animaciones cuando el usuario lo solicita */

@media (prefers-reduced-motion: reduce) {
    .home-skills__card,
    .home-skills__image,
    .home-skills__name {
        transition: none;
    }
}

/* =========================================================
   NIVELES ACADÉMICOS
   ========================================================= */

.home-levels {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 46px;
    padding: 30px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 246, 255, 0.96)
        );
    box-shadow:
        0 22px 52px rgba(29, 60, 145, 0.12);
}

.home-levels__label {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(36, 87, 255, 0.14);
    border-radius: 999px;
    color: var(--blue);
    background: var(--paper);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-levels__list {
    position: relative;
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(155px, 1fr));
    gap: 24px;
    align-items: center;
}

.home-levels__list::before {
    position: absolute;
    top: 34px;
    right: 4%;
    left: 4%;
    z-index: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--blue),
        var(--violet),
        var(--magenta)
    );
    content: "";
    opacity: 0.46;
}

.home-levels__item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.home-levels__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(
        145deg,
        var(--blue),
        var(--violet),
        var(--magenta)
    );
    box-shadow:
        0 10px 26px rgba(122, 44, 255, 0.3);
}

.home-levels__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-levels__content {
    min-width: 0;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(7px);
}

.home-levels__content h3 {
    margin: 0;
    color: var(--ink);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-levels__content p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.3;
}

/* Tablet */

@media (max-width: 900px) {
    .home-levels {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .home-levels__label {
        justify-self: start;
    }

    .home-levels__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-levels__list::before {
        display: none;
    }
}

/* Celular */

@media (max-width: 640px) {
    .home-levels {
        margin-top: 32px;
        padding: 24px 18px;
    }

    .home-levels__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-levels__item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .home-levels__icon {
        width: 58px;
        height: 58px;
        border-width: 4px;
    }

    .home-levels__content h3 {
        font-size: 12px;
    }
}

/* =========================================================
   FAMILIAS DE SKILLS
   ========================================================= */

.home-skill-families {
    padding-block: clamp(85px, 9vw, 130px);
    background: var(--paper);
}

.home-skill-families__header {
    margin-bottom: clamp(38px, 5vw, 56px);
    text-align: center;
}

.home-skill-families__eyebrow {
    margin: 0 0 16px;
}

.home-skill-families__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.home-skill-families__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.home-skill-families__card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 5px solid var(--skill-color);
    border-radius: var(--radius-lg);
    color: var(--ink);
    background: var(--white);
    box-shadow:
        0 18px 44px rgba(29, 60, 145, 0.11);
    text-decoration: none;
    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.home-skill-families__card:hover {
    color: var(--ink);
    text-decoration: none;
    box-shadow:
        0 26px 58px rgba(29, 60, 145, 0.17);
    transform: translateY(-6px);
}

.home-skill-families__card:focus-visible {
    outline: 3px solid var(--skill-color);
    outline-offset: 4px;
}

.home-skill-families__image-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: color-mix(
        in srgb,
        var(--skill-color) 14%,
        var(--paper)
    );
}

.home-skill-families__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.home-skill-families__card:hover
.home-skill-families__image {
    transform: scale(1.045);
}

.home-skill-families__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(
        145deg,
        var(--skill-color),
        var(--ink)
    );
    font-weight: 700;
    text-align: center;
}

.home-skill-families__content {
    min-height: 128px;
    padding: 25px 26px 27px;
    text-align: center;
}

.home-skill-families__content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.home-skill-families__content p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
}

/* Tablet */

@media (max-width: 900px) {
    .home-skill-families__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Celular */

@media (max-width: 640px) {
    .home-skill-families {
        padding-block: 72px;
    }

    .home-skill-families__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-skill-families__image-wrapper {
        height: 180px;
    }
}

.course-card-preview {
    padding-block: 100px;
    background: var(--paper);
}

.course-card-preview__header {
    margin-bottom: 48px;
    text-align: center;
}

.course-card-preview__header p {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-card-preview__header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(38px, 4vw, 58px);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.course-card-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .course-card-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .course-card-preview {
        padding-block: 72px;
    }

    .course-card-preview__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* =========================================================
   HOME HERO — NUEVA COMPOSICIÓN
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 7vw, 105px) 0;
    min-height: 700px;
    background:
        radial-gradient(
            circle at 5% 55%,
            rgba(0, 213, 255, 0.17),
            transparent 30%
        ),
        radial-gradient(
            circle at 94% 35%,
            rgba(116, 60, 255, 0.16),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #eafcff 0%,
            #f8fbff 48%,
            #f1e5ff 100%
        );
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.home-hero > .um-container {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
    gap: clamp(55px, 6vw, 95px);
    align-items: center;
}

/* =========================================================
   COLUMNA IZQUIERDA
   ========================================================= */

.home-hero__content {
    position: relative;
    z-index: 5;
    min-width: 0;
}

.home-hero__eyebrow {
    margin-bottom: 24px;
}

.home-hero__title {
    max-width: 720px;
    margin: 0;
    color: #071536;
    font-size: clamp(58px, 5.2vw, 82px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.home-hero__title-main,
.home-hero__title-highlight {
    display: block;
}

.home-hero__title-highlight {
    margin-top: 10px;
    padding-bottom: 5px;
    color: #3155ff;
    background: linear-gradient(
        90deg,
        #3155ff 0%,
        #743cff 55%,
        #ed23bb 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__description {
    max-width: 650px;
    margin: 30px 0 0;
    color: #53617d;
    font-size: 17px;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-hero__button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


.home-hero__button:hover,
.home-hero__button:focus,
.home-hero__button:visited {
    text-decoration: none;
}

/*
 * Foco accesible compartido por los dos CTA del Hero (esta base
 * solo la usan estos dos botones, ver .home-hero__button--primary
 * y --consult más abajo).
 */
.home-hero__button:focus-visible {
    outline: 3px solid rgba(53, 71, 255, 0.55);
    outline-offset: 3px;
}

.home-hero__button--primary {
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(
        105deg,
        #1232e8 0%,
        #3547ff 50%,
        #6328ff 100%
    );
    box-shadow: 0 8px 24px rgba(53, 71, 255, 0.22);
}

.home-hero__button--primary:hover,
.home-hero__button--primary:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(53, 71, 255, 0.3);
}

.home-hero__button--primary__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.home-hero__button--secondary {
    border: 1px solid #dfe5f2;
    color: #101936;
    background: rgba(255, 255, 255, 0.85);
}

.home-hero__button--secondary:hover {
    border-color: #3155ff;
    color: #3155ff;
    transform: translateY(-2px);
}

/*
 * Refuerzo de especificidad: evita que estilos globales externos
 * (ej. reglas "a"/"a:hover" de Elementor/Eduma) sobrescriban estos
 * colores. No cambia el diseño: cada estado conserva exactamente
 * el color ya definido arriba.
 */
a.home-hero__button.home-hero__button--primary,
a.home-hero__button.home-hero__button--primary:link,
a.home-hero__button.home-hero__button--primary:visited,
a.home-hero__button.home-hero__button--primary:hover,
a.home-hero__button.home-hero__button--primary:focus,
a.home-hero__button.home-hero__button--primary:active {
    color: #fff;
}

a.home-hero__button.home-hero__button--secondary,
a.home-hero__button.home-hero__button--secondary:link,
a.home-hero__button.home-hero__button--secondary:visited,
a.home-hero__button.home-hero__button--secondary:focus,
a.home-hero__button.home-hero__button--secondary:active {
    color: #101936;
}

a.home-hero__button.home-hero__button--secondary:hover {
    color: #3155ff;
}

/*
 * CTA "Hacé tu consulta": degradado violeta suave a fucsia, con el
 * fucsia predominando sobre la mayor parte del botón (el segundo
 * color corta en 55%, no en 100%, así el fucsia cubre casi todo el
 * ancho en vez de quedar como un simple punto final). Sin overlays
 * ni opacidades: un solo degradado limpio, sin tonos grises, rojizos
 * ni anaranjados. Texto e ícono en blanco (heredan el color por
 * "currentColor" en el SVG).
 */
.home-hero__button--consult {
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(
        100deg,
        #b14dff 0%,
        #f53dbb 55%
    );
    box-shadow: 0 8px 22px rgba(245, 61, 187, 0.25);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.home-hero__button--consult:hover,
.home-hero__button--consult:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(245, 61, 187, 0.34);
}

.home-hero__button--consult:active {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow: 0 6px 16px rgba(245, 61, 187, 0.3);
}

.home-hero__button--consult__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/*
 * Mismo refuerzo de especificidad que --primary y --secondary (ver
 * comentario arriba): mantiene el color de texto definido arriba
 * (violeta, no blanco: este CTA es el secundario de fondo claro)
 * en todos los estados ante un posible empate de especificidad con
 * reglas globales de enlace.
 */
a.home-hero__button.home-hero__button--consult,
a.home-hero__button.home-hero__button--consult:link,
a.home-hero__button.home-hero__button--consult:visited,
a.home-hero__button.home-hero__button--consult:hover,
a.home-hero__button.home-hero__button--consult:focus,
a.home-hero__button.home-hero__button--consult:active {
    color: #fff;
}

.home-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.home-hero__tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.94),
            rgba(255, 255, 255, 0.94)
        ) padding-box,
        linear-gradient(
            120deg,
            var(--blue),
            var(--violet),
            #e026c2
        ) border-box;
    box-shadow: 0 2px 10px rgba(29, 60, 145, 0.07);
    color: var(--blue-dark);
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        background 240ms ease;
}

.home-hero__tag:hover,
.home-hero__tag:focus-visible {
    transform: translateY(-2px);
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.86),
            rgba(255, 255, 255, 0.86)
        ) padding-box,
        linear-gradient(
            120deg,
            var(--blue),
            var(--violet),
            #e026c2
        ) border-box;
    box-shadow: 0 10px 22px rgba(82, 67, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__tag {
        transition: none;
    }

    .home-hero__tag:hover,
    .home-hero__tag:focus-visible {
        transform: none;
    }
}

/* =========================================================
   COMPOSICIÓN VISUAL DERECHA
   .um-hero-carousel (foto activa + laterales parcialmente
   visibles, certificación y leyenda superpuestas, flechas y
   puntos de navegación) seguido de la tarjeta de preventa a
   todo el ancho de la columna.
   ========================================================= */

.home-hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}

/* =========================================================
   CARRUSEL
   ========================================================= */

.um-hero-carousel {
    position: relative;
    width: 100%;
}

.um-hero-carousel__track {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
}

.um-hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 13%;
    width: 74%;
    height: 100%;

    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: #fff;

    opacity: 0;
    transform: scale(0.82);
    z-index: 1;
    pointer-events: none;

    box-shadow: 0 16px 40px rgba(28, 39, 83, 0.14);

    transition:
        transform 520ms ease,
        opacity 520ms ease;
}

.um-hero-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 28px 64px rgba(28, 39, 83, 0.22);
}

.um-hero-carousel__slide.is-prev {
    opacity: 0.85;
    transform: scale(0.8) translateX(-76%);
    z-index: 2;
}

.um-hero-carousel__slide.is-next {
    opacity: 0.85;
    transform: scale(0.8) translateX(76%);
    z-index: 2;
}

.um-hero-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Oscurecido inferior, para que la leyenda sea legible */

.um-hero-carousel__slide::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(5, 17, 48, 0.82),
        rgba(5, 17, 48, 0)
    );
    content: "";
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .um-hero-carousel__slide {
        transition: none;
    }
}

/*
 * Flechas de navegación: únicamente botones circulares, sin
 * superficies ni degradados adicionales a los lados.
 */
.um-hero-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    place-items: center;
    border: 1px solid rgba(16, 25, 54, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #101936;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(28, 39, 83, 0.16);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        background 200ms ease;
}

.um-hero-carousel__nav svg {
    width: 20px;
    height: 20px;
}

.um-hero-carousel__nav--prev {
    left: 2%;
}

.um-hero-carousel__nav--next {
    right: 2%;
}

.um-hero-carousel__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 30px rgba(28, 39, 83, 0.22);
}

.um-hero-carousel__nav:focus-visible {
    outline: 3px solid rgba(53, 71, 255, 0.55);
    outline-offset: 3px;
}

/* Leyenda superpuesta (etiqueta + texto de la imagen activa) */

.um-hero-carousel__caption {
    position: absolute;
    left: 16%;
    bottom: 36px;
    z-index: 4;
    max-width: 55%;
    color: #fff;
}

.um-hero-carousel__caption span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.um-hero-carousel__caption strong {
    display: block;
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Puntos de posición, debajo del carrusel */

.um-hero-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.um-hero-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(16, 25, 54, 0.18);
    cursor: pointer;
    transition:
        width 200ms ease,
        border-radius 200ms ease,
        background 200ms ease;
}

.um-hero-carousel__dot:hover {
    background: rgba(16, 25, 54, 0.32);
}

.um-hero-carousel__dot:focus-visible {
    outline: 2px solid rgba(53, 71, 255, 0.55);
    outline-offset: 2px;
}

.um-hero-carousel__dot[aria-selected="true"] {
    width: 26px;
    border-radius: 5px;
    background: linear-gradient(100deg, var(--violet), var(--magenta));
}

/* =========================================================
   CERTIFICACIÓN
   Superpuesta sobre el lateral izquierdo del carrusel,
   posicionada en forma absoluta respecto de .um-hero-carousel
   (nunca respecto de .home-hero__visual completo), para que
   no se recorte junto con las imágenes laterales.
   ========================================================= */

.home-hero__certification {
    position: absolute;
    top: 22px;
    left: 2%;
    z-index: 6;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 245px;
    padding: 15px 18px;
    border: 1px solid rgba(16, 25, 54, 0.08);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(31, 44, 89, 0.16);
}

.home-hero__certification-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border-radius: 12px;
    background: #08c99a;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
}

.home-hero__certification-icon-mark {
    display: inline-block;
    line-height: 1;

    /*
     * Corrección óptica: el glifo "✓" de Arial no queda
     * centrado dentro de su propia caja de texto. Se ajusta
     * solo el símbolo, sin mover el cuadrado que lo contiene.
     */
    transform: translate(0, 5px);
}

.home-hero__certification strong,
.home-hero__certification span {
    display: block;
}

.home-hero__certification strong {
    color: #101936;
    font-size: 13px;
    line-height: 1.2;
}

.home-hero__certification div > span {
    margin-top: 3px;
    color: #53617d;
    font-size: 11px;
    line-height: 1.3;
}

/* =========================================================
   PREVENTA
   Tarjeta horizontal a todo el ancho de la columna derecha,
   debajo del carrusel.
   ========================================================= */

.home-hero__sale-notice {
    display: flex;
    gap: 18px;
    align-items: center;
    width: 100%;
    padding: 28px 32px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(
        100deg,
        #743cff,
        #ed23bb
    );
    box-shadow: 0 20px 48px rgba(174, 43, 214, 0.25);
}

.home-hero__sale-icon {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 19px;
}

.home-hero__sale-icon svg {
    width: 27px;
    height: 27px;
}

.home-hero__sale-notice strong,
.home-hero__sale-notice div > span {
    display: block;
}

.home-hero__sale-notice strong {
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.18;
    text-wrap: balance;
}

.home-hero__sale-notice div > span {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
}

/* =========================================================
   DECORACIÓN
   ========================================================= */

.home-hero::before,
.home-hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-hero::before {
    right: -80px;
    bottom: -160px;
    width: 390px;
    height: 390px;
    border: 50px solid rgba(116, 60, 255, 0.07);
}

.home-hero::after {
    right: 31%;
    bottom: -95px;
    width: 170px;
    height: 170px;
    background: linear-gradient(
        145deg,
        rgba(49, 85, 255, 0.85),
        rgba(116, 60, 255, 0.85)
    );
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
        gap: 45px;
    }

    .home-hero__title {
        font-size: clamp(52px, 6vw, 68px);
    }

    .um-hero-carousel__track {
        height: 400px;
    }

    .um-hero-carousel__nav {
        width: 40px;
        height: 40px;
    }

    .home-hero__sale-notice {
        padding: 24px 26px;
    }

    .home-hero__certification {
        top: 18px;
        left: 1%;
    }
}

/* =========================================================
   TABLET VERTICAL
   ========================================================= */

@media (max-width: 900px) {
    .home-hero {
        padding: 70px 0 80px;
    }

    .home-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 55px;
    }

    .home-hero__content {
        max-width: 720px;
    }

    .home-hero__title {
        max-width: 700px;
        font-size: clamp(55px, 9vw, 74px);
    }

    .home-hero__visual {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .um-hero-carousel__track {
        height: 370px;
    }

    .home-hero__certification {
        top: 16px;
        left: 1%;
    }
}

/* =========================================================
   MÓVIL
   El carrusel sigue funcionando igual (el mecanismo es
   fluido, basado en porcentajes), pero con menos "espiado"
   lateral y una pista más baja; el resto del Hero pasa a una
   sola columna.
   ========================================================= */

@media (max-width: 640px) {
    .home-hero {
        padding: 52px 0 65px;
    }

    .home-hero > .um-container {
        width: min(100% - 32px, 1280px);
    }

    .home-hero__grid {
        gap: 42px;
    }

    .home-hero__eyebrow {
        margin-bottom: 19px;
        font-size: 12px;
    }

    .home-hero__title {
        font-size: clamp(45px, 13.5vw, 60px);
        line-height: 0.98;
    }

    .home-hero__title-highlight {
        margin-top: 7px;
    }

    .home-hero__description {
        margin-top: 23px;
        font-size: 15px;
        line-height: 1.6;
    }

    .home-hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 25px;
    }

    .home-hero__button {
        width: 100%;
    }

    .home-hero__tags {
        margin-top: 16px;
    }

    .home-hero__tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    /*
     * En móvil, el carrusel y la tarjeta de preventa quedan
     * en flujo normal, uno debajo del otro (orden natural del
     * HTML) — ninguno depende de posiciones absolutas rígidas.
     */

    .home-hero__visual {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    .um-hero-carousel__track {
        height: clamp(260px, 88vw, 360px);
    }

    /*
     * Las laterales se acercan al centro (menos "espiado") para
     * no generar desbordamiento horizontal en pantallas chicas.
     */
    .um-hero-carousel__slide {
        left: 8%;
        width: 84%;
        border-width: 4px;
        border-radius: 22px;
    }

    .um-hero-carousel__slide.is-prev {
        transform: scale(0.84) translateX(-58%);
    }

    .um-hero-carousel__slide.is-next {
        transform: scale(0.84) translateX(58%);
    }

    .um-hero-carousel__nav {
        width: 38px;
        height: 38px;
    }

    .um-hero-carousel__caption {
        left: 11%;
        bottom: 22px;
        max-width: 68%;
    }

    .um-hero-carousel__caption strong {
        font-size: 17px;
    }

    .home-hero__certification {
        top: 12px;
        left: 3%;
        max-width: 200px;
        padding: 12px 14px;
    }

    .home-hero__sale-notice {
        width: 100%;
        gap: 14px;
        padding: 22px 24px;
    }

    .home-hero__sale-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .home-hero::after {
        display: none;
    }
}

/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {
    .home-hero__title {
        font-size: 43px;
    }

    .um-hero-carousel__track {
        height: 260px;
    }

    .home-hero__certification {
        display: none;
    }

    .home-hero__sale-notice {
        padding: 18px;
    }
}