/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DIPLOMADO EN URGENCIAS CARDIOLÓGICAS
   Universidad Intercontinental — UIC
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   Estructura heredada de la plantilla de urgencias (navy + teal + gold).
   Paleta y formulario heredados del landing de Derecho.

   PALETAS: se cambian con el atributo data-paleta en <html>.
     data-paleta="verde"  → opción 1: 100% verde institucional (por defecto)
     data-paleta="navy"   → opción 2: navy + teal originales, verde en botones
   También se puede forzar por URL:  ?paleta=navy
   ────────────────────────────────────────────────────────────── */

/* ━━━ TOKENS ━━━ */
:root {
    /* verde de Derecho */
    --verde-profundo: #0B4D32;
    --verde: #0F5B3A;
    --verde-medio: #2E8B57;
    --verde-claro: #E4F1E8;
    --green-700: #1F7A48;

    /* texto / fondos neutros */
    --ink: #1D2622;
    --ink-2: #5F6B66;
    --line: #E1E7E3;
    --bg: #F5F7F6;
    --paper: #FFFFFF;

    --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 8px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(11, 42, 91, .08);
    --shadow-lg: 0 24px 60px rgba(11, 42, 91, .14);

    /* Márgenes laterales: idénticos al landing de Derecho */
    --gutter: clamp(16px, 3.1vw, 44px);
    --wrap: 1680px;
    --header-h: 84px;
}

/* ── OPCIÓN 1 · navy + teal + gold (la del HTML de referencia) ──
   Tokens del archivo diplomado-urgencias-cardiologicas.html:
     --uic-navy #0E2A47 · --uic-navy-2 #163B61 · --uic-gold #C9A227
     --tema #0FA3A3 · --tema-oscuro #0B7F80 · --tema-suave #E6F7F6 */
:root,
html[data-paleta="navy"] {
    --dark: #0E2A47;
    /* rgb del color oscuro, para velos y degradados */
    --dark-rgb: 14, 42, 71;
    --dark-2: #163B61;
    --accent: #0FA3A3;
    --accent-hover: #0B7F80;
    --accent-ink: #0B7F80;
    --soft: #E6F7F6;
    --flag: #C9A227;
    --flag-fg: #0E2A47;
    --flag-ink: #C9A227;
    --cta: #0FA3A3;
    --cta-hover: #0B7F80;
    --cta-shadow: 0 10px 24px rgba(15, 163, 163, .34);
}

/* ── OPCIÓN 2 · 100% verde institucional (derecho) ── */
html[data-paleta="verde"] {
    --dark: #0B4D32;
    --dark-rgb: 11, 77, 50;
    --dark-2: #0F5B3A;
    --accent: #2E8B57;
    --accent-hover: #1F7A48;
    --accent-ink: #1F7A48;
    --soft: #E4F1E8;
    --flag: #1F7A48;
    --flag-fg: #FFFFFF;
    --flag-ink: #86D0A8;
    --cta: #2E8B57;
    --cta-hover: #1F7A48;
    --cta-shadow: 0 10px 24px rgba(46, 139, 87, .34);
}

/* ━━━ BASE ━━━ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    font-size: 16px
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

ul {
    list-style: none
}

button,
input,
select {
    font-family: inherit
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter)
}

section {
    padding: 88px 0
}

/* ━━━ HELPERS ━━━ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--soft);
    padding: 6px 14px;
    border-radius: 999px
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent)
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.02em
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    margin: 14px 0 16px;
    color: var(--dark)
}

.lead {
    color: var(--ink-2);
    font-size: 1.08rem;
    max-width: 680px
}

.ico {
    flex: none;
    display: block
}

.ico--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    border: 0;
    border-radius: 6px;
    padding: 15px 26px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease, box-shadow .2s ease;
    white-space: nowrap
}

.btn:hover {
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.btn-primary {
    background: var(--cta);
    color: #fff;
    box-shadow: var(--cta-shadow)
}

.btn-primary:hover {
    background: var(--cta-hover)
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--line)
}

.btn-ghost:hover {
    border-color: var(--accent)
}

.btn-wa {
    background: #fff;
    color: var(--dark)
}

.btn-wa:hover {
    background: var(--soft)
}

.btn__arrow {
    display: inline-flex;
    transition: transform .22s ease
}

.btn:hover .btn__arrow {
    transform: translateX(4px)
}

/* ━━━ HEADER ━━━ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .16)
}

.header .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h)
}

.logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0
}

.logos img.uic {
    height: 46px;
    width: auto
}

.logos .sep {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, .25)
}

.colab-box {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 5px 14px;
    background: #fff;
    border-radius: 10px
}

.colab-box img {
    height: 100%;
    width: auto
}

.header .btn {
    margin-left: auto;
    padding: 12px 22px;
    font-size: .9rem;
    flex-shrink: 0
}

/* ━━━ HERO ━━━ */
.hero {
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 500px at 85% -10%, var(--soft), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%)
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 48px;
    align-items: start
}

