/*
 * ═══════════════════════════════════════════════════════════════
 *  iiREDA / CiDENi — Hoja de estilos principal
 *  Tipografías: "Bebas Neue" (display) · "DM Sans" (cuerpo)
 * ═══════════════════════════════════════════════════════════════
 *
 *  TABLA DE CONTENIDOS
 *  ─────────────────────────────────────────────────────────────
 *   1.  Tokens de diseño & base global
 *   2.  Utilidades
 *   3.  Encabezado del sitio
 *       3a. Barra promo (marquee)
 *       3b. Logos y barra de cabecera
 *       3c. Botón de menú (hamburger)
 *       3d. Navegación principal
 *       3e. Modal de búsqueda
 *       3f. Dropdown de navegación
 *       3g. Navegación móvil (drawer)
 *   4.  Homepage
 *       4a. Hero home + slider de cursos
 *       4b. Franja de oferta (home-offer)
 *       4c. Programas + filtros (home-programs)
 *       4d. Trayectoria (home-legacy)
 *   5.  Tarjeta de programa (program-card)
 *   6.  Pie de página
 *   7.  Componentes compartidos páginas interiores
 *       7a. Héroe de página (page-hero)
 *       7b. Miga de pan (page-breadcrumb)
 *   8.  Catálogo de cursos (cursos.php)
 *   9.  Mi cuenta (mi-cuenta.php)
 *  10.  Carrito (carrito.php)
 *  11.  Checkout (checkout.php)
 *  12.  Compra exitosa (compra-exitosa.php)
 *  13.  Ficha de curso (curso-interior.php)
 *       13a. Héroe del curso
 *       13b. Layout, tabs y secciones de contenido
 *       13c. Barra lateral del curso
 *  14.  Trayectoria formativa (cursos-impartidos.php)
 *       14a. Héroe del catálogo histórico
 *       14b. Layout y línea de tiempo
 *       14c. Tarjeta de curso impartido
 *       14d. CTA al catálogo activo
 *  15.  Ficha de curso impartido (curso-impartido-detalle.php)
 *       15a. Héroe del curso impartido
 *       15b. Barra de indicadores
 *       15c. Layout principal y secciones de contenido
 *       15d. Panel lateral informativo
 *       15e. Cursos relacionados
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   1. TOKENS DE DISEÑO & BASE GLOBAL
═══════════════════════════════════════════════════════════════ */

:root {
    --color-bg: white;
    --color-surface: #1a222d;
    --color-border: #2d3a4d;
    --color-text: #e8eef4;
    --color-muted: #8b9cb3;
    --color-accent: #3d9cf5;
    --color-accent-hover: #5eb0ff;
    --header-bg: #15173e;
    --header-nav: #ffffff;
    --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-display: "Bebas Neue", "Arial Narrow", system-ui, sans-serif;
    --space: 1rem;
    --radius: 10px;
    --max-width: 1200px;
    --header-pad-inline: clamp(1rem, 4vw, 2.5rem);
    --layout-pad-inline: 5%;
    --header-gap-after-foundation: clamp(2rem, 4.5vw, 3.75rem);
    --promo-marquee-height: 3.35rem;
    --header-fixed-offset: var(
        --header-measured,
        calc(env(safe-area-inset-top, 0px) + 5.85rem + var(--promo-marquee-height))
    );
}

body.promo-marquee--inactive {
    --promo-marquee-height: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 100%;
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-fixed-offset));
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-fixed-offset);
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   2. UTILIDADES
═══════════════════════════════════════════════════════════════ */

.container {
    width: min(100% - 2 * var(--space), var(--max-width));
    margin-inline: auto;
}

/* ── Visually hidden (accesibilidad) ───────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   3. ENCABEZADO DEL SITIO
═══════════════════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--header-bg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.header-bar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── 3a. Barra promo (marquee) ──────────────────────────────── */

.promo-marquee-bar {
    --promo-marquee-rainbow: linear-gradient(
        90deg,
        #e85d2c 0%,
        #f5a623 17%,
        #f5e23d 34%,
        #3ecf6b 51%,
        #2ec4b6 68%,
        #3b82f6 100%
    );
    width: 100%;
    min-height: var(--promo-marquee-height);
    background-image: var(--promo-marquee-rainbow);
    overflow: hidden;
}

.promo-marquee-bar__viewport {
    overflow: hidden;
    width: 100%;
    min-height: var(--promo-marquee-height);
    display: flex;
    align-items: center;
}

.promo-marquee-bar__track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    align-items: center;
    animation: promo-marquee-scroll 32s linear infinite;
}

.promo-marquee-bar__text {
    flex-shrink: 0;
    padding-block: 0.55rem;
    padding-inline: clamp(2rem, 8vw, 4rem);
    color: #0a2f6b;
    font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .promo-marquee-bar__track {
        animation: none;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        transform: none;
    }

    .promo-marquee-bar__text:last-of-type {
        display: none;
    }

    .promo-marquee-bar__text {
        white-space: normal;
        text-align: center;
        text-wrap: balance;
        padding-inline: var(--layout-pad-inline);
    }
}

/* ── 3b. Logos y barra de cabecera ──────────────────────────── */

.header-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    width: 100%;
    min-height: 4.25rem;
    padding-left: var(--layout-pad-inline);
    padding-right: var(--layout-pad-inline);
    padding-top: .7%;
    padding-bottom: .7%;
    flex-wrap: wrap;
}

.header-brands {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.brand-foundation {
    display: flex;
    align-items: center;
    line-height: 0;
    min-width: 0;
    margin-right: var(--header-gap-after-foundation);
    text-decoration: none;
    color: inherit;
}

.brand-foundation:hover .brand-foundation-img {
    opacity: 0.92;
}

.brand-foundation-img {
    display: block;
    width: auto;
    max-width: min(100%, 22rem);
    height: clamp(2.5rem, 6vw, 4.5rem);
    object-fit: contain;
    object-position: left center;
}

.header-divider {
    width: 1px;
    align-self: stretch;
    min-height: 3.5rem;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

.brand-logo-img {
    width: auto;
    height: clamp(3rem, 6.5vw, 3.75rem);
    display: block;
}

.brand-logo-link--color-hover .brand-logo-img {
    filter: grayscale(1) brightness(1.15);
    transition: filter 0.28s ease;
}

.brand-logo-link--color-hover:hover .brand-logo-img,
.brand-logo-link--color-hover:focus-visible .brand-logo-img {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo-link--color-hover .brand-logo-img {
        transition: none;
    }
}

/* ── 3c. Botón de menú (hamburger) ─────────────────────────── */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--header-nav);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.nav-toggle__icon {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1.05rem;
}

.nav-toggle__bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle__bar:nth-child(1) {
    top: 0;
}

.nav-toggle__bar:nth-child(2) {
    top: 50%;
    margin-top: -1px;
}

.nav-toggle__bar:nth-child(3) {
    bottom: 0;
}

.site-header--menu-open .nav-toggle__bar:nth-child(1) {
    top: 50%;
    margin-top: -1px;
    transform: rotate(45deg);
}

.site-header--menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.site-header--menu-open .nav-toggle__bar:nth-child(3) {
    bottom: auto;
    top: 50%;
    margin-top: -1px;
    transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__bar {
        transition: none;
    }
}

/* ── 3d. Navegación principal ───────────────────────────────── */

.nav-backdrop {
    display: none;
}

.main-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.main-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem 1.75rem;
}

.main-nav__list--primary {
    justify-content: flex-start;
}

.main-nav__list--utilities {
    justify-content: flex-end;
    gap: 0.65rem 1rem;
    flex-shrink: 0;
}

@media (min-width: 56.01rem) {
    .main-nav__mobile-head {
        display: none;
    }

    .main-nav__scroll {
        display: contents;
    }
}

.main-nav__list--primary > li > a,
.main-nav__list--primary .nav-dropdown__trigger {
    color: var(--header-nav);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.main-nav__list--primary > li > a:hover:not(.is-active),
.main-nav__list--primary .nav-dropdown__trigger:hover,
.main-nav__list--primary .nav-dropdown__trigger:focus-visible {
    opacity: 0.88;
}

.main-nav__list--primary > li > a.is-active {
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 0.35em;
    text-decoration-thickness: 2px;
}

.main-nav__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.15rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--header-bg);
    text-decoration: none;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav__account:hover,
.main-nav__account:focus-visible {
    background: var(--header-bg);
    color: #ffffff;
    border-color: #ffffff;
    opacity: 1;
}

.main-nav__account.is-active {
    background: var(--header-bg);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.main-nav__account:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.main-nav__cart {
    display: flex;
    align-items: center;
}

.main-nav__cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0;
    color: var(--header-nav);
    text-decoration: none;
    line-height: 0;
    border-radius: 50%;
}

/* Círculo de icono compartido: carrito y búsqueda */
.main-nav__cart-icon-wrap,
.main-nav__search-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #ffffff;
    color: var(--header-bg);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.main-nav__cart-icon {
    display: block;
}

.main-nav__cart-link:hover .main-nav__cart-icon-wrap,
.main-nav__cart-link:focus-visible .main-nav__cart-icon-wrap {
    background: #f2f3f7;
    border-color: #ffffff;
}

.main-nav__cart-link:focus-visible {
    outline: none;
}

.main-nav__cart-link:focus-visible .main-nav__cart-icon-wrap {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.main-nav__cart-text {
    display: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--header-nav);
}

.main-nav__search {
    display: flex;
    align-items: center;
}

.main-nav__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--header-nav);
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    font: inherit;
}

.main-nav__search-icon {
    display: block;
}

.main-nav__search-btn:hover .main-nav__search-icon-wrap,
.main-nav__search-btn:focus-visible .main-nav__search-icon-wrap {
    background: #f2f3f7;
    border-color: #ffffff;
}

.main-nav__search-btn:focus-visible {
    outline: none;
}

.main-nav__search-btn:focus-visible .main-nav__search-icon-wrap {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.main-nav__search-text {
    display: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--header-nav);
}

/* ── 3e. Modal de búsqueda ──────────────────────────────────── */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: env(safe-area-inset-top, 0) var(--layout-pad-inline) env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
    background: rgba(21, 23, 62, 0.92);
    backdrop-filter: blur(2px);
}

.search-modal.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-modal__close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem);
    right: calc(var(--layout-pad-inline) + env(safe-area-inset-right, 0px));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.search-modal__close:hover,
.search-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.85);
}

.search-modal__close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.search-modal__close-icon {
    display: block;
}

.search-modal__panel {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    width: 100%;
    max-width: 40rem;
    max-height: min(
        calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 5rem),
        calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 5rem)
    );
    box-sizing: border-box;
    overflow-y: auto;
}

.search-modal__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
    align-items: center;
}

.search-modal__title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    width: 100%;
}

.search-modal__subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    width: 100%;
}

.search-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    align-items: center;
}

.search-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--header-bg);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
}

.search-modal__input::placeholder {
    color: rgba(21, 23, 62, 0.45);
}

.search-modal__input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-color: transparent;
}

.search-modal__submit {
    align-self: center;
    margin: 0;
    padding: 0.6rem 1.35rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--header-bg);
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-modal__submit:hover,
.search-modal__submit:focus-visible {
    background: rgba(255, 255, 255, 0.88);
}

.search-modal__submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .search-modal {
        backdrop-filter: none;
    }
}

/* ── 3f. Dropdown de navegación ─────────────────────────────── */

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: var(--header-nav);
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown__trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.85;
    margin-top: 0.15em;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
    opacity: 0.88;
}

.nav-dropdown--active .nav-dropdown__trigger {
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 0.35em;
    text-decoration-thickness: 2px;
}

.nav-dropdown__panel {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 12.5rem;
    background: #1c1f45;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

.nav-dropdown__panel li {
    margin: 0;
}

.nav-dropdown__panel a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--header-nav);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.nav-dropdown__panel a.is-active {
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 0.35em;
    text-decoration-thickness: 2px;
}

.nav-dropdown__panel a:hover,
.nav-dropdown__panel a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

@media (min-width: 56.01rem) {
    .nav-dropdown__panel {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.25rem);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    /* Puente invisible para mantener :hover al mover el cursor hacia el submenú */
    .nav-dropdown__panel::before {
        content: "";
        position: absolute;
        top: -0.35rem;
        left: 0;
        right: 0;
        height: 0.35rem;
    }

    .nav-dropdown:hover .nav-dropdown__panel,
    .nav-dropdown:focus-within .nav-dropdown__panel,
    .nav-dropdown.nav-dropdown--open .nav-dropdown__panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-dropdown__panel {
        transition: none;
    }
}

/* ── 3g. Navegación móvil (drawer) ─────────────────────────── */

