/* =========================================
   1. VARIABLES (paleta y tipografía)
   ========================================= */
:root {
    --navy: #0F172A; /* Deeper slate for high-tech premium contrast */
    --navy-brand: #06213B; /* Original brand navy */
    --navy-soft: #1E293B; /* Soft slate/navy mix */
    --white: #FCFDFF;
    --blue: #0090F8; /* Bright Celeste/Brand Blue */
    --blue-hover: #007BDA;
    --blue-light: #8BCCFC;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    --font-display: 'Inter', sans-serif; /* Framer styled headings */
    --font-serif: 'Fraunces', serif; /* Serif for high-end styling */
    --font-body: 'Inter', sans-serif;

    --radius: 20px; /* Larger border-radius */
    --radius-sm: 14px;
    --max-width: 1200px;
    
    /* Soft Elevation Shadows (Framer style) */
    --shadow-soft-sm: 0 4px 20px rgba(15, 23, 42, 0.02);
    --shadow-soft-md: 0 16px 40px -10px rgba(6, 33, 59, 0.05), 0 1px 3px rgba(6, 33, 59, 0.01);
    --shadow-soft-lg: 0 30px 60px -15px rgba(6, 33, 59, 0.08), 0 1px 4px rgba(6, 33, 59, 0.01);
    --shadow-hover: 0 20px 40px -5px rgba(0, 144, 248, 0.12), 0 4px 12px rgba(0, 144, 248, 0.03);

    --transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   2. RESET BÁSICO AND BG
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: #FAFBFD;
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 204, 252, 0.2) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(220, 238, 255, 0.45) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(139, 204, 252, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800; /* Framer styled bold */
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* =========================================
   3. ELEMENTOS REUTILIZABLES
   ========================================= */
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-soft-sm);
}

.btn:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn:active {
    transform: scale(0.99) translateY(0);
}

.btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 144, 248, 0.15);
}

.btn--primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 8px 24px rgba(0, 144, 248, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--navy-brand);
    border: 1.5px solid var(--navy-brand);
}

.btn--ghost:hover {
    background: rgba(6, 33, 59, 0.04);
}

.btn--nav {
    padding: 10px 18px;
}

/* Unified Scroll reveal animations */
.reveal,
.testimonio-card,
.banner,
.modo-card,
.course-card,
.panel-card,
.card,
.notice-box,
.share-bar,
.cta-banner,
.ranking-live,
.stats-bar,
.launch-card {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.is-visible,
.testimonio-card.is-visible,
.banner.is-visible,
.modo-card.is-visible,
.course-card.is-visible,
.panel-card.is-visible,
.card.is-visible,
.notice-box.is-visible,
.share-bar.is-visible,
.cta-banner.is-visible,
.ranking-live.is-visible,
.stats-bar.is-visible,
.launch-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   4. HEADER
   ========================================= */
.header {
    position: sticky;
    top: 0;
    background: rgba(250, 251, 253, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
    border-bottom: 1px solid rgba(228, 233, 239, 0.4);
    transition: border-color 0.3s ease;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* --- Marca (ícono + wordmark + subtítulo) --- */
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo__word {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--blue);
    white-space: nowrap;
    letter-spacing: -0.03em;
}

.logo__word b {
    color: var(--navy-brand);
    font-weight: 850;
}

.brand__divider {
    width: 1px;
    height: 32px;
    background: rgba(228, 233, 239, 0.8);
    flex-shrink: 0;
    display: block;
}

.brand__subtitle {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
}

.brand__eyebrow {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--navy-brand);
    white-space: nowrap;
}

.brand__desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Links centrales --- */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #475569;
}

.nav a {
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy-brand);
}

/* --- Botones a la derecha --- */
.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn--share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(228, 233, 239, 0.4);
    color: var(--navy-brand);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(228, 233, 239, 0.2);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

.btn--share:hover {
    background: rgba(228, 233, 239, 0.7);
    transform: scale(1.02);
}

.btn--cta {
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), #1D4ED8);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 144, 248, 0.2);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s ease;
}

.btn--cta:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 144, 248, 0.35);
}

/* =========================================
   5. HERO — SIMULACRO
   ========================================= */
