/* =============================================================
   Ceenford Expert — Landing page
   ============================================================= */
:root {
    --c-primary:        #022CD4;
    --c-primary-dark:   #0020B8;
    --c-deep:           #121268;
    --c-orange:         #FF9A1F;
    --c-orange-dark:    #E68900;
    --c-red:            #D62828;
    --c-bg-light:       #F4F8FF;
    --c-bg-card:        #F8FBFF;
    --c-text:           #28316E;
    --c-text-soft:      #4A5378;
    --c-muted:          #8A92B2;
    --c-border:         #DDE3F5;
    --c-border-soft:    #EEF2FC;
    --radius-card:      18px;
    --radius-btn:       12px;
    --radius-pill:      999px;
    --shadow-card:      0 10px 30px rgba(20, 25, 80, 0.10);
    --shadow-btn:       0 8px 18px rgba(2, 44, 212, 0.28);
    --nav-h:            76px;
    --max-w:            1280px;
    font-family: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--c-text);
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--c-border-soft);
}
.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    color: var(--c-primary-dark);
    flex-shrink: 0;
}
.nav__logo-main {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--c-primary-dark);
}
.nav__logo-sub {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.35em;
    color: var(--c-text-soft);
    margin-top: 2px;
}
.nav__menu {
    display: flex;
    gap: 28px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav__menu a {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s ease;
}
.nav__menu a:hover { color: var(--c-primary); }
.nav__cta { white-space: nowrap; }
.nav__hamb {
    display: none;
    background: transparent;
    border: none;
    color: var(--c-primary-dark);
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    margin-left: auto;     /* lo manda al extremo derecho */
    flex-shrink: 0;
}
.nav__hamb svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    transition: opacity 0.18s ease, transform 0.2s ease;
}
.nav__hamb-close { opacity: 0; transform: rotate(-45deg); }
.nav__hamb.is-open .nav__hamb-open  { opacity: 0; transform: rotate(45deg); }
.nav__hamb.is-open .nav__hamb-close { opacity: 1; transform: rotate(0); }

/* ===== Drawer mobile (panel dropdown) ===== */
.nav__drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--c-border-soft);
    box-shadow: 0 12px 24px rgba(20, 25, 80, 0.10);
    padding: 18px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 99;
}
.nav__drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.nav__drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 14px;
}
.nav__drawer-menu a {
    display: block;
    padding: 12px 14px;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav__drawer-menu a:hover,
.nav__drawer-menu a:focus-visible {
    background: var(--c-bg-card);
    color: var(--c-primary);
}
.nav__drawer-cta { width: 100%; }

/* Backdrop semi-transparente debajo del drawer */
.nav__backdrop {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(20, 25, 80, 0.30);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 95;
    pointer-events: none;
}
.nav__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn--primary {
    background: var(--c-primary);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.98); }
.btn--large { padding: 16px 32px; font-size: 16px; }
.btn--ghost {
    background: transparent;
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
}
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: #ffffff;
    padding: 40px 0 60px;
}
.hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

/* Eyebrow "PLATAFORMA INTERNACIONAL" */
.hero__eyebrow {
    color: #FECD59;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

/* Título grande */
.hero__title {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 16px;
    color: #28316E;
    letter-spacing: -0.03em;
}
.hero__title-accent {
    color: #0068ED;
}

/* Texto descriptivo */
.hero__lead {
    margin: 0 0 24px;
    color: #28316E;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}
/* Variante arriba del título (reemplaza al eyebrow original) */
.hero__lead--top {
    margin: 0 0 14px;
}

/* Stats grid — compactos, sin tanto interlineado */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 12px;
    margin: 0 0 24px;
}
.hero__stats li {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;     /* baseline tight para que el contenido herede */
}
.hero__stat-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}
.hero__stats strong {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: #28316E;
    line-height: 1.1;
    margin: 0 0 1px;
    white-space: nowrap;
}
.hero__stats span {
    display: block;
    font-size: 10px;
    color: #28316E;
    line-height: 1.15;
    font-weight: 500;
}
/* El <br> heredaba line-height del browser. Forzamos compacto. */
.hero__stats span br { line-height: inherit; }