@media (max-width: 56rem) {
    .header-bar__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        min-height: 4.15rem;
    }

    .header-brands {
        flex: 1 1 auto;
        min-width: 0;
    }

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

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 998;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.nav-menu-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header--menu-open {
        box-shadow: none;
    }

    .site-header--menu-open .header-bar {
        border-bottom-color: transparent;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        background: var(--header-bg);
        border: none;
        box-shadow: none;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .site-header--menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav__mobile-head {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1rem;
        padding: calc(env(safe-area-inset-top, 0px) + 0.35rem) var(--layout-pad-inline) 0.7rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav__mobile-brands {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.65rem 0.85rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .main-nav__mobile-brands .brand-foundation {
        margin-right: clamp(0.5rem, 2vw, 1.25rem);
    }

    .main-nav__mobile-brands .brand-foundation-img {
        max-height: clamp(2rem, 5vw, 3.35rem);
    }

    .main-nav__mobile-brands .brand-logo-img {
        height: clamp(2.2rem, 5vw, 3.15rem);
    }

    .main-nav__mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .main-nav__mobile-close:hover,
    .main-nav__mobile-close:focus-visible {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.85);
    }

    .main-nav__mobile-close:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    .main-nav__mobile-close-icon {
        display: block;
    }

    .main-nav__scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem var(--layout-pad-inline) 1.25rem;
        box-sizing: border-box;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.15rem 0;
        width: 100%;
    }

    .main-nav__list--utilities {
        margin-top: 0.5rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        gap: 0.65rem 0;
    }

    .main-nav__list > li {
        width: 100%;
    }

    .main-nav__list--primary > li > a {
        display: block;
        padding: 0.65rem 0;
        white-space: normal;
        text-align: left;
    }

    .main-nav__list--primary .nav-dropdown__trigger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0.65rem 0;
        white-space: normal;
        text-align: left;
    }

    .main-nav__list--primary .nav-dropdown__trigger::after {
        margin-top: 0;
        margin-left: 0.4rem;
        flex-shrink: 0;
        align-self: center;
    }

    .main-nav__account {
        width: 100%;
        padding: 0.65rem 1.15rem;
        box-sizing: border-box;
    }

    .main-nav__search-icon-wrap {
        display: none;
    }

    .main-nav__search-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1.15rem;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.2;
        color: var(--header-bg);
        background: #ffffff;
        border: 1px solid #ffffff;
        border-radius: var(--radius);
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .main-nav__search-btn:hover,
    .main-nav__search-btn:focus-visible {
        background: var(--header-bg);
        color: #ffffff;
        border-color: #ffffff;
    }

    .main-nav__search-btn:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    .main-nav__search-btn:focus-visible .main-nav__search-icon-wrap {
        outline: none;
    }

    .main-nav__search-text {
        display: block;
        color: inherit;
        font: inherit;
        font-weight: inherit;
        line-height: inherit;
    }

    .main-nav__cart-icon-wrap {
        display: none;
    }

    .main-nav__cart-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1.15rem;
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.2;
        color: var(--header-bg);
        text-decoration: none;
        white-space: normal;
        background: #ffffff;
        border: 1px solid #ffffff;
        border-radius: var(--radius);
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .main-nav__cart-link:hover,
    .main-nav__cart-link:focus-visible {
        background: var(--header-bg);
        color: #ffffff;
        border-color: #ffffff;
        opacity: 1;
    }

    .main-nav__cart-link:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    .main-nav__cart-link:focus-visible .main-nav__cart-icon-wrap {
        outline: none;
    }

    .main-nav__cart-text {
        display: block;
        color: inherit;
        font: inherit;
        font-weight: inherit;
        line-height: inherit;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown__panel {
        display: none;
        width: 100%;
        margin-top: 0.35rem;
        margin-bottom: 0.35rem;
        padding: 0.35rem 0;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        border-radius: var(--radius);
    }

    .nav-dropdown__panel a {
        padding: 0.5rem 0.85rem;
    }

    .nav-dropdown.nav-dropdown--open .nav-dropdown__panel {
        display: block;
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

body.search-modal-open {
    overflow: hidden;
}

.site-main {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   4. HOMEPAGE
═══════════════════════════════════════════════════════════════ */

/* ── 4a. Hero home + slider de cursos ──────────────────────── */

.home-hero {
    --hh-green: #58a45c;
    --hh-yellow: #f1bc42;
    --hh-red: #ae231a;
    --hh-blue: #5085eb;
    --hh-navy: #0a2438;
    --hh-gray: #878787;
    --hh-white: #ffffff;
    --hh-radius: 10px;
    --hh-gap: clamp(0.65rem, 2vw, 0.85rem);
    padding: var(--hh-gap) var(--layout-pad-inline) clamp(1.75rem, 4vw, 2.5rem);
    background: var(--hh-white);
    color: var(--hh-navy);
}

.home-hero__shell {
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    margin-top: 40px;
}

body.promo-marquee--inactive .home-hero__shell {
    margin-top: 0;
}

.home-hero__banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.95rem, 2.7vw, 1.35rem) clamp(1rem, 2.2vw, 1.5rem);
    background: var(--hh-green);
    color: var(--hh-white);
    border-radius: var(--hh-radius);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: var(--hh-gap);
}

.home-hero__banner-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.55vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.home-hero__banner-subtitle {
    margin: 0 auto;
    font-size: clamp(0.875rem, 1.9vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.96;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hh-gap);
    align-items: stretch;
    justify-items: center;
}

.home-hero__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 100%;
}

/* Home: slider 90% ancho, separación del header y de la banda de colores */
body.home .home-hero--full-bleed {
    --hh-slider-gap: clamp(0.65rem, 1.5vw, 1rem);
    padding: var(--hh-slider-gap) 0;
    margin-top: 0;
    background: var(--hh-white);
}

.home-hero--full-bleed .home-hero__shell {
    margin-top: 0;
}

.home-hero--full-bleed .home-hero__grid {
    gap: 0;
}

.home-hero--full-bleed .home-hero__main {
    width: 90%;
    max-width: 90%;
    margin-inline: auto;
}

.home-hero--full-bleed .course-slider {
    position: relative;
    border-radius: var(--hh-radius);
    width: 100%;
    height: 0;
    min-height: 0;
    padding-bottom: 29.166667%; /* 350 / 1200 */
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.home-hero--full-bleed .course-slider__viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.home-hero--full-bleed .course-slider__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.home-hero--full-bleed .course-slider__bar {
    border-radius: 0 0 var(--hh-radius) var(--hh-radius);
    padding: clamp(0.65rem, 2.5vw, 1rem) clamp(1rem, 2.5vw, 1.35rem) clamp(0.6rem, 1.8vw, 0.85rem);
}

body.home .home-programs > .home-programs__banda:first-child {
    margin-top: clamp(0.65rem, 1.5vw, 1rem);
}

.course-slider {
    position: relative;
    border-radius: var(--hh-radius);
    overflow: hidden;
    min-height: 0;
    background: var(--hh-gray);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.course-slider__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.course-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.course-slider__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.course-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .course-slider__slide {
        transition: none;
    }
}

.course-slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.course-slider__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: clamp(2rem, 10vw, 3.75rem) clamp(1rem, 2.5vw, 1.35rem) clamp(0.75rem, 2.2vw, 1rem);
    border-radius: 0 0 var(--hh-radius) var(--hh-radius);
    box-sizing: border-box;
    isolation: isolate;
}

.course-slider__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(10, 36, 56, 0.92) 0%,
        rgba(10, 36, 56, 0.55) 42%,
        rgba(10, 36, 56, 0) 100%
    );
}

.course-slider__copy {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.course-slider__title {
    margin: 0;
    font-size: clamp(0.8125rem, 1.65vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: left;
    color: var(--hh-white);
}

.course-slider__text {
    margin: 0;
    font-size: clamp(0.75rem, 1.4vw, 0.875rem);
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    max-width: 42rem;
}

.course-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.45rem 1rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--hh-white);
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.course-slider__btn:hover,
.course-slider__btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--hh-white);
}

.course-slider__btn:focus-visible {
    outline: 2px solid var(--hh-white);
    outline-offset: 2px;
}

.course-slider__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--hh-white);
    color: var(--hh-navy);
}

.course-slider__btn-icon svg {
    display: block;
    margin-left: 1px;
}

.course-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    translate: 0 -50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.course-slider__arrow:hover,
.course-slider__arrow:focus-visible {
    background: #1a1a1a;
}

.course-slider__arrow:focus-visible {
    outline: 2px solid var(--hh-white);
    outline-offset: 2px;
}

.course-slider__arrow--prev {
    left: 0;
}

.course-slider__arrow--next {
    right: 0;
}

.home-hero__aside {
    display: block;
    min-width: 0;
}

.home-hero__brands {
    position: absolute;
    top: 50%;
    right: clamp(0.65rem, 1.8vw, 1.3rem);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.home-hero__brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.9rem, 9.5vw, 5.8rem);
    height: clamp(3.9rem, 9.5vw, 5.8rem);
    line-height: 0;
    text-decoration: none;
    border-radius: 50%;
    background: #1f2a65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-hero__brand-link:hover,
.home-hero__brand-link:focus-visible {
    opacity: 0.9;
    transform: scale(1.02);
}

.home-hero__brand-link:focus-visible {
    outline: 2px solid var(--hh-navy);
    outline-offset: 4px;
    border-radius: 4px;
}

.home-hero__brand-img {
    display: block;
    width: clamp(2.4rem, 6vw, 3.55rem);
    height: clamp(1.85rem, 4.5vw, 2.55rem);
    max-width: 80%;
    object-fit: contain;
    filter: none;
}

.home-hero__brand-img--iireda {
    width: clamp(2.35rem, 5.7vw, 3.35rem);
    height: clamp(1.7rem, 4.25vw, 2.35rem);
}

.home-hero__cta-box {
    position: relative;
    min-height: clamp(400px, 52vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.35rem, 4vw, 2rem);
    background: var(--hh-blue);
    border-radius: var(--hh-radius);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.home-hero__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.15rem, 3vw, 1.5rem);
    width: 100%;
    max-width: 20rem;
    text-align: center;
}

.home-hero__cta-quote {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 2.85rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hh-white);
}

.home-hero__cta-line {
    display: block;
}

.home-hero__cta-em {
    text-decoration: none;
}

.home-hero__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 1rem 0.55rem 1.15rem;
    font-family: inherit;
    font-size: clamp(0.7rem, 1.65vw, 0.8125rem);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    color: #0a0a0a;
    background: var(--hh-white);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    max-width: 100%;
}

.home-hero__cta-btn:hover,
.home-hero__cta-btn:focus-visible {
    background: #f8f8f8;
    transform: translateY(-1px);
}

.home-hero__cta-btn:focus-visible {
    outline: 2px solid var(--hh-navy);
    outline-offset: 2px;
}

.home-hero__cta-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: #0a0a0a;
    color: var(--hh-white);
}

.home-hero__cta-btn-icon svg {
    display: block;
    margin-left: 1px;
}

@media (max-width: 52rem) {
    .home-hero__banner {
        justify-content: center;
        padding-top: clamp(0.95rem, 2.7vw, 1.35rem);
        padding-bottom: clamp(4.8rem, 14vw, 5.6rem);
    }

    .home-hero__brands {
        top: auto;
        right: 50%;
        bottom: 0.6rem;
        transform: translateX(50%);
    }

    .home-hero__brands {
        gap: 0.7rem;
    }

    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__aside {
        display: block;
    }

    .home-hero__cta-box {
        min-height: clamp(260px, 45vw, 360px);
    }
}

@media (max-width: 36rem) {
    .home-hero__cta-box {
        min-height: 240px;
    }

    .course-slider__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .course-slider__btn {
        align-self: flex-end;
    }
}

/* ── Helpers heredados (hero, lead, btn) ───────────────────── */

.hero {
    padding-block: 3.5rem;
    background: #ffffff;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
}

.lead {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    color: var(--color-muted);
    max-width: 36ch;
}

.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--color-accent);
    color: #0a0e12;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.btn:hover {
    background: var(--color-accent-hover);
}

/* ── 4b. Franja de oferta ───────────────────────────────────── */

.home-offer {
    padding: 0;
    background: #ffffff;
}

.home-offer__shell {
    width: 100%;
    max-width: 70rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4.25rem) var(--layout-pad-inline) clamp(2.75rem, 6.5vw, 4.5rem);
    text-align: center;
}

.home-offer__title {
    margin: 0 0 clamp(1.15rem, 3vw, 1.5rem);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.6vw, 3.55rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0a2438;
}

.home-offer__text {
    margin: 0 0 1.15rem;
    font-size: clamp(1.1rem, 1.25vw, 1.35rem);
    font-weight: 400;
    line-height: 1.65;
    color: #2c3238;
}