.hero {
    padding: 130px 0 150px;
    background: linear-gradient(135deg, rgba(0, 144, 248, 0.08) 0%, rgba(139, 204, 252, 0.18) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 204, 252, 0.25) 0%, rgba(0, 144, 248, 0.05) 75%, transparent 100%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Badge superior */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 222, 251, 0.5);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(6, 33, 59, 0.03);
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
}

.eyebrow--center {
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 750;
}

.hero__title {
    font-size: clamp(3.2rem, 8vw, 5.2rem);
    color: var(--navy-brand);
    margin: 28px 0 20px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 850;
}

.hero__title .accent {
    background: linear-gradient(135deg, var(--blue) 20%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero__date {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero__desc {
    font-size: 1.18rem;
    color: #334155;
    max-width: 60ch;
    margin: 0 auto 44px;
    line-height: 1.65;
}

.hero__desc b {
    color: var(--navy-brand);
}

/* Banner de ranking */
.banner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 26px;
    box-shadow: 0 12px 34px -10px rgba(6, 33, 59, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px -12px rgba(0, 144, 248, 0.15);
    background: rgba(255, 255, 255, 0.75);
}

.banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 144, 248, 0.1);
}

.banner__text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.banner__text strong {
    color: var(--navy-brand);
    font-size: 0.95rem;
    font-weight: 750;
}

.banner__text span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.banner__link {
    color: var(--blue);
    font-weight: 750;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Grid de tarjetas de modo */
.modo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    text-align: left;
}

.modo-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 34px -10px rgba(6, 33, 59, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(0, 144, 248, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.modo-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.modo-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(0, 144, 248, 0.1) 0%, rgba(139, 204, 252, 0.02) 100%);
    border: 1px solid rgba(0, 144, 248, 0.15);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.modo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--navy-brand);
}

.modo-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.modo-card p b {
    color: var(--navy-brand);
}

.modo-card--dark {
    background: linear-gradient(135deg, var(--navy-brand) 0%, var(--navy-soft) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 16px 40px rgba(6, 33, 59, 0.12);
}

.modo-card--dark p {
    color: #B9C4D3;
}

.modo-card--dark h3 {
    color: var(--white);
}

.modo-card__tag {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.modo-card__list {
    margin-bottom: 22px;
}

.modo-card__list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9rem;
    color: #CBD5E1;
    margin-bottom: 10px;
}

.modo-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-light);
    font-weight: 700;
}

.modo-card__link {
    color: var(--white);
    font-weight: 750;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.modo-card__link:hover {
    transform: translateX(4px);
}

/* =========================================
   6. CURSOS
   ========================================= */
.cursos {
    padding: 100px 0;
}

.cursos h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--navy-brand);
    margin-bottom: 44px;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 34px -10px rgba(6, 33, 59, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(6, 33, 59, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.85);
}

.card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(228, 233, 239, 0.5);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.3) 0%, rgba(219, 234, 254, 0.3) 100%);
    box-shadow: 
        0 10px 24px -8px rgba(6, 33, 59, 0.12),
        0 4px 8px -4px rgba(6, 33, 59, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
}

.card:hover .card__img {
    transform: translateY(-6px) scale(1.02) rotate(1deg);
    box-shadow: 
        0 20px 36px -10px rgba(6, 33, 59, 0.2),
        0 12px 20px -8px rgba(6, 33, 59, 0.1),
        0 0 0 1px rgba(0, 144, 248, 0.15);
}

.card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--navy-brand);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.card__price {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy-brand);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--blue);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.card:hover .card__cta {
    background: var(--navy-brand);
    transform: translateX(2px);
}

/* =========================================
   7. BENEFICIOS
   ========================================= */
.beneficios {
    background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
}

.beneficios h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 28px;
}

.beneficios__inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
}

.lista-check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: #94A3B8;
    font-size: 1.05rem;
}

.lista-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-light);
    font-weight: 750;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 44px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-box__number {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-light) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box__label {
    color: #94A3B8;
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   8. TESTIMONIOS
   ========================================= */
.testimonios {
    padding: 100px 0;
    text-align: center;
}

.testimonios h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--navy-brand);
    margin-bottom: 44px;
}

.testimonio-card {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft-md);
}

.testimonio-card p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--navy-brand);
    margin-bottom: 20px;
    line-height: 1.5;
}