/* CTA + texto debajo */
.hero__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: fit-content;
}
.hero__cta {
    /* override del btn pill: menos redondeado, mismo estilo */
    border-radius: 14px;
    box-shadow: var(--shadow-btn);
    padding: 16px 32px;
}
.hero__pay {
    margin: 0;
    color: #28316E;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Hero right — solo la imagen, sin bg/badges/play */
.hero__right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__photo {
    width: 100%;
    height: auto;
    max-width: 680px;
    display: block;
}

/* ============================================================
   PRICING STRIP
   ============================================================ */
.pricing {
    padding: 30px 32px 0;
    margin: 0 auto;
    max-width: var(--max-w);
}
.pricing__inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    /* Gradiente con corte DIAGONAL (no recto): el ángulo 100deg en lugar
       de 90deg desplaza la línea del separador haciéndola inclinada. */
    background: linear-gradient(
        100deg,
        var(--c-primary) 0%,
        var(--c-primary) 49%,
        #FECE5D 49%,
        #FFEAA8 100%
    );
    border-radius: 18px;
    /* overflow visible para que el ribbon sobresalga arriba */
    overflow: visible;
    position: relative;
    box-shadow: 0 12px 32px rgba(2, 44, 212, 0.18);
    align-items: center;
}
.pricing__col {
    padding: 24px 32px;
    color: #ffffff;
    text-align: center;
    position: relative;
}
.pricing__col--offer { color: #1A1A1A; }

/* Ribbon "OFERTA ESPECIAL" — sobresale POR ENCIMA del card */
.pricing__ribbon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-red);
    color: #ffffff;
    padding: 8px 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(214, 40, 40, 0.35);
    white-space: nowrap;
    z-index: 5;
}
.pricing__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    opacity: 0.85;
}
.pricing__amount {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 500;
}
.pricing__amount strong {
    font-weight: 800;
    font-size: 28px;
}
.pricing__save {
    width: 110px;
    height: 110px;
    margin: 0 28px;
    border-radius: 50%;
    background: var(--c-red);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(214, 40, 40, 0.35);
}
.pricing__save span { font-size: 11px; letter-spacing: 0.15em; }
.pricing__save strong { font-size: 28px; line-height: 1; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
    padding: 50px 32px 40px;
}
.partners__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--c-border-soft);
    border-radius: 18px;
    padding: 22px 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px;
    box-shadow: 0 4px 14px rgba(20, 25, 80, 0.06);
}
.partners__label {
    margin: 0;
    color: var(--c-text);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
}
.partners__logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 32px;
    flex-wrap: wrap;
}
.partners__logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.partners__logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Placeholder legacy (todavía aparece en la sección de certificación) */
.partners__logo-placeholder {
    color: var(--c-text-soft);
    font-weight: 700;
    font-size: 16px;
    padding: 8px 18px;
    background: var(--c-bg-card);
    border-radius: 10px;
    border: 1px dashed var(--c-border);
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
    max-width: var(--max-w);
    margin: 30px auto 24px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.section-head__line {
    flex: 1;
    height: 2px;
    background: var(--c-border);
}
.section-head__title {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #28316E;
    text-align: center;
}

/* ============================================================
   DESTACADAS
   ============================================================ */
.destacadas {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px 30px;
}
.destacadas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.destacada {
    position: relative;
    background: #f9f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}
/* Variantes legacy mantenidas — todas heredan #f9f9f9 */
.destacada--azul,
.destacada--naranja { background: #f9f9f9; }

.destacada__num {
    position: absolute;
    top: 22px;
    left: 22px;
    background: var(--c-deep);
    color: #ffffff;
    width: 44px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.destacada--naranja .destacada__num { background: var(--c-orange); }

.destacada__icon,
.destacada__icon-img {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 60px;
    height: 60px;
    z-index: 2;
    object-fit: contain;
}

.destacada__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
    display: block;
}
.destacada__title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.15;
    color: #28316E;
}
.destacada__text {
    margin: 0 0 16px;
    color: var(--c-text-soft);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}
.destacada__cta {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.destacada__cta--orange { color: var(--c-orange-dark); }
.destacada__cta:hover { text-decoration: underline; }

.destacadas__all {
    text-align: center;
    margin-top: 24px;
}
.destacadas__all a {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.destacadas__all a:hover { text-decoration: underline; }

/* ============================================================
   MÁS FORMACIONES
   ============================================================ */
.mas {
    max-width: var(--max-w);
    margin: 30px auto;
    padding: 0 32px 40px;
}
.mas__title {
    margin: 0 0 22px;
    font-weight: 800;
    font-size: 22px;
    color: var(--c-text);
}
.mas__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.mas-card {
    background: #ffffff;
    border: 1px solid var(--c-border-soft);
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.mas-card__icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}
.mas-card h3 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: #28316E;
}
.mas-card p {
    margin: 0 0 16px;
    color: var(--c-text-soft);
    font-size: 12px;
    line-height: 1.45;
    flex: 1;
}
/* Botón con gradiente sutil que oscurece de top a bottom */
.mas-card__cta {
    background: linear-gradient(180deg, #1F50FF 0%, #022FC6 50%, #021E8C 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(2, 47, 198, 0.25);
    transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.mas-card__cta:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(2, 47, 198, 0.35);
}
.mas-card__cta:active { transform: scale(0.98); }

/* ============================================================
   EXPERIENCIA
   ============================================================ */
.experiencia {
    background: var(--c-bg-light);
    padding: 60px 32px;
}
.experiencia__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
}
.experiencia__title {
    margin: 0 0 24px;
    font-weight: 800;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.experiencia__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.experiencia__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text);
    font-weight: 600;
    font-size: 14px;
}
.experiencia__list li svg {
    width: 22px;
    height: 22px;
    color: var(--c-primary);
    flex-shrink: 0;
}
.experiencia__right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
@media (max-width: 900px) {
    .experiencia__right {
        min-height: 180px;
    }
}
.experiencia__mockup {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
}

/* ============================================================
   CERTIFICACIÓN
   ============================================================ */
.cert {
    padding: 60px 32px;
}
@media (max-width: 900px) {
    .cert {
        padding: 20px 31px;
    }
}
.cert__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
}
.cert__eyebrow {
    color: var(--c-primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3em;
    margin: 0 0 14px;
}
.cert__title {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.cert__sub {
    margin: 0 0 28px;
    color: var(--c-text-soft);
    font-size: 14px;
    line-height: 1.55;
}
.cert__perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cert__perks li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: var(--c-text-soft);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}
.cert__perk-ico {
    width: 42px; height: 42px;
    background: var(--c-bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
}
.cert__perk-ico svg { width: 20px; height: 20px; }
.cert__perk-ico-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Media right side (video + cert sample) */
.cert__media {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}
.cert__video {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.cert__video-ph {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #B3C7FF 0%, #ffffff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert__video-label {
    color: var(--c-text);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    z-index: 1;
    line-height: 1.3;
}
.cert__video-play {
    position: absolute;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--c-primary);
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-btn);
}
.cert__video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.cert__video-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1A1A1A;
    color: #ffffff;
    font-size: 12px;
}
.cert__video-controls svg { width: 18px; height: 18px; }
.cert__video-bar {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 4px;
    overflow: hidden;
}
.cert__video-bar > span {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--c-primary);
}