.home-offer__text strong {
    font-weight: 700;
    color: #0a2438;
}

.home-offer__text--closing {
    margin-bottom: 0;
    font-size: 0.9875rem;
    color: #3d454d;
}

/* ── 4c. Programas + filtros ────────────────────────────────── */

.home-programs {
    background: #eceef2;
}

/* Franja decorativa de colores: compartida por secciones home y footer */
.home-programs__banda,
.home-offer__banda,
.footer-banda {
    line-height: 0;
    overflow: hidden;
}

.home-programs__banda img,
.home-offer__banda img,
.footer-banda img {
    display: block;
    width: 100%;
    height: 6px;
    object-fit: cover;
    object-position: center;
}

.home-programs__inner {
    width: 100%;
    max-width: 85%;
    margin-inline: auto;
    padding: clamp(2.25rem, 5vw, 3.5rem) var(--layout-pad-inline) clamp(2.5rem, 6vw, 4rem);
    text-align: center;
}

.home-programs__title {
    margin: 0 0 clamp(1.35rem, 3.5vw, 2rem);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 3.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0a2438;
}

.programs-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 0.65rem 0.75rem;
    width: 100%;
    max-width: 38rem;
    margin-inline: auto;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

@media (max-width: 30rem) {
    .programs-filters {
        grid-template-columns: 1fr;
        max-width: 16rem;
    }
}

.programs-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid transparent;
    border-radius: 9999px;
    background: #15173e;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.programs-filter-btn[data-program-filter="cideni"] {
    background: #24b7ac;
}

.programs-filter-btn[data-program-filter="iireda"] {
    background: #1a6da8;
}

.programs-filter-btn:hover:not([aria-pressed="true"]):not(.is-active) {
    border-color: rgba(255, 255, 255, 0.5);
}

.programs-filter-btn:focus-visible {
    outline: 2px solid #3d9cf5;
    outline-offset: 3px;
}

.programs-filter-btn--logo {
    padding-inline: 0.5rem;
}

.programs-filter-btn__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(2rem, 6.5vw, 2.85rem);
    object-fit: contain;
}

/* Filtro activo: borde blanco + sombra (visible sobre el fondo gris de la sección) */
.programs-filter-btn[aria-pressed="true"],
.programs-filter-btn.is-active {
    position: relative;
    z-index: 1;
    background: #15173e;
    border-color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 3px rgba(255, 255, 255, 0.55),
        0 4px 16px rgba(21, 23, 62, 0.4);
}

.programs-filter-btn[aria-pressed="true"]:hover,
.programs-filter-btn.is-active:hover {
    border-color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 0 3px rgba(255, 255, 255, 0.65),
        0 5px 18px rgba(21, 23, 62, 0.45);
}

.programs-grid {
    --pgap: clamp(1rem, 2.5vw, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pgap);
    text-align: left;
}

.programs-grid > [data-program-card] {
    flex: 0 0 calc(25% - var(--pgap) * 0.75);
    min-width: 17rem;
}

.programs-grid:empty {
    min-height: 0;
}

.programs-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.programs-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        gap 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(21, 23, 62, 0.25);
}

.programs-cta__btn:hover,
.programs-cta__btn:focus-visible {
    background: #3d9cf5;
    gap: 0.75rem;
    box-shadow: 0 6px 22px rgba(61, 156, 245, 0.35);
}

.programs-cta__btn:focus-visible {
    outline: 2px solid #3d9cf5;
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   5. TARJETA DE PROGRAMA (program-card)
═══════════════════════════════════════════════════════════════ */

.program-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 1px 3px rgba(10, 36, 56, 0.06),
        0 4px 16px rgba(10, 36, 56, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition:
        transform 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(10, 36, 56, 0.08),
        0 16px 40px rgba(10, 36, 56, 0.16);
}

/* ── Media ─────────────────────────────────────────────────────── */

.program-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d0d7e2;
}

.program-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card:hover .program-card__img {
    transform: scale(1.05);
}

/* Image top tags (brand + access) */
.program-card__img-tags {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    z-index: 2;
}

/* ── Countdown overlay ─────────────────────────────────────────── */

.program-card__countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 7, 22, 0.88) 0%, rgba(5, 7, 22, 0.3) 70%, transparent 100%);
    padding: 2rem 0.85rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.program-card__countdown-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
}

.program-card__countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    color: #ffffff;
}

.program-card__countdown-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.08rem;
}

.program-card__countdown-unit b {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    min-width: 1.75ch;
    text-align: center;
    display: inline-block;
}

.program-card__countdown-unit small {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.program-card__countdown-sep {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.6;
    margin: 0 0.08rem;
    line-height: 1;
    align-self: flex-start;
    padding-top: 0.05rem;
}

/* ── Tags (shared base) ────────────────────────────────────────── */

.program-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

/* Brand badge — bottom-right corner of the media */
.program-card__brand-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    background: #15173e;
    border-radius: 10px 0 0 0;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card__brand-badge--cideni {
    background: #24b7ac;
}

.program-card__brand-badge--iireda {
    background: #1a6da8;
}

.program-card__brand-badge-logo {
    display: block;
    height: 2rem;
    width: auto;
    object-fit: contain;
}

/* Access tags */
.program-card__tag--public {
    background: rgba(232, 245, 233, 0.95);
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.program-card__tag--exclusive {
    background: rgba(255, 248, 225, 0.95);
    color: #bf360c;
    border: 1px solid #ffcc80;
}

/* Category tags */
.program-card__tag--category {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* Modality tags */
.program-card__tag--virtual {
    background: #ede7f6;
    color: #311b92;
    border: 1px solid #b39ddb;
}

.program-card__tag--presencial {
    background: #fce4ec;
    color: #880e4f;
    border: 1px solid #f48fb1;
}

.program-card__tag--hibrida {
    background: #e0f2f1;
    color: #004d40;
    border: 1px solid #80cbc4;
}

/* ── Card body ─────────────────────────────────────────────────── */

.program-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.program-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* ── Title & description ───────────────────────────────────────── */

.program-card__title {
    margin: 0;
    font-size: 0.935rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0a2438;
}

.program-card__desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Stars rating ──────────────────────────────────────────────── */

.program-card__rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.program-card__stars {
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.program-card__stars::before {
    content: '★★★★★';
    color: #d1d5db;
}

.program-card__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.program-card__stars-fill::before {
    content: '★★★★★';
    color: #f59e0b;
}

.program-card__rating-value {
    font-size: 0.8rem;
    font-weight: 800;
    color: #92400e;
}

.program-card__rating-count {
    font-size: 0.73rem;
    color: #6b7280;
}

/* ── Meta (date, etc.) ─────────────────────────────────────────── */

.program-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.program-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.program-card__meta-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Price row ─────────────────────────────────────────────────── */

.program-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.program-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.program-card__price-current {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a2438;
    line-height: 1;
}

.program-card__price-original {
    font-size: 0.82rem;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Discount badge (% off) */
.program-card__discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #fee2e2;
    color: #b91c1c;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Text badges (Bestseller, Nuevo…) */
.program-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.program-card__badge--bestseller {
    background: #ede9fe;
    color: #4c1d95;
    border: 1px solid #c4b5fd;
}

.program-card__badge--new {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* ── Action buttons ────────────────────────────────────────────── */

.program-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.program-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
    line-height: 1.2;
}

.program-card__btn:active {
    transform: scale(0.97);
}

.program-card__btn--outline {
    background: transparent;
    color: #15173e;
    border-color: #15173e;
}

.program-card__btn--outline:hover,
.program-card__btn--outline:focus-visible {
    background: #15173e;
    color: #ffffff;
}

.program-card__btn--primary {
    background: #15173e;
    color: #ffffff;
    border-color: #15173e;
}

.program-card__btn--primary:hover,
.program-card__btn--primary:focus-visible {
    background: #f1bc42;
    border-color: #f1bc42;
    color: #0a2438;
}

.program-card__btn:focus-visible {
    outline: 2px solid #3d9cf5;
    outline-offset: 2px;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 30rem) {
    .program-card__actions {
        grid-template-columns: 1fr;
    }
}

/* ── 4d. Trayectoria (home-legacy) ─────────────────────────── */

.home-legacy {
    position: relative;
    background-image: url('../images/back-iireda-books-C.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.home-legacy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 56, 0.18);
    pointer-events: none;
}

.home-legacy__shell {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--layout-pad-inline);
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.85rem);
    max-width: 90%;
    margin-inline: auto;
    box-sizing: border-box;
}

.home-legacy__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: stretch;
}

/* Left panel */
.home-legacy__left {
    background: #f1bc42;
    border-radius: 14px;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.home-legacy__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.8vw, 4.25rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0a2438;
}

.home-legacy__text {
    margin: 0;
    font-size: clamp(0.875rem, 1.65vw, 1rem);
    line-height: 1.7;
    color: #0a2438;
    font-weight: 400;
    opacity: 0.9;
}

/* Right panel — past course cards */
.home-legacy__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.legacy-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 2px 6px rgba(10, 36, 56, 0.1),
        0 8px 24px rgba(10, 36, 56, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Full-card invisible overlay link (home legacy section) */
.legacy-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Title links inside legacy cards */
.legacy-card__title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.legacy-card__title a:hover { text-decoration: underline; }

.legacy-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 10px rgba(10, 36, 56, 0.12),
        0 16px 36px rgba(10, 36, 56, 0.22);
}

.legacy-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d0d7e2;
    flex-shrink: 0;
}

.legacy-card__cover--placeholder {
    background: var(--header-bg);
}

.legacy-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.legacy-card:hover .legacy-card__img {
    transform: scale(1.05);
}

.legacy-card__body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    color: #374151;
}

.legacy-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legacy-card__year,
.legacy-card__country {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.02em;
}

.legacy-card__year svg,
.legacy-card__country svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.legacy-card__title {
    margin: 0;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 700;
    line-height: 1.35;
    min-height: calc(4 * 1lh);
    color: #0a2438;
}

.legacy-card__excerpt {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #4b5563;
}

.legacy-card__excerpt a {
    color: #1a6bb8;
    font-weight: 600;
}

.legacy-card__excerpt a:hover {
    color: #3d9cf5;
}

/* CTA button */
.home-legacy__cta-wrap {
    display: flex;
    justify-content: center;
}

.home-legacy__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(21, 23, 62, 0.35);
}

.home-legacy__cta-btn:hover,
.home-legacy__cta-btn:focus-visible {
    background: #3d9cf5;
    gap: 0.9rem;
    box-shadow: 0 6px 24px rgba(61, 156, 245, 0.4);
}

.home-legacy__cta-btn:focus-visible {
    outline: 2px solid #3d9cf5;
    outline-offset: 3px;
}

@media (max-width: 62rem) {
    .home-legacy__grid {
        grid-template-columns: 1fr;
    }

    .home-legacy__right {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 42rem) {
    .home-legacy__right {
        grid-template-columns: 1fr;
    }

    .home-legacy__shell {
        max-width: 100%;
    }
}

/* ── Bloque de contenido genérico (heredado) ───────────────── */

.content-block {
    padding-block: 2.5rem;
}

.content-block h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.content-block p {
    margin: 0;
    color: var(--color-muted);
}

.content-block code {
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--color-surface);
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════
   6. PIE DE PÁGINA
═══════════════════════════════════════════════════════════════ */

.site-footer {
    margin-top: auto;
    background: var(--header-bg);
    color: #ffffff;
}

.footer-main {
    background-image: url("../images/World-map-Cideni.svg");
    background-position: top right;
    background-repeat: no-repeat;
    background-size: contain;
}

.footer-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/World-map-Cideni.svg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: min(120vw, 76rem) auto;
    opacity: 0.22;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
    padding-top: clamp(3.25rem, 9vw, 5.5rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
    padding-left: var(--layout-pad-inline);
    padding-right: var(--layout-pad-inline);
}

.footer-grid {
    display: grid;
    grid-template-columns: 37% 26% 37%;
    align-items: start;
    width: 100%;
    padding: 20px 0px;
}

.footer-col {
    min-width: 0;
}

.footer-col--left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.footer-brand:hover .footer-brand__img {
    opacity: 0.92;
}

.footer-brand__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(5.75rem, 15vw, 9rem);
    object-fit: contain;
    object-position: left center;
}

.footer-blurb {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #dedede;
}

.footer-address {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
}

.footer-address__icon {
    flex-shrink: 0;
    margin-top: 0.15em;
    opacity: 0.9;
}

.footer-rule--below-text {
    margin: 0.35rem 0 0;
    width: 100%;
}

.footer-col--right .footer-rule--below-text {
    margin-top: 0.85rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: clamp(3.25rem, 8vw, 5.5rem);
    padding-top: 0;
    padding-bottom: 0;
}