.breadcrumb {
    font-size: .82rem;
    color: var(--ink-2);
    margin-bottom: 18px
}

.breadcrumb a:hover {
    color: var(--accent-ink)
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 800;
    margin: 16px 0 18px;
    color: var(--dark)
}

.hero h1 span {
    color: var(--accent-ink)
}

.hero .intro {
    font-size: 1.1rem;
    color: var(--ink-2);
    max-width: 620px
}

.hero-media {
    margin-top: 32px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/8;
    background-color: var(--dark-2);
    background-image: url("../imagenes/urgencias-cardiologicas/hero-pocus.webp");
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow)
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(var(--dark-rgb), .55))
}

.hero-badges {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink)
}

.chip svg {
    color: var(--accent)
}

.chip.hot {
    background: var(--flag);
    color: var(--flag-fg)
}

.chip.hot svg {
    color: var(--flag-fg)
}

/* ━━━ FORMULARIO ━━━ */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--line)
}

.form-card .tag {
    display: inline-block;
    background: var(--flag);
    color: var(--flag-fg);
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px
}

.form-card h2 {
    font-size: 1.5rem;
    margin: 12px 0 6px
}

.form-card p.sub {
    color: var(--ink-2);
    font-size: .92rem;
    margin-bottom: 20px
}

.field {
    margin-bottom: 14px
}

.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 6px
}

.field input,
.field select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-family: inherit;
    font-size: .95rem;
    background: var(--bg);
    color: var(--ink);
    transition: border .15s, background .15s
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff
}

.field input::placeholder {
    color: #9AA5A0
}

.field input.is-bad {
    border-color: #C0392B;
    background: #FDF2F0
}

.field--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.contact-pref {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative
}

.contact-pref input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.contact-pref label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg);
    margin: 0;
    transition: .15s
}

.contact-pref input:checked+label {
    border-color: var(--accent);
    background: var(--soft);
    color: var(--accent-ink)
}

.contact-pref input:focus-visible+label {
    outline: 2px solid var(--accent);
    outline-offset: 2px
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .78rem;
    color: var(--ink-2);
    margin: 6px 0 18px
}

.consent input {
    margin-top: 3px;
    accent-color: var(--accent)
}

.consent a {
    color: var(--accent-ink);
    text-decoration: underline
}

.form-card .btn {
    width: 100%
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--ink-2);
    margin-top: 12px
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px 6px
}

.form-success .ok {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin: 0 auto 16px
}

.form-card.sent form {
    display: none
}

.form-card.sent .form-success {
    display: block
}

/* Resalte del formulario cuando se llega desde un CTA (p.ej. "Descargar
   temario completo"). Un anillo de acento que se apaga solo. */
.form-card.pulse {
    animation: pulso 1.2s ease
}

@keyframes pulso {

    0%,
    100% {
        box-shadow: var(--shadow-lg)
    }

    40% {
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 32%, transparent), var(--shadow-lg)
    }
}

/* ━━━ FICHA TÉCNICA ━━━ */
.ficha {
    padding: 0;
    margin-top: -24px;
    position: relative;
    z-index: 2
}

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden
}

.ficha-item {
    padding: 26px 22px;
    border-right: 1px solid var(--line)
}

.ficha-item:last-child {
    border-right: 0
}

.ficha-item .ic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 14px
}

.ficha-item dt {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2)
}

.ficha-item dd {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.3
}

.ficha-item dd small {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-top: 3px
}

.ficha-item.descuento {
    background: var(--dark);
    color: #fff
}

.ficha-item.descuento dt,
.ficha-item.descuento dd small {
    color: rgba(255, 255, 255, .72)
}

.ficha-item.descuento .ic {
    background: var(--flag);
    color: var(--flag-fg)
}

/* ━━━ OBJETIVO ━━━ */
.objetivo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

.objetivo-grid > * {
    max-width: 720px
}

.objetivo-quote {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px;
    position: relative;
    overflow: hidden
}

.objetivo-quote::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .25;
    right: -80px;
    top: -80px
}

.objetivo-quote p {
    position: relative;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.45
}

.objetivo-quote .lbl {
    position: relative;
    display: block;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--flag-ink);
    font-weight: 700;
    margin-bottom: 16px
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px
}

.stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--line)
}

.stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent-ink);
    line-height: 1
}

.stat span {
    font-size: .82rem;
    color: var(--ink-2)
}

/* ━━━ DIFERENCIADORES ━━━ */
.diferenciadores {
    background: #fff
}

.dif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px
}

.dif {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.dif:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
    background: #fff
}

.dif .ic {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 18px
}

.dif h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark)
}