.testimonio-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================
   9. CTA
   ========================================= */
.cta {
    background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
    color: var(--white);
    padding: 95px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 80%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.cta p {
    margin-bottom: 36px;
    opacity: 0.9;
    font-size: 1.05rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.cta__form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta__form input {
    padding: 14px 22px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 280px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cta__form input:focus {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.cta__form .btn--primary {
    border-radius: 99px;
    padding: 14px 28px;
    background: var(--navy);
    color: #fff;
    font-weight: 750;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.cta__form .btn--primary:hover {
    background: #020617;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.cta__msg {
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(228, 233, 239, 0.6);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 20px;
}

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 860px) {

    .hero__inner,
    .beneficios__inner {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {

    .brand__divider,
    .brand__subtitle {
        display: none;
    }

    .modo-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        flex-wrap: wrap;
    }

    .detalle__grid {
        grid-template-columns: 1fr;
    }

    .pack-sidebar,
    .courses-col {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .modo-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
        order: 3;
    }

    .btn--share span {
        display: none;
    }

    .btn--share {
        padding: 10px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 18px;
        border-bottom: 1px solid #E4E9EF;
        display: none;
    }

    .nav.is-open {
        display: flex;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .header__actions {
        gap: 6px;
    }

    .btn--cta {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .region-bar {
        grid-template-columns: 80px 1fr 64px;
        gap: 8px;
    }

    .area-bar {
        grid-template-columns: 10px 1fr;
        row-gap: 4px;
    }

    .area-bar__track {
        grid-column: 1 / -1;
    }

    .area-bar__value {
        grid-column: 1 / -1;
        text-align: left;
    }

    .composition {
        gap: 20px;
    }

    .composition__legend {
        grid-template-columns: 1fr;
    }

    .composition__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ranking-row {
        grid-template-columns: 26px 1fr auto;
    }

    .ranking-row__grade {
        display: none;
    }
}

/* =========================================
   5b. DETALLE DEL SIMULACRO (pack + modos + cursos)
   ========================================= */
.detalle {
    padding: 90px 0 110px;
    background: transparent; /* Let body gradients show through */
}

.detalle .container {
    max-width: var(--max-width);
}

.detalle__grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 250px;
    gap: 32px;
    align-items: start;
}

.detalle__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.detalle__label--right {
    text-align: right;
}

/* --- Columna izquierda: pack --- */
.pack-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbars for a clean look */
    padding-right: 4px;
}

.pack-sidebar::-webkit-scrollbar {
    display: none;
}

.btn-whatsapp-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-weight: 750;
    font-size: 0.9rem;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.btn-whatsapp-pill:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
    background: #22c05B;
}

.pack-card {
    background: linear-gradient(135deg, var(--navy-brand) 0%, var(--navy-soft) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft-md);
}

.pack-card__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--blue-light);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.pack-card h3 {
    font-size: 1.28rem;
    line-height: 1.28;
    color: #fff;
    margin-bottom: 12px;
}

.accent-light {
    color: var(--blue-light);
}

.pack-card>p {
    font-size: 0.86rem;
    color: #AEBBCC;
    margin-bottom: 18px;
}

.pack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pack-chips span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #DCE4EE;
    font-size: 0.74rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
}

.pack-card__meta {
    font-size: 0.78rem;
    color: var(--blue-light);
    padding-top: 16px;
    margin-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pack-card__cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Columna central --- */
.detalle__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modo-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    box-shadow: var(--shadow-soft-sm);
}

.share-bar>span:first-child {
    font-size: 0.88rem;
    color: var(--navy-brand);
    font-weight: 750;
}

.share-bar__actions {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-btn:hover {
    transform: scale(1.02);
}

.share-btn--whatsapp {
    background: #E8FDF0;
    color: #128C7E;
    box-shadow: 0 4px 10px rgba(18, 140, 126, 0.08);
}

.share-btn--whatsapp:hover {
    background: #D8FBE4;
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.15);
}

.share-btn--copy {
    background: rgba(228, 233, 239, 0.4);
    color: var(--navy-brand);
}

.share-btn--copy:hover {
    background: rgba(228, 233, 239, 0.7);
}

.cta-banner {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
    color: #fff;
    font-weight: 750;
    font-size: 0.95rem;
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 144, 248, 0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.cta-banner:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 144, 248, 0.35);
}

.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(234, 244, 254, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 222, 251, 0.5);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft-sm);
}