.footer-privacy {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-privacy:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-col--right {
    grid-column: 3;
    min-width: 0;
    padding: 0.5rem 0;
}

.footer-col--right__inner {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.footer-org {
    display: flex;
    flex-direction: column;
}

.footer-org__main {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    align-items: center;
    column-gap: clamp(0.5rem, 2vw, 1rem);
    width: 100%;
}

.footer-org__logo {
    grid-column: 1;
    justify-self: start;
    display: flex;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

.footer-org__logo img {
    width: auto;
    height: clamp(5.25rem, 12vw, 7.5rem);
    display: block;
}

.footer-org__text {
    grid-column: 2;
    margin: 0;
    max-width: 100%;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.footer-social {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.footer-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #ffffff;
    color: #15173e;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social__btn svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
    flex-shrink: 0;
}

.footer-social__btn:hover {
    background: #f2f3f7;
    border-color: #ffffff;
    color: #0a0e18;
}

.footer-social__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-rule {
    margin: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.footer-credits__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem 0.65rem;
    text-decoration: none;
    color: inherit;
}

.footer-credits__link:hover .footer-credits__text,
.footer-credits__link:focus-visible .footer-credits__text {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-credits__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-credits__text {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.footer-credits__isotype {
    display: block;
    width: auto;
    height: clamp(1rem, 2.2vw, 1.35rem);
    object-fit: contain;
}

@media (max-width: 60rem) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col--left,
    .footer-col--right {
        grid-column: 1;
    }
}

@media (max-width: 52rem) {
    .footer-col--right {
        padding-left: 0;
    }

    .footer-map {
        background-position: 92% center;
        background-size: min(140vw, 42rem) auto;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

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

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

@media (max-width: 42rem) {
    .footer-org__main {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .footer-org__logo,
    .footer-org__text,
    .footer-social {
        grid-column: 1;
    }

    .footer-social {
        justify-self: start;
    }
}


/* ═══════════════════════════════════════════════════════════════
   7. COMPONENTES COMPARTIDOS — PÁGINAS INTERIORES
═══════════════════════════════════════════════════════════════ */

/* ── 7a. Héroe de página interior (page-hero) ───────────────── */

.page-hero {
    background: #0a2438;
    padding: clamp(2rem, 5vw, 3.5rem) var(--layout-pad-inline);
}

.page-hero__shell {
    max-width: var(--max-width);
    margin-inline: auto;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0.5rem 0 0.6rem;
    line-height: 1.1;
}

.page-hero__subtitle {
    margin: 0;
    color: rgba(232, 238, 244, 0.75);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    max-width: 60ch;
    line-height: 1.6;
}

/* ── 7b. Miga de pan (page-breadcrumb) ─────────────────────── */

.page-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.page-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(232, 238, 244, 0.55);
}

.page-breadcrumb__item::after {
    content: '/';
    opacity: 0.4;
}

.page-breadcrumb__item:last-child::after {
    display: none;
}

.page-breadcrumb__link {
    color: rgba(232, 238, 244, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumb__link:hover {
    color: #ffffff;
}

.page-breadcrumb__item--current {
    color: rgba(232, 238, 244, 0.85);
}

.page-breadcrumb--light .page-breadcrumb__item,
.page-breadcrumb--light .page-breadcrumb__link {
    color: rgba(255,255,255,0.6);
}

.page-breadcrumb--light .page-breadcrumb__link:hover {
    color: #ffffff;
}

.page-breadcrumb--light .page-breadcrumb__item--current {
    color: rgba(255,255,255,0.9);
}

/* ═══════════════════════════════════════════════════════════════
   8. CATÁLOGO DE CURSOS (cursos.php)
═══════════════════════════════════════════════════════════════ */

.catalog {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
    /* Light UI: override global --color-text (#e8eef4) meant for dark header/footer */
    --color-text: #0a2438;
    --color-muted: #6b7280;
    color: #374151;
}

.catalog__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 1.75rem;
    align-items: start;
}

.catalog__sidebar {
    position: relative;
    z-index: 2;
}

.catalog-filters {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
    overflow: hidden;
    padding-bottom: 0.35rem;
}

.catalog-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem 1.1rem;
    border-bottom: 1px solid #eceef2;
}

.catalog-filters__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0;
}

.catalog-filters__clear {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d9cf5;
    font-family: var(--font-sans);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.catalog-filters__clear:hover {
    color: #0a2438;
}

.catalog-filter-group {
    border-bottom: 1px solid #eceef2;
    padding-inline: 1.4rem;
    padding-bottom: 0.9rem;
}

.catalog-filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0.4rem;
}

.catalog-filter-group__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    padding: 1rem 0 0.45rem;
}

.catalog-filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a2438;
    font-family: var(--font-sans);
    text-align: left;
    gap: 0.5rem;
    transition: color 0.15s ease;
}

.catalog-filter-group__toggle:hover {
    color: #3d9cf5;
}

.catalog-filter-group__chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.catalog-filter-group__toggle[aria-expanded="false"] .catalog-filter-group__chevron {
    transform: rotate(-90deg);
}

.catalog-filter-group__body {
    padding: 0.35rem 0 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.catalog-search-wrap {
    position: relative;
    margin: 0.35rem 0 0.15rem;
}

.catalog-filters > .account-form__submit {
    box-sizing: border-box;
    width: calc(100% - 2.8rem);
    margin: 0.85rem 1.4rem 1rem;
}

.catalog-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.83rem;
    color: #0a2438;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search-input:focus {
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61,156,245,0.15);
    background: #ffffff;
}

/* Checkbox personalizado — compartido por .catalog-checkbox y .account-checkbox */
.catalog-checkbox,
.account-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.catalog-checkbox__input,
.account-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.catalog-checkbox__box,
.account-checkbox__box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.catalog-checkbox__input:checked + .catalog-checkbox__box,
.account-checkbox__input:checked + .account-checkbox__box {
    background: #15173e;
    border-color: #15173e;
}

.catalog-checkbox__input:checked + .catalog-checkbox__box::after,
.account-checkbox__input:checked + .account-checkbox__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.catalog-checkbox__label,
.account-checkbox__label {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.4;
    user-select: none;
}

.catalog__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.catalog__toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06);
}

.catalog__count {
    margin: 0;
    font-size: 0.85rem;
    color: #374151;
    flex: 1;
}

.catalog__count strong {
    color: #0a2438;
}

.catalog__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog__sort-label {
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
}

.catalog__sort-select {
    padding: 0.4rem 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: #0a2438;
    background: #f9fafb;
    cursor: pointer;
    outline: none;
}

.catalog__sort-select:focus {
    border-color: #3d9cf5;
}

.catalog__sort-select option {
    color: #0a2438;
    background-color: #ffffff;
}

.catalog__empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10, 36, 56, 0.06), 0 4px 16px rgba(10, 36, 56, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.catalog__empty p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #374151;
}

.catalog__filters-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: #0a2438;
    cursor: pointer;
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.catalog__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.catalog__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.catalog__page-btn:hover:not(:disabled) {
    border-color: #3d9cf5;
    color: #3d9cf5;
}

.catalog__page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.catalog__page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.catalog__page-num.is-active {
    background: #15173e;
    border-color: #15173e;
    color: #ffffff;
    font-weight: 700;
}

.catalog__page-num:hover:not(.is-active) {
    border-color: #3d9cf5;
    color: #3d9cf5;
}

.catalog__page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (max-width: 62rem) {
    .catalog__shell {
        grid-template-columns: 1fr;
    }

    .catalog__sidebar {
        position: static;
        display: none;
    }

    .catalog__sidebar.is-open {
        display: block;
    }

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

/* ═══════════════════════════════════════════════════════════════
   9. MI CUENTA (mi-cuenta.php)
═══════════════════════════════════════════════════════════════ */

.account-section {
    background: #f3f4f8;
    padding-block: clamp(2rem, 5vw, 3.5rem);
    /* :root --color-text is for header/hero; this block is always on light UI */
    --color-text: #0a2438;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    color: #0a2438;
}

.account-section__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--layout-pad-inline);
}

/* Una sola tarjeta (p. ej. registro desactivado): evita columna vacía a la derecha */
.account-cards:has(> .account-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.account-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(10,36,56,0.07), 0 8px 32px rgba(10,36,56,0.08);
    overflow: hidden;
}

.account-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid #eceef2;
}

.account-card__icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.account-card__icon-wrap--blue { background: #15173e; }
.account-card__icon-wrap--green { background: #58a45c; }

.account-card__title {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2438;
}

.account-card__subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.45;
}

.account-form {
    padding: 1.65rem 1.75rem 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.account-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.account-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.account-form__field--remember {
    margin-top: 0.15rem;
}

.account-form__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.account-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-form__input,
.account-form__select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: #0a2438;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.account-form__input:focus,
.account-form__select:focus {
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61,156,245,0.15);
    background: #ffffff;
}

.account-form__input-wrap {
    position: relative;
}

.account-form__input-wrap .account-form__input {
    padding-right: 2.75rem;
}

.account-form__toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    line-height: 0;
}

.account-form__toggle-pw:hover { color: #374151; }

.account-form__forgot {
    font-size: 0.78rem;
    color: #3d9cf5;
    text-decoration: none;
    font-weight: 600;
}

.account-form__forgot:hover { text-decoration: underline; }

.account-form__forgot--below {
    align-self: flex-end;
    margin-top: 0.15rem;
}

.account-form__link {
    color: #3d9cf5;
    text-decoration: none;
    font-weight: 600;
}

.account-form__link:hover { text-decoration: underline; }

.account-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
    box-shadow: 0 4px 16px rgba(21,23,62,0.25);
    width: 100%;
    margin-top: 0.35rem;
}

.account-form__submit:hover,
.account-form__submit:focus-visible {
    background: #3d9cf5;
    gap: 0.75rem;
    box-shadow: 0 6px 22px rgba(61,156,245,0.35);
}

.account-form__submit--green {
    background: #58a45c;
    box-shadow: 0 4px 16px rgba(88,164,92,0.25);
}

.account-form__submit--green:hover,
.account-form__submit--green:focus-visible {
    background: #45924a;
    box-shadow: 0 6px 22px rgba(88,164,92,0.35);
}

/* Texto secundario en formularios de cuenta: mejor contraste sobre blanco */
.account-section .account-checkbox__label {
    color: #4b5563;
}

.account-form__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.account-form__divider::before,
.account-form__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eceef2;
}

.account-social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.account-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.account-social-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Estilos de .account-checkbox consolidados en §8 (Catálogo) */

.account-card__perks {
    padding: 0 1.75rem 1.5rem;
    border-top: 1px solid #eceef2;
}

.account-card__perks-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin: 1rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-card__perks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.account-card__perks-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #374151;
}

.account-card__perks-list svg { color: #58a45c; flex-shrink: 0; }

@media (max-width: 52rem) {
    .account-cards { grid-template-columns: 1fr; }
    .account-form__row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   10. CARRITO (carrito.php)
═══════════════════════════════════════════════════════════════ */

.cart-section {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.cart-section__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.75rem;
    align-items: start;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
    min-width: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
    overflow: hidden;
}

.cart-section__shell--empty {
    grid-template-columns: 1fr;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
    gap: 0.75rem;
}

.cart-empty__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(5.5rem, 14vw, 7rem);
    height: clamp(5.5rem, 14vw, 7rem);
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: linear-gradient(155deg, #e8f4fc 0%, #eef2ff 55%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cart-empty__illu {
    display: block;
    width: 68%;
    height: auto;
}

.cart-empty__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 800;
    color: #0a2438;
    line-height: 1.25;
    max-width: 26rem;
}

.cart-empty__text {
    margin: 0;
    font-size: 0.94rem;
    color: #4b5563;
    line-height: 1.55;
    max-width: 32rem;
}

.cart-empty__actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.cart-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cart-empty__cta svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.cart-empty-suggest {
    margin-top: 1.25rem;
    background: #ffffff;
    border-radius: 14px;
    padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
}

.cart-empty-suggest__head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.cart-empty-suggest__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 800;
    color: #0a2438;
}

.cart-empty-suggest__intro {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.45;
}

.cart-empty-suggest__grid {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.cart-empty-suggest__footer {
    display: flex;
    justify-content: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 9rem 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid #eceef2;
    align-items: start;
}

.cart-item:last-child { border-bottom: none; }

.cart-item__media {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #d0d7e2;
}

.cart-item__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.cart-item__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-item__brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.cart-item__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a2438;
    line-height: 1.35;
}

.cart-item__desc {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
}

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-item__price-block { text-align: right; }

.cart-item__price-current {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a2438;
}