.cert__sample {
    background: #ffffff;
    border: 1px solid var(--c-border-soft);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: var(--shadow-card);
    position: relative;
    text-align: center;
}
.cert__sample-head {
    display: flex;
    flex-direction: column;
    line-height: 1;
    align-items: center;
    margin-bottom: 14px;
}
.cert__sample-head .nav__logo-main { font-size: 18px; }
.cert__sample-head .nav__logo-sub { font-size: 8px; }
.cert__sample-title {
    margin: 0;
    font-weight: 800;
    font-size: 15px;
    color: var(--c-primary-dark);
    letter-spacing: 0.15em;
}
.cert__sample-otorga {
    margin: 6px 0 4px;
    color: var(--c-text-soft);
    font-size: 11px;
    font-style: italic;
}
.cert__sample-name {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--c-text);
}
.cert__sample-text {
    margin: 0 0 14px;
    color: var(--c-text-soft);
    font-size: 10px;
    line-height: 1.4;
}
.cert__sample-sign {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--c-border);
    padding-top: 8px;
    margin: 16px 18px 0;
}
.cert__sample-firma {
    font-family: 'Allura', cursive;
    color: var(--c-primary-dark);
    font-size: 22px;
    line-height: 1;
}
.cert__sample-rol {
    font-size: 9px;
    color: var(--c-text-soft);
    font-weight: 600;
}
.cert__sample-stamp {
    position: absolute;
    bottom: 14px;
    right: 14px;
    color: var(--c-orange);
}
.cert__sample-stamp svg { width: 36px; height: 36px; }