.dif p {
    font-size: .94rem;
    color: var(--ink-2)
}

.dif.feature {
    background: var(--soft);
    border-color: transparent
}

/* ━━━ DIRIGIDO A ━━━ */
.dirigido-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px
}

.perfil {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--line)
}

.perfil h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--dark)
}

.perfil h3 .ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.perfil p {
    color: var(--ink-2)
}

.perfil.wide {
    grid-column: 1/-1
}

.perfil.wide .check-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px
}

.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 6px
}

.check-list li {
    display: flex;
    gap: 12px;
    color: var(--ink-2)
}

.check-list li::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8B57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat
}

/* ━━━ VIDEOS (opcional) ━━━ */
body[data-video-instructor="off"] .js-vid-instructor,
body[data-testimonios="off"] .js-testimonios {
    display: none !important
}

body[data-video-instructor="off"][data-testimonios="off"] .js-videos {
    display: none !important
}

.testimonios {
    background: var(--dark);
    color: #fff
}

.testimonios .eyebrow {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

.testimonios h2 {
    color: #fff
}

.testimonios .lead {
    color: rgba(255, 255, 255, .75)
}

.video-block {
    margin-top: 40px
}

.video-block+.video-block {
    margin-top: 56px
}

.video-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px
}

.video-block h3::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--flag)
}

.video-feature {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-2)
}

.video-feature .frame {
    aspect-ratio: 16/9;
    max-height: none
}

.video-feature .info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.video-feature .info span.k {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--flag-ink)
}

.video-feature .info b {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 10px 0 8px
}

.video-feature .info p {
    color: rgba(255, 255, 255, .72);
    font-size: .95rem;
    margin-bottom: 22px
}

.video-feature .info .btn {
    align-self: flex-start
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.video {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-2)
}

.video .frame {
    aspect-ratio: 9/16;
    max-height: 440px;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--dark-2), var(--accent-hover))
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.video .ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .8);
    text-align: center;
    font-size: .85rem;
    padding: 20px
}

.video .ph .play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: grid;
    place-items: center;
    margin: 0 auto 12px
}

.video .cap {
    padding: 16px 18px
}

.video .cap b {
    display: block;
    font-size: .95rem
}

.video .cap span {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65)
}

/* ━━━ TEMARIO ━━━ */
.temario-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    flex-wrap: wrap
}

.temario-total {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.modulos {
    display: grid;
    gap: 14px;
    margin-top: 40px;
    list-style: none
}

.modulo {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: border-color .2s, box-shadow .2s
}

.modulo:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow)
}

.modulo .num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem
}

.modulo h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--dark)
}

.modulo .meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 999px
}

.pill.prac {
    background: var(--soft);
    color: var(--accent-ink)
}

.modulo .hrs {
    text-align: right;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1
}

.modulo .hrs small {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 4px
}

.temario-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--soft);
    border: 1.5px dashed var(--accent)
}

.temario-cta b {
    display: block;
    font-size: 1.05rem
}

.temario-cta span {
    color: var(--ink-2);
    font-size: .92rem
}

/* Distribución de horas */
.dist {
    margin-top: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px
}

.dist-txt b {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px
}

.dist-txt span {
    color: var(--ink-2);
    font-size: .94rem
}

.dist-bar {
    display: flex;
    gap: 4px;
    margin-top: 18px;
    height: 34px
}

.dist-bar .seg {
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap
}

.dist-bar .on {
    background: var(--dark);
    color: #fff
}

.dist-bar .pr {
    background: var(--accent);
    color: #fff
}

.dist-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: .82rem;
    color: var(--ink-2)
}

.dist-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -1px
}

.dist-legend i.on {
    background: var(--dark)
}

.dist-legend i.pr {
    background: var(--accent)
}

/* ━━━ INSTRUCTOR ━━━ */
.instructor {
    background: #fff
}

.inst-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--line)
}

.inst-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--soft)
}

.inst-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.inst-photo .badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .8rem;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: var(--shadow)
}

.inst-photo .badge .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.inst-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 10px 0 4px;
    color: var(--dark)
}

.inst-card .role {
    color: var(--accent-ink);
    font-weight: 600;
    margin-bottom: 18px
}

.inst-card p {
    color: var(--ink-2);
    margin-bottom: 12px;
    max-width: 760px
}

.inst-card p:last-child {
    margin-bottom: 0
}

/* ━━━ FAQ ━━━ */
.faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: start
}

.faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px)
}

.faq-aside .help {
    margin-top: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px
}

.faq-aside .help b {
    display: block;
    margin-bottom: 4px
}

.faq-aside .help p {
    font-size: .9rem;
    color: var(--ink-2);
    margin-bottom: 16px
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: border-color .2s
}

details[open] {
    border-color: var(--accent)
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

summary::-webkit-details-marker {
    display: none
}

summary .tg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .2s
}