.cart-item__price-original {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.cart-item__remove {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
    padding: 0;
    transition: color 0.15s;
}

.cart-item__remove:hover { color: #b91c1c; }

.cart-item__see-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d9cf5;
    text-decoration: none;
}

.cart-item__see-more:hover { text-decoration: underline; }

.cart-coupon {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
}

.cart-coupon__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0 0 0.75rem;
}

.cart-coupon__form {
    display: flex;
    gap: 0.5rem;
}

.cart-coupon__input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #0a2438;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-coupon__input:focus {
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61,156,245,0.15);
    background: #ffffff;
}

.cart-coupon__btn {
    padding: 0.6rem 1.25rem;
    background: #15173e;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cart-coupon__btn:hover { background: #3d9cf5; }

.cart-continue__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #3d9cf5;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.cart-continue__link:hover {
    gap: 0.65rem;
    text-decoration: underline;
}

.cart-summary {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-fixed-offset) + 1rem);
}

.cart-summary__card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
    padding: 1.5rem;
}

.cart-summary__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0 0 1.1rem;
}

.cart-summary__lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid #eceef2;
    margin-bottom: 0.85rem;
}

.cart-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #374151;
}

.cart-summary__line--discount { color: #b91c1c; }
.cart-summary__line--coupon { color: #58a45c; }

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a2438;
    margin-bottom: 0.35rem;
}

.cart-summary__currency {
    font-size: 0.72rem;
    color: #9ca3af;
    margin: 0 0 1rem;
}

.cart-summary__checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(21,23,62,0.25);
    margin-bottom: 1rem;
}

.cart-summary__checkout-btn:hover {
    background: #3d9cf5;
    box-shadow: 0 6px 22px rgba(61,156,245,0.35);
}

.cart-summary__trust {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.cart-summary__trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #374151;
}

.cart-summary__trust-item svg { color: #58a45c; flex-shrink: 0; }

.cart-summary__payment-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #eceef2;
}

.cart-summary__pay-logo { display: inline-flex; line-height: 0; align-items: center; }

.cart-summary__pay-brand {
    display: block;
    height: 1.6rem;
    width: auto;
    max-width: 6rem;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 60rem) {
    .cart-section__shell { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 7rem 1fr; }
    .cart-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════════════════════════════
   11. CHECKOUT (checkout.php)
═══════════════════════════════════════════════════════════════ */

.checkout-steps {
    background: #ffffff;
    border-bottom: 1px solid #eceef2;
    padding: 1rem var(--layout-pad-inline);
}

.checkout-steps__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.checkout-step__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.checkout-step--done .checkout-step__dot {
    background: #58a45c;
    border-color: #58a45c;
    color: #ffffff;
}

.checkout-step--active .checkout-step__dot {
    background: #15173e;
    border-color: #15173e;
    color: #ffffff;
}

.checkout-step__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

.checkout-step--done .checkout-step__label,
.checkout-step--active .checkout-step__label { color: #0a2438; }

.checkout-steps__line {
    flex: 1;
    height: 2px;
    background: #d1d5db;
    margin-bottom: 1.25rem;
    min-width: 2rem;
}

.checkout-steps__line--done { background: #58a45c; }

.checkout-section {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.checkout-section__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.75rem;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-block {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
    overflow: hidden;
}

.checkout-block__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #eceef2;
}

.checkout-block__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #15173e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-billing-form { padding: 1.25rem 1.5rem; }

/* Normalize Woo checkout internals into iiREDA layout */
.checkout-main #customer_details,
.checkout-main #payment {
    float: none;
    width: 100%;
}

.checkout-billing-form h3 {
    display: none;
}

.checkout-billing-form .form-row {
    margin: 0 0 0.9rem;
}

.checkout-billing-form .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.checkout-billing-form .form-row-first,
.checkout-billing-form .form-row-last {
    float: none;
    width: 100%;
}

.checkout-main .woocommerce-checkout-payment {
    padding: 1rem 1.5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_methods {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    border: 0;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 0.65rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method:last-child {
    margin-bottom: 0;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method:hover {
    border-color: #cbd5e1;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method:has(> input[type="radio"]:checked) {
    border-color: #3d9cf5;
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(61, 156, 245, 0.14);
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
    font-weight: 600;
    opacity: 1;
}

.checkout-main .woocommerce-checkout-payment .wc_payment_method > input[type="radio"] {
    accent-color: #3d9cf5;
}

.checkout-main .woocommerce-checkout-payment .payment_box {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #334155;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #dde7f5;
    background: #f4f7fc;
}

.checkout-main .woocommerce-checkout-payment .payment_box::before {
    border-bottom-color: #f4f7fc;
}

.checkout-main .woocommerce-checkout-payment .payment_box p {
    color: #334155;
}

.checkout-main .woocommerce-checkout-payment .payment_box .form-row {
    margin-bottom: 0.85rem;
}

.checkout-main .woocommerce-checkout-payment .payment_box .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 600;
}

.checkout-main .woocommerce-checkout-payment .payment_box .input-text {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #111827;
}

.checkout-main .woocommerce-checkout-payment .payment_box .input-text:focus {
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61, 156, 245, 0.2);
    outline: none;
}

.checkout-main .woocommerce-checkout-payment .place-order {
    margin: 0;
    padding: 0.25rem 0 0;
}

.checkout-main .woocommerce-checkout-payment #place_order,
.checkout-main .woocommerce-checkout-payment button[name="woocommerce_checkout_place_order"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 700;
    border: 0;
    box-shadow: 0 6px 24px rgba(21,23,62,0.3);
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.checkout-main .woocommerce-checkout-payment #place_order:hover,
.checkout-main .woocommerce-checkout-payment button[name="woocommerce_checkout_place_order"]:hover {
    background: #23285f;
    box-shadow: 0 10px 28px rgba(21, 23, 62, 0.35);
    transform: translateY(-1px);
}

.checkout-main .woocommerce-checkout-payment #place_order:focus-visible,
.checkout-main .woocommerce-checkout-payment button[name="woocommerce_checkout_place_order"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 156, 245, 0.35), 0 10px 28px rgba(21, 23, 62, 0.35);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
}

.payment-method {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.payment-method:last-child { margin-bottom: 0; }

.payment-method__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method:has(.payment-method__radio:checked) {
    border-color: #3d9cf5;
}

.payment-method__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.payment-method:has(.payment-method__radio:checked) .payment-method__card {
    background: #f0f7ff;
}

.payment-method__radio-ui {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.payment-method:has(.payment-method__radio:checked) .payment-method__radio-ui {
    border-color: #3d9cf5;
}

.payment-method:has(.payment-method__radio:checked) .payment-method__radio-ui::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d9cf5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment-method__logo-wrap { flex-shrink: 0; }

.payment-method__logo {
    display: block;
    width: 100px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.payment-method__info { flex: 1; min-width: 0; }

.payment-method__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a2438;
    margin-bottom: 0.1rem;
}

.payment-method__desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.payment-method__detail {
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid #eceef2;
    background: #f9fafb;
    display: none;
}

.payment-method:has(.payment-method__radio:checked) .payment-method__detail {
    display: block;
}

.payment-method__detail-text {
    font-size: 0.82rem;
    color: #374151;
    margin: 0 0 0.65rem;
    line-height: 1.55;
}

.payment-method__card-logos {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.payment-method__installments {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #009ee3;
}

.payment-method__paypal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #6b7280;
    padding: 0.5rem 0.65rem;
    background: #fffbeb;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

.checkout-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1.5rem 1.25rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.checkout-submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.checkout-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(21,23,62,0.3);
}

.checkout-submit-btn:hover {
    background: #3d9cf5;
    box-shadow: 0 8px 28px rgba(61,156,245,0.4);
}

.checkout-submit-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

.checkout-submit-note__link { color: #3d9cf5; text-decoration: none; }
.checkout-submit-note__link:hover { text-decoration: underline; }

.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p,
.woocommerce-privacy-policy-text a {
    color: #3d9cf5;
}

.checkout-submit-wrap--summary {
    align-items: stretch;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.checkout-submit-wrap--summary .checkout-submit-note {
    text-align: left;
}

.checkout-summary__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eceef2;
}

.checkout-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-summary__item-img {
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    width: 60px;
    height: 40px;
}

.checkout-summary__item-info { flex: 1; min-width: 0; }

.checkout-summary__item-title {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0a2438;
    line-height: 1.3;
}

.checkout-summary__item-brand {
    font-size: 0.7rem;
    color: #6b7280;
    display: block;
}

.checkout-summary__item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0a2438;
    flex-shrink: 0;
}

.checkout-summary__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #3d9cf5;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.25rem;
}

.checkout-summary__back:hover { text-decoration: underline; }

.checkout-summary {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-fixed-offset) + 1rem);
}

@media (max-width: 60rem) {
    .checkout-section__shell { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

/* ═══════════════════════════════════════════════════════════════
   12. COMPRA EXITOSA (compra-exitosa.php)
═══════════════════════════════════════════════════════════════ */

.success-section {
    background: #f3f4f8;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.success-section__shell {
    max-width: 66rem;
    margin-inline: auto;
    padding-inline: var(--layout-pad-inline);
}

.success-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(10,36,56,0.1), 0 1px 4px rgba(10,36,56,0.06);
    overflow: hidden;
}

.success-card__hero {
    background: linear-gradient(135deg, #0a2438 0%, #15173e 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-card__checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #58a45c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(88,164,92,0.2);
}

.success-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

.success-card__subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0;
    max-width: 42ch;
    line-height: 1.6;
}

.success-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #0a2438;
}

.success-order {
    border: 1.5px solid #eceef2;
    border-radius: 12px;
    overflow: hidden;
}

.success-order__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #eceef2;
}

.success-order__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0;
}

.success-order__id {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    background: #eceef2;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.success-order__items { padding: 0 1.25rem; }

.success-order__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eceef2;
}

.success-order__item:last-child { border-bottom: none; }

.success-order__item-img {
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    width: 80px;
    height: 50px;
}

.success-order__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.success-order__item-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a2438;
    line-height: 1.35;
}

.success-order__item-brand,
.success-order__item-date { font-size: 0.72rem; color: #6b7280; }

.success-order__item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a2438;
    flex-shrink: 0;
}

.success-order__totals {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #eceef2;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.success-order__total-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #374151;
}

.success-order__total-line--discount { color: #b91c1c; }

.success-order__total-line--final {
    font-size: 1rem;
    font-weight: 800;
    color: #0a2438;
    padding-top: 0.4rem;
    border-top: 1.5px solid #d1d5db;
    margin-top: 0.2rem;
}

.success-next-steps__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0a2438;
    margin: 0 0 1rem;
}

.success-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-steps-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.success-steps-list__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.success-steps-list__icon--1 { background: #3d9cf5; }
.success-steps-list__icon--2 { background: #58a45c; }
.success-steps-list__icon--3 { background: #f1bc42; }

.success-steps-list__body strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0a2438;
    margin-bottom: 0.2rem;
}

.success-steps-list__body p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.success-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.success-actions__btn--primary {
    background: #15173e;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(21,23,62,0.25);
}

.success-actions__btn--primary:hover {
    background: #3d9cf5;
    box-shadow: 0 6px 22px rgba(61,156,245,0.35);
}

.success-actions__btn--outline {
    background: #ffffff;
    color: #0a2438;
    border: 2px solid #d1d5db;
}

.success-actions__btn--outline:hover {
    border-color: #0a2438;
    background: #f9fafb;
}

.success-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #eceef2;
}

.success-share__text {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.success-share__btns { display: flex; gap: 0.5rem; }

.success-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.success-share__btn:hover { opacity: 0.85; }
.success-share__btn--linkedin { background: #0a66c2; color: #ffffff; }
.success-share__btn--twitter { background: #000000; color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════
   13. FICHA DE CURSO (curso-interior.php)
═══════════════════════════════════════════════════════════════ */

/* ── 13a. Héroe del curso ───────────────────────────────────── */

.course-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(20rem, 48vw, 32rem);
    display: flex;
    align-items: center;
}

.course-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.course-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.course-hero__overlay {
    position: absolute;
    inset: 0;
    display: none;
}

/* Legacy "curso impartido" hero: make background image more visible */
.course-hero--legacy .course-hero__bg-img {
    filter: blur(1px) saturate(1.05) brightness(0.92);
}

.course-hero--legacy .course-hero__overlay {
    display: none;
}

.course-hero__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    /* Alineado con page-hero / cabecera: sin padding lateral el texto queda pegado o se corta en móvil */
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    padding-left: max(var(--layout-pad-inline), env(safe-area-inset-left, 0px));
    padding-right: max(var(--layout-pad-inline), env(safe-area-inset-right, 0px));
}

.course-hero__content {
    display: block;
    max-width: 100%;
}

.course-hero__main {
    min-width: 0;
}

/* Badges largos (p. ej. nombre de categoría): en el héroe permitimos salto de línea */
.course-hero .program-card__tag {
    white-space: normal;
    text-wrap: balance;
    min-height: 1.5rem;
    padding: 0.35rem 0.6rem;
    line-height: 1;
}

.course-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.course-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 0.75rem;
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: break-word;
}

.course-hero__desc {
    color: rgba(255,255,255,0.82);
    font-size: clamp(0.85rem, 2.2vw, 0.98rem);
    margin: 0 0 1rem;
    max-width: min(100%, 85ch);
    line-height: 1.65;
}

.course-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.course-hero__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-hero__rating-value {
    font-size: 1rem;
    font-weight: 800;
    color: #f59e0b;
}

.course-hero__rating-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

.course-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.course-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.course-hero__pdf-wrap {
    margin-top: 0.35rem;
}

.course-hero__pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.course-hero__pdf-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
}