.cert__partners {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ============================================================
   SLIDER (reusado en plataforma + diplomas)
   Estructura: .slider-wrap > .slider (imagen + flechas) + .slider__dots (debajo)
   ============================================================ */
.slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 11;
}
.slider--diploma { aspect-ratio: 16 / 11; }

.slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* contain = ver la imagen completa sin recortar (resuelve el problema
       de aspect ratios variables entre slides). */
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Flechas */
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--c-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(20, 25, 80, 0.18);
    z-index: 2;
    transition: background 0.15s ease, transform 0.15s ease;
}
.slider__arrow:hover {
    background: var(--c-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}
.slider__arrow svg { width: 18px; height: 18px; }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }

/* Dots — AHORA debajo del slider (fuera del .slider para no tapar contenido) */
.slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(40, 49, 110, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, width 0.18s ease;
}
.slider__dot:hover { background: var(--c-primary); }
.slider__dot.is-active {
    background: var(--c-primary);
    width: 22px;        /* dot activo elongado (UX moderno) */
    border-radius: 999px;
}

/* ============================================================
   FORM SECTION (wizard 4 steps)
   ============================================================ */
.form-section {
    background: var(--c-bg-light);
    padding: 60px 32px;
}
.form-section__head {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}
.form-section__head h2 {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--c-text);
    letter-spacing: 0.05em;
}
.form-section__head p {
    margin: 0;
    color: var(--c-orange-dark);
    font-weight: 700;
    font-size: 14px;
}

.wizard-steps {
    max-width: var(--max-w);
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    padding: 6px 0;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px;
    cursor: pointer;
    flex: 0 0 auto;
}
.wizard-step__num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #B0B5C7;        /* más contraste contra blanco */
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    /* grid + place-items: center → centro perfecto del texto */
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.wizard-step__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
/* Selectores apuntados a __text para no interferir con __num */
.wizard-step__text strong {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: #BCBCC9;
    transition: color 0.18s ease;
}
.wizard-step__text span {
    display: block;
    font-size: 11px;
    color: #BCBCC9;
    margin-top: 2px;
    transition: color 0.18s ease;
}

/* Activo: número en azul + textos azul/gris */
.wizard-step.is-active .wizard-step__num {
    background: var(--c-primary);
    color: #ffffff;
}
.wizard-step.is-active .wizard-step__text strong {
    color: var(--c-primary);
}
.wizard-step.is-active .wizard-step__text span {
    color: var(--c-text-soft);
}