details[open] summary .tg {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff
}

details .ans {
    padding: 0 26px 22px;
    color: var(--ink-2)
}

/* ━━━ CTA FINAL ━━━ */
.cta-final {
    padding: 0 0 88px
}

.cta-box {
    background: var(--dark);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    color: #fff;
    position: relative;
    overflow: hidden
}

.cta-text {
    position: relative;
    z-index: 2;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.cta-box h2 {
    margin: 0 0 10px;
    color: #fff
}

.cta-box p {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 28px
}

.cta-box .acts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.cta-media {
    position: relative;
    background-color: var(--dark-2);
    background-image: url("../imagenes/urgencias-cardiologicas/sala-reanimacion.webp");
    background-position: center;
    background-size: cover
}

.cta-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark) 0%, rgba(var(--dark-rgb), .55) 30%, transparent 60%)
}

.cta-label {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: auto;
    max-width: calc(100% - 40px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    color: var(--ink);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: .82rem;
    line-height: 1.35;
    box-shadow: var(--shadow)
}

.cta-label svg {
    color: var(--accent);
    flex-shrink: 0
}

.cta-label b {
    display: block;
    font-size: .85rem
}

/* ━━━ FOOTER ━━━ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .72);
    padding: 44px 0;
    font-size: .88rem
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center
}

.footer img {
    height: 44px;
    width: auto
}

.footer a:hover {
    color: #fff
}

.uic-trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap
}

.uic-trust span b {
    color: #fff
}

/* ━━━ CTA MÓVIL ━━━ */
.mobile-cta {
    display: none
}

/* ━━━ PENDIENTES ━━━ */
mark.pendiente {
    background: #FFF1B8;
    color: inherit;
    padding: 0 4px;
    border-radius: 3px
}

/* ━━━ RESPONSIVE ━━━ */
@media (max-width:1280px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 460px
    }
}

@media (max-width:1080px) {
    .ficha-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .ficha-item:nth-child(3) {
        border-right: 0
    }

    .ficha-item:nth-child(-n+3) {
        border-bottom: 1px solid var(--line)
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 420px
    }
}

@media (max-width:960px) {
    section {
        padding: 64px 0
    }

    .hero-grid,
    .objetivo-grid,
    .dirigido-grid,
    .faq-grid,
    .inst-card,
    .cta-box {
        grid-template-columns: 1fr
    }

    .hero-grid {
        gap: 32px
    }

    .cta-media {
        order: -1;
        aspect-ratio: 16/9
    }

    .cta-media::before {
        background: linear-gradient(0deg, var(--dark) 0%, transparent 45%)
    }

    .cta-label {
        left: 12px;
        right: auto;
        top: 12px;
        bottom: auto;
        padding: 8px 12px;
        font-size: .74rem
    }

    .cta-label b {
        font-size: .78rem
    }

    .form-card,
    .faq-aside {
        position: static
    }

    .dif-grid,
    .video-grid {
        grid-template-columns: 1fr 1fr
    }

    .video-feature {
        grid-template-columns: 1fr
    }

    .video-feature .info {
        padding: 26px
    }

    .inst-photo {
        max-width: 340px
    }

    .objetivo-grid > * {
        max-width: none
    }
}

@media (max-width:640px) {
    .header .wrap {
        height: auto;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px
    }

    .logos img.uic {
        height: 32px
    }

    /* En móvil el CTA está fijo abajo: el del header sobra */
    .header .btn {
        display: none
    }

    .ficha-grid {
        grid-template-columns: 1fr 1fr
    }

    .ficha-item {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line)
    }

    .ficha-item:nth-child(2n) {
        border-right: 0
    }

    .ficha-item:nth-child(3) {
        border-right: 1px solid var(--line)
    }

    .dif-grid,
    .video-grid,
    .stats,
    .field--split,
    .perfil.wide .check-list {
        grid-template-columns: 1fr
    }

    .colab-box {
        height: 48px;
        padding: 4px 10px
    }

    .dist {
        padding: 20px
    }

    .dist-bar .seg {
        font-size: .62rem
    }

    .modulo {
        grid-template-columns: auto 1fr;
        padding: 20px
    }

    .modulo .hrs {
        grid-column: 2;
        text-align: left
    }

    .form-card,
    .perfil,
    .inst-card,
    .cta-text,
    .objetivo-quote {
        padding: 26px
    }

    .contact-pref label {
        font-size: .72rem
    }

    .hero-media {
        aspect-ratio: 4/3
    }

    .hero-badges {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 6px
    }

    .chip {
        padding: 6px 11px;
        font-size: .74rem;
        gap: 6px
    }

    .mobile-cta {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 55
    }

    .mobile-cta .btn {
        width: 100%
    }

    .footer {
        padding-bottom: 100px
    }
}