.notice-box__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 12px;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(0, 144, 248, 0.08);
}

.notice-box p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.notice-box p b {
    color: var(--navy-brand);
}

.ranking-live {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft-md);
}

.ranking-live__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFBEB;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid #FEF3C7;
}

.ranking-live__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-live__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    color: var(--navy-brand);
    font-size: 0.92rem;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #E8FDF0;
    color: #15803D;
    font-size: 0.65rem;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 999px;
}

.live-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
}

.ranking-live__sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.stats-bar {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    background: rgba(234, 244, 254, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px 24px;
    box-shadow: var(--shadow-soft-sm);
    border: 1px solid rgba(191, 222, 251, 0.4);
}

.stats-bar__number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 850;
    color: var(--blue);
}

.stats-bar>span:last-child {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Columna derecha: cursos --- */
.courses-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 4px;
}

.courses-col::-webkit-scrollbar {
    display: none;
}

.course-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(228, 233, 239, 0.5);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(6, 33, 59, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(6, 33, 59, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.8);
}

.course-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.course-card__tag {
    background: var(--blue);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.course-card__link {
    color: var(--blue);
    font-weight: 750;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.course-card__link:hover {
    transform: translateX(2px);
}

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--navy-brand);
}

.course-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.course-card__list {
    margin-bottom: 16px;
}

.course-card__list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 8px;
}

.course-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

.course-card__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    border-top: 1px solid rgba(228, 233, 239, 0.6);
    padding-top: 14px;
    line-height: 1.4;
}

.course-card__meta-old {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: currentColor;
    opacity: 0.75;
    white-space: nowrap;
}

.course-card__meta-new {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--blue);
    white-space: nowrap;
}

.course-card__meta--cyan .course-card__meta-new {
    color: #0891B2;
}

.course-card__meta--alt .course-card__meta-new {
    color: #7C3AED;
}

/* Variante violeta para el 2do curso, mismo look que la referencia */
.course-card--alt {
    border-color: #7C3AED;
}

.course-card__tag--alt {
    background: #7C3AED;
}

.course-card__link--alt {
    color: #7C3AED;
}

.course-card__list--alt li::before {
    color: #7C3AED;
}

.course-card__meta--alt {
    color: #7C3AED;
}

/* =========================================
   5c. TARJETA DE LANZAMIENTO (sidebar izquierda)
   ========================================= */
.launch-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(228, 233, 239, 0.5);
    border-left: 5px solid var(--blue);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(6, 33, 59, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.launch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(6, 33, 59, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.launch-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.launch-card__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.launch-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.launch-card>p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.launch-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(228, 233, 239, 0.6);
}

.launch-card__meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.launch-card__meta span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.launch-card__meta b {
    font-size: 0.84rem;
    color: var(--navy-brand);
    font-weight: 600;
}

.launch-card__cta {
    display: block;
    width: 100%;
    text-align: center;
}

.live-dot--alt {
    background: #FEE2E2;
    color: #DC2626;
}

.live-dot--alt::before {
    background: #EF4444;
}

/* =========================================
   5d. PANEL CARDS (ranking, regiones, composición, temario)
   ========================================= */
.panel-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 14px 40px -12px rgba(6, 33, 59, 0.05), 0 1px 2px rgba(6, 33, 59, 0.01), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.panel-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 144, 248, 0.12) 0%, rgba(139, 204, 252, 0.03) 100%);
    border: 1px solid rgba(0, 144, 248, 0.15);
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.panel-card__head>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--navy-brand);
    font-size: 1.15rem;
    letter-spacing: -0.018em;
}

.panel-card__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Stat destacado del ranking */
.stats-highlight {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(234, 244, 254, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(191, 222, 251, 0.5);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.stats-highlight__number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 850;
    color: var(--blue);
    flex-shrink: 0;
}

.stats-highlight__text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

.stats-highlight__text b {
    color: var(--navy-brand);
}

/* Tabla de ranking */
.ranking-empty {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(248, 250, 252, 0.5);
    border: 1px dashed rgba(228, 233, 239, 0.8);
    border-radius: var(--radius-sm);
    padding: 22px;
    text-align: center;
}

.ranking-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(228, 233, 239, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft-sm);
}

