/* ═══════════════════════════════════════════════════════
   EduProfe home — Plus Jakarta Sans · Rediseño 2026
════════════════════════════════════════════════════════ */

:root {
    /* Paleta Gerbi: azul + amarillo (sin negro) */
    --navy:          #0070b0;
    --navy-mid:      #0a8fd4;
    --orange:        #f0c000;
    --orange-deep:   #e08000;
    --orange-soft:   #fff8e6;
    --gerbi-blue:    #0070b0;
    --gerbi-blue-deep: #006098;
    --gerbi-yellow:  #f0c000;
    --gerbi-orange:  #e08000;
    --gerbi-gold:    #f0b000;

    --blue:       #0070b0;
    --blue-hover: #006098;
    --blue-light: #0a8fd4;
    --blue-pale:  #e8f5fc;
    --blue-mid:   #b6dff3;
    --blue-soft:  #d4eef9;
    --indigo:     #0070b0;
    --teal:       #0d9488;
    --teal-pale:  #f0fdfa;
    --ink:        #1e3a5f;
    --ink-soft:   #334155;
    --slate-900:  #1e3a5f;
    --slate-800:  #2d4a6f;
    --slate-700:  #334155;
    --slate-500:  #64748b;
    --slate-400:  #94a3b8;
    --slate-200:  #e2e8f0;
    --slate-100:  #f1f5f9;
    --slate-50:   #fafbfc;
    --amber:      #f0b000;
    --green:      #059669;
    --radius-sm:  0.5rem;
    --radius:     0.875rem;
    --radius-lg:  1.25rem;
    --shadow-xs:  0 1px 2px rgba(0, 96, 152, .05);
    --shadow-sm:  0 2px 10px rgba(0, 96, 152, .06), 0 1px 2px rgba(0, 96, 152, .04);
    --shadow-md:  0 10px 28px rgba(0, 96, 152, .08), 0 2px 6px rgba(0, 96, 152, .04);
    --max-w:      68rem;
    --gap:        1.5rem;
    --grad-hero:  linear-gradient(160deg, #ffffff 0%, #e8f5fc 55%, #fff8e6 100%);
    --grad-brand: #0070b0;
    --grad-warm:  linear-gradient(135deg, #fff8e6 0%, #e8f5fc 100%);
    --grad-gerbi: #f0c000;

    /* alias para partials que usan --ep-* */
    --ep-blue:    var(--blue);
    --ep-blue-dark: var(--blue-hover);
    --ep-muted:   var(--slate-500);
    --ep-border:  var(--slate-200);
    --ep-subtle:  var(--slate-400);
    --ep-bg:      var(--slate-50);
    --ep-card:    #fff;
    --ep-slate:   var(--ink);
    --ep-body:    var(--ink-soft);
    --ep-green:   var(--green);
    --ep-blue-pale: var(--blue-pale);
    --ep-accent:  var(--amber);
    --ep-radius:  var(--radius);
    --ep-section-y: 3rem;
    --ep-max:     var(--max-w);
    --ep-max-prose: 52rem;
    --ep-max-grid:  var(--max-w);
    --ep-shadow:  var(--shadow-sm);
    --ep-band-divider: rgba(0, 96, 152, 0.07);
    --ep-band-soft: rgba(255, 255, 255, 0.85);
    --ep-band-muted: rgba(243, 246, 250, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }

body.ep-home {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 70% 45% at 8% -8%, rgba(0, 112, 176, .07) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 96% 4%, rgba(240, 192, 0, .12) 0%, transparent 52%),
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(224, 128, 0, .06) 0%, transparent 45%),
        #fafbfc;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}

/* ══════════════════════════════════
   LAYOUT
══════════════════════════════════ */
.ep-container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.ep-container--prose { max-width: var(--ep-max-prose, 52rem); }
.ep-container--grid { max-width: var(--ep-max-grid, var(--max-w)); }
.ep-section { padding: var(--ep-section-y) 0; scroll-margin-top: 5rem; }
.ep-section-alt {
    background: transparent;
    border: none;
}

/* Ritmo vertical de la home — un solo tipo de separador */
.ep-home-flow > * + *,
.ep-chapter-body > * + * {
    border-top: 1px solid var(--ep-band-divider);
}
.ep-home-more > * + * {
    border-top: 1px solid var(--ep-band-divider);
}
.ep-band-soft { background: var(--ep-band-soft); }
.ep-band-muted { background: var(--ep-band-muted); }

.ep-grid-2 { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .ep-grid-2 { grid-template-columns: 1fr 1fr; } }
.ep-grid-3 { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .ep-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .ep-trust-grid { grid-template-columns: repeat(4, 1fr) !important; } }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.ep-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
}
.ep-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.6rem 0;
}
.ep-logo {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 1.125rem; color: var(--slate-900);
    text-decoration: none; flex-shrink: 0; letter-spacing: -0.01em;
}
.ep-logo-img  { width: 2.25rem; height: 2.25rem; object-fit: contain; display: block; }
.ep-logo-text { white-space: nowrap; }
.ep-nav { display: none; align-items: center; gap: 0.1rem; }
@media (min-width: 900px) { .ep-nav { display: flex; } }
.ep-nav a:not(.ep-btn) {
    font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
    text-decoration: none; padding: 0.35rem 0.55rem; border-radius: 9999px;
    transition: color .14s, background .14s;
}
.ep-nav a:not(.ep-btn):hover { color: var(--blue-hover); background: var(--blue-pale); }
.ep-nav a:not(.ep-btn):focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
/* Botón dentro del nav — evitar que .ep-nav a sobreescriba el color del botón */
.ep-nav .ep-btn-primary { background: var(--blue) !important; color: #fff !important; }
.ep-nav .ep-btn-primary:hover { background: var(--blue-hover) !important; color: #fff !important; }
.ep-mobile-nav { display: flex; }
@media (min-width: 900px) { .ep-mobile-nav { display: none; } }

/* ══════════════════════════════════
   BOTONES  (contraste AAA en todos)
══════════════════════════════════ */
.ep-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600; text-decoration: none; border-radius: 9999px;
    padding: 0.6rem 1.25rem; font-size: 0.9375rem;
    letter-spacing: -0.01em;
    transition: transform .15s, box-shadow .15s, background .14s;
    border: none; cursor: pointer; white-space: nowrap;
}
.ep-hero .ep-btn,
.ep-hero .ep-btn:visited {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ep-btn:active { transform: scale(0.97); }

.ep-btn-primary {
    background: var(--gerbi-blue); color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 112, 176, .22);
}
.ep-btn-primary:hover {
    background: var(--gerbi-blue-deep) !important;
    color: #fff !important; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 112, 176, .28);
}

.ep-btn-secondary {
    background: #fff; color: var(--gerbi-blue-deep);
    border: 1.5px solid var(--blue-mid);
}
.ep-btn-secondary:hover {
    background: #fff8e6;
    border-color: var(--gerbi-yellow);
    color: var(--gerbi-blue-deep);
}

.ep-btn-accent {
    background: var(--gerbi-yellow);
    color: #006098 !important;
    box-shadow: 0 4px 14px rgba(240, 192, 0, .28);
}
.ep-btn-accent:hover {
    background: var(--gerbi-gold);
    color: #006098 !important;
    transform: translateY(-1px);
}

/* ══════════════════════════════════
   TIPOGRAFÍA SECCIONES
══════════════════════════════════ */
.ep-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: var(--ink);
    margin: 0 0 0.5rem; letter-spacing: -0.025em;
}
.ep-section-title--gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ep-section-lead {
    color: var(--slate-500); max-width: 40rem;
    margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.7;
}
.ep-tag {
    display: inline-block;
    font-size: 0.8125rem; font-weight: 700; text-transform: none;
    letter-spacing: 0.01em; color: var(--gerbi-blue-deep, var(--blue));
    background: #e8f5fc;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 112, 176, 0.28);
}

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.ep-card {
    background: #fff; border: 1px solid rgba(0, 96, 152, .08);
    border-radius: var(--radius-lg); padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ep-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(224, 128, 0, .28);
}
.ep-card h3 {
    margin: 0 0 0.35rem; font-size: 1.0625rem; font-weight: 700;
    color: var(--ink);
}
.ep-card p { margin: 0; font-size: 0.9375rem; color: var(--slate-500); line-height: 1.6; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.ep-hero {
    padding: 2.5rem 0 1.25rem;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(0, 112, 176, .07) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 100% 0%, rgba(224, 128, 0, .08) 0%, transparent 55%),
        linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
    border-bottom: none;
}
.ep-hero-lead {
    font-size: 1.125rem; color: var(--ink-soft);
    max-width: 36rem; margin-bottom: 1.1rem; line-height: 1.7;
}
.ep-hero-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.ep-hero-chips span {
    font-size: 0.8125rem; font-weight: 600; padding: 0.3rem 0.7rem;
    border-radius: 9999px; background: rgba(255,255,255,.85);
    border: 1px solid var(--blue-mid); color: var(--blue-hover);
    letter-spacing: 0.02em;
}
.ep-hero-stats {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 0.65rem;
}
@media (min-width: 640px) { .ep-hero-stats { grid-template-columns: repeat(4,1fr); } }
.ep-stat {
    background: rgba(255,255,255,.96); border: 1px solid rgba(0, 96, 152, .08);
    border-radius: var(--radius); padding: 0.85rem 0.55rem;
    text-align: center; box-shadow: var(--shadow-xs);
    backdrop-filter: blur(8px);
}
.ep-stat strong {
    display: block; font-size: 1.2rem;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    font-weight: 800;
}
.ep-stat span { font-size: 0.8125rem; color: var(--slate-500); font-weight: 500; }
.ep-stat--exp span {
    font-size: 0.6875rem;
    line-height: 1.25;
}
.ep-stat--action {
    cursor: pointer;
    font: inherit;
    width: 100%;
    transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.ep-stat--action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 96, 152, 0.1);
    border-color: rgba(224, 128, 0, 0.4);
}
.ep-stat--action:active { transform: translateY(0) scale(0.97); }
.ep-stat--rga {
    border-color: rgba(13, 148, 136, 0.28);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
}
.ep-stat--rga span { color: #0f766e; font-weight: 700; }
.ep-stat--rga.ep-demo-pulse {
    animation: ep-stat-rga-pulse 0.5s ease;
}
@keyframes ep-stat-rga-pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45); }
    100% { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); }
}
.ep-demo-pulse.ep-rga-demo-btn {
    animation: ep-demo-btn-pulse 0.48s ease;
}
@keyframes ep-demo-btn-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
    40% { transform: scale(0.97); }
    100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