.course-hero__pdf-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
}

body.iireda-modal-open {
    overflow: hidden;
}

.iireda-program-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.iireda-program-pdf-modal[hidden] {
    display: none;
}

.iireda-program-pdf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 56, 0.55);
    backdrop-filter: blur(4px);
}

.iireda-program-pdf-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 18px 48px rgba(10, 36, 56, 0.22);
}

.iireda-program-pdf-modal__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
}

.iireda-program-pdf-modal__close:hover {
    background: #f3f4f6;
    color: #0a2438;
}

.iireda-program-pdf-modal__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a2438;
    padding-right: 2rem;
}

.iireda-program-pdf-modal__hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.45;
}

.iireda-program-pdf-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.iireda-program-pdf-modal__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.iireda-program-pdf-modal__input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    font-size: 0.95rem;
}

.iireda-program-pdf-modal__input:focus {
    outline: none;
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61, 156, 245, 0.2);
}

.iireda-program-pdf-modal__error {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b91c1c;
}

.iireda-program-pdf-modal__submit {
    display: flex;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0a2438 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.15s, transform 0.1s;
}

.iireda-program-pdf-modal__submit-icon {
    flex-shrink: 0;
    display: block;
}

.iireda-program-pdf-modal__submit-label {
    line-height: 1.2;
}

.iireda-program-pdf-modal__submit:hover:not(:disabled) {
    opacity: 0.92;
}

.iireda-program-pdf-modal__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ── 13b. Layout, tabs y secciones de contenido ─────────────── */

.course-layout {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
    /* Fondo claro: el body usa --color-text del header (#e8eef4); sin esto el texto plano del editor hereda gris ilegible */
    --color-text: #0a2438;
    --color-muted: #6b7280;
    color: #374151;
}

.course-layout__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline-start: max(var(--layout-pad-inline), env(safe-area-inset-left, 0px));
    padding-inline-end: max(var(--layout-pad-inline), env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.75rem;
    align-items: start;
}

/* Evita que el contenido del editor (tablas, iframes) ensanche la cuadrícula y rompa el ancho en móvil */
.course-content {
    min-width: 0;
    max-width: 100%;
}

.course-content > .product {
    min-width: 0;
    max-width: 100%;
}

.course-tabs {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.course-tabs::-webkit-scrollbar { display: none; }

.course-tabs__list {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-tabs__list > li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.course-tab {
    flex: 1;
    width: 100%;
    padding: 0.85rem 0.65rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: #6b7280;
    cursor: pointer;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transition: color 0.15s, border-color 0.15s;
}

.course-tab:hover { color: #0a2438; }

.course-tab.is-active {
    color: #0a2438;
    border-bottom-color: #3d9cf5;
}

.course-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.06);
    margin-bottom: 1rem;
}

.course-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a2438;
    margin: 0 0 1.25rem;
}

.course-section__intro,
.course-section__outro {
    color: #374151;
}

.course-section__intro {
    margin: 0 0 1.25rem;
}

.course-section__outro {
    margin: 1.25rem 0 0;
}

.course-reviews {
    margin-top: 1.75rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.06);
    /* comments_template / WC review form inherit body --color-text (light on dark UI) */
    --color-text: #0a2438;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    color: #374151;
}

.course-sidebar .course-reviews {
    margin-top: 1rem;
    padding: 1.25rem;
}

.course-sidebar .course-reviews__title {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.course-sidebar .course-reviews__header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.course-sidebar .course-reviews .comment_container {
    padding: 0.85rem 0.95rem;
}

.course-reviews__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eceef2;
}

.course-reviews__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #0a2438;
    margin: 0;
    flex: 1 1 auto;
    min-width: 10rem;
}

.course-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    max-width: 26rem;
}

.course-reviews__score {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.course-reviews__summary-text {
    margin: 0;
    flex: 1 1 100%;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

.course-reviews__summary-text strong {
    color: #374151;
    font-weight: 700;
}

/* ── Reviews list (WC default markup styled to match iiREDA) ── */
.course-reviews #reviews,
.course-reviews #comments {
    margin: 0;
}

.course-reviews .woocommerce-Reviews-title {
    /* Hidden — we already render our own header above. */
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.course-reviews ol.commentlist,
.course-reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.course-reviews ol.commentlist > li,
.course-reviews .commentlist > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-reviews .comment_container {
    position: relative;
    padding: 1.05rem 1.2rem;
    background: #f9fafb;
    border: 1px solid #eceef2;
    border-radius: 12px;
    box-shadow: 0 1px 1px rgba(10, 36, 56, 0.03);
}

/* Hide WooCommerce avatar — we keep the layout text-only */
.course-reviews .comment_container > .avatar,
.course-reviews .comment_container img.avatar,
.course-reviews .comment_container > img,
.course-reviews #reviews #comments ol.commentlist li img.avatar {
    display: none !important;
}

/* Override WooCommerce default that offsets/borders .comment-text */
.course-reviews .comment-text,
.course-reviews #reviews #comments ol.commentlist li .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    min-width: 0;
}

.course-reviews #reviews #comments ol.commentlist li .comment-text p {
    margin: 0;
}

.course-reviews .comment-text > p.meta,
.course-reviews #reviews #comments ol.commentlist li .comment-text p.meta {
    margin: 0 0 0.55rem !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.4;
}

.course-reviews .woocommerce-review__author {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a2438;
    line-height: 1.3;
}

.course-reviews .woocommerce-review__dash {
    display: none;
}

.course-reviews .woocommerce-review__published-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: auto;
    white-space: nowrap;
}

/* WC injects star rating right before the meta paragraph; show it inline */
.course-reviews .comment-text > .star-rating {
    margin: 0 0 0.5rem !important;
}

.course-reviews .verified {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.course-reviews .description,
.course-reviews .comment-text .description p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.course-reviews .description p + p {
    margin-top: 0.55rem;
}

/* ── Re-enable WC star rating (hidden globally) inside reviews ── */
.course-reviews .star-rating {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 5.4em;
    height: 1em;
    line-height: 1;
    font-size: 0.95rem;
    margin: 0 0 0.45rem;
    letter-spacing: 0.04em;
}

.course-reviews .star-rating::before {
    content: "★★★★★";
    color: #d1d5db;
    position: absolute;
    inset: 0;
}

.course-reviews .star-rating > span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 1em;
    padding-top: 1.5em;
    color: #f59e0b;
    white-space: nowrap;
}

.course-reviews .star-rating > span::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #f59e0b;
    letter-spacing: 0.04em;
}

.course-reviews .star-rating .rating {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ── No reviews fallback ── */
.course-reviews .woocommerce-noreviews,
.course-reviews .woocommerce-verification-required {
    margin: 0 0 1.5rem;
    padding: 0.95rem 1.1rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #6b7280;
}

/* ── Review form ── */
.course-reviews #review_form_wrapper {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eceef2;
}

.course-reviews #review_form {
    margin-top: 0.5rem;
    padding: 1.35rem 1.35rem 1.5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%);
    border: 1px solid #eceef2;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(10, 36, 56, 0.04);
}

.course-reviews #review_form .comment-respond {
    background: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.course-reviews .comment-reply-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #0a2438;
    margin: 0 0 1rem;
}

.course-reviews #commentform,
.course-reviews .comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    margin: 0;
}

.course-reviews .must-log-in,
.course-reviews .logged-in-as {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.course-reviews .must-log-in a,
.course-reviews .logged-in-as a {
    color: #3d9cf5;
    font-weight: 600;
    text-decoration: none;
}

.course-reviews .must-log-in a:hover,
.course-reviews .logged-in-as a:hover {
    text-decoration: underline;
}

.course-reviews .comment-form-author,
.course-reviews .comment-form-email,
.course-reviews .comment-form-comment,
.course-reviews .comment-form-rating,
.course-reviews .comment-form-iireda-review-display-name {
    margin: 0;
}

.course-reviews .comment-form-iireda-review-display-name .description {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.45;
}

.course-reviews .comment-form label,
.course-reviews .comment-form-iireda-review-display-name label,
.course-reviews .comment-form-rating > label,
.course-reviews .comment-form-rating #comment-form-rating-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0a2438;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.course-reviews .comment-form .required {
    color: #e63a2e;
    font-weight: 700;
}

.course-reviews .comment-form-iireda-review-display-name input[type="text"] {
    width: 100%;
    max-width: 28rem;
}

.course-reviews .comment-form input[type="text"],
.course-reviews .comment-form input[type="email"],
.course-reviews .comment-form input[type="url"],
.course-reviews .comment-form textarea,
.course-reviews .comment-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: #1f2937;
    -webkit-text-fill-color: #1f2937; /* Safari/WebKit readability */
    caret-color: #1f2937;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 1px rgba(10, 36, 56, 0.02);
    opacity: 1;
}

.course-reviews .comment-form-comment {
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.course-reviews .comment-form-comment label {
    margin-bottom: 0.5rem;
}

.course-reviews .comment-form textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}

.course-reviews .comment-form textarea::selection,
.course-reviews .comment-form input[type="text"]::selection,
.course-reviews .comment-form input[type="email"]::selection,
.course-reviews .comment-form input[type="url"]::selection {
    background: #bfdbfe;
    color: #0f172a;
}

.course-reviews .comment-form input[type="text"]:focus,
.course-reviews .comment-form input[type="email"]:focus,
.course-reviews .comment-form input[type="url"]:focus,
.course-reviews .comment-form textarea:focus,
.course-reviews .comment-form select:focus {
    outline: none;
    border-color: #3d9cf5;
    box-shadow: 0 0 0 3px rgba(61, 156, 245, 0.15);
}

.course-reviews .comment-form input[type="text"]::placeholder,
.course-reviews .comment-form input[type="email"]::placeholder,
.course-reviews .comment-form textarea::placeholder {
    color: #9ca3af;
}

/* ── Star rating selector (interactive) inside the form ── */
.course-reviews .comment-form-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    border-left: 4px solid #3d9cf5;
    position: relative;
}

.course-reviews .comment-form-rating > label,
.course-reviews .comment-form-rating #comment-form-rating-label {
    flex: 1 1 100%;
    margin: 0;
}

/* WC hides #rating via jQuery; keep it accessible for JS + fallback */
.course-reviews .comment-form-rating select#rating {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    min-width: 0 !important;
}

/* Override WooCommerce "star" icon font (often reads as hollow blue glyphs) */
.course-reviews #respond p.stars,
.course-reviews p.stars {
    margin: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex: 1 1 auto;
}

.course-reviews #respond p.stars > span,
.course-reviews p.stars > span {
    display: inline-flex;
    gap: 0.18rem;
}

.course-reviews #respond p.stars a,
.course-reviews p.stars a {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: transparent !important;
    outline-offset: 2px;
    line-height: 1;
}

.course-reviews #respond p.stars a::before,
.course-reviews p.stars a::before {
    content: "★" !important;
    font-family: var(--font-sans), system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #d1d5db !important;
    transition: color 0.12s ease, transform 0.12s ease;
}

.course-reviews #respond p.stars a:hover::before,
.course-reviews p.stars a:hover::before {
    transform: translate(-50%, -50%) scale(1.08);
}

.course-reviews #respond p.stars:not(.selected):hover > span > a::before,
.course-reviews p.stars:not(.selected):hover > span > a::before {
    color: #f59e0b !important;
}

.course-reviews #respond p.stars:not(.selected) > span > a:hover ~ a::before,
.course-reviews p.stars:not(.selected) > span > a:hover ~ a::before {
    color: #d1d5db !important;
}

/* WC only adds .active to the clicked star; color 1..N with :has() */
.course-reviews #respond p.stars span:has(> a.star-1.active) > a::before,
.course-reviews p.stars span:has(> a.star-1.active) > a::before {
    color: #f59e0b !important;
}

.course-reviews #respond p.stars span:has(> a.star-2.active) > a::before,
.course-reviews p.stars span:has(> a.star-2.active) > a::before {
    color: #f59e0b !important;
}