.ranking-row__pos {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 750;
}

.ranking-row__pos--gold {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.ranking-row__pos--silver {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.ranking-row__pos--bronze {
    background: #FFEDD5;
    color: #9A3412;
    border: 1px solid #FDBA74;
}

.ranking-row__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy-brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-row__tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(228, 233, 239, 0.5);
    padding: 2px 8px;
    border-radius: 999px;
}

.ranking-row__score {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
}

.ranking-row__grade {
    font-size: 0.88rem;
    font-weight: 700;
    color: #16A34A;
    white-space: nowrap;
}

/* Barras de regiones */
.region-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

.region-bar {
    display: grid;
    grid-template-columns: 110px 1fr 80px;
    align-items: center;
    gap: 16px;
}

.region-bar__name {
    font-size: 0.85rem;
    color: var(--navy-brand);
    font-weight: 700;
}

.region-bar__track {
    height: 10px;
    background: rgba(228, 233, 239, 0.4);
    border-radius: 999px;
    overflow: hidden;
}

.region-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 999px;
}

.region-bar__value {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

/* Composición del examen (donut) */
.composition {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 60px; /* Increased from 48px */
    padding: 32px 16px; /* Increased padding */
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.donut {
    flex-shrink: 0;
    width: 200px; /* Increased from 180px */
    height: 200px; /* Increased from 180px */
    border-radius: 50%;
    background: conic-gradient(#2563EB 0% 10%,
            #0891B2 10% 20%,
            #7C3AED 20% 30%,
            #10B981 30% 40%,
            #F59E0B 40% 50%,
            #E11D48 50% 60%,
            #14B8A6 60% 70%,
            #F97316 70% 80%,
            #D946EF 80% 90%,
            #64748B 90% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(6, 33, 59, 0.08), inset 0 2px 8px rgba(0, 0, 0, 0.01);
}

.donut__hole {
    width: 130px; /* Increased from 110px */
    height: 130px; /* Increased from 110px */
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 10px rgba(6, 33, 59, 0.05); /* Softer inner shadow */
}

.donut__hole span {
    font-family: var(--font-display);
    font-size: 1.85rem; /* Slightly larger */
    font-weight: 850;
    color: var(--navy-brand);
}

.donut__hole small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.composition__intro {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 4px 0 24px;
}

.composition__legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 36px; /* Increased from 12px 32px */
    flex: 1;
    min-width: 260px;
}

.composition__legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #475569;
    padding: 2px 0;
}

.composition__legend li b {
    color: var(--navy-brand);
    margin-left: auto;
    font-weight: 700;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.dot--1 {
    background: #2563EB;
}

.dot--2 {
    background: #0891B2;
}

.dot--3 {
    background: #7C3AED;
}

.dot--4 {
    background: #10B981;
}

.dot--5 {
    background: #F59E0B;
}

.dot--6 {
    background: #E11D48;
}

.dot--7 {
    background: #14B8A6;
}

.dot--8 {
    background: #F97316;
}

.dot--9 {
    background: #D946EF;
}

.dot--10 {
    background: #64748B;
}

.area-bars {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased from 16px */
    margin-bottom: 36px;
    background: rgba(248, 250, 252, 0.4);
    padding: 28px; /* Increased from 20px */
    border-radius: 16px;
    border: 1px solid rgba(228, 233, 239, 0.45);
}

.area-bar {
    display: grid;
    grid-template-columns: 10px 140px 1fr 100px;
    align-items: center;
    gap: 20px; /* Increased from 16px */
}

.area-bar__name {
    font-size: 0.85rem;
    color: var(--navy-brand);
    font-weight: 700;
}

.area-bar__track {
    height: 8px; /* Reduced from 10px to be more minimal / Apple-style */
    background: rgba(228, 233, 239, 0.5);
    border-radius: 999px;
    overflow: hidden;
}

.area-bar__fill {
    height: 100%;
    border-radius: 999px;
}

.area-bar__fill--1 {
    background: #2563EB;
}

.area-bar__fill--2 {
    background: #0891B2;
}

.area-bar__fill--3 {
    background: #7C3AED;
}

.area-bar__fill--4 {
    background: #10B981;
}

.area-bar__fill--5 {
    background: #F59E0B;
}

.area-bar__fill--6 {
    background: #E11D48;
}

.area-bar__fill--7 {
    background: #14B8A6;
}

.area-bar__fill--8 {
    background: #F97316;
}

.area-bar__fill--9 {
    background: #D946EF;
}

.area-bar__fill--10 {
    background: #64748B;
}

.area-bar__value {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.composition__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(228, 233, 239, 0.6);
}

.composition__stats div {
    text-align: center;
}

.composition__stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--blue);
    font-weight: 850;
}