.ep-hero-title-accent {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ep-hero-footnote { font-size: 0.9375rem; color: var(--slate-500); margin: 0; }
.ep-hero-method {
    font-size: 0.9375rem;
    color: var(--slate-600);
    margin: 0 0 0.65rem;
    line-height: 1.45;
}
.ep-hero-method a {
    color: var(--blue);
    font-weight: 700;
}

/* ══════════════════════════════════
   TRANSPARENCIA (promesas)
══════════════════════════════════ */
.ep-promise {
    padding: var(--ep-section-y) 0;
    background: var(--grad-brand);
    position: relative; overflow: hidden;
}
.ep-promise::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(255,255,255,.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(255,255,255,.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0,0,0,.08) 0%, transparent 70%);
    pointer-events: none;
}
.ep-promise .ep-container { position: relative; }
.ep-promise-intro { max-width: 42rem; margin: 0 0 2rem; }
.ep-promise-intro .ep-tag {
    color: #fff; background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.35);
}
.ep-promise-intro h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 800;
    color: #fff; margin: 0 0 0.65rem; letter-spacing: -0.025em; line-height: 1.2;
}
.ep-promise-intro p {
    font-size: 1.125rem; color: rgba(255,255,255,.88); margin: 0; line-height: 1.7;
}

.ep-promise-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .ep-promise-grid { grid-template-columns: 1fr 1fr; } }