.course-reviews #respond p.stars span:has(> a.star-2.active) > a.star-3::before,
.course-reviews #respond p.stars span:has(> a.star-2.active) > a.star-4::before,
.course-reviews #respond p.stars span:has(> a.star-2.active) > a.star-5::before,
.course-reviews p.stars span:has(> a.star-2.active) > a.star-3::before,
.course-reviews p.stars span:has(> a.star-2.active) > a.star-4::before,
.course-reviews p.stars span:has(> a.star-2.active) > a.star-5::before {
    color: #d1d5db !important;
}

.course-reviews #respond p.stars span:has(> a.star-3.active) > a::before,
.course-reviews p.stars span:has(> a.star-3.active) > a::before {
    color: #f59e0b !important;
}

.course-reviews #respond p.stars span:has(> a.star-3.active) > a.star-4::before,
.course-reviews #respond p.stars span:has(> a.star-3.active) > a.star-5::before,
.course-reviews p.stars span:has(> a.star-3.active) > a.star-4::before,
.course-reviews p.stars span:has(> a.star-3.active) > a.star-5::before {
    color: #d1d5db !important;
}

.course-reviews #respond p.stars span:has(> a.star-4.active) > a::before,
.course-reviews p.stars span:has(> a.star-4.active) > a::before {
    color: #f59e0b !important;
}

.course-reviews #respond p.stars span:has(> a.star-4.active) > a.star-5::before,
.course-reviews p.stars span:has(> a.star-4.active) > a.star-5::before {
    color: #d1d5db !important;
}

.course-reviews #respond p.stars span:has(> a.star-5.active) > a::before,
.course-reviews p.stars span:has(> a.star-5.active) > a::before {
    color: #f59e0b !important;
}

/* ── Submit button (matches iiREDA primary CTA style) ── */
.course-reviews .form-submit {
    margin: 0.4rem 0 0;
}

.course-reviews .comment-form .form-submit input[type="submit"],
.course-reviews #commentform input#submit,
.course-reviews .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.65rem;
    background: #0a2438;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(10, 36, 56, 0.18);
}

.course-reviews .comment-form .form-submit input[type="submit"]:hover,
.course-reviews #commentform input#submit:hover {
    background: #143653;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 36, 56, 0.22);
}

.course-reviews .comment-form .form-submit input[type="submit"]:focus-visible,
.course-reviews #commentform input#submit:focus-visible {
    outline: 2px solid #3d9cf5;
    outline-offset: 2px;
}

/* ── Pagination of reviews ── */
.course-reviews .woocommerce-pagination {
    margin-top: 1.25rem;
}

.course-reviews .woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-reviews .woocommerce-pagination ul li a,
.course-reviews .woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #374151;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.course-reviews .woocommerce-pagination ul li a:hover {
    border-color: #3d9cf5;
    color: #3d9cf5;
}

.course-reviews .woocommerce-pagination ul li span.current {
    background: #0a2438;
    border-color: #0a2438;
    color: #ffffff;
}

@media (max-width: 600px) {
    .course-reviews { padding: 1.25rem; }
    .course-reviews .comment_container { padding: 0.95rem 1rem; }
    .course-reviews .woocommerce-review__published-date { margin-left: 0; flex-basis: 100%; }
}

.course-rich-text {
    color: #374151;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.7;
}

.course-rich-text img,
.course-rich-text video {
    max-width: 100%;
    height: auto;
}

.course-rich-text iframe {
    max-width: 100%;
}

.course-rich-text p {
    color: #374151;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 0.85rem;
}

.course-rich-text h1,
.course-rich-text h2,
.course-rich-text h3,
.course-rich-text h4,
.course-rich-text h5,
.course-rich-text h6 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    color: #0a2438 !important;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-rich-text strong,
.course-rich-text b {
    font-family: inherit;
    font-weight: 400;
}

.course-rich-text h1 {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem) !important;
    margin: 0 0 1.25rem;
}

.course-rich-text h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem) !important;
    margin: 1.75rem 0 0.85rem;
}

.course-rich-text h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
    margin: 1.5rem 0 0.75rem;
}

.course-rich-text h4 {
    font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
    margin: 1.25rem 0 0.65rem;
}

.course-rich-text h5,
.course-rich-text h6 {
    font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
    margin: 1.1rem 0 0.55rem;
}

.course-rich-text p,
.course-rich-text li {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.course-rich-text ul:not(.course-tab-list) {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.course-rich-text ul:not(.course-tab-list) li {
    font-family: inherit;
    font-size: inherit;
    color: #374151;
    line-height: 1.55;
}

/* Listas configurables (requisitos, objetivos, contenidos) en pestañas del curso */
.course-rich-text ul.course-tab-list,
ul.course-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 42rem;
}

.course-tab-list__item {
    --course-list-accent: #3d9cf5;
    --course-list-accent-soft: rgba(61, 156, 245, 0.14);
    --course-list-accent-ink: #2b8ce6;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 1rem 1.15rem 1rem 1rem;
    background: #f9fafb;
    border: 1px solid #eceef2;
    border-radius: 12px;
    border-left: 4px solid var(--course-list-accent);
    box-shadow: 0 1px 2px rgba(10, 36, 56, 0.04);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #1f2937;
}

.course-tab-list__item::before {
    content: "\2713";
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 0.06em;
    border-radius: 8px;
    background: var(--course-list-accent-soft);
    color: var(--course-list-accent-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-sans), system-ui, sans-serif;
}

.course-tab-list__text {
    flex: 1;
    min-width: 0;
    padding-top: 0.2rem;
}

/* Colores por pestaña de lista */
#tab-requisitos-ingreso .course-tab-list__item {
    --course-list-accent: #3d9cf5;
    --course-list-accent-soft: rgba(61, 156, 245, 0.14);
    --course-list-accent-ink: #2b8ce6;
}

#tab-objetivos .course-tab-list__item {
    --course-list-accent: #7c3aed;
    --course-list-accent-soft: rgba(124, 58, 237, 0.14);
    --course-list-accent-ink: #6d28d9;
}

#tab-contenidos .course-tab-list__item {
    --course-list-accent: #0f766e;
    --course-list-accent-soft: rgba(15, 118, 110, 0.14);
    --course-list-accent-ink: #0f766e;
}

.course-requirements { display: flex; flex-direction: column; gap: 1.1rem; }

.course-requirements__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.course-requirements__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(88,164,92,0.12);
    color: #58a45c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-requirements__item strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0a2438; margin-bottom: 0.2rem; }
.course-requirements__item p { margin: 0; font-size: 0.82rem; color: #6b7280; line-height: 1.55; }

.course-objectives { display: flex; flex-direction: column; gap: 1.1rem; }

.course-objective {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #3d9cf5;
}

.course-objective__num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: #3d9cf5;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.5rem;
}

.course-objective__body strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0a2438; margin-bottom: 0.25rem; }
.course-objective__body p { margin: 0; font-size: 0.82rem; color: #6b7280; line-height: 1.55; }

.course-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.course-method-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1.5px solid #eceef2;
}

.course-method-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0a2438;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-method-card strong { font-size: 0.88rem; font-weight: 700; color: #0a2438; }
.course-method-card p { margin: 0; font-size: 0.78rem; color: #6b7280; line-height: 1.55; }

.course-accordion { display: flex; flex-direction: column; gap: 0.5rem; }

.course-accordion__item {
    border: 1.5px solid #eceef2;
    border-radius: 10px;
    overflow: hidden;
}

.course-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    transition: background 0.15s;
}

.course-accordion__trigger:hover { background: #f9fafb; }
.course-accordion__trigger[aria-expanded="true"] { background: #f0f7ff; border-bottom: 1px solid #eceef2; }
.course-accordion__trigger[aria-expanded="true"] .course-accordion__chevron { transform: rotate(180deg); }

.course-accordion__module-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3d9cf5;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-accordion__title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0a2438;
    line-height: 1.35;
}

.course-accordion__chevron {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.25s ease;
}

.course-accordion__body { padding: 0.85rem 1.1rem 1rem; background: #ffffff; }

.course-accordion__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.course-accordion__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.45;
}

.course-accordion__list svg { flex-shrink: 0; color: #3d9cf5; margin-top: 1px; }

.course-eval-grid { display: flex; flex-direction: column; gap: 0.75rem; }

.course-eval-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1.5px solid #eceef2;
}

.course-eval-card__pct {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: #15173e;
    min-width: 3.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.course-eval-card__info strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0a2438; margin-bottom: 0.25rem; }
.course-eval-card__info p { margin: 0; font-size: 0.8rem; color: #6b7280; line-height: 1.55; }

.course-eval-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

.course-eval-note svg { flex-shrink: 0; color: #f59e0b; margin-top: 1px; }

.course-approval { display: flex; flex-direction: column; gap: 0.85rem; }

.course-approval__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1.5px solid #eceef2;
    background: #ffffff;
}

.course-approval__item--highlight { background: #f0f7ff; border-color: #3d9cf5; }

.course-approval__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(61,156,245,0.1);
    color: #3d9cf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-approval__item--highlight .course-approval__icon { background: #3d9cf5; color: #ffffff; }
.course-approval__item strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0a2438; margin-bottom: 0.25rem; }
.course-approval__item p { margin: 0; font-size: 0.82rem; color: #6b7280; line-height: 1.55; }

/* ── 13c. Barra lateral del curso ───────────────────────────── */

/* El aside actúa como columna de la cuadrícula.
   El contenedor interno sticky es el que permanece visible al hacer scroll. */
/* stretch: misma altura que la columna principal para que position:sticky del interior
   dure todo el scroll del contenido (con align-items:start en el shell el aside quedaba corto). */
.course-sidebar {
    align-self: stretch;
    min-width: 0;
}

.course-sidebar__sticky {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-fixed-offset) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(10,36,56,0.09), 0 14px 44px rgba(10,36,56,0.13);
}

/* Tarjeta base */
.course-sidebar__card {
    background: #ffffff;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-sidebar__card--secondary {
    background: #f9fafb;
    padding: 1.1rem 1.35rem;
}

.course-sidebar__brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -1.25rem -1.35rem 0;
    padding: 0.85rem 1.35rem 0.95rem;
    border-radius: 16px 16px 0 0;
}

/* Mismos fondos que los filtros “EXPLORA NUESTROS PROGRAMAS” en la home */
.course-sidebar__brand--cideni {
    background: #24b7ac;
}

.course-sidebar__brand--iireda {
    background: #1a6da8;
}

.course-sidebar__brand-img {
    max-height: 4.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.cs-external-org-text {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* ── Fecha de inicio ──────────────────────────────────────── */

.cs-start-date {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
}

.cs-start-date__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #3d9cf5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-start-date__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.cs-start-date__value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a2438;
    margin-top: 0.05rem;
}

/* ── Cupón de descuento ─────────────────────────────────────── */

.cs-coupon-block {
    margin: 0;
}

.cs-coupon-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px dashed #3d9cf5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f3fe 100%);
    color: #0a2438;
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}

.cs-coupon-btn:hover {
    border-color: #1d6fce;
    box-shadow: 0 6px 18px rgba(61, 156, 245, 0.18);
    transform: translateY(-1px);
}

.cs-coupon-btn:active {
    transform: translateY(0);
}

.cs-coupon-btn--copied {
    border-color: #16a34a;
    background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
}

.cs-coupon-btn__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1d6fce;
}

.cs-coupon-btn__code {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0a2438;
    line-height: 1.2;
}

.cs-coupon-btn__text {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.45;
}

.cs-coupon-btn__feedback {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
}

/* ── Precio ───────────────────────────────────────────────── */

.cs-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cs-price-block__top {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.cs-price-block__current {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a2438;
    line-height: 1;
}

.cs-price-block__original {
    font-size: 0.88rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.cs-price-block__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #fee2e2;
    color: #b91c1c;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.cs-price-block__urgency {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #b91c1c;
    font-weight: 600;
    margin: 0;
}

/* ── Botón de inscripción (grande) ────────────────────────── */

.cs-enroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #15173e 0%, #1e2060 100%);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(21,23,62,0.32);
}

.cs-enroll-btn:hover {
    background: linear-gradient(135deg, #3d9cf5 0%, #1d6fce 100%);
    box-shadow: 0 8px 28px rgba(61,156,245,0.45);
    transform: translateY(-1px);
}

.cs-enroll-btn:active { transform: translateY(0); }

/* ── Medios de pago ───────────────────────────────────────── */

.cs-payment__label {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

.cs-payment__methods {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cs-payment__method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cs-payment__method-logo {
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
}

.cs-payment__method-logo svg {
    display: block;
}

.cs-payment__method-logo img {
    display: block;
    height: 1.65rem;
    width: auto;
    max-width: 6.25rem;
    object-fit: contain;
    object-position: center;
}

.cs-payment__method-logo--transfer {
    border: 1px solid #d1d5db;
}

.cs-payment__method-name {
    font-size: 0.62rem;
    color: #9ca3af;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* ── Descuentos ───────────────────────────────────────────── */

.cs-discounts {
    padding: 0.85rem;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
}

.cs-discounts__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-discounts__title svg { color: #f59e0b; flex-shrink: 0; }

.cs-discounts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cs-discounts__item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.cs-discounts__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.cs-discounts__item > div {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.cs-discounts__item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0a2438;
    line-height: 1.3;
}

.cs-discounts__item span {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.3;
}

/* ── Divisor entre bloques ────────────────────────────────── */

.cs-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.35rem;
    background: #f3f4f8;
    border-top: 1px solid #eceef2;
    border-bottom: 1px solid #eceef2;
}

.cs-divider__line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.cs-divider__text {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    white-space: nowrap;
}

/* ── Detalles del curso (fechas, duración, horario) ────────── */

.cs-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cs-meta__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eceef2;
}

.cs-meta__row:last-child { border-bottom: none; }

.cs-meta__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.cs-meta__label svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.cs-meta__value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0a2438;
    text-align: right;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.cs-meta__tz {
    font-size: 0.68rem;
    font-weight: 400;
    color: #9ca3af;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 62rem) {
    .course-layout__shell { grid-template-columns: 1fr; }

    .course-sidebar {
        order: -1;
    }

    .course-sidebar__sticky {
        position: static;
    }

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

@media (max-width: 48rem) {
    .success-card__body { padding: 1.25rem; }

    .cs-payment__methods { gap: 0.75rem 1rem; }

    /* Títulos display muy anchos en viewports estrechos */
    .course-hero__title {
        font-size: clamp(1.45rem, 7vw, 2.75rem);
    }
}

/* ═══════════════════════════════════════════════════════════════
   14. TRAYECTORIA FORMATIVA (cursos-impartidos.php)
═══════════════════════════════════════════════════════════════ */

/* ── 14a. Héroe del catálogo histórico ─────────────────────── */

.page-hero--legacy-catalog {
    background: linear-gradient(135deg, #0a2438 0%, #15173e 60%, #1a2a50 100%);
    padding-bottom: clamp(2rem, 5vw, 3rem);
}

.legacy-catalog-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.legacy-catalog-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.legacy-catalog-hero-stat__num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    color: #f1bc42;
    line-height: 1;
    letter-spacing: 0.02em;
}

.legacy-catalog-hero-stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(232,238,244,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── 14b. Layout y línea de tiempo ─────────────────────────── */

.legacy-catalog {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.legacy-catalog__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--layout-pad-inline);
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 1.75rem;
    align-items: start;
}

.legacy-catalog__main {
    min-width: 0;
}

/* ── Timeline / Year blocks ───────────────────────────────────── */

.legacy-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legacy-year-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legacy-year-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legacy-year-marker__num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: #0a2438;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    background: #ffffff;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #0a2438;
    line-height: 1.3;
}

.legacy-year-marker__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #0a2438 0%, transparent 100%);
    border-radius: 1px;
}

.legacy-year-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.1rem;
}

/* ── 14c. Tarjeta de curso impartido (legacy-course-card) ───── */

.legacy-course-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(10,36,56,0.06), 0 4px 16px rgba(10,36,56,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.legacy-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(10,36,56,0.08), 0 14px 36px rgba(10,36,56,0.14);
}

/* Media */
.legacy-course-card__media-link {
    display: block;
    text-decoration: none;
}

.legacy-course-card__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #c8d0dc;
}

.legacy-course-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
    filter: grayscale(0.25) brightness(0.9);
}