.composition__stats span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Temario evaluado */
.temario-group {
    margin-bottom: 24px;
}

.temario-group:last-child {
    margin-bottom: 0;
}

.temario-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.temario-group__head b {
    font-size: 0.98rem;
    color: var(--navy-brand);
    font-weight: 750;
}

.temario-count {
    margin-left: auto;
    font-size: 0.74rem;
    color: var(--blue);
    background: rgba(231, 243, 253, 0.6);
    border: 1px solid rgba(191, 222, 251, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

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

.temario-tags span {
    font-size: 0.78rem;
    color: #475569;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid rgba(228, 233, 239, 0.6);
    padding: 6px 14px;
    border-radius: 999px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.temario-tags span:hover {
    transform: translateY(-1px);
    border-color: var(--blue-light);
}

.temario-tags span b {
    color: var(--blue);
    margin-left: 4px;
    font-weight: 700;
}

/* Tercer curso (cyan) */
.course-card--cyan {
    border-color: #0891B2;
}

.course-card__tag--cyan {
    background: #0891B2;
}

.course-card__link--cyan {
    color: #0891B2;
}

.course-card__list--cyan li::before {
    color: #0891B2;
}

.course-card__meta--cyan {
    color: #0891B2;
}

/* Respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .ecg__line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .card,
    .testimonio-card {
        transition: none;
    }
}

/* =========================================
   6. MODAL: NOMBRE Y REGIÓN
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 33, 59, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 300;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(6, 33, 59, 0.25);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: var(--navy);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: #E2E8F0;
}

.modal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}

.modal-form input,
.modal-form select {
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #D9E1EA;
    background: var(--white);
    color: var(--navy);
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--blue);
}

.modal-form__submit {
    margin-top: 6px;
    width: 100%;
    text-align: center;
}

/* =========================================
   7. VISTA DEL EXAMEN
   ========================================= */
.exam-view {
    padding: 40px 0 80px;
    background: var(--white);
}

.exam-view[hidden] {
    display: none;
}

.exam-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.exam-topbar__back {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.exam-topbar__back:hover {
    color: var(--navy);
}

.exam-topbar__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.exam-topbar__progress-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.exam-topbar__progress .exam-progress {
    margin-bottom: 0;
}

.exam-topbar__fraction,
.exam-topbar__timer,
.exam-topbar__answered {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: #F1F5F9;
    padding: 8px 14px;
    border-radius: 10px;
}

.exam-topbar__fraction b,
.exam-topbar__answered b {
    color: var(--navy);
}

.exam-topbar__timer {
    background: #FEF3E2;
    color: #92400E;
    font-weight: 700;
}

.exam-topbar__finish {
    white-space: nowrap;
}

.exam-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.exam-meta__number {
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.exam-meta__tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.exam-meta__tag--area {
    background: #E7F3FD;
    color: var(--blue);
}

.exam-meta__tag--topic {
    background: #F3E8FF;
    color: #7C3AED;
}

.exam-meta__warning {
    font-size: 0.78rem;
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 6px 12px;
    border-radius: 8px;
    flex: 1;
    min-width: 220px;
}

.exam-meta__warning b {
    font-weight: 700;
}

.exam-progress {
    height: 8px;
    background: #EEF2F7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.exam-progress__fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 999px;
    transition: width 0.3s ease;
}

.exam-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: start;
}

.exam-question-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(228, 233, 239, 0.7);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-soft-md);
}

.exam-question-card h3 {
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--navy-brand);
    margin-bottom: 28px;
    font-weight: 750;
}

.exam-question-card__hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.exam-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.exam-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid rgba(228, 233, 239, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy-brand);
    text-align: left;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Carrusel de videos de YouTube */
.video-carousel {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(228, 233, 239, 0.6);
}

.video-carousel__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--navy-brand);
    margin-bottom: 16px;
}