/* Completado */
.wizard-step.is-completed .wizard-step__num {
    background: var(--c-orange-dark);
    color: #ffffff;
}
.wizard-step.is-completed .wizard-step__text strong { color: var(--c-text); }

/* Línea conectora entre steps */
.wizard-line {
    flex: 1 1 auto;
    height: 1.5px;
    background: #BCBCC9;
    min-width: 30px;
}

.reg-form {
    max-width: var(--max-w);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 36px 28px;
    box-shadow: var(--shadow-card);
}
.reg-section-title {
    margin: 0 0 18px;
    font-weight: 800;
    font-size: 18px;
    color: #28316E;
}
.reg-section { margin-top: 28px; }

.reg-submit {
    margin-top: 26px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #0040EE 0%, #022FC6 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(2, 47, 198, 0.30);
    transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.18s ease;
}
.reg-submit:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(2, 47, 198, 0.38); }
.reg-submit:active { transform: scale(0.99); }
.reg-submit svg { width: 20px; height: 20px; }

.reg-foot {
    margin: 14px 0 0;
    color: var(--c-text-soft);
    font-size: 11.5px;
    text-align: center;
}

/* Mensajes de éxito / error del form */
.reg-message {
    margin: 18px 0 12px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    border: 1.5px solid transparent;
}
.reg-message--ok {
    background: #E8F8EE;
    border-color: #B7E8C9;
    color: #1F7A4D;
}
.reg-message--err {
    background: #FCEAEA;
    border-color: #F4C2C2;
    color: #B81A1A;
}
.reg-message__link {
    display: inline-block;
    margin-top: 8px;
    color: #022CD4;
    font-weight: 800;
    text-decoration: none;
}
.reg-message__link:hover { text-decoration: underline; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.form-field label {
    font-weight: 700;
    font-size: 13px;
    color: var(--c-text);
    letter-spacing: 0.01em;
}

/* === Estilo de campos (idéntico a /inscripciones/): borde grueso gris idle
   → azul #022CD4 al focus o cuando está lleno. Texto en negrita azul cuando
   está lleno; placeholder gris claro. === */
.form-field input,
.form-field select,
.form-field__phone {
    width: 100%;
    padding: 14px 16px;
    border: 3px solid #E8E8E8;
    border-radius: 8px;
    background-color: #ffffff;
    background-repeat: no-repeat;   /* default explícito por si algún UA lo pisa */
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #9CA3AF;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Hover: borde un poco más oscuro + bg sutil */
.form-field input:hover,
.form-field select:hover,
.form-field__phone:hover {
    border-color: #BFC4D6;
    background-color: #FBFCFE;
}

/* Focus o filled (texto tipeado / opción seleccionada): azul + bold.
   IMPORTANTE: usar background-color (no background shorthand) para no
   resetear el background-image/repeat del chevron de los selects. */
.form-field input:focus,
.form-field select:focus,
.form-field input:not(:placeholder-shown),
.form-field select:required:valid,
.form-field__phone:focus-within {
    outline: none;
    border-color: #022CD4;
    background-color: #ffffff;
    color: #022CD4;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(2, 44, 212, 0.08);
}

.form-field input::placeholder {
    color: #9CA3AF;
    font-weight: 600;
    opacity: 1;
}

/* Flecha custom para selects (appearance: none la elimina) */
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}
.form-field select:focus,
.form-field select:required:valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23022CD4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* === Phone con prefijo +57 (mismo patrón que inscripciones) === */
.form-field__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 0 16px;
}
.form-field__cc {
    color: #9CA3AF;
    font-weight: 700;
    font-size: 14px;
    user-select: none;
    pointer-events: none;
    transition: color 0.2s ease;
}
.form-field__phone:focus-within .form-field__cc,
.form-field__phone:has(input:not(:placeholder-shown)) .form-field__cc {
    color: #022CD4;
}
.form-field__phone input {
    border: none;
    border-radius: 0;
    padding: 14px 16px 14px 0;
    background: transparent;
    flex: 1;
    box-shadow: none;
    transition: color 0.2s ease;
}
.form-field__phone input:hover,
.form-field__phone input:focus,
.form-field__phone input:not(:placeholder-shown) {
    box-shadow: none;
    background: transparent;
    border: none;
}