.ep-promise-card {
    border-radius: var(--radius-lg); padding: 1.5rem 1.6rem;
    position: relative; overflow: hidden;
    backdrop-filter: blur(12px);
}
.ep-promise-card--yes {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.ep-promise-card--no {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
}

.ep-promise-card h3 {
    font-size: 0.9375rem; font-weight: 700; margin: 0 0 1rem;
    display: flex; align-items: center; gap: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.ep-promise-card--yes h3 { color: #bbf7d0; }
.ep-promise-card--no  h3 { color: rgba(255,255,255,.75); }
.ep-promise-card--no  h3 .ep-promise-icon--deny { color: #fee2e2 !important; }

.ep-promise-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ep-promise-list li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 1rem; color: rgba(255,255,255,.92); line-height: 1.6;
}
.ep-promise-icon {
    flex-shrink: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; margin-top: 0.1rem;
}
.ep-promise-card--yes .ep-promise-icon { background: rgba(52,211,153,.25); color: #6ee7b7; font-weight: 800; }
.ep-promise-card--no  .ep-promise-icon { background: rgba(148,163,184,.15); color: #64748b; }
.ep-promise-icon--deny,
.ep-promise-card--no .ep-promise-list .ep-promise-icon {
    background: rgba(239,68,68,.28) !important;
    color: #fecaca !important;
    border: 1px solid rgba(252,165,165,.45);
    font-weight: 800;
    font-size: 0.75rem;
}

/* ══════════════════════════════════
   PASOS (cómo funciona)
══════════════════════════════════ */
.ep-steps { display: grid; gap: 0.85rem; }
@media (min-width: 768px) { .ep-steps { grid-template-columns: repeat(4,1fr); } }
.ep-step-num {
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-weight: 700; font-size: 0.8125rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.5rem; flex-shrink: 0;
}

/* ══════════════════════════════════
   PRECIOS
══════════════════════════════════ */
.ep-price { font-size: 2.25rem; font-weight: 700; color: var(--blue); line-height: 1.05; }
.ep-price-note { font-size: 0.9375rem; color: var(--slate-500); margin-top: 0.3rem; }
.ep-price-badge {
    display: inline-block; font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #065f46; background: #d1fae5;
    padding: 0.2rem 0.55rem; border-radius: 9999px; margin-bottom: 0.4rem;
}
.ep-price-fair {
    background: var(--blue-pale); border: 1px solid var(--blue-mid);
    border-radius: var(--radius); padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem; max-width: 44rem;
}
.ep-price-fair h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--blue-hover); }
.ep-price-fair > p { font-size: 0.9375rem; color: var(--slate-600, #475569); margin: 0 0 0.85rem; line-height: 1.65; }
.ep-price-fair ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
@media (min-width: 640px) { .ep-price-fair ul { grid-template-columns: 1fr 1fr; } }
.ep-price-fair li {
    font-size: 0.9rem; color: var(--slate-700); padding-left: 1.3rem;
    position: relative; line-height: 1.45;
}
.ep-price-fair li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--green); font-weight: 700; font-size: 0.8rem;
}

/* ══════════════════════════════════
   MATERIAS
══════════════════════════════════ */
.ep-materia-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.ep-materia-tags span {
    font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.55rem;
    border-radius: 9999px; background: var(--blue-pale);
    color: var(--blue-hover); border: 1px solid var(--blue-mid);
}

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.ep-faq details {
    border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
    margin-bottom: 0.45rem; background: #fff;
    transition: box-shadow .15s;
}
.ep-faq details:hover { box-shadow: var(--shadow-sm); }
.ep-faq summary {
    cursor: pointer; font-weight: 600; padding: 0.9rem 1.15rem;
    list-style: none; color: var(--slate-900); font-size: 0.9375rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.ep-faq summary::after { content: '+'; font-size: 1.1rem; color: var(--blue); flex-shrink: 0; }
.ep-faq details[open] summary::after { content: '−'; }
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq details[open] summary {
    border-bottom: 1px solid var(--slate-200); color: var(--blue);
}
.ep-faq details div {
    padding: 0.85rem 1.15rem; font-size: 0.9375rem;
    color: var(--slate-600, #475569); line-height: 1.65;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.ep-footer {
    background: linear-gradient(160deg, #1e40af 0%, #3730a3 50%, #0e7490 100%);
    color: rgba(255,255,255,.75);
    padding: 2.5rem 0; font-size: 0.9375rem;
}
.ep-footer a { color: #bfdbfe; text-decoration: none; }
.ep-footer a:hover { color: #fff; }
.ep-footer-seo {
    margin: 0.85rem auto 0;
    max-width: 48rem;
    font-size: 0.6875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}
.ep-footer-seo a {
    color: rgba(191, 219, 254, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ep-footer-seo a:hover { color: #fff; }
.ep-footer-seo strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════
   MOBILE MENU
══════════════════════════════════ */
#ep-mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
}
#ep-mobile-menu.open { display: flex; }
#ep-mobile-menu-panel {
    margin-left: auto; width: min(18rem, 88vw); height: 100%;
    background: #fff; padding: 1.1rem 1.35rem; overflow-y: auto;
    box-shadow: -6px 0 28px rgba(0,0,0,.12);
}
#ep-mobile-menu-panel .ep-logo {
    margin-bottom: 1rem; padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--slate-200);
}
#ep-mobile-menu-panel a {
    display: block; padding: 0.6rem 0; color: var(--slate-700);
    text-decoration: none; font-size: 0.9375rem;
    border-bottom: 1px solid var(--slate-100);
}

/* ══════════════════════════════════
   MODO OSCURO
══════════════════════════════════ */
html[data-theme="dark"] {
    --navy:          #93c5fd;
    --navy-mid:      #60a5fa;
    --orange:        #f0c000;
    --orange-deep:   #f0b000;
    --orange-soft:   rgba(224, 128, 0, .12);
    --gerbi-blue:    #93c5fd;
    --gerbi-blue-deep: #60a5fa;
    --gerbi-yellow:  #fdba74;
    --gerbi-orange:  #f0c000;
    --gerbi-gold:    #f0c000;
    --blue:       #93c5fd;
    --blue-hover: #bfdbfe;
    --blue-light: #60a5fa;
    --blue-pale:  rgba(147, 197, 253, .12);
    --blue-mid:   #334155;
    --blue-soft:  rgba(147, 197, 253, .10);
    --indigo:     #93c5fd;
    --green:      #4ade80;
    --teal:       #2dd4bf;
    --amber:      #f0c000;
    --grad-brand: #3b82f6;
    --grad-gerbi: #f0b000;
    /* Textos */
    --ink:        #f1f5f9;
    --ink-soft:   #cbd5e1;
    --slate-900:  #f1f5f9;
    --slate-800:  #e2e8f0;
    --slate-700:  #cbd5e1;
    --slate-500:  #94a3b8;
    --slate-400:  #64748b;
    --slate-200:  #334155;
    --slate-100:  #1e293b;
    --slate-50:   #0f172a;
    /* Alias EP */
    --ep-muted:   #94a3b8;
    --ep-subtle:  #64748b;
    --ep-body:    #cbd5e1;
    --ep-slate:   #f1f5f9;
    --ep-card:    #1e293b;
    --ep-bg:      #0f172a;
    --ep-border:  #334155;
    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
}
html[data-theme="dark"] body.ep-home {
    background: #0f172a; color: #cbd5e1;
}
html[data-theme="dark"] body.ep-home h1,
html[data-theme="dark"] body.ep-home h2,
html[data-theme="dark"] body.ep-home h3 { color: #f1f5f9; }
html[data-theme="dark"] .ep-header {
    background: rgba(15,23,42,.97); border-bottom-color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
html[data-theme="dark"] .ep-logo { color: #f1f5f9; }
html[data-theme="dark"] .ep-nav a:not(.ep-btn) { color: #cbd5e1; }
html[data-theme="dark"] .ep-nav a:not(.ep-btn):hover { color: #93c5fd; background: rgba(74,144,226,.15); }
html[data-theme="dark"] .ep-btn-primary { background: #3b82f6; color: #fff; }
html[data-theme="dark"] .ep-btn-primary:hover { background: #2563eb; }
html[data-theme="dark"] .ep-btn-accent { background: #f0b000; color: #fff; }
html[data-theme="dark"] .ep-btn-accent:hover { background: #e08000; }
html[data-theme="dark"] .ep-btn-secondary {
    background: #1e293b; color: #93c5fd; border-color: #475569;
}
html[data-theme="dark"] .ep-section-alt { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-hero { background: #1e293b; border-bottom-color: #334155; }
html[data-theme="dark"] .ep-hero-chips span { background: rgba(74,144,226,.15); border-color: #334155; color: #93c5fd; }
html[data-theme="dark"] .ep-stat { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-stat strong { color: #60a5fa; }
html[data-theme="dark"] .ep-stat--rga {
    background: linear-gradient(180deg, #134e4a 0%, #1e293b 100%);
    border-color: #0d9488;
}
html[data-theme="dark"] .ep-stat--rga span { color: #5eead4; }
html[data-theme="dark"] .ep-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-card h3 { color: #f1f5f9; }
html[data-theme="dark"] .ep-card p  { color: #94a3b8; }
/* promise ya es oscura por defecto — dark mode no necesita override mayor */
html[data-theme="dark"] .ep-promise {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 55%, #134e4a 100%);
}
html[data-theme="dark"] .ep-price-fair { background: rgba(74,144,226,.1); border-color: #334155; }
html[data-theme="dark"] .ep-price-fair h3 { color: #93c5fd; }
html[data-theme="dark"] .ep-price-fair > p,
html[data-theme="dark"] .ep-price-fair li { color: #cbd5e1; }
html[data-theme="dark"] .ep-faq details { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-faq summary { color: #f1f5f9; }
html[data-theme="dark"] .ep-faq details[open] summary { color: #60a5fa; border-bottom-color: #334155; }
html[data-theme="dark"] .ep-faq details div { color: #94a3b8; }
html[data-theme="dark"] .ep-section-title { color: #f1f5f9; }
html[data-theme="dark"] .ep-section-lead { color: #94a3b8; }
html[data-theme="dark"] .ep-materia-tags span { background: rgba(74,144,226,.15); border-color: #334155; color: #93c5fd; }
html[data-theme="dark"] .ep-hero-lead { color: #cbd5e1; }

/* ── ep-tag ─────────────────────────────────────────────── */
html[data-theme="dark"] .ep-tag {
    background: #0070b0;
    color: #f0c000;
    border: 1px solid #f0c000;
    -webkit-text-fill-color: #f0c000;
}

/* Textos con clip/gradiente: color sólido legible en oscuro */
html[data-theme="dark"] .ep-section-title--gradient,
html[data-theme="dark"] .ep-hero-title-accent,
html[data-theme="dark"] .ep-stat strong,
html[data-theme="dark"] .ep-pack-price {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #7dd3fc !important;
    color: #7dd3fc !important;
}

html[data-theme="dark"] .ep-hero {
    background:
        radial-gradient(ellipse 60% 50% at 90% 0%, rgba(240, 192, 0, 0.1) 0%, transparent 55%),
        #0f172a;
}
html[data-theme="dark"] .ep-btn-primary {
    background: #0070b0 !important;
    color: #fff !important;
}
html[data-theme="dark"] .ep-btn-primary:hover {
    background: #0a8fd4 !important;
}
html[data-theme="dark"] .ep-btn-accent {
    background: #f0c000 !important;
    color: #0f172a !important;
}
html[data-theme="dark"] .ep-rga-sub-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .ep-rga-sub-label { color: #7dd3fc !important; }
html[data-theme="dark"] .ep-rga-sub-price { color: #f0c000 !important; }
html[data-theme="dark"] .ep-rga-sub-cta {
    background: #0070b0 !important;
    color: #fff !important;
}
html[data-theme="dark"] .ep-pack-card {
    background: #1e293b;
    border-color: #334155;
}
html[data-theme="dark"] .ep-pack-card--pau,
html[data-theme="dark"] .ep-pack-card--featured {
    background: linear-gradient(165deg, rgba(240, 192, 0, 0.08) 0%, #1e293b 50%);
    border-top-color: #f0c000;
}
html[data-theme="dark"] .ep-pack-badge--gold {
    background: #f0c000;
    color: #0f172a;
}
html[data-theme="dark"] .ep-pack-desc,
html[data-theme="dark"] .ep-pack-note { color: #94a3b8; }
html[data-theme="dark"] .ep-pack-name { color: #f1f5f9; }

/* ── Menú móvil ──────────────────────────────────────────── */
html[data-theme="dark"] #ep-mobile-menu-panel {
    background: #1e293b; border-left: 1px solid #334155;
}
html[data-theme="dark"] #ep-mobile-menu-panel .ep-logo { color: #f1f5f9; }
html[data-theme="dark"] #ep-mobile-menu-panel a {
    color: #cbd5e1; border-bottom-color: #334155;
}
html[data-theme="dark"] #ep-mobile-menu-panel a:hover { color: #93c5fd; }

/* ── Novedades — badges con inline colors ────────────────── */
html[data-theme="dark"] .ep-card span[style*="border-radius:9999px"] {
    background: rgba(148,163,184,.14) !important;
    color: #e2e8f0 !important;
}

/* ── Equipo ──────────────────────────────────────────────── */
html[data-theme="dark"] .ep-team-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-team-bio { color: #cbd5e1; }

/* ── Materias horizontal scroll ──────────────────────────── */
html[data-theme="dark"] .ep-materia-card--scroll {
    background: linear-gradient(145deg, #1e293b, #1e2f4a);
    border-color: #334155;
}

/* ── Precios — badges calculadora ────────────────────────── */
html[data-theme="dark"] .ep-calc-badge--5 {
    background: rgba(6,95,70,.35); color: #6ee7b7;
}
html[data-theme="dark"] .ep-calc-badge--9 {
    background: rgba(146,64,14,.3); color: #fcd34d;
}
html[data-theme="dark"] .ep-price-calc-head h3 { color: #f1f5f9; }

/* ── Mundial — textos que usan var(--ink) inline ─────────── */
html[data-theme="dark"] .ep-mundial-card-title  { color: #f1f5f9; }
html[data-theme="dark"] .ep-mundial-today-head  { color: #f1f5f9; }
html[data-theme="dark"] .ep-mundial-today-teams { color: #f1f5f9; }
html[data-theme="dark"] .ep-bracket-row         { color: #f1f5f9; }
html[data-theme="dark"] .ep-bracket-goals       { color: #f1f5f9; }
html[data-theme="dark"] .ep-bracket-name        { color: #f1f5f9; }
html[data-theme="dark"] .ep-bracket-round-title {
    background: rgba(16,185,129,.15); color: #6ee7b7;
    border-color: rgba(16,185,129,.2);
}

/* Badges de estado del partido */
html[data-theme="dark"] .ep-bracket-badge--ft  { background: rgba(6,95,70,.35);   color: #6ee7b7; }
html[data-theme="dark"] .ep-bracket-badge--ns  { background: rgba(29,78,216,.3);  color: #93c5fd; }
html[data-theme="dark"] .ep-bracket-badge--pst { background: rgba(146,64,14,.3);  color: #fcd34d; }
html[data-theme="dark"] .ep-bracket-badge--live { background: rgba(185,28,28,.45); color: #fca5a5; }

/* Botón de refresco */
html[data-theme="dark"] .ep-mundial-refresh {
    background: #1e293b; border-color: #334155; color: #6ee7b7;
}
html[data-theme="dark"] .ep-mundial-refresh:hover { background: #0f2922; }

/* Panel bracket — fondo verde muy oscuro */
html[data-theme="dark"] .ep-mundial-bracket-panel {
    background: linear-gradient(180deg, #0a2218 0%, #1e293b 120px) !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .ep-mundial-news-panel {
    background: #1e293b !important; border-color: #334155 !important;
}

/* Badge de fase actual */
html[data-theme="dark"] .ep-mundial-fase-badge {
    background: #1e293b; border-color: #334155; color: #6ee7b7;
}

/* Sección mundial: tag interno */
html[data-theme="dark"] .ep-mundial-tag {
    background: rgba(16,185,129,.15); color: #6ee7b7;
}

/* Fila ganadora */
html[data-theme="dark"] .ep-bracket-row--win {
    background: linear-gradient(90deg, rgba(16,185,129,.15), transparent);
}
html[data-theme="dark"] .ep-bracket-row--win .ep-bracket-goals { color: #6ee7b7; }

/* Partidos vacíos */
html[data-theme="dark"] .ep-bracket-match--empty {
    border-color: #334155 !important;
}
html[data-theme="dark"] .ep-bracket-match--empty .ep-bracket-row--ghost {
    background: #334155;
}

/* Trofeo */
html[data-theme="dark"] .ep-bracket-trophy {
    background: linear-gradient(180deg, #2d1a00, #1e293b);
    border-color: #b45309;
}
html[data-theme="dark"] .ep-bracket-trophy-label { color: #fcd34d; }
html[data-theme="dark"] .ep-bracket-trophy-sub   { color: #fbbf24; }

/* Noticias del mundial */
html[data-theme="dark"] .ep-mundial-news-title   { color: #f1f5f9; }
html[data-theme="dark"] .ep-mundial-today-chip--live {
    background: #2d0a0a; border-color: #f87171;
}