.legacy-course-card:hover .legacy-course-card__img {
    transform: scale(1.04);
    filter: grayscale(0) brightness(1);
}

.legacy-course-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10,36,56,0.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.6rem 0.7rem;
}

.legacy-course-card__brand-badge {
    background: rgba(10,36,56,0.75);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* Modality badges */
.legacy-course-card__modality-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.legacy-course-card__modality-badge--virtual {
    background: rgba(93,130,235,0.18);
    color: #c7d5ff;
    border: 1px solid rgba(93,130,235,0.4);
}

.legacy-course-card__modality-badge--presencial {
    background: rgba(255,120,100,0.18);
    color: #ffcbc0;
    border: 1px solid rgba(255,120,100,0.35);
}

.legacy-course-card__modality-badge--hibrida {
    background: rgba(80,200,180,0.18);
    color: #b0f0e8;
    border: 1px solid rgba(80,200,180,0.35);
}

/* Body */
.legacy-course-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.legacy-course-card__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 600;
    color: #6b7280;
    flex-wrap: wrap;
}

.legacy-course-card__location svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.legacy-course-card__date-pill {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eceef2;
    color: #374151;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.legacy-course-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.legacy-course-card__title a {
    color: #0a2438;
    text-decoration: none;
    transition: color 0.15s;
}

.legacy-course-card__title a:hover {
    color: #3d9cf5;
}

.legacy-course-card__desc {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pills */
.legacy-course-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.legacy-course-card__pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.legacy-course-card__pill--theme {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* Stats */
.legacy-course-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.legacy-course-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    color: #6b7280;
    font-weight: 500;
}

.legacy-course-card__stat svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Button */
.legacy-course-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #f3f4f8;
    color: #0a2438;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #d1d5db;
    transition: background 0.15s, border-color 0.15s, color 0.15s, gap 0.15s;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.legacy-course-card__btn:hover {
    background: #0a2438;
    border-color: #0a2438;
    color: #ffffff;
    gap: 0.65rem;
}

/* Compact variant for related section */
.legacy-course-card--compact .legacy-course-card__desc,
.legacy-course-card--compact .legacy-course-card__pills,
.legacy-course-card--compact .legacy-course-card__stats {
    display: none;
}

/* ── 14d. CTA al catálogo activo ────────────────────────────── */

.legacy-catalog-cta {
    background: #0a2438;
    padding: clamp(2.5rem, 6vw, 4rem) var(--layout-pad-inline);
}

.legacy-catalog-cta__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legacy-catalog-cta__content {
    flex: 1;
    min-width: 0;
}

.legacy-catalog-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.legacy-catalog-cta__text {
    color: rgba(232,238,244,0.72);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    max-width: 55ch;
    line-height: 1.65;
}

.legacy-catalog-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: #f1bc42;
    color: #0a2438;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, gap 0.2s;
    box-shadow: 0 4px 16px rgba(241,188,66,0.35);
}

.legacy-catalog-cta__btn:hover {
    background: #ffd060;
    gap: 0.75rem;
    box-shadow: 0 6px 22px rgba(241,188,66,0.5);
}

.legacy-catalog-cta__map {
    flex-shrink: 0;
    width: clamp(12rem, 30vw, 22rem);
    opacity: 0.18;
}

.legacy-catalog-cta__map img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 62rem) {
    .legacy-catalog__shell {
        grid-template-columns: 1fr;
    }

    .legacy-catalog-cta__map {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   15. FICHA DE CURSO IMPARTIDO (curso-impartido-detalle.php)
═══════════════════════════════════════════════════════════════ */

/* ── 15a. Héroe del curso impartido ─────────────────────────── */

.past-course-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(20rem, 52vw, 30rem);
    display: flex;
    align-items: flex-end;
}

.past-course-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.past-course-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: grayscale(0.3) brightness(0.75);
}

.past-course-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,36,56,0.3) 0%,
        rgba(10,36,56,0.72) 50%,
        rgba(10,36,56,0.97) 100%
    );
}

.past-course-hero__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 2rem var(--layout-pad-inline) 2.5rem;
}

.past-course-hero__status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.past-course-hero__institution {
    display: flex;
    align-items: center;
    opacity: 0.85;
}

/* Status chip */
.past-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(88,164,92,0.2);
    border: 1.5px solid rgba(88,164,92,0.55);
    color: #a8f0ab;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.past-status-chip svg { flex-shrink: 0; }

.past-status-chip--lg {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
}

.past-course-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 1.1rem;
    line-height: 1.1;
    max-width: 28ch;
}

.past-course-hero__data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.75rem;
}

.past-course-hero__data-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.78);
}

.past-course-hero__data-item svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.past-course-hero__data-item strong {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    margin-right: 0.15rem;
}

/* ── 15b. Barra de indicadores ──────────────────────────────── */

.past-course-indicators {
    background: #15173e;
    padding: 1.25rem var(--layout-pad-inline);
}

.past-course-indicators__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.past-course-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.past-course-indicator:last-child {
    border-right: none;
}

.past-course-indicator__num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    color: #f1bc42;
    line-height: 1;
    letter-spacing: 0.03em;
}

.past-course-indicator__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(232,238,244,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ── 15c. Layout principal y secciones de contenido ─────────── */

.past-course-layout {
    background: #f3f4f8;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.past-course-layout__shell {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--layout-pad-inline);
    display: grid;
    grid-template-columns: 1fr 21rem;
    gap: 1.75rem;
    align-items: start;
}

.past-course-content {
    min-width: 0;
}

/* Org logos in description */
.past-course-org-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: #0a2438;
    border-radius: 10px;
    width: fit-content;
}

.past-course-org-logo {
    filter: brightness(1);
    opacity: 0.85;
}

/* Team cards */
.past-course-team {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.past-team-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1.5px solid #eceef2;
}

.past-team-card__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
}

.past-team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-team-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.past-team-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a2438;
}

.past-team-card__role {
    font-size: 0.75rem;
    color: #6b7280;
}

.past-team-card__bio {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.55;
}

.past-team-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.past-team-card__tags span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* Testimonials */
.past-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 1rem;
}

.past-testimonial {
    margin: 0;
    padding: 1.25rem 1.35rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1.5px solid #eceef2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.past-testimonial__stars {
    font-size: 0.9rem;
    color: #f59e0b;
    letter-spacing: 0.08em;
}

.past-testimonial__text {
    margin: 0;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.65;
    font-style: italic;
    flex: 1;
}

.past-testimonial__footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #eceef2;
}

.past-testimonial__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.past-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.past-testimonial__author strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a2438;
}

.past-testimonial__author span {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Gallery */
.past-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.past-gallery__item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.past-gallery__item--wide {
    grid-column: 1 / -1;
}

.past-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.past-gallery__item:hover img {
    transform: scale(1.03);
}

.past-gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(10,36,56,0.8) 0%, transparent 100%);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    line-height: 1.4;
}

/* ── 15d. Panel lateral informativo ─────────────────────────── */

.past-course-panel {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-fixed-offset) + 1rem);
}

.past-course-panel__card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(10,36,56,0.08), 0 12px 40px rgba(10,36,56,0.1);
    overflow: hidden;
}

.past-course-panel__header {
    background: #f9fafb;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eceef2;
}

.past-course-panel__body {
    padding: 1.1rem 1.25rem;
}

.past-course-panel__section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 0.85rem;
}

.past-course-panel__dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.75rem;
    align-items: center;
}

.past-course-panel__dl dt {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.past-course-panel__dl dd {
    margin: 0;
    font-size: 0.82rem;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.past-course-panel__brand-img {
    background: #0a2438;
    border-radius: 4px;
    padding: 2px 4px;
}

.past-course-panel__divider {
    height: 1px;
    background: #eceef2;
    margin: 0;
}

.past-course-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.past-course-panel__cta-text {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.past-course-panel__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: #15173e;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(21,23,62,0.22);
    margin-bottom: 0.65rem;
}

.past-course-panel__cta-btn:hover {
    background: #3d9cf5;
    box-shadow: 0 6px 20px rgba(61,156,245,0.35);
}

.past-course-panel__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #3d9cf5;
    text-decoration: none;
    font-weight: 600;
}

.past-course-panel__back-link:hover { text-decoration: underline; }

/* ── 15e. Cursos relacionados ───────────────────────────────── */

.past-related {
    background: #eceef2;
    padding: clamp(2rem, 5vw, 3.5rem) var(--layout-pad-inline);
}

.past-related__shell {
    max-width: var(--max-width);
    margin-inline: auto;
}

.past-related__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #0a2438;
    margin: 0 0 1.5rem;
}

.past-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.past-related__see-all {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 62rem) {
    .past-course-layout__shell {
        grid-template-columns: 1fr;
    }

    .past-course-panel {
        position: static;
        order: -1;
    }

    .past-testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 48rem) {
    .past-course-indicators__shell {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .past-course-indicators__shell::-webkit-scrollbar { display: none; }

    .past-course-indicator {
        padding: 0.5rem 1.25rem;
        flex-shrink: 0;
    }

    .past-gallery {
        grid-template-columns: 1fr;
    }

    .past-gallery__item--wide {
        grid-column: 1;
    }

    .past-team-card {
        flex-direction: column;
    }
}