.video-carousel__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

.video-carousel__card {
    flex-shrink: 0;
    width: 270px;
}

.video-carousel__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0A1929;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft-sm);
}

.video-carousel__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-carousel__title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.video-carousel__empty {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(248, 250, 252, 0.5);
    border: 1px dashed rgba(228, 233, 239, 0.8);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
}

.video-carousel__empty code {
    background: rgba(238, 242, 247, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.exam-option:hover {
    border-color: var(--blue-light);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.exam-option__letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EEF2F7;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease;
}

.exam-option.is-selected {
    border-color: var(--blue);
    background: #EAF4FE;
    box-shadow: 0 4px 12px rgba(0, 144, 248, 0.08);
}

.exam-option.is-selected .exam-option__letter {
    background: var(--blue);
    color: #fff;
}

.exam-option.is-correct {
    border-color: #22C55E;
    background: #F0FDF4;
}

.exam-option.is-correct .exam-option__letter {
    background: #22C55E;
    color: #fff;
}

.exam-option.is-incorrect {
    border-color: #EF4444;
    background: #FEF2F2;
}

.exam-option.is-incorrect .exam-option__letter {
    background: #EF4444;
    color: #fff;
}

.exam-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.exam-palette {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(228, 233, 239, 0.8);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-soft-md);
}

.exam-palette__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 750;
    color: var(--navy-brand);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.exam-palette__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.exam-palette__grid button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(228, 233, 239, 0.8);
    background: rgba(248, 250, 252, 0.6);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exam-palette__grid button:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--blue-light);
}

.exam-palette__grid button.is-answered {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.exam-palette__grid button.is-current {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.exam-palette__legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.exam-palette__legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
}

.dot-answered {
    background: var(--blue);
}

.dot-pending {
    background: #E2E8F0;
}

/* =========================================
   8. VISTA DE RESULTADOS
   ========================================= */
.results-view {
    padding: 90px 0 110px;
    background: radial-gradient(120% 100% at 50% 0%, #EAF4FE 0%, var(--white) 60%);
    text-align: center;
}

.results-view[hidden] {
    display: none;
}

.results-view__inner {
    max-width: 680px;
    margin: 0 auto;
}

.results-view h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin: 10px 0 34px;
    color: var(--navy-brand);
    font-weight: 850;
}

.results-summary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(228, 233, 239, 0.8);
    border-radius: var(--radius);
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 34px;
    margin-bottom: 30px;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: var(--shadow-soft-md);
}

.results-summary__grade {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    color: var(--blue);
}

.results-summary__grade span {
    font-size: 3.6rem;
    font-weight: 900;
}

.results-summary__grade small {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
}

.results-summary__stats {
    display: flex;
    gap: 28px;
}

.results-summary__stats div {
    text-align: center;
}

.results-summary__stats b {
    display: block;
    font-size: 1.4rem;
    color: var(--navy-brand);
    font-weight: 850;
}

.results-summary__stats span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.results-review {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-review[hidden] {
    display: none;
}

.review-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(228, 233, 239, 0.8);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft-sm);
}

.review-item__q {
    font-size: 0.95rem;
    color: var(--navy-brand);
    font-weight: 750;
    margin-bottom: 14px;
    line-height: 1.5;
}

.review-item__answer {
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.review-item__answer--correct {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #DCFCE7;
}

.review-item__answer--incorrect {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FEE2E2;
}

.review-item__explain {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(228, 233, 239, 0.8);
    line-height: 1.5;
}

@media (max-width: 780px) {
    .exam-layout {
        grid-template-columns: 1fr;
    }

    .exam-palette {
        position: static;
    }

    .exam-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .exam-topbar__fraction,
    .exam-topbar__timer,
    .exam-topbar__answered {
        text-align: center;
    }

    .video-carousel__card {
        width: 200px;
    }
}

/* =========================================
   9. MODO EXAMEN: oculta el resto del sitio
   ========================================= */
body.exam-mode .main-section {
    display: none !important;
}

body.exam-mode {
    background: var(--white);
}

body.exam-mode .exam-view,
body.exam-mode .results-view {
    min-height: calc(100vh - 74px);
}