/* PASO 2: layout 2 columnas — uploads (izq) + firma/seguro (der) */
.step2-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
    align-items: start;
}
.step2-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* PASO 2: uploads */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 0;
}
.upload {
    background: #ffffff;
    border: 1px solid #E5E7EF;
    border-radius: 14px;
    padding: 18px 18px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.upload:hover {
    border-color: var(--c-primary);
    box-shadow: 0 4px 14px rgba(2, 44, 212, 0.08);
}

.upload__ico-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    align-self: flex-start;
}

.upload__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.upload strong {
    color: #28316E;
    font-weight: 800;
    font-size: 14px;
}
.upload__hint {
    color: #9B9B9B;
    font-size: 11.5px;
    font-weight: 500;
}

.upload__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--c-bg-card);
    color: var(--c-primary);
    border: 1.5px dashed #B7C2EE;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease, border-style 0.15s ease;
}
.upload:hover .upload__btn {
    border-style: solid;
    background: #ffffff;
}
.upload__btn svg { width: 16px; height: 16px; }

.firma-box, .firma-secure {
    background: #ffffff;
    border: 1px solid #D7E0F5;
    border-radius: 14px;
    padding: 18px 20px;
}
.firma-box {
    background: #F4F8FF;
}
.firma-box h4 {
    margin: 0 0 4px;
    font-weight: 800;
    font-size: 15px;
    color: #28316E;
}
.firma-box__sub {
    margin: 0 0 14px;
    color: var(--c-text-soft);
    font-size: 12px;
}

/* Row: checkbox a la izq, botón "Limpiar" a la der */
.firma-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
}
.firma-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #28316E;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.35;
}
.firma-check input { accent-color: var(--c-primary); width: 18px; height: 18px; flex-shrink: 0; }
.firma-box__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--c-primary);
    border: none;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}
.firma-box__clear svg { width: 14px; height: 14px; }
.firma-box__clear:hover { color: var(--c-primary-dark); }
.firma-secure {
    background: #E8F8EE;
    border-color: #B7E8C9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.firma-secure__text { min-width: 0; }
.firma-secure__ico-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
}
.firma-secure strong {
    display: block;
    color: #1FA75A;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
}
.firma-secure p {
    margin: 0;
    color: #28316E;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* (Wizard multi-paso eliminado — form unificado en .reg-form) */

/* ============================================================
   STRIP (4 features bottom)
   ============================================================ */
.strip {
    background: #ffffff;
    padding: 30px 32px;
    border-top: 1px solid var(--c-border-soft);
}
.strip__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.strip__inner li {
    display: flex;
    align-items: center;
    gap: 14px;
}
.strip__ico {
    width: 44px; height: 44px;
    background: var(--c-bg-card);
    color: var(--c-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.strip__ico svg { width: 22px; height: 22px; }
.strip__ico-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.strip__inner strong {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: var(--c-text);
}
.strip__inner span {
    color: var(--c-text-soft);
    font-size: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--c-deep);
    color: #ffffff;
    padding: 50px 32px 0;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1.4fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer__col h4 {
    margin: 0 0 14px;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
}
.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__col a {
    color: #C5CEED;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}
.footer__col a:hover { color: #ffffff; }

.footer__logo {
    text-decoration: none;
    display: inline-block;
}
.footer__logo-img {
    height: 56px;
    width: auto;
    display: block;
}
.footer__logo .nav__logo-main { color: #ffffff; font-size: 24px; }
.footer__logo .nav__logo-sub { color: #C5CEED; }
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.footer__social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}
.footer__social a:hover {
    background: var(--c-primary);
    transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; }

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C5CEED;
    font-size: 13px;
}
.footer__contact svg {
    width: 16px; height: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

.footer__col--newsletter p { margin: 0 0 12px; color: #C5CEED; font-size: 12px; }
.footer__news {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.footer__news input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;       /* clave para que el input no fuerce overflow en flex */
    border: none;
    background: transparent;
    padding: 8px 14px;
    color: var(--c-text);
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.footer__news button {
    flex-shrink: 0;
    background: var(--c-primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.footer__news-note {
    margin: 8px 0 0;
    color: #8E97BD;
    font-size: 11px;
}
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    color: #9CA4C8;
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .destacadas__grid { grid-template-columns: 1fr 1fr; }
    .destacadas__grid li:last-child { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }
    .mas__grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .step2-grid { grid-template-columns: 1fr; }
    .cert__inner { grid-template-columns: 1fr; }
    .cert__media { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
    .upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav__menu { display: none; }
    .nav__hamb { display: block; }
    .nav__drawer { display: block; }      /* activa el panel mobile */
    .nav__backdrop { display: block; }
    .nav__cta { display: none; }          /* el CTA queda dentro del drawer */

    .hero__inner { grid-template-columns: 1fr; gap: 30px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }

    .pricing__inner { grid-template-columns: 1fr; background: var(--c-primary); }
    .pricing__col--offer { background: linear-gradient(135deg, #FECE5D 0%, #FFEAA8 100%); }
    .pricing__save { margin: 16px auto 24px; }

    .partners { padding: 30px 20px; }
    .partners__inner { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 20px 14px; }
    .partners__logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 12px;
        justify-items: center;
        align-items: center;
        min-width: 0;
    }
    .partners__logo {
        height: 40px;
        max-width: 100%;
        width: auto;
        min-width: 0;
    }

    .experiencia__inner { grid-template-columns: 1fr; gap: 12px; }
    .strip__inner { grid-template-columns: repeat(2, 1fr); }

    /* Wizard: stack vertical en mobile */
    .wizard-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: var(--shadow-card);
    }
    .wizard-step { width: 100%; }
    .wizard-line {
        width: 2px;
        height: 16px;
        min-width: 2px;
        margin-left: 22px;
    }

    .form-grid { grid-template-columns: 1fr; }
    .cert__perks { grid-template-columns: 1fr 1fr; }

    /* Cert partners 2x2 */
    .cert__partners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 18px;
        justify-items: center;
    }

    .wizard-actions__btn--main { min-width: 0; width: 100%; }

    /* Strip: nav-h ya no es var en mobile; ajusto backdrop por si el header es más alto */
    .nav__backdrop { inset: 130px 0 0 0; }  /* el nav crece a 130px en mobile por el header.. */
}

@media (max-width: 600px) {
    .nav__inner { padding: 0 18px; gap: 12px; }
    .hero { padding: 24px 0 40px; }
    .hero__inner { padding: 0 18px; }
    .destacadas, .mas, .form-section, .experiencia, .cert, .strip { padding-left: 18px; padding-right: 18px; }
    .destacadas__grid, .mas__grid { grid-template-columns: 1fr; }
    .destacadas__grid li:last-child { grid-column: auto; max-width: none; }
    .strip__inner { grid-template-columns: 1fr; }
    .reg-form { padding: 20px 18px; }    /* fix: era .wizard-form viejo */
    .footer { padding: 36px 18px 0; }
    .footer__inner { grid-template-columns: 1fr; gap: 26px; }
    .form-section__head h2 { font-size: 22px; }
    .upload-grid { gap: 12px; }
    .step2-grid { gap: 18px; }
    .reg-submit { padding: 14px 18px; font-size: 15px; }
}
