/* EduProfe home — extras (CTA sticky, lazy sections) */
.ep-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 96, 152, 0.1);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}
.ep-sticky-cta.is-visible {
    transform: translateY(0);
}
.ep-sticky-cta__btn {
    flex: 1;
    text-align: center;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 12px 10px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ep-sticky-cta__btn:active {
    transform: scale(0.98);
}
.ep-sticky-cta__btn--primary {
    color: #fff;
    background: #0070b0;
    box-shadow: 0 4px 14px rgba(0, 112, 176, 0.22);
}
.ep-sticky-cta__btn--secondary {
    color: #006098;
    background: #fff8e6;
    border: 1px solid rgba(240, 192, 0, 0.45);
}
html[data-theme="dark"] .ep-sticky-cta {
    background: rgba(15, 23, 42, 0.94);
    border-top-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="dark"] .ep-sticky-cta__btn--secondary {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}

/* ═══ Infotainment panel ═══ */
#infotainment {
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(99,102,241,.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(14,165,233,.06) 0%, transparent 50%),
        linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.ep-info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .ep-info-grid { grid-template-columns: repeat(3, 1fr); }
}
.ep-info-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 14rem;
    backdrop-filter: blur(8px);
    transition: transform .2s, box-shadow .2s;
}
.ep-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ep-info-card--curiosidad {
    border-top: 4px solid #0070b0;
    background: linear-gradient(180deg, #e8f5fc 0%, #fff8e6 40%, #fff 75%);
}
.ep-info-card--fact { border-top: 4px solid #6366f1; background: linear-gradient(180deg, #eef2ff 0%, #fff 40%); }
.ep-info-card--weather { border-top: 4px solid #0ea5e9; background: linear-gradient(180deg, #f0f9ff 0%, #fff 40%); }
.ep-info-card--tip { border-top: 4px solid #f59e0b; background: linear-gradient(180deg, #fffbeb 0%, #fff 40%); }
.ep-curiosidad-cat {
    margin: 0 0 0.35rem !important;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0070b0;
}
.ep-curiosidad-title { margin: 0 0 0.45rem !important; font-size: 1rem; color: var(--ink); }
.ep-curiosidad-cuerpo { margin: 0 0 0.55rem !important; }
.ep-curiosidad-util {
    margin: 0 !important;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(224, 128, 0, 0.08);
    border: 1px solid rgba(224, 128, 0, 0.22);
    font-size: 0.875rem;
}
.ep-info-card-head {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.ep-info-icon { font-size: 1.75rem; line-height: 1; }
.ep-info-card-title { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); }
.ep-info-card-sub { font-size: 0.8125rem; color: var(--ep-muted); margin: 0.2rem 0 0; }
.ep-info-body { flex: 1; font-size: 0.9375rem; line-height: 1.6; color: var(--ep-body); }
.ep-info-body p { margin: 0; }
.ep-info-loading { color: var(--ep-muted); font-style: italic; }
.ep-info-source { font-size: 0.8125rem; color: var(--ep-subtle); margin: 0.5rem 0 0; }
.ep-info-label { font-size: 0.8125rem; font-weight: 600; color: var(--ep-muted); display: block; margin-bottom: 0.35rem; }
.ep-info-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ep-border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    margin-bottom: 0.65rem;
    background: #fff;
}
.ep-info-detected { font-size: 0.75rem; color: var(--ep-muted); margin: 0 0 0.5rem; }
.ep-info-weather ul { margin: 0; }
.ep-info-refresh {
    margin-top: 0.65rem;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-pale);
    border: none;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}
.ep-info-refresh:hover { background: var(--blue-mid); }

/* ═══ Packs grid ═══ */
.ep-packs-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
}
@media (min-width: 900px) {
    .ep-packs-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.ep-pack-card {
    background: #fff;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.ep-pack-card:hover { box-shadow: var(--shadow-md); }
.ep-pack-card--pau {
    border-top: 4px solid #f0c000;
    background: linear-gradient(165deg, #fff8e6 0%, #fff 45%, #e8f5fc 100%);
}
.ep-pack-card--featured {
    border-top: 4px solid #f0c000;
    background: linear-gradient(165deg, #fff8e6 0%, #e8f5fc 50%, #fff 100%);
    box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
    .ep-pack-card--featured { transform: scale(1.03); z-index: 1; }
}
.ep-pack-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ep-muted);
    margin-bottom: 0.5rem;
}
.ep-pack-badge--discount {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #047857;
    text-transform: none;
}
.ep-pack-badge--discount.ep-pack-badge--gold {
    color: #e08000;
}
.ep-pack-badge--gold {
    color: #006098;
    background: #f0c000;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}
.ep-pack-name { font-size: 1.25rem; margin: 0 0 0.5rem; }
.ep-pack-desc { font-size: 0.9375rem; color: var(--ep-muted); margin: 0 0 1rem; line-height: 1.55; flex: 1; }
.ep-pack-price {
    font-size: 2.125rem; font-weight: 800; margin: 0; line-height: 1;
    color: var(--ink, #0f172a);
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .ep-pack-price {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: var(--ink, #0f172a);
    }
}
.ep-pack-price-orig { font-size: 1rem; color: var(--ep-muted); text-decoration: line-through; margin: 0.25rem 0 0; }
.ep-pack-offer { font-size: 0.875rem; font-weight: 700; color: #b45309; margin: 0.25rem 0 0; }
.ep-pack-note { font-size: 0.875rem; color: var(--ep-muted); margin: 0.35rem 0 0.85rem; }
.ep-pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    display: grid;
    gap: 0.35rem;
}
.ep-pack-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.ep-pack-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ep-pack-cta { margin-top: auto; width: 100%; text-align: center; }

/* ═══ Horizontal scroll (materias) ═══ */
.ep-materias-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.ep-materias-inner { max-width: 48rem; }
.ep-materias-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.85rem;
}
.ep-materias-tag { margin: 0; }
.ep-materias-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin: 0.15rem 0 0;
    letter-spacing: -0.02em;
}
.ep-materias-lead {
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 0;
    line-height: 1.45;
    flex: 1 1 100%;
}
@media (min-width: 640px) {
    .ep-materias-lead { flex: 0 1 auto; text-align: right; max-width: 22rem; }
}
.ep-materias-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}
.ep-materias-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0.55;
}
.ep-materias-search {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    border: 1.5px solid var(--ep-border);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .14s, box-shadow .14s;
}
.ep-materias-search:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.ep-materias-scroll-wrap {
    margin: 0 -1.25rem 0.5rem;
    padding: 0.15rem 0 0.35rem;
}
.ep-materias-hscroll {
    gap: 0.55rem;
    padding: 0.25rem 1.25rem 0.5rem;
}
.ep-materia-chip {
    flex: 0 0 auto;
    width: 7.75rem;
    scroll-snap-align: start;
    padding: 0.65rem 0.7rem 0.7rem;
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.ep-materia-chip--featured {
    border-color: rgba(37,99,235,.35);
    background: linear-gradient(160deg, #eff6ff 0%, #fff 70%);
}
.ep-materia-chip-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.3rem;
    border-radius: 9999px;
    background: var(--grad-brand);
    color: #fff;
    line-height: 1.3;
}
.ep-materia-chip-icon { font-size: 1.35rem; display: block; line-height: 1; margin-bottom: 0.25rem; }
.ep-materia-chip-name {
    font-size: 0.8125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--ink);
}
.ep-materia-chip-nivel {
    font-size: 0.6875rem;
    color: var(--ep-muted);
    margin: 0.2rem 0 0.35rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-materia-chip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}
.ep-materia-chip-tags span {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.08rem 0.35rem;
    border-radius: 9999px;
    background: rgba(37,99,235,.08);
    color: var(--blue);
    border: 1px solid rgba(37,99,235,.12);
}
.ep-materias-empty {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 0.5rem 0 0;
}
.ep-materias-empty a { color: var(--blue); font-weight: 600; }
.ep-materias-foot {
    text-align: center;
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--ep-muted);
}
.ep-materias-foot a { color: var(--blue); font-weight: 600; }
.ep-materias-uni {
    margin-top: 1rem;
    border: 1px solid var(--ep-border);
    border-radius: var(--radius);
    background: rgba(248,250,252,.8);
    overflow: hidden;
}
.ep-materias-uni summary {
    cursor: pointer;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-soft);
    list-style: none;
    user-select: none;
}
.ep-materias-uni summary::-webkit-details-marker { display: none; }
.ep-materias-uni summary::after {
    content: ' ▾';
    color: var(--ep-muted);
    font-weight: 400;
}
.ep-materias-uni[open] summary::after { content: ' ▴'; }
.ep-materias-uni-grid {
    display: grid;
    gap: 0.45rem;
    padding: 0 0.85rem 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.ep-materias-uni-item {
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
}
.ep-materias-uni-name { font-size: 0.75rem; font-weight: 700; margin: 0 0 0.15rem; color: var(--ink); }
.ep-materias-uni-asig { font-size: 0.6875rem; color: var(--ep-muted); margin: 0; line-height: 1.4; }

/* ═══ Strip scroll (valores + RGA): vertical móvil, horizontal PC ═══ */
.ep-rga-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.ep-rga-about {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.ep-rga-about-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin: 0.15rem 0 0.65rem;
    letter-spacing: -0.02em;
}
.ep-rga-about-text,
.ep-rga-about-meta {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 0.65rem;
    max-width: 44rem;
    color: var(--ep-muted);
}
.ep-rga-about-meta { margin-bottom: 0; font-size: 0.875rem; }
.ep-rga-about-meta a { color: var(--blue); font-weight: 600; }
html[data-theme="dark"] .ep-rga-about { border-bottom-color: rgba(255, 255, 255, 0.1); }

/* Mensajería / contacto home */
.ep-mensajeria-section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.ep-mensajeria-inner { max-width: none; width: 100%; }
.ep-mensajeria-head { margin-bottom: 1.25rem; max-width: none; }
.ep-mensajeria-tag { margin: 0 0 0.35rem; }
.ep-mensajeria-title {
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.ep-mensajeria-lead {
    margin: 0;
    max-width: none;
    width: 100%;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ep-muted, #64748b);
}
.ep-mensajeria-grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .ep-mensajeria-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.ep-mensajeria-card {
    background: var(--ep-surface, #fff);
    border: 1px solid var(--ep-border, rgba(15,23,42,.08));
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.ep-mensajeria-card--primary {
    border-color: rgba(14,165,233,.25);
    box-shadow: 0 4px 18px rgba(14,165,233,.08);
}
.ep-mensajeria-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.ep-mensajeria-card-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
}
.ep-mensajeria-card-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ep-muted);
    margin: 0 0 0.85rem;
}
.ep-mensajeria-card-text a { color: var(--blue); font-weight: 600; }
.ep-mensajeria-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ep-mensajeria-foot {
    font-size: 0.8125rem;
    color: var(--ep-muted);
    margin: 1rem 0 0;
}
.ep-mensajeria-foot a { color: var(--blue); font-weight: 600; }
.ep-mensajeria-card--whatsapp {
    margin-top: 0.85rem;
    border-color: rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.ep-mensajeria-wa-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.ep-mensajeria-wa-copy { flex: 1 1 14rem; min-width: 0; }
.ep-mensajeria-wa-copy .ep-mensajeria-card-title { margin-bottom: 0.25rem; }
.ep-mensajeria-wa-copy .ep-mensajeria-card-text { margin: 0; }
.ep-mensajeria-wa-btn {
    background: #25d366 !important;
    color: #fff !important;
    border: none !important;
    opacity: 0.85;
    pointer-events: none;
    cursor: default;
}
.ep-hero-lead a { color: var(--blue); font-weight: 600; }
.ep-rga-inner,
.ep-valores-inner { max-width: 52rem; }
.ep-rga-inner--wide { max-width: 72rem; }
.ep-rga-head,
.ep-valores-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}
.ep-rga-tag, .ep-valores-tag { margin: 0; }
.ep-rga-title, .ep-valores-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin: 0.15rem 0 0;
    letter-spacing: -0.02em;
}
.ep-rga-lead, .ep-valores-lead {
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 0;
    line-height: 1.45;
    flex: 1 1 100%;
}
@media (min-width: 640px) {
    .ep-rga-lead, .ep-valores-lead { flex: 0 1 auto; text-align: right; max-width: 18rem; }
}
.ep-strip-scroll-wrap {
    margin: 0 0 0.5rem;
}
.ep-strip-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
@media (min-width: 768px) {
    .ep-strip-scroll-wrap {
        overflow: hidden;
        margin: 0 -1.25rem 0.5rem;
        padding: 0.15rem 0 0.35rem;
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }
    .ep-strip-scroll {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0.25rem 1.25rem 0.55rem;
        gap: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .ep-strip-scroll::-webkit-scrollbar { height: 5px; }
    .ep-strip-scroll::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 9999px; }
}

/* Valores */
.ep-valores-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.ep-valores-manifesto {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.95rem;
    background: linear-gradient(145deg, rgba(37,99,235,.06) 0%, rgba(255,255,255,.9) 100%);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: var(--radius);
    border-left: 3px solid var(--blue);
}
.ep-valores-manifesto p {
    font-size: 0.875rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}
.ep-valores-manifesto strong { color: var(--ink); font-weight: 700; }
.ep-valores-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .ep-valores-item {
        flex: 0 0 10.5rem;
        scroll-snap-align: start;
        min-height: 8rem;
    }
}
.ep-valores-icon { font-size: 1.35rem; line-height: 1; }
.ep-valores-name { font-size: 0.8125rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ep-valores-desc { font-size: 0.6875rem; color: var(--ep-muted); line-height: 1.4; margin: 0; }
.ep-valores-foot {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--ep-muted);
    text-align: center;
}
.ep-valores-foot a { color: var(--blue); font-weight: 600; }

/* RGA herramientas — grid + demos (sin enlaces) */
.ep-rga-grid {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .ep-rga-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .ep-rga-grid { grid-template-columns: repeat(4, 1fr); }
}
.ep-rga-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--radius);
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color .14s, transform .12s, box-shadow .14s;
    height: 100%;
    overflow: hidden;
}
.ep-rga-card:hover {
    border-color: rgba(0, 112, 176, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ep-rga-card--unique {
    border-color: rgba(0, 112, 176, 0.28);
}
.ep-rga-card--unique .ep-rga-card-body {
    background: linear-gradient(160deg, #e8f5fc 0%, #fff 85%);
}
.ep-rga-card-demo {
    padding: 0.45rem 0.5rem 0.35rem;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-rga-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem 0.65rem;
    flex: 1;
}
.ep-rga-card-body h3.ep-rga-card-title { margin: 0; }
.ep-rga-demo-btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--blue);
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.2);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.12s, box-shadow 0.15s;
}
.ep-rga-demo-btn:hover { background: rgba(37,99,235,.14); transform: translateY(-1px); }
.ep-rga-demo-btn:active { transform: scale(0.96); }
.ep-rga-foot-note { display: block; margin-top: 0.25rem; font-size: 0.75rem; }
.ep-rga-foot-note a { color: var(--blue); font-weight: 600; }

/* Mini-mocks de demo */
.ep-rga-mock {
    width: 100%;
    font-size: 0.625rem;
    line-height: 1.35;
    color: #cbd5e1;
    text-align: left;
}
.ep-rga-mock--lg { font-size: 0.8125rem; }
.ep-rga-mock-node {
    display: block;
    padding: 0.15rem 0.35rem;
    margin-bottom: 0.15rem;
    background: rgba(255,255,255,.06);
    border-radius: 0.25rem;
    border-left: 2px solid #38bdf8;
}
.ep-rga-mock-node--root { border-left-color: #a78bfa; font-weight: 700; }
.ep-rga-mock-node em { color: #94a3b8; font-style: normal; }
.ep-rga-mock-tag {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.5625rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
}
.ep-rga-mock-circuit {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
}
.ep-rga-mock-wire {
    width: 1.5rem;
    height: 2px;
    background: #475569;
}
.ep-rga-mock-led.on { filter: drop-shadow(0 0 4px #fbbf24); }
.ep-rga-mock-bar {
    height: 4px;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.ep-rga-mock-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #34d399, #38bdf8);
    border-radius: 999px;
}
.ep-rga-mock-line { margin: 0; color: #e2e8f0; }
.ep-rga-mock-score { margin: 0.15rem 0 0; color: #fbbf24; font-size: 0.5625rem; }
.ep-rga-mock-step { margin: 0.2rem 0 0; color: #94a3b8; font-family: ui-monospace, monospace; }
.ep-rga-mock-step--ok { color: #34d399; }
.ep-rga-mock-flip {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.ep-rga-mock-flip span {
    flex: 1;
    text-align: center;
    padding: 0.25rem;
    background: rgba(255,255,255,.07);
    border-radius: 0.25rem;
    font-weight: 600;
    color: #e2e8f0;
}
.ep-rga-mock--code code {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: 0.5625rem;
    color: #e2e8f0;
    line-height: 1.5;
}
.ep-rga-mock--lg.ep-rga-mock--code code { font-size: 0.75rem; }
.ep-rga-mock--code .c-kw { color: #c084fc; }
.ep-rga-mock--code .c-str { color: #34d399; }
.ep-rga-mock-toolbar {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
}
.ep-rga-mock-toolbar i {
    display: block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    background: rgba(255,255,255,.15);
}
.ep-rga-mock-muted { color: #64748b; margin: 0.15rem 0 0; }
.ep-rga-mock--panel {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    min-height: 2.5rem;
}
.ep-rga-mock-sidebar {
    width: 0.65rem;
    border-radius: 2px;
    background: rgba(56,189,248,.35);
}
.ep-rga-mock-main { flex: 1; display: flex; flex-wrap: wrap; gap: 0.2rem; align-content: flex-start; }
.ep-rga-mock-chip {
    font-size: 0.5rem;
    padding: 0.1rem 0.3rem;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    color: #cbd5e1;
}
.ep-rga-mock-progress {
    width: 100%;
    height: 3px;
    margin-top: 0.15rem;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    position: relative;
}
.ep-rga-mock-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 58%;
    background: #38bdf8;
    border-radius: 999px;
}

/* Modal demo RGA */
.ep-rga-modal {
    border: none;
    border-radius: 1rem;
    padding: 0;
    max-width: min(28rem, 92vw);
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    background: #fff;
}
.ep-rga-modal::backdrop { background: rgba(15,23,42,.55); }
.ep-rga-modal-inner { padding: 1rem 1.1rem 1.1rem; }
.ep-rga-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.ep-rga-modal-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ep-muted);
    margin: 0 0 0.2rem;
}
.ep-rga-modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}
.ep-rga-modal-desc {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--ep-muted);
    line-height: 1.45;
}
.ep-rga-modal-close {
    border: none;
    background: #f1f5f9;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    flex-shrink: 0;
}
.ep-rga-modal-demo {
    background: #0f172a;
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    min-height: 7rem;
    display: flex;
    align-items: center;
}
.ep-rga-modal-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.ep-rga-modal-foot p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--ep-muted);
    flex: 1 1 12rem;
}
.ep-btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8125rem; }

.ep-rga-card-icon { font-size: 1.35rem; line-height: 1; }
.ep-rga-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.25;
}
.ep-rga-card-badge {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.12rem 0.4rem;
    border-radius: 9999px;
    background: var(--grad-brand);
    color: #fff;
    white-space: nowrap;
}
.ep-rga-card--clean .ep-rga-card-visual {
    padding: 1rem 0.85rem 0.75rem;
    background: linear-gradient(160deg, #e8f5fc 0%, #fff8e6 100%);
    border-bottom: 1px solid rgba(0, 112, 176, 0.08);
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}
.ep-rga-card--unique.ep-rga-card--clean .ep-rga-card-visual {
    background: linear-gradient(160deg, #e8f5fc 0%, #fff8e6 100%);
}
.ep-rga-mat-bento-item:nth-child(even) .ep-rga-card--clean .ep-rga-card-visual {
    background: linear-gradient(160deg, #fff8e6 0%, #e8f5fc 100%);
}
.ep-rga-card-visual-icon {
    font-size: 2rem;
    line-height: 1;
}
.ep-rga-card-visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.ep-rga-card-visual-tags span {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--blue-hover);
}
.ep-rga-card--clean .ep-rga-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    gap: 0.35rem;
}
.ep-rga-card--clean .ep-rga-card-title {
    font-size: 0.9375rem;
}
.ep-rga-card--clean .ep-rga-card-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--slate-600, #475569);
}
.ep-rga-card--wide .ep-rga-card-visual { min-height: 4.75rem; }
.ep-rga-card--wide .ep-rga-card-visual-icon { font-size: 2rem; }

.ep-demo-pulse.ep-rga-demo-btn {
    animation: ep-demo-btn-pulse 0.48s ease;
}
.ep-demo-pulse.ep-aula-demo-btn,
.ep-demo-pulse.ep-btn {
    animation: ep-demo-btn-pulse 0.52s 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-click-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    transform: scale(0);
    animation: ep-click-ripple 0.65s ease-out forwards;
    pointer-events: none;
    z-index: 2;
}
@keyframes ep-click-ripple {
    to { transform: scale(1); opacity: 0; }
}
.ep-btn-secondary .ep-click-ripple,
.ep-hub-panel .ep-click-ripple {
    background: rgba(37, 99, 235, 0.18);
}

.ep-click-burst {
    position: fixed;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 250;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.95) 0%, rgba(37, 99, 235, 0.4) 45%, transparent 70%);
    animation: ep-click-burst 0.7s ease-out forwards;
}
@keyframes ep-click-burst {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(14); opacity: 0; }
}

.ep-rga-demo-modal-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}
.ep-rga-demo-modal.is-sparkle .ep-rga-demo-modal-panel::after {
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
    animation: ep-modal-shine 0.85s ease;
}
@keyframes ep-modal-shine {
    0% { opacity: 0; transform: translateX(-30%); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(30%); }
}

.ep-rga-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}
.ep-rga-demo-modal:not([hidden]) { pointer-events: auto; }
.ep-rga-demo-modal[hidden] { display: none !important; }
.ep-rga-demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.32s ease;
}
.ep-rga-demo-modal.is-open .ep-rga-demo-modal-backdrop,
.ep-rga-demo-modal.is-closing .ep-rga-demo-modal-backdrop {
    opacity: 1;
}
.ep-rga-demo-modal.is-closing .ep-rga-demo-modal-backdrop {
    opacity: 0;
}
.ep-rga-demo-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9) translateY(28px);
    transition:
        transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1),
        opacity 0.32s ease;
}
.ep-rga-demo-modal.is-open .ep-rga-demo-modal-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.ep-rga-demo-modal.is-closing .ep-rga-demo-modal-panel {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
    transition-duration: 0.28s;
}
.ep-rga-demo-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ep-border);
    background: var(--slate-50);
}
.ep-rga-demo-modal-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.ep-rga-demo-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--slate-500);
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
}
.ep-rga-demo-modal-close:hover { background: var(--slate-100); color: var(--ink); }
.ep-rga-demo-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #0f172a;
    position: relative;
}
.ep-rga-demo-modal-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(110deg, #0f172a 8%, #1e293b 18%, #0f172a 33%);
    background-size: 200% 100%;
}
.ep-rga-demo-modal-body.is-loading .ep-rga-demo-modal-loader {
    opacity: 1;
    animation: ep-rga-demo-shimmer 1.2s ease-in-out infinite;
}
@keyframes ep-rga-demo-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.ep-rga-demo-frame {
    display: block;
    width: 100%;
    height: min(70vh, 520px);
    border: none;
    background: #fff;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.35s ease 0.08s, transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) 0.08s;
}
.ep-rga-demo-modal.is-open .ep-rga-demo-frame {
    opacity: 1;
    transform: scale(1);
}
.ep-rga-demo-modal-body:not(.is-loading) .ep-rga-demo-frame {
    opacity: 1;
    transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .ep-rga-demo-modal-panel,
    .ep-rga-demo-modal-backdrop,
    .ep-rga-demo-frame,
    .ep-stat--action,
    .ep-rga-demo-btn { transition: none !important; animation: none !important; }
    .ep-rga-demo-modal.is-open .ep-rga-demo-modal-panel { transform: none; opacity: 1; }
}
.ep-rga-demo-modal-foot {
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--ep-border);
    background: #fff;
}
.ep-rga-demo-modal-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.ep-rga-demo-modal-link:hover { text-decoration: underline; }
html[data-theme="dark"] .ep-rga-demo-modal-panel,
html[data-theme="dark"] .ep-rga-demo-modal-foot { background: #1e293b; }
html[data-theme="dark"] .ep-rga-demo-modal-head { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ep-rga-demo-modal-title { color: #f1f5f9; }

.ep-rga-card-desc { font-size: 0.6875rem; color: var(--ep-muted); line-height: 1.35; margin: 0; }
.ep-rga-foot {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--ep-muted);
    text-align: center;
}
.ep-rga-foot strong { color: var(--ink); }

/* Packs — barra precios */
.ep-packs-pricing-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem 1rem;
    max-width: 36rem;
    margin: 0 auto 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, #f8fbff, #fff);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: var(--radius-lg);
}
.ep-packs-pricing-field { border: none; margin: 0; padding: 0; }
.ep-packs-pricing-field--nivel { min-width: 0; flex: 1 1 100%; }
@media (min-width: 640px) {
    .ep-packs-pricing-bar { flex-wrap: nowrap; max-width: 42rem; }
    .ep-packs-pricing-field--nivel { flex: 1 1 auto; }
}
.ep-packs-pricing-live {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ep-muted);
    margin: 0 0 1.1rem;
}
.ep-packs-pricing-live strong { color: var(--ink); }

/* Trabaja con nosotros */
.ep-home-profs {
    margin-top: 0.5rem;
    padding: 2.75rem 0 2.25rem;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 55%, #fff 100%);
    border-top: 2px solid rgba(79, 70, 229, 0.18);
    box-shadow: inset 0 12px 28px -18px rgba(30, 41, 59, 0.12);
    position: relative;
}
.ep-home-profs-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto 1.75rem;
    padding: 0 1.25rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6366f1;
}
.ep-home-profs-label::before,
.ep-home-profs-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
}
.ep-trabaja-section {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}
.ep-trabaja-inner { max-width: none; width: 100%; }
.ep-trabaja-head { text-align: left; margin-bottom: 1rem; max-width: none; }
.ep-trabaja-lead { margin-left: 0; margin-right: 0; max-width: none; width: 100%; }
.ep-trabaja-layout {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}
@media (min-width: 520px) {
    .ep-trabaja-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .ep-trabaja-layout { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .ep-trabaja-layout { grid-template-columns: repeat(4, 1fr); }
}
.ep-trabaja-tag { margin-bottom: 0.35rem !important; }
.ep-trabaja-card,
.ep-trabaja-term {
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--radius);
    padding: 0.75rem 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ep-trabaja-card:hover,
.ep-trabaja-term:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ep-trabaja-card {
    text-align: left;
    border-width: 1px 1px 1px 4px;
    padding: 0.85rem 0.95rem;
}
.ep-trabaja-card--money {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 55%);
}
.ep-trabaja-card--tools {
    border-left-color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
}
.ep-trabaja-card--tax {
    border-left-color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%);
}
.ep-trabaja-icon {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.85);
    margin-bottom: 0.45rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ep-trabaja-term {
    background: #f8fafc;
    border-style: dashed;
    border-color: #cbd5e1;
}
.ep-trabaja-note {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border-left: 4px solid var(--blue);
    border-style: solid;
}
.ep-trabaja-term--wide {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .ep-trabaja-term--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .ep-trabaja-term--wide { grid-column: span 2; }
}
.ep-trabaja-card h3,
.ep-trabaja-term h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--ink);
}
.ep-trabaja-card p,
.ep-trabaja-term p {
    font-size: 0.8125rem;
    color: var(--ep-muted);
    margin: 0;
    line-height: 1.4;
}
.ep-trabaja-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.25rem;
}
.ep-trabaja-cta-lead {
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 0;
    width: 100%;
}
.ep-trabaja-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}
.ep-trabaja-note {
    background: #f8fafc;
    border-left: 3px solid var(--blue);
}
.ep-trabaja-note p { margin: 0; }

/* FAQ + avisos en footer (compacto) */
.ep-footer-faq-wrap {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    text-align: left;
}
.ep-footer-faq,
.ep-footer-avisos {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
}
.ep-footer-faq-toggle,
.ep-footer-avisos > summary {
    cursor: pointer;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #bfdbfe;
    list-style: none;
}
.ep-footer-faq-toggle::-webkit-details-marker,
.ep-footer-avisos > summary::-webkit-details-marker { display: none; }
.ep-footer-faq-body {
    padding: 0 0.85rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ep-footer-faq-grid {
    display: grid;
    gap: 0.35rem;
    max-height: 16rem;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}
@media (min-width: 640px) {
    .ep-footer-faq-grid { grid-template-columns: 1fr 1fr; max-height: 14rem; }
}
.ep-footer-faq-item {
    border-radius: 0.5rem;
    background: rgba(15,23,42,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
}
.ep-footer-faq-item > summary {
    cursor: pointer;
    padding: 0.45rem 0.55rem;
    font-weight: 600;
    color: #e2e8f0;
    list-style: none;
}
.ep-footer-faq-item > summary::-webkit-details-marker { display: none; }
.ep-footer-faq-item > p {
    margin: 0;
    padding: 0 0.55rem 0.5rem;
    color: #94a3b8;
    line-height: 1.45;
}
.ep-footer-faq-more {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.ep-footer-faq-more a { color: #93c5fd; }
.ep-anuncios-box--footer {
    padding: 0.5rem 0.85rem 0.75rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
}

/* Footer compacto */
.ep-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.ep-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
}
.ep-footer-logo:hover { color: #fff; opacity: 0.92; }
.ep-footer-logo-img {
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.2rem;
}
.ep-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
    font-size: 0.875rem;
}
.ep-footer-nav--legal {
    font-size: 0.8125rem;
    opacity: 0.9;
}
.ep-footer-cookie-btn {
    background: none;
    border: none;
    color: #bfdbfe;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}
.ep-footer-cookie-btn:hover { color: #fff; }
.ep-footer-copy {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.8;
}

html[data-theme="dark"] .ep-valores-item,
html[data-theme="dark"] .ep-rga-card,
html[data-theme="dark"] .ep-trabaja-card--money { background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 70%); }
html[data-theme="dark"] .ep-trabaja-card--tools { background: linear-gradient(135deg, #422006 0%, #1e293b 70%); }
html[data-theme="dark"] .ep-trabaja-card--tax { background: linear-gradient(135deg, #064e3b 0%, #1e293b 70%); }
html[data-theme="dark"] .ep-trabaja-term { background: #0f172a; border-color: #475569; }
html[data-theme="dark"] .ep-rga-card--unique .ep-rga-card-body { background: linear-gradient(160deg, #1e3a5f 0%, #1e293b 85%); }
html[data-theme="dark"] .ep-rga-modal { background: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .ep-rga-modal-head h3 { color: #f1f5f9; }
html[data-theme="dark"] .ep-rga-modal-close { background: #334155; color: #cbd5e1; }
html[data-theme="dark"] .ep-valores-name,
html[data-theme="dark"] .ep-rga-card-title,
html[data-theme="dark"] .ep-trabaja-card h3,
html[data-theme="dark"] .ep-trabaja-term h4 { color: #f1f5f9; }
html[data-theme="dark"] .ep-valores-manifesto {
    background: linear-gradient(145deg, rgba(37,99,235,.12) 0%, rgba(30,41,59,.8) 100%);
    border-color: #334155;
}
html[data-theme="dark"] .ep-packs-pricing-bar { background: #1e293b; border-color: #334155; }

.ep-hscroll-wrap {
    overflow: hidden;
    margin: 0 -1.25rem 1rem;
    padding: 0.25rem 0 0.75rem;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ep-hscroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.35rem 1.25rem 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.ep-hscroll::-webkit-scrollbar { height: 6px; }
.ep-hscroll::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 9999px; }
.ep-materia-card--scroll {
    flex: 0 0 min(16rem, 78vw);
    scroll-snap-align: start;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
}
.ep-materia-icon { font-size: 1.875rem; display: block; margin-bottom: 0.4rem; }
.ep-materia-nivel { font-size: 0.875rem; color: var(--ep-muted); margin: 0.2rem 0 0.5rem; }

/* ═══ Team marquee ═══ */
.ep-marquee {
    overflow: hidden;
    margin: 0 -1.25rem;
    padding: 0.5rem 0 1rem;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ep-marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: ep-marquee-scroll 42s linear infinite;
    padding: 0 1.25rem;
}
.ep-marquee:hover .ep-marquee-track { animation-play-state: paused; }
@keyframes ep-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ep-team-card {
    flex: 0 0 min(18rem, 85vw);
    background: linear-gradient(165deg, #fff 0%, #f8fbff 100%);
    border: 1px solid rgba(37,99,235,.12);
    border-top: 4px solid var(--team-color, var(--blue));
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.ep-team-avatar {
    max-width: 7rem;
    height: auto;
    border-radius: 1rem;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}
.ep-team-name { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.2rem; color: var(--ink); }
.ep-team-rol {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--team-color);
    margin: 0 0 0.65rem;
}
.ep-team-bio { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 0.85rem; text-align: left; }
.ep-team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }

html[data-theme="dark"] .ep-info-card,
html[data-theme="dark"] .ep-pack-card,
html[data-theme="dark"] .ep-team-card { background: var(--ep-card); }
html[data-theme="dark"] .ep-info-card--curiosidad {
    background: linear-gradient(180deg, rgba(0, 112, 176, 0.18) 0%, var(--ep-card) 55%);
}
html[data-theme="dark"] .ep-curiosidad-cat { color: #3ba3d9; }
html[data-theme="dark"] .ep-curiosidad-util {
    background: rgba(240, 176, 0, 0.12);
    border-color: rgba(240, 176, 0, 0.28);
}

/* ═══ Calculadora de precios ═══ */
.ep-price-calc-wrap { margin-bottom: 2rem; }
.ep-price-calc {
    background: linear-gradient(145deg, #fff 0%, #f0f7ff 50%, #f0fdfa 100%);
    border: 1px solid rgba(37,99,235,.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-md);
}
.ep-price-calc-head { margin-bottom: 1.25rem; }
.ep-price-calc-head h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin: 0.35rem 0 0.5rem;
    color: var(--ink);
}
.ep-price-calc-lead {
    font-size: 0.9375rem;
    color: var(--ep-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 40rem;
}
.ep-price-calc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}
.ep-calc-field { border: none; margin: 0; padding: 0; min-width: 0; }
.ep-calc-field legend,
.ep-calc-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ep-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    display: block;
    line-height: 1.2;
}
.ep-calc-field--grow { flex: 1 1 16rem; min-width: 0; }
.ep-calc-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ep-calc-pills--nivel { gap: 0.4rem; flex-wrap: wrap; }
.ep-calc-pill--nivel {
    padding: 0.4rem 0.7rem; font-size: 0.78rem; min-width: 0;
    justify-content: center; white-space: nowrap; text-align: center; line-height: 1.2;
    max-width: none;
}
.ep-price-calc-duracion {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}
@media (min-width: 720px) {
    .ep-price-calc-controls {
        display: grid;
        grid-template-columns: minmax(11rem, auto) minmax(0, 1fr);
        gap: 0.85rem 1.5rem;
        align-items: start;
    }
    .ep-calc-pills--nivel .ep-calc-pill--nivel { font-size: 0.8125rem; padding: 0.45rem 0.85rem; }
}
.ep-calc-pill {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    border: 1.5px solid var(--ep-border);
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.ep-calc-pill input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.ep-calc-pill--active,
.ep-calc-pill:has(input:checked) {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.ep-calc-select {
    width: 100%;
    display: block;
    min-height: 2.75rem;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border: 1.5px solid var(--ep-border);
    border-radius: 0.65rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: var(--ink);
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}
.ep-calc-field--grow .ep-calc-select { margin-top: 0; }
.ep-price-calc-results {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .ep-price-calc-results { grid-template-columns: 1.2fr 1fr 1fr; }
    .ep-price-calc-results--sesiones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ep-price-calc-results:not(.ep-price-calc-results--sesiones) { grid-template-columns: 1fr 1fr; }
}
.ep-calc-result {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(37,99,235,.12);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.ep-calc-result--main {
    border-top: 3px solid var(--blue);
    background: #fff;
}
.ep-calc-result--featured {
    border-top: 3px solid #f59e0b;
    box-shadow: var(--shadow-sm);
}
.ep-calc-result-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ep-muted);
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ep-calc-result-price {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ep-calc-result-price--sm { font-size: 1.75rem; }
.ep-calc-result-note,
.ep-calc-result-meta {
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 0.45rem 0 0;
    line-height: 1.45;
}
.ep-calc-result-meta strong { color: var(--green); }
.ep-calc-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    vertical-align: middle;
}
.ep-calc-badge--5 { background: #d1fae5; color: #065f46; }
.ep-calc-badge--9 { background: #fef3c7; color: #92400e; }
.ep-price-calc-foot {
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 1rem 0 0;
}
.ep-price-calc-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
html[data-theme="dark"] .ep-price-calc {
    background: linear-gradient(145deg, #1e293b, #1e3a5f);
    border-color: #334155;
}
html[data-theme="dark"] .ep-calc-result { background: rgba(15,23,42,.6); border-color: #334155; }
html[data-theme="dark"] .ep-calc-pill { background: #1e293b; border-color: #475569; color: #e2e8f0; }
html[data-theme="dark"] .ep-calc-select { background: #1e293b; border-color: #475569; color: #f1f5f9; }

html[data-theme="dark"] .ep-materia-chip { background: var(--ep-card); border-color: #334155; }
html[data-theme="dark"] .ep-materia-chip--featured { background: linear-gradient(160deg, #1e3a5f 0%, #1e293b 70%); border-color: #3b82f6; }
html[data-theme="dark"] .ep-materia-chip-name { color: #f1f5f9; }
html[data-theme="dark"] .ep-materia-chip-tags span { background: rgba(74,144,226,.15); border-color: #334155; color: #93c5fd; }
html[data-theme="dark"] .ep-materias-search { background: #1e293b; border-color: #475569; color: #f1f5f9; }
html[data-theme="dark"] .ep-materias-uni { background: rgba(15,23,42,.5); border-color: #334155; }
html[data-theme="dark"] .ep-materias-uni-item { background: #1e293b; border-color: #334155; }

.ep-lazy-placeholder {
    min-height: 48px;
}

/* ═══ Auto-scroll infinito (chips / valores / RGA) ═══ */
@keyframes ep-auto-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ep-auto-marquee {
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    animation: ep-auto-scroll var(--ep-marquee-dur, 30s) linear infinite;
    will-change: transform;
}

/* Pausa al hover — el usuario puede "leer" sin que se escape */
.ep-hscroll-wrap:hover .ep-auto-marquee,
.ep-strip-scroll-wrap:hover .ep-auto-marquee {
    animation-play-state: paused;
}

/* Pausa explícita por clase (cuando el buscador está activo) */
.ep-auto-marquee.is-searching {
    animation-play-state: paused;
    overflow-x: auto !important;
    transform: none !important;
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .ep-auto-marquee {
        animation: none !important;
        overflow-x: auto !important;
    }
}

/* ═══ Herramientas + Materias en paralelo ═══ */
.ep-combo-duo {
    display: grid;
    grid-template-columns: 1fr;
    background: transparent;
}
@media (min-width: 900px) {
    .ep-combo-duo {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .ep-combo-duo > section:first-child {
        border-right: 1px solid var(--ep-band-divider, rgba(37, 99, 235, 0.07));
    }
}
.ep-combo-duo > section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

html[data-theme="dark"] .ep-combo-duo > section:first-child {
    border-right-color: #334155;
}

/* ═══ Mundial 2026 / Deportes ═══ */
.ep-mundial-section {
    background: transparent;
    border: none;
}
.ep-mundial-hero { text-align: center; margin-bottom: 1.75rem; margin-top: 0.5rem; }
.ep-mundial-tag { color: #047857; background: rgba(16, 185, 129, 0.12); display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; }
.ep-mundial-title { margin-bottom: 0.5rem; }
.ep-mundial-lead { max-width: 42rem; margin-left: auto; margin-right: auto; }
.ep-mundial-fase-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.45rem 1rem;
    background: #fff;
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 999px;
    font-size: 0.875rem;
    color: #065f46;
    box-shadow: var(--shadow-sm);
}
.ep-mundial-fase-badge:empty { display: none; }

.ep-mundial-champions {
    margin: 1.25rem auto 0;
    max-width: 28rem;
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(165deg, #fff8f0 0%, #fff 55%, #fef2f2 100%);
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(185, 28, 28, 0.08);
}
.ep-mundial-stars,
.ep-mundial-stars-inline,
.ep-logo-stars,
.ep-bracket-champions-stars {
    color: #ffd700;
    text-shadow:
        0 1px 0 #b45309,
        0 0 10px rgba(255, 215, 0, 0.55);
}
.ep-mundial-stars {
    display: block;
    font-size: 1.95rem;
    letter-spacing: 0.5rem;
    line-height: 1;
    animation: ep-mundial-stars-glow 2.4s ease-in-out infinite;
}
.ep-mundial-stars-inline {
    letter-spacing: 0.2rem;
    font-size: 1rem;
    vertical-align: middle;
}
.ep-mundial-champions-title {
    margin: 0.45rem 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #9f1239;
    letter-spacing: -0.01em;
}
.ep-mundial-champions-score {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}
.ep-mundial-champions-score strong {
    color: #9f1239;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}
.ep-mundial-champions-sub {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
}
@keyframes ep-mundial-stars-glow {
    0%, 100% { transform: scale(1); opacity: 1; filter: brightness(1); }
    50% { transform: scale(1.06); opacity: 0.92; filter: brightness(1.15); }
}

/* Estrellas sobre el logo EduProfe (estilo camiseta) */
.ep-logo-mark {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 0;
}
.ep-logo-stars {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.18rem;
    line-height: 1;
    margin-bottom: 0.05rem;
    padding-left: 0.12rem;
    user-select: none;
    pointer-events: none;
}
#ep-mobile-menu-panel .ep-logo-stars {
    font-size: 0.55rem;
}

/* Barra superior: directo / resultados de hoy */
.ep-mundial-today {
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ep-border);
    box-shadow: var(--shadow-md);
}
.ep-mundial-today--live {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}
.ep-mundial-today--results {
    border-top: 4px solid #059669;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 80px);
}
.ep-mundial-today--empty { border-top: 4px solid #94a3b8; }
.ep-mundial-today-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ink);
}
.ep-mundial-today--live .ep-mundial-today-head { color: #991b1b; }
.ep-mundial-today-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ep-muted);
    text-transform: capitalize;
}
.ep-mundial-today-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ep-mundial-today-body--scroll {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}
.ep-mundial-today-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    min-width: 0;
    flex-shrink: 0;
}
.ep-mundial-today-body--scroll .ep-mundial-today-chip { min-width: 220px; }
.ep-mundial-today-chip--live {
    background: #fff;
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}
.ep-mundial-today-chip--live .ep-mundial-today-teams { font-size: 1.05rem; }
.ep-mundial-today-teams { font-size: 0.9375rem; line-height: 1.35; }
.ep-mundial-today-meta { font-size: 0.75rem; color: var(--ep-muted); font-weight: 600; }
.ep-mundial-today-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ep-muted);
    font-style: italic;
}
.ep-mundial-live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #ef4444;
    animation: ep-mundial-pulse 1.2s infinite;
}
.ep-mundial-bracket-panel,
.ep-mundial-news-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ep-border);
    padding: 1.25rem 1.35rem 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
}
.ep-mundial-bracket-panel {
    border-top: 4px solid #059669;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 120px);
}
.ep-mundial-news-panel { border-top: 4px solid #2563eb; }
.ep-mundial-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ep-mundial-panel-head-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.ep-mundial-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.ep-mundial-card-title { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--ink); }
.ep-mundial-card-sub { font-size: 0.8125rem; color: var(--ep-muted); margin: 0.15rem 0 0; }
.ep-mundial-refresh {
    border: 1px solid rgba(5, 150, 105, 0.35);
    background: #fff;
    border-radius: 0.65rem;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #047857;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.ep-mundial-refresh:hover { background: #ecfdf5; }
.ep-mundial-refresh:active { transform: scale(0.98); }
.ep-mundial-loading, .ep-mundial-empty {
    color: var(--ep-muted);
    font-style: italic;
    font-size: 0.9375rem;
    margin: 0;
    padding: 1rem 0;
    text-align: center;
}
.ep-mundial-source { font-size: 0.75rem; color: var(--ep-subtle); margin: 0.75rem 0 0; }

.ep-mundial-compact {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.ep-mundial-compact[hidden] { display: none !important; }
.ep-mundial-compact-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.ep-mundial-compact-card--live {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}
.ep-mundial-compact-card--spain {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff);
}
.ep-mundial-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}
.ep-mundial-compact-score {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
}
.ep-mundial-compact-teams {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.ep-mundial-compact-crest {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}
.ep-mundial-compact-time {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue, #2563eb);
}
.ep-mundial-refresh.is-loading { opacity: 0.65; pointer-events: none; }

/* Cuadro eliminatorio — árbol izquierda / centro / derecha */
.ep-bracket-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -0.25rem;
    padding: 0.25rem 0.25rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.ep-bracket-wrap .ep-bracket-tree--full {
    margin: 0 auto;
}

/* Cuadro simplificado — 16avos hardcodeado + banderas fiables */
.ep-bracket-simple {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .ep-bracket-simple { grid-template-columns: 1fr 1fr; }
}
.ep-bracket-simple-title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-700);
}
.ep-bracket-simple-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}
.ep-bracket-simple-match {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1px 4px rgba(30, 58, 95, 0.05);
}
.ep-bracket-simple-match--spain {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}
.ep-bracket-simple-match--live {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.ep-bracket-simple-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}
.ep-bracket-simple-team {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}
.ep-bracket-simple-team:last-child {
    grid-template-columns: auto 1fr auto;
}
.ep-bracket-simple-vs {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
}
.ep-bracket-simple-crest {
    width: 1.5rem;
    height: 1.1rem;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}
.ep-bracket-simple-crest--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    font-size: 0.9rem;
}
.ep-bracket-simple-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-bracket-simple-goals {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--ink);
}
.ep-bracket-simple-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.6875rem;
    color: var(--slate-700);
}
.ep-bracket-tree {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.ep-bracket-tree--full {
    min-height: 900px;
    min-width: 980px;
}
.ep-bracket-wing {
    display: flex;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
}
.ep-bracket-wing--left {
    flex-direction: row;
    justify-content: flex-end;
}
.ep-bracket-wing--right {
    flex-direction: row;
    justify-content: flex-start;
}
.ep-bracket-mid {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    min-width: 72px;
    position: relative;
}
.ep-bracket-mid::before,
.ep-bracket-mid::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
}
.ep-bracket-mid::before { left: 0; }
.ep-bracket-mid::after { right: 0; }

.ep-bracket-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 132px;
    display: flex;
    flex-direction: column;
    padding: 0 0.2rem;
    position: relative;
    height: 100%;
}
.ep-bracket-col--left:not(:last-child)::after,
.ep-bracket-col--right:not(:first-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, transparent, #a7f3d0 15%, #a7f3d0 85%, transparent);
}
.ep-bracket-col--left:not(:last-child)::after { right: 0; }
.ep-bracket-col--right:not(:first-child)::after { left: 0; }

.ep-bracket-col-title {
    text-align: center;
    font-weight: 800;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #065f46;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.45rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.ep-bracket-col-slots {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 850px;
    justify-content: space-around;
}
.ep-bracket-col-slots--r32 { justify-content: space-around; gap: 0.85rem; }
.ep-bracket-col-slots--r16 { justify-content: space-around; gap: 1.65rem; padding: 1.15rem 0; }
.ep-bracket-col-slots--r8  { justify-content: space-around; gap: 3.25rem; padding: 2.75rem 0; }
.ep-bracket-col-slots--r4  { justify-content: center; padding: 0; }

/* Bloque sincronizado 16avos + octavos (posición % = centrado entre feeders) */
.ep-bracket-sync {
    flex: 2 1 0;
    min-width: 0;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    padding: 0 0.35rem;
    position: relative;
}
.ep-bracket-sync-head {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1rem;
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}
.ep-bracket-sync--right .ep-bracket-sync-head {
    grid-template-columns: 1.08fr 0.92fr;
}
.ep-bracket-sync-body {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.15rem;
    flex: 1;
    min-height: 850px;
    position: relative;
}
.ep-bracket-sync--right .ep-bracket-sync-body {
    grid-template-columns: 1.08fr 0.92fr;
}
.ep-bracket-sync-outer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 850px;
    padding: 0.25rem 0;
}
.ep-bracket-sync-r32-row {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 0.12rem 0;
}
.ep-bracket-sync-inner,
.ep-bracket-pos-track {
    position: relative;
    height: 100%;
    min-height: 850px;
}
.ep-bracket-pos-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 132px;
    display: flex;
    flex-direction: column;
    padding: 0 0.2rem;
    position: relative;
    height: 100%;
}
.ep-bracket-pos-item {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.2rem 0;
}
/* Octavos: más aire horizontal y nombres en dos líneas si hace falta */
.ep-bracket-sync-inner .ep-bracket-pos-item {
    padding: 0.35rem 0;
}
.ep-bracket-sync-inner .ep-bracket-slot {
    margin: 0.2rem 0;
}
.ep-bracket-sync-inner .ep-bracket-match--compact .ep-bracket-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.6rem;
    line-height: 1.2;
}
.ep-bracket-sync-inner .ep-bracket-match--compact .ep-bracket-row {
    grid-template-columns: 1rem 1fr auto;
    gap: 0.25rem;
    padding: 0.24rem 0.35rem;
    min-height: 1.45rem;
}
.ep-bracket-sync-inner .ep-bracket-match--compact .ep-bracket-crest {
    width: 0.95rem;
    height: 0.95rem;
}
.ep-bracket-sync--left .ep-bracket-sync-outer .ep-bracket-slot:not(.ep-bracket-slot--spacer)::after,
.ep-bracket-sync--left .ep-bracket-pos-item .ep-bracket-slot:not(.ep-bracket-slot--spacer)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    width: 0.5rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-sync--left .ep-bracket-sync-inner .ep-bracket-pos-item .ep-bracket-slot--advance::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    width: 0.5rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-sync--right .ep-bracket-sync-outer .ep-bracket-slot:not(.ep-bracket-slot--spacer)::after,
.ep-bracket-sync--right .ep-bracket-pos-item .ep-bracket-slot:not(.ep-bracket-slot--spacer)::after {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    width: 0.5rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-sync--right .ep-bracket-sync-inner .ep-bracket-pos-item .ep-bracket-slot--advance::after {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    width: 0.5rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-pos-col--left .ep-bracket-pos-item .ep-bracket-slot:not(.ep-bracket-slot--empty)::after {
    content: '';
    position: absolute;
    right: -0.35rem;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-pos-col--right .ep-bracket-pos-item .ep-bracket-slot:not(.ep-bracket-slot--empty)::after {
    content: '';
    position: absolute;
    left: -0.35rem;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
/* legacy sync rows (mobile fallback) */
.ep-bracket-sync-rows {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-height: 850px;
    padding: 0.35rem 0;
}
.ep-bracket-sync-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    align-items: center;
    flex: 0 0 auto;
    min-height: 5.75rem;
    padding: 0.2rem 0;
}
.ep-bracket-sync-cell { min-width: 0; position: relative; }

.ep-bracket-slot {
    position: relative;
    flex-shrink: 0;
    margin: 0.15rem 0;
}
.ep-bracket-slot--empty { opacity: 0.55; }
.ep-bracket-slot--spacer {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.ep-bracket-slot--spacer .ep-bracket-match--empty { display: none; }
.ep-bracket-advance {
    width: 100%;
    border: 1px dashed #6ee7b7;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #ecfdf5, #fff);
    padding: 0.2rem 0.35rem;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12);
}
.ep-bracket-advance .ep-bracket-badge {
    display: block;
    width: fit-content;
    margin-bottom: 0.15rem;
    font-size: 0.5rem;
}
.ep-bracket-advance .ep-bracket-row {
    padding: 0.15rem 0;
    grid-template-columns: 1.1rem 1fr;
}
.ep-bracket-advance .ep-bracket-goals { display: none; }
.ep-bracket-slot--advance::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-col--left .ep-bracket-slot--advance::after { right: -0.35rem; }
.ep-bracket-col--right .ep-bracket-slot--advance::after { left: -0.35rem; }
.ep-bracket-col--left .ep-bracket-slot:not(.ep-bracket-slot--empty)::after {
    content: '';
    position: absolute;
    right: -0.35rem;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}
.ep-bracket-col--right .ep-bracket-slot:not(.ep-bracket-slot--empty)::after {
    content: '';
    position: absolute;
    left: -0.35rem;
    top: 50%;
    width: 0.35rem;
    height: 2px;
    background: #6ee7b7;
    z-index: 1;
}

.ep-bracket-match--empty {
    background: transparent;
    border: 1px dashed #cbd5e1;
    box-shadow: none;
    min-height: 2.4rem;
}
.ep-bracket-match--compact .ep-bracket-match-head { padding: 0.2rem 0.4rem; font-size: 0.5625rem; }
.ep-bracket-match--compact .ep-bracket-row { padding: 0.28rem 0.4rem; font-size: 0.625rem; grid-template-columns: 1.1rem 1fr auto; gap: 0.3rem; min-height: 1.35rem; }
.ep-bracket-match--compact { margin-bottom: 0.1rem; }
.ep-bracket-match--compact .ep-bracket-crest { width: 1rem; height: 1rem; }
.ep-bracket-match--compact .ep-bracket-name { font-size: 0.625rem; line-height: 1.2; }
.ep-bracket-match--compact .ep-bracket-goals { font-size: 0.6875rem; min-width: 0.85rem; }
.ep-bracket-match--compact .ep-bracket-badge { font-size: 0.5rem; padding: 0.08rem 0.3rem; }
.ep-bracket-match--compact .ep-bracket-date { font-size: 0.5625rem; }

/* España — destacado */
@keyframes ep-spain-shine {
    0%, 100% { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 0 8px rgba(220, 38, 38, 0.2); }
    50% { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 0 16px rgba(220, 38, 38, 0.45); }
}
.ep-bracket-match--spain {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 55%, #fef2f2 100%) !important;
    animation: ep-spain-shine 2.2s ease-in-out infinite;
}
.ep-bracket-match--spain.ep-bracket-match--live {
    animation: ep-spain-shine 1.4s ease-in-out infinite;
}
.ep-bracket-row--spain .ep-bracket-name {
    font-weight: 800;
    color: #991b1b;
}
.ep-bracket-crest--spain {
    outline: 2px solid #dc2626;
    outline-offset: 1px;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
    border-radius: 2px;
}
.ep-mundial-today-chip--spain {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

.ep-bracket-col-title {
    font-size: 0.5625rem;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.3rem;
}
.ep-bracket-trophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.4rem;
    background: linear-gradient(180deg, #fef9c3, #fff);
    border: 2px solid #fbbf24;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.18);
    min-width: 68px;
}
.ep-bracket-trophy-icon { font-size: 1.35rem; line-height: 1; }
.ep-bracket-trophy-label {
    font-weight: 900;
    font-size: 0.6875rem;
    color: #92400e;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ep-bracket-trophy-sub {
    font-size: 0.5625rem;
    color: #b45309;
    margin-top: 0.1rem;
}
.ep-bracket-finals { min-width: 140px; }
.ep-bracket-finals--champions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.ep-bracket-champions-stars {
    font-size: 1.25rem;
    letter-spacing: 0.35rem;
    line-height: 1;
}
.ep-bracket-champions-caption {
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9f1239;
}
.ep-bracket-match--empty:hover { box-shadow: none; }
.ep-bracket-row--ghost {
    height: 0.85rem;
    margin: 0.12rem 0.35rem;
    border-radius: 0.2rem;
    background: #f1f5f9;
}
.ep-bracket-match--empty .ep-bracket-row--ghost:first-child { margin-top: 0.3rem; }
.ep-bracket-match--empty .ep-bracket-row--ghost:last-child { margin-bottom: 0.3rem; }

/* Mundial móvil — pestañas por ronda (más denso que el árbol apilado) */
.ep-bracket-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ep-bracket-m-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.1rem 0 0.15rem;
    position: sticky;
    top: 3.35rem;
    z-index: 4;
    background: linear-gradient(180deg, #f8fafc 70%, rgba(248, 250, 252, 0.85));
}
.ep-bracket-m-tabs::-webkit-scrollbar { display: none; }
.ep-bracket-m-tab {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid rgba(5, 95, 70, 0.22);
    background: #fff;
    color: #065f46;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}
.ep-bracket-m-tab.is-active {
    background: #065f46;
    border-color: #065f46;
    color: #fff;
}
.ep-bracket-m-panel {
    display: grid;
    gap: 0.45rem;
}
.ep-bracket-m-panel[hidden] { display: none !important; }
.ep-bracket-m-panel .ep-bracket-match {
    width: 100%;
    max-width: none;
}

@media (max-width: 720px) {
    .ep-bracket-tree--full {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        min-height: 0;
    }
    .ep-bracket-wing {
        width: 100%;
    }
    .ep-bracket-sync {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    .ep-bracket-sync-body,
    .ep-bracket-sync-outer,
    .ep-bracket-sync-inner,
    .ep-bracket-pos-track {
        min-height: auto;
    }
    .ep-bracket-sync-rows {
        min-height: auto;
    }
    .ep-bracket-sync-row {
        min-height: auto;
        padding: 0.15rem 0;
    }
    .ep-bracket-wing--left,
    .ep-bracket-wing--right {
        flex-direction: column;
        width: 100%;
    }
    .ep-bracket-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0 0 0.5rem;
    }
    .ep-bracket-col-slots { min-height: auto; }
    .ep-bracket-col-slots--r16,
    .ep-bracket-col-slots--r8,
    .ep-bracket-col-slots--r4 { gap: 0.5rem; padding: 0.5rem 0; }
    .ep-bracket-col--left .ep-bracket-slot:not(.ep-bracket-slot--empty)::after,
    .ep-bracket-col--right .ep-bracket-slot:not(.ep-bracket-slot--empty)::after,
    .ep-bracket-mid::before,
    .ep-bracket-mid::after { display: none; }
    .ep-bracket-mid { padding: 0.75rem 0; min-width: 0; }

    .ep-mundial-section {
        padding-top: 0.35rem !important;
        padding-bottom: 0.85rem !important;
    }
    .ep-mundial-hero {
        margin-bottom: 0.65rem;
        text-align: left;
    }
    .ep-mundial-hero .ep-mundial-lead,
    .ep-mundial-hero .ep-mundial-tag {
        display: none;
    }
    .ep-mundial-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.45rem !important;
    }
    .ep-mundial-champions {
        padding: 0.55rem 0.7rem;
        margin: 0.35rem 0 0.25rem;
    }
    .ep-mundial-champions-title { font-size: 0.95rem; }
    .ep-mundial-champions-sub { font-size: 0.7rem; }
    .ep-mundial-stars { font-size: 0.85rem; letter-spacing: 0.2rem; }
    .ep-mundial-bracket-panel,
    .ep-mundial-news-panel {
        padding: 0.65rem 0.55rem 0.75rem;
        margin-bottom: 0.75rem;
        box-shadow: none;
        border-radius: 0.75rem;
    }
    .ep-mundial-panel-head {
        margin-bottom: 0.5rem;
        gap: 0.4rem;
    }
    .ep-mundial-card-title { font-size: 0.95rem; }
    .ep-mundial-card-sub { font-size: 0.72rem; }
    .ep-mundial-today { margin-bottom: 0.55rem; padding: 0.55rem 0.65rem; }
    .ep-mundial-today-chip { min-width: 168px; }
    .ep-mundial-news-grid {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .ep-mundial-news-item { padding: 0.55rem 0.65rem; }
    .ep-mundial-footnote { font-size: 0.75rem; margin-top: 0.35rem; }
}

.ep-bracket {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: min-content;
    padding: 0.5rem 0;
}
.ep-bracket-round {
    flex: 0 0 240px;
    padding: 0 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.ep-bracket-round:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2.5rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, #a7f3d0 20%, #a7f3d0 80%, transparent);
}
.ep-bracket-round-title {
    text-align: center;
    font-weight: 800;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #065f46;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.6rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
}
.ep-bracket-slots {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    justify-content: center;
}
.ep-bracket-match {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.ep-bracket-match:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.ep-bracket-match--live {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15), 0 4px 12px rgba(239, 68, 68, 0.1);
}
.ep-bracket-match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.625rem;
}
.ep-bracket-badge {
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ep-bracket-badge--live { background: #fee2e2; color: #b91c1c; animation: ep-mundial-pulse 1.5s infinite; }
.ep-bracket-badge--ft { background: #ecfdf5; color: #047857; }
.ep-bracket-badge--adv { background: #ecfdf5; color: #047857; font-weight: 800; }
.ep-bracket-match--partial {
    border-style: dashed;
    border-color: #6ee7b7;
    background: linear-gradient(180deg, #f0fdf4, #fff);
}
.ep-bracket-match--partial .ep-bracket-row--win {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 0.25rem;
}
.ep-bracket-badge--pst { background: #fef3c7; color: #92400e; }
@keyframes ep-mundial-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.ep-bracket-date { color: var(--ep-muted); font-weight: 600; white-space: nowrap; }
.ep-bracket-row {
    display: grid;
    grid-template-columns: 1.65rem 1fr auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    color: var(--ink);
}
.ep-bracket-row + .ep-bracket-row { border-top: 1px solid #f1f5f9; }
.ep-bracket-row--win {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
    font-weight: 700;
}
.ep-bracket-row--win .ep-bracket-goals { color: #047857; }
.ep-bracket-crest {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
}
.ep-bracket-crest--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0.5;
}
.ep-bracket-name {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-bracket-goals {
    font-weight: 800;
    font-size: 0.9375rem;
    min-width: 1.35rem;
    text-align: center;
    color: var(--ink);
}

/* Noticias en grid */
.ep-mundial-news-grid {
    display: grid;
    gap: 0.65rem;
}
@media (min-width: 640px) {
    .ep-mundial-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .ep-mundial-news-grid { grid-template-columns: repeat(3, 1fr); }
}
.ep-mundial-news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid var(--ep-border);
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ep-mundial-news-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
}
.ep-mundial-news-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink);
    flex: 1;
}
.ep-mundial-news-summary {
    display: block;
    font-size: 0.75rem;
    color: var(--ep-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}
.ep-mundial-news-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--ep-subtle);
    margin-top: 0.5rem;
}
.ep-mundial-footnote {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ep-muted);
    margin: 1.75rem auto 0;
    max-width: 36rem;
    line-height: 1.55;
}
html[data-theme="dark"] .ep-mundial-section {
    background: linear-gradient(165deg, #0f2922 0%, #1e293b 50%, #0f172a 100%);
    border-color: #334155;
}
html[data-theme="dark"] .ep-mundial-bracket-panel,
html[data-theme="dark"] .ep-mundial-news-panel,
html[data-theme="dark"] .ep-mundial-fase-badge {
    background: var(--ep-card);
    border-color: #334155;
}
html[data-theme="dark"] .ep-mundial-champions {
    background: linear-gradient(165deg, #3f1d1d 0%, #1e293b 55%, #422006 100%);
    border-color: rgba(248, 113, 113, 0.35);
}
html[data-theme="dark"] .ep-mundial-champions-title { color: #fecaca; }
html[data-theme="dark"] .ep-mundial-champions-score { color: #f1f5f9; }
html[data-theme="dark"] .ep-mundial-champions-score strong { color: #fecaca; }
html[data-theme="dark"] .ep-mundial-champions-sub { color: #94a3b8; }
html[data-theme="dark"] .ep-mundial-stars,
html[data-theme="dark"] .ep-mundial-stars-inline,
html[data-theme="dark"] .ep-logo-stars,
html[data-theme="dark"] .ep-bracket-champions-stars {
    color: #ffd700;
    text-shadow: 0 1px 0 #854d0e, 0 0 12px rgba(255, 215, 0, 0.45);
}
html[data-theme="dark"] .ep-mundial-bracket-panel { background: linear-gradient(180deg, #0f2922 0%, var(--ep-card) 120px); }
html[data-theme="dark"] .ep-bracket-match { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-bracket-match-head { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ep-bracket-row + .ep-bracket-row { border-color: #334155; }
html[data-theme="dark"] .ep-mundial-news-item { background: #1e293b; }
html[data-theme="dark"] .ep-mundial-news-item:hover { background: #334155; border-color: #475569; }
html[data-theme="dark"] .ep-mundial-today { background: var(--ep-card); border-color: #334155; }
html[data-theme="dark"] .ep-mundial-today--live { background: linear-gradient(135deg, #450a0a 0%, var(--ep-card) 100%); border-color: #7f1d1d; }
html[data-theme="dark"] .ep-mundial-today--results { background: linear-gradient(180deg, #0f2922 0%, var(--ep-card) 80px); }
html[data-theme="dark"] .ep-mundial-today-chip { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-bracket-col-title { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
html[data-theme="dark"] .ep-bracket-match--empty { border-color: #475569; }
html[data-theme="dark"] .ep-bracket-row--ghost { background: #334155; }
html[data-theme="dark"] .ep-bracket-match--spain {
    background: linear-gradient(135deg, #422006 0%, #1e293b 60%, #450a0a 100%) !important;
    border-color: #f59e0b !important;
}
html[data-theme="dark"] .ep-bracket-row--spain .ep-bracket-name { color: #fecaca; }
html[data-theme="dark"] .ep-mundial-today-chip--spain {
    background: linear-gradient(135deg, #422006, #1e293b);
    border-color: #f59e0b;
}
html[data-theme="dark"] .ep-bracket-trophy { background: linear-gradient(180deg, #422006, #1e293b); border-color: #b45309; }
html[data-theme="dark"] .ep-mundial-live-banner { background: #450a0a; border-color: #7f1d1d; color: #fecaca; }

/* ═══ Home hub + jerarquía visual ═══ */
.ep-section-compact { padding: 1.35rem 0; scroll-margin-top: 5rem; }
.ep-section-title--sm {
    font-size: clamp(1.125rem, 2.2vw, 1.4rem);
    margin-bottom: 0.25rem;
}
.ep-section-lead--sm {
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
    max-width: 36rem;
}
.ep-tag--sm {
    font-size: 0.6875rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.35rem;
}
.ep-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
}
.ep-card--compact {
    padding: 0.75rem 0.85rem;
}
.ep-card--compact h3 { font-size: 0.9375rem; }
.ep-card--compact p { font-size: 0.8125rem; line-height: 1.45; }

.ep-hub {
    padding: 0.35rem 0 1.1rem;
    background: transparent;
    border: none;
}
.ep-hub-grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .ep-hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
    .ep-hub-grid { grid-template-columns: repeat(5, 1fr); }
}
.ep-hub-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition: transform 0.12s, box-shadow 0.14s, border-color 0.14s;
    min-height: 4.5rem;
}
.ep-hub-panel:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.28);
}
.ep-hub-icon { font-size: 1.15rem; line-height: 1; }
.ep-hub-title { font-size: 0.8125rem; font-weight: 800; color: var(--ink); }
.ep-hub-desc {
    font-size: 0.6875rem;
    color: var(--ink-soft);
    line-height: 1.35;
}
.ep-hub-chips { display: flex; gap: 0.15rem; font-size: 0.75rem; }
.ep-hub-team {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}
.ep-hub-team img {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.ep-hub-panel--valores { border-top: 2px solid #10b981; }
.ep-hub-panel--precios { border-top: 2px solid #f59e0b; }
.ep-hub-panel--materias { border-top: 2px solid #2563eb; }
.ep-hub-panel--equipo { border-top: 2px solid #7c3aed; }
.ep-hub-panel--resenas { border-top: 2px solid #ec4899; }
@media (max-width: 639px) {
    .ep-hub-panel--resenas { grid-column: span 2; }
}

.ep-home-more {
    background: linear-gradient(180deg, rgba(241,245,249,.45) 0%, transparent 100%);
    border-top: 1px solid var(--ep-band-divider);
}
.ep-home-more-label {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ep-muted);
    padding: 1.35rem 1.25rem 0.35rem;
    margin: 0;
}
.ep-home-secondary .ep-section-title--sm,
.ep-home-secondary .ep-promise-intro h2 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.ep-precios-section { padding-top: 1rem; padding-bottom: 1.25rem; }
.ep-precios-section .ep-price-calc-wrap { margin-bottom: 0.65rem; }
.ep-price-calc-wrap--compact .ep-price-calc {
    padding: 0.85rem 0.95rem;
    box-shadow: var(--shadow-sm);
}
.ep-price-calc-wrap--compact .ep-price-calc-head { margin-bottom: 0.75rem; }
.ep-price-calc-wrap--compact .ep-price-calc-head h3 {
    font-size: 1rem;
    margin: 0.2rem 0 0;
}
.ep-price-calc-wrap--compact .ep-price-calc-lead--hide-sm {
    display: none;
}
@media (min-width: 768px) {
    .ep-price-calc-wrap--compact .ep-price-calc-lead--hide-sm { display: block; font-size: 0.8125rem; }
}
.ep-price-calc-wrap--compact .ep-price-calc-controls { margin-bottom: 0.75rem; gap: 0.65rem; }
.ep-price-calc-wrap--compact .ep-calc-pill { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.ep-price-calc-wrap--compact .ep-calc-result { padding: 0.65rem 0.75rem; }
.ep-price-calc-wrap--compact .ep-calc-result-price { font-size: 1.65rem; }
.ep-price-calc-wrap--compact .ep-calc-result-price--sm { font-size: 1.35rem; }
.ep-price-calc-wrap--compact .ep-price-calc-cta { margin-top: 0.75rem; }
.ep-price-calc-wrap--compact .ep-price-calc-foot { font-size: 0.75rem; margin-top: 0.65rem; }
.ep-precios-more {
    margin-top: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
}
.ep-precios-more summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue);
    padding: 0.55rem 0.75rem;
    list-style: none;
}
.ep-precios-more summary::-webkit-details-marker { display: none; }
.ep-precios-more-body { padding: 0 0.75rem 0.75rem; }
.ep-price--sm { font-size: 1.35rem !important; font-weight: 800; }
.ep-price--sm span { font-size: 0.8125rem !important; font-weight: 500; }

.ep-valores-manifesto--short {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
}
.ep-valores-manifesto--short p { font-size: 0.8125rem; }
.ep-home-flow > section.ep-section-compact,
.ep-home-more > section.ep-section-compact {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}
.ep-rga-section,
.ep-materias-section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}
.ep-valores-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.ep-steps--compact { gap: 0.55rem; }
.ep-resenas-section { padding-top: 1.75rem; padding-bottom: 1.25rem; }

.ep-trust-strip {
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
}
.ep-trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}
@media (min-width: 640px) {
    .ep-trust-strip-grid { grid-template-columns: repeat(4, 1fr); }
}
.ep-trust-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.55rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ep-border);
}
.ep-trust-chip span { font-size: 1rem; line-height: 1; }

.ep-trabaja-foot {
    padding: 0.55rem 0 calc(env(safe-area-inset-bottom, 0px) + 0.55rem);
    background: transparent;
    border-top: 1px solid var(--ep-band-divider);
    text-align: center;
}
.ep-trabaja-foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.45rem;
    font-size: 0.6875rem;
    color: var(--ep-muted);
}
.ep-trabaja-foot a {
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    font-size: 0.6875rem;
}
.ep-trabaja-foot a:hover { text-decoration: underline; }
.ep-trabaja-foot-sep { opacity: 0.45; }

html[data-theme="dark"] {
    --ep-band-divider: rgba(148, 163, 184, 0.14);
    --ep-band-soft: rgba(30, 41, 59, 0.55);
    --ep-band-muted: rgba(15, 23, 42, 0.45);
}
html[data-theme="dark"] .ep-hub { background: transparent; border: none; }
html[data-theme="dark"] .ep-hub-panel { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-hub-title { color: #f1f5f9; }
html[data-theme="dark"] .ep-home-more { background: transparent; }
html[data-theme="dark"] .ep-home-profs {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 55%, #0b1120 100%);
    border-top-color: rgba(129, 140, 248, 0.35);
    box-shadow: inset 0 12px 28px -18px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .ep-home-profs-label { color: #a5b4fc; }
html[data-theme="dark"] .ep-home-profs-label::before,
html[data-theme="dark"] .ep-home-profs-label::after {
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), transparent);
}
html[data-theme="dark"] .ep-trust-chip { background: #1e293b; border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .ep-trabaja-foot { background: transparent; border-color: #334155; }
html[data-theme="dark"] .ep-trabaja-note { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.ep-promise--compact { padding: 1.5rem 0; }
.ep-promise--compact .ep-promise-intro h2 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.ep-promise--compact .ep-promise-intro p { font-size: 0.875rem; }
.ep-promise--compact .ep-promise-card { padding: 0.85rem 1rem; }
.ep-promise--compact .ep-promise-list { font-size: 0.8125rem; }

html[data-theme="dark"] .ep-precios-more { background: #1e293b; border-color: #334155; }

/* ═══ Paneles laterales: novedades + infotainment ═══ */
.ep-panels-row {
    padding: 1.75rem 0;
}
.ep-panels-grid {
    display: grid;
    gap: 0.85rem;
    align-items: start;
}
@media (min-width: 960px) {
    .ep-panels-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 22rem);
        gap: 1rem;
    }
    .ep-panel--info {
        position: sticky;
        top: 4.5rem;
    }
}
.ep-panel {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 0.95rem;
    min-width: 0;
}
.ep-panel--novedades {
    border-top: 3px solid var(--blue);
}
.ep-panel--info {
    border-top: 3px solid #6366f1;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.ep-panel-head { margin-bottom: 0.65rem; }
.ep-panel-title {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    margin: 0.15rem 0 0.2rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.ep-panel-lead {
    font-size: 0.8125rem;
    color: var(--ep-muted);
    margin: 0;
    line-height: 1.45;
}
.ep-panel-body--scroll {
    max-height: none;
}
@media (min-width: 960px) {
    .ep-panel-body--scroll {
        max-height: min(72vh, 42rem);
        overflow-y: auto;
        padding-right: 0.25rem;
        scrollbar-width: thin;
    }
}
.ep-novedades-feature { margin-bottom: 0.75rem; }
.ep-novedades-feature #apoyo-emocional-2627 {
    padding: 1rem 0.9rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 h3 {
    font-size: 1rem !important;
    margin-bottom: 0.35rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:first-child > div:last-child {
    display: none;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(2) {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    margin-bottom: 0.65rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(2) > div {
    padding: 0.55rem 0.65rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(2) p {
    font-size: 0.6875rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(3) {
    display: none;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(4) {
    margin-bottom: 0.5rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > div:nth-child(4) a:last-child {
    display: none;
}
.ep-novedades-feature #apoyo-emocional-2627 .ep-tests-ori {
    margin-top: 0.75rem;
    padding: 0.85rem 0.75rem;
}
.ep-novedades-feature #apoyo-emocional-2627 .ep-tests-ori__q {
    padding: 0.5rem 0.55rem;
}
.ep-novedades-feature #apoyo-emocional-2627 a {
    font-size: 0.8125rem !important;
    padding: 0.45rem 0.85rem !important;
}
.ep-novedades-feature #apoyo-emocional-2627 > div > .ep-tests-ori + p,
.ep-novedades-feature #apoyo-emocional-2627 > div > p:last-of-type {
    font-size: 0.625rem !important;
    padding-top: 0.5rem !important;
}
.ep-novedades-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.ep-novedad-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.08);
}
.ep-novedad-ico { font-size: 1.1rem; line-height: 1; }
.ep-novedad-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.ep-novedad-text strong {
    font-size: 0.8125rem;
    color: var(--ink);
    line-height: 1.25;
}
.ep-novedad-text span {
    font-size: 0.6875rem;
    color: var(--ep-muted);
    line-height: 1.35;
}
.ep-novedad-badge {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.12rem 0.35rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.ep-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ep-info-card--sidebar {
    min-height: 0 !important;
    padding: 0.65rem 0.75rem;
}
.ep-info-card-head--compact {
    margin-bottom: 0.4rem;
    gap: 0.45rem;
}
.ep-info-card-head--compact .ep-info-icon { font-size: 1.25rem; }
.ep-info-card-head--compact .ep-info-card-title {
    font-size: 0.8125rem;
    margin: 0;
}
.ep-info-card--sidebar .ep-info-card-sub { display: none; }
.ep-info-body--compact {
    font-size: 0.8125rem;
    line-height: 1.5;
    min-height: 0;
}
.ep-info-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.ep-info-select--compact {
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
}
.ep-info-card--sidebar .ep-info-label {
    font-size: 0.6875rem;
    margin-bottom: 0.2rem;
}
.ep-info-card--sidebar .ep-info-source {
    font-size: 0.625rem;
    margin: 0.25rem 0 0;
}
.ep-info-card--sidebar .ep-info-refresh {
    font-size: 0.625rem;
    padding: 0.15rem 0.4rem;
}

/* FAQ + anuncios — refuerzo vs Tailwind preflight (carga después) */
.ep-faq-section {
    padding: 1.75rem 0;
    background: transparent;
    border: none;
}
.ep-faq-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 900px) {
    .ep-faq-grid { grid-template-columns: 1.35fr 1fr; gap: 1.5rem; }
}
.ep-faq-main .ep-faq { margin-top: 0.35rem; }
.ep-faq-item {
    display: block !important;
    border: 1px solid var(--slate-200, #e2e8f0) !important;
    border-radius: var(--radius-sm, 0.5rem) !important;
    margin-bottom: 0.45rem !important;
    background: #fff !important;
    overflow: hidden;
}
.ep-faq-q {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    padding: 0.85rem 1rem !important;
    list-style: none !important;
    color: var(--slate-900, #0f172a) !important;
    font-size: 0.9375rem !important;
    line-height: 1.45 !important;
    background: #fff !important;
}
.ep-faq-q::-webkit-details-marker { display: none !important; }
.ep-faq-q::marker { content: '' !important; }
.ep-faq-q::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--blue, #2563eb);
    flex-shrink: 0;
    font-weight: 700;
}
.ep-faq-item[open] .ep-faq-q {
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    color: var(--blue, #2563eb) !important;
}
.ep-faq-item[open] .ep-faq-q::after { content: '−'; }
.ep-faq-a {
    display: block !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.9375rem !important;
    color: var(--slate-600, #475569) !important;
    line-height: 1.65 !important;
    background: #f8fbff !important;
}
.ep-faq-a p { margin: 0 !important; }
.ep-faq-side {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-xs);
}
.ep-anuncios-box { min-height: 4rem; }
.ep-anuncios-loading {
    text-align: center;
    color: var(--ep-muted);
    font-size: 0.875rem;
    margin: 0;
}
.ep-anuncios-box .ep-card,
.ep-anuncios-box > div {
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ep-border);
    background: #f8fbff;
}
.ep-anuncios-box > p {
    text-align: center;
    color: var(--ep-muted);
    font-size: 0.8125rem;
    margin: 0;
}

html[data-theme="dark"] .ep-panel { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-panel--info { background: linear-gradient(180deg, #1e293b, #0f172a); }
html[data-theme="dark"] .ep-panel-title { color: #f1f5f9; }
html[data-theme="dark"] .ep-novedad-item { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ep-novedad-text strong { color: #f1f5f9; }
html[data-theme="dark"] .ep-faq-side { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-faq-section { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ep-faq-item { background: #1e293b !important; border-color: #334155 !important; }
html[data-theme="dark"] .ep-faq-q { background: #1e293b !important; color: #f1f5f9 !important; }
html[data-theme="dark"] .ep-faq-item[open] .ep-faq-q { color: #60a5fa !important; border-bottom-color: #334155 !important; }
html[data-theme="dark"] .ep-faq-a { background: #0f172a !important; color: #94a3b8 !important; }
html[data-theme="dark"] .ep-anuncios-box .ep-card,
html[data-theme="dark"] .ep-anuncios-box > div { background: #0f172a; border-color: #334155; }

/* ═══ Ticker titulares (bajo header) ═══ */
.ep-ticker {
    position: sticky;
    top: 3.35rem;
    z-index: 48;
    display: flex;
    align-items: stretch;
    min-height: 2.35rem;
    background: linear-gradient(90deg, #b91c1c 0%, #e08000 35%, #2563eb 100%);
    background-size: 200% 100%;
    animation: ep-ticker-bg 8s ease-in-out infinite alternate;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}
@keyframes ep-ticker-bg {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.ep-ticker-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    background: #0070b0;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: none;
    border-right: 2px solid rgba(240, 192, 0, 0.55);
}
.ep-ticker-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #f0c000;
    box-shadow: 0 0 0 0 rgba(240, 192, 0, 0.7);
    animation: ep-ticker-pulse 1.4s ease-in-out infinite;
}
@keyframes ep-ticker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 192, 0, 0.65); }
    50% { box-shadow: 0 0 0 6px rgba(240, 192, 0, 0); }
}
.ep-ticker-badge-text {
    white-space: nowrap;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0c000;
}
.ep-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.ep-ticker-viewport:hover .ep-ticker-track { animation-play-state: paused; }
.ep-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 0.35rem 0;
}
.ep-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1.35rem 0.25rem 0.65rem;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.15s, transform 0.15s;
}
.ep-ticker-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.ep-ticker-tag {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.ep-ticker-item--hot .ep-ticker-tag {
    background: #fef08a;
    color: #854d0e;
    border-color: #fde047;
}
.ep-ticker-item--new .ep-ticker-tag {
    background: #a855f7;
    color: #fff;
    border-color: #c084fc;
}
.ep-ticker-item--cta .ep-ticker-tag {
    background: #22c55e;
    color: #052e16;
    border-color: #4ade80;
}
.ep-ticker-item--sport .ep-ticker-tag {
    background: #fff;
    color: #166534;
    border-color: #bbf7d0;
}
.ep-ticker-text {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (max-width: 639px) {
    .ep-ticker { top: 3.1rem; min-height: 2.15rem; }
    .ep-ticker-badge { padding: 0 0.55rem; font-size: 0.625rem; }
    .ep-ticker-text { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-ticker { animation: none; }
    .ep-ticker-dot { animation: none; }
    .ep-ticker-viewport:hover .ep-ticker-track { animation-play-state: running; }
}
html[data-theme="dark"] .ep-ticker {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .ep-ticker-badge { background: #020617; }

/* ——— Popup orientador (eduprofe.php) ——— */
.ep-ori-anchor { position: absolute; visibility: hidden; pointer-events: none; }
.ep-ori-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: ep-ori-fade-in 0.35s ease;
}
.ep-ori-popup[hidden] { display: none !important; }
@keyframes ep-ori-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ep-ori-popup-card {
    position: relative;
    width: min(100%, 26rem);
    max-height: min(92vh, 36rem);
    overflow: auto;
    background: var(--surface, #fff);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    animation: ep-ori-slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ep-ori-slide-up {
    from { opacity: 0; transform: translateY(1.25rem) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ep-ori-popup-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ep-ori-popup-close:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.ep-ori-popup-head {
    padding: 1.35rem 1.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}
.ep-ori-popup-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue, #2563eb);
}
.ep-ori-popup-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text, #0f172a);
}
.ep-ori-popup-sub {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
}
.ep-ori-popup-body {
    padding: 0.85rem 1.35rem 0.5rem;
    min-height: 4.5rem;
}
.ep-ori-placeholder {
    font-size: 0.8125rem;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    padding: 0.75rem 0;
}
.ep-ori-response[hidden],
.ep-ori-placeholder[hidden] { display: none !important; }
.ep-ori-response-inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 0.85rem;
}
.ep-ori-emoji {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
}
.ep-ori-response-title {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}
.ep-ori-response-desc {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted, #475569);
}
.ep-ori-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.ep-ori-cta-btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8125rem !important;
}
.ep-ori-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem 1.25rem;
}
.ep-ori-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    background: var(--surface, #fff);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.ep-ori-option:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.04);
}
.ep-ori-option.is-active {
    border-color: var(--blue, #2563eb);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.ep-ori-option-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.ep-ori-option-label {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    line-height: 1.25;
}
.ep-ori-option-hint {
    font-size: 0.6875rem;
    color: var(--text-muted, #64748b);
    line-height: 1.3;
}
.ep-ori-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
@media (min-width: 480px) {
    .ep-ori-popup { align-items: center; justify-content: center; }
    .ep-ori-popup-card { width: min(100%, 28rem); }
}
@media (max-width: 479px) {
    .ep-ori-popup { padding: 0.75rem; align-items: flex-end; }
    .ep-ori-options { grid-template-columns: 1fr; }
    .ep-ori-option:last-child:nth-child(odd) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-ori-popup,
    .ep-ori-popup-card { animation: none; }
}
html[data-theme="dark"] .ep-ori-popup-card {
    background: #0f172a;
    border-color: rgba(96, 165, 250, 0.25);
}
html[data-theme="dark"] .ep-ori-popup-head {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
}
html[data-theme="dark"] .ep-ori-option {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.25);
}
html[data-theme="dark"] .ep-ori-response-inner {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

/* Guía familias / alumnos nuevos (?guia=slug) */
.ep-guia-nuevo {
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}
.ep-guia-nuevo-head { max-width: 42rem; margin-bottom: 1.5rem; }
.ep-guia-nuevo-tag { color: #2563eb; margin-bottom: 0.5rem; }
.ep-guia-nuevo-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
    color: var(--text, #0f172a);
}
.ep-guia-nuevo-curso {
    display: block;
    font-size: 0.72em;
    font-weight: 700;
    color: #2563eb;
    margin-top: 0.2rem;
}
.ep-guia-nuevo-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted, #475569);
    margin: 0;
}
.ep-guia-nuevo-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}
.ep-guia-fact {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid rgba(59, 130, 246, 0.18);
    text-align: center;
}
.ep-guia-fact-val {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.2;
}
.ep-guia-fact-lbl {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.ep-guia-nuevo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ep-guia-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    background: var(--surface, #fff);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.ep-guia-card-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
    color: var(--text, #0f172a);
}
.ep-guia-card-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted, #475569);
    margin: 0 0 0.65rem;
}
.ep-guia-card-text--muted { font-size: 0.84rem; margin-bottom: 0.45rem; }
.ep-guia-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted, #475569);
}
.ep-guia-list li + li { margin-top: 0.35rem; }
.ep-guia-card--precio {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-color: rgba(16, 185, 129, 0.25);
}
.ep-guia-precio-main { margin: 0 0 0.65rem; font-size: 0.95rem; color: #065f46; }
.ep-guia-precio-main strong { font-size: 1.65rem; font-weight: 900; }
.ep-guia-precio-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #047857;
}
.ep-guia-precio-list li + li { margin-top: 0.35rem; }
.ep-guia-steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted, #475569);
}
.ep-guia-steps li + li { margin-top: 0.5rem; }
.ep-guia-nuevo-cta {
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    text-align: center;
}
.ep-guia-cta-text { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.ep-guia-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.ep-guia-nuevo-cta .ep-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: #1e40af;
}
.ep-guia-nuevo-foot {
    margin: 1rem 0 0;
    font-size: 0.84rem;
    color: var(--text-muted, #64748b);
    text-align: center;
}
.ep-guia-nuevo-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
}
@media (max-width: 640px) {
    .ep-guia-nuevo { padding: 1.35rem 0 1.75rem; }
    .ep-guia-cta-actions .ep-btn { flex: 1 1 100%; }
}

.ep-guia-nuevo--presentacion { padding-top: 1.25rem; }
.ep-guia-nuevo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ep-guia-nuevo--presentacion .ep-pres {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ── Guía expansión (interno) ───────────────────────── */
.ep-expansion {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 12rem);
}
.ep-expansion-inner { max-width: 52rem; }
.ep-expansion-head { margin-bottom: 2rem; }
.ep-expansion-lead { max-width: 42rem; }
.ep-expansion-lead code {
    font-size: 0.85em;
    padding: 0.1rem 0.35rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
}
.ep-expansion-alert {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius, 0.75rem);
    max-width: 28rem;
}
.ep-expansion-toc {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--ep-border, #e2e8f0);
    border-radius: var(--radius, 0.75rem);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.ep-expansion-toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.75rem;
}
.ep-expansion-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
    font-size: 0.9rem;
    line-height: 1.65;
}
@media (max-width: 520px) {
    .ep-expansion-toc-list { columns: 1; }
}
.ep-expansion-toc-list a { color: #2563eb; text-decoration: none; }
.ep-expansion-toc-list a:hover { text-decoration: underline; }
.ep-expansion-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 5rem;
}
.ep-expansion-block:last-of-type { border-bottom: none; }
.ep-expansion-block h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #0f172a;
}
.ep-expansion-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #334155;
}
.ep-expansion-block p { color: #475569; line-height: 1.65; margin: 0 0 0.75rem; }
.ep-expansion-cards {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}
.ep-expansion-cards--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .ep-expansion-cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.ep-expansion-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius, 0.75rem);
    border-left: 4px solid #6366f1;
}
.ep-expansion-card h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.ep-expansion-card p { margin: 0; font-size: 0.875rem; }
.ep-expansion-quote {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 var(--radius, 0.75rem) var(--radius, 0.75rem) 0;
    font-style: italic;
    color: #1e40af;
}
.ep-expansion-list {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
    color: #475569;
    line-height: 1.65;
}
.ep-expansion-list--ol { list-style-type: decimal; }
.ep-expansion-list--warn li { color: #b45309; }
.ep-expansion-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius, 0.75rem);
}
.ep-expansion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.ep-expansion-table th,
.ep-expansion-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.ep-expansion-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}
.ep-expansion-table tr:last-child td { border-bottom: none; }
.ep-expansion-template {
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius, 0.75rem);
    background: #fff;
    overflow: hidden;
}
.ep-expansion-template-summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: baseline;
}
.ep-expansion-template-summary::-webkit-details-marker { display: none; }
.ep-expansion-template-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
}
.ep-expansion-template-body { padding: 0 1rem 1rem; }
.ep-expansion-template-label { font-size: 0.85rem; margin-bottom: 0.5rem; }
.ep-expansion-template-text {
    margin: 0 0 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 16rem;
    overflow-y: auto;
}
.ep-expansion-week {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius, 0.75rem);
}
.ep-expansion-week h3 { margin-top: 0; }
.ep-expansion-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ep-expansion-checklist li { margin-bottom: 0.4rem; }
.ep-expansion-checklist label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}
.ep-expansion-checklist input { margin-top: 0.2rem; }
.ep-expansion-note {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}
.ep-expansion-crm-cols {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
}
.ep-expansion-foot {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}
.ep-expansion-foot p { margin: 0; font-size: 0.8rem; color: #94a3b8; }
html[data-theme="dark"] .ep-expansion { background: linear-gradient(180deg, #0f172a 0%, #1e293b 12rem); }
html[data-theme="dark"] .ep-expansion-block h2 { color: #f1f5f9; }
html[data-theme="dark"] .ep-expansion-block h3 { color: #cbd5e1; }
html[data-theme="dark"] .ep-expansion-block p,
html[data-theme="dark"] .ep-expansion-list { color: #94a3b8; }
html[data-theme="dark"] .ep-expansion-toc,
html[data-theme="dark"] .ep-expansion-card,
html[data-theme="dark"] .ep-expansion-template,
html[data-theme="dark"] .ep-expansion-week { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-expansion-template-text { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .ep-expansion-table th { background: #334155; color: #e2e8f0; }
html[data-theme="dark"] .ep-expansion-table td { border-color: #334155; color: #cbd5e1; }

/* ═══ Landing compacta ═══ */
.ep-home-flow--compact > * + * { border-top: 1px solid var(--ep-band-divider); }
.ep-compact-block { padding: 1.5rem 0; scroll-margin-top: 5rem; }
.ep-compact-h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}
.ep-compact-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--ep-muted);
}
.ep-compact-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .ep-compact-steps { grid-template-columns: repeat(4, 1fr); }
}
.ep-compact-step {
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.85);
    border: 1px solid var(--ep-border);
}
.ep-compact-step span {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.ep-compact-step strong { display: block; font-size: 0.8125rem; }
.ep-compact-step p { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--ep-muted); line-height: 1.4; }
.ep-compact-prices { margin-bottom: 0.75rem; }
.ep-compact-details {
    border: 1px solid var(--ep-border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.7);
    margin-bottom: 0.5rem;
}
.ep-compact-details summary {
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue);
    list-style: none;
}
.ep-compact-details summary::-webkit-details-marker { display: none; }
.ep-compact-details[open] summary { border-bottom: 1px solid var(--ep-border); }
.ep-compact-details > *:not(summary) { padding: 0 0.75rem 0.75rem; }
.ep-compact-promise-grid {
    display: grid;
    gap: 0.65rem;
}
@media (min-width: 560px) {
    .ep-compact-promise-grid { grid-template-columns: 1fr 1fr; }
}
.ep-compact-promise {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
    line-height: 1.45;
}
.ep-compact-promise li { padding: 0.2rem 0; }
.ep-compact-promise--yes li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.ep-compact-promise--no li::before { content: "× "; color: #dc2626; font-weight: 700; }
.ep-compact-foot {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--ep-muted);
}
.ep-compact-foot a { font-weight: 600; }
.ep-compact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.ep-compact-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ep-border);
    white-space: nowrap;
}
.ep-compact-rga-intro {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.ep-compact-rga-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
    color: var(--ink-soft);
}
.ep-compact-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.ep-compact-team-card {
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.85);
    border: 1px solid var(--ep-border);
}
.ep-compact-team-card img {
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.35rem;
    display: block;
}
.ep-compact-team-card strong { display: block; font-size: 0.8125rem; }
.ep-compact-team-card span { font-size: 0.7rem; color: var(--ep-muted); line-height: 1.3; }
.ep-compact-contact {
    text-align: center;
    padding: 0.85rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-pale), var(--teal-pale));
    border: 1px solid rgba(37,99,235,.15);
}
.ep-compact-contact p { margin: 0 0 0.65rem; font-size: 0.875rem; }
.ep-compact-contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}
.ep-compact-more { padding-top: 0.75rem; padding-bottom: 1.25rem; }
.ep-compact-accordion { max-width: 36rem; }
.ep-compact-valores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ep-compact-valores li {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: var(--slate-100);
}
.ep-compact-details-p { font-size: 0.8125rem; line-height: 1.5; margin: 0 0 0.65rem; }
.ep-compact-orientador { text-align: center; margin: 0.75rem 0 0; }
.ep-hero-chips--short span { font-size: 0.75rem; }
.ep-resenas-section { padding-bottom: 1rem !important; }
html[data-theme="dark"] .ep-compact-step,
html[data-theme="dark"] .ep-compact-team-card,
html[data-theme="dark"] .ep-compact-details { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ep-compact-chip { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ep-compact-valores li { background: #334155; }

/* ═══ Landing por capítulos (narrativa unificada) ═══ */
.ep-landing { display: block; }

.ep-chapter {
    scroll-margin-top: 5rem;
}
.ep-chapter--inicio .ep-chapter-body > * + * {
    border-top: none;
}
.ep-chapter--inicio .ep-hub {
    border-top: 1px solid var(--ep-band-divider);
}

.ep-chapter-ribbon {
    padding: 1.15rem 1.25rem 0.15rem;
    text-align: center;
}
.ep-chapter-ribbon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ep-muted);
}
.ep-chapter-ribbon-label::before,
.ep-chapter-ribbon-label::after {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ep-band-divider), transparent);
}

.ep-chapter--servicio {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 12rem);
}
.ep-chapter--confianza {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.45) 0%, transparent 14rem);
}
.ep-chapter--contacto .ep-chapter-body > section:last-child {
    padding-bottom: 1.5rem;
}
.ep-chapter--comunidad {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.55) 0%, transparent 16rem);
}
.ep-chapter--informacion {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.35) 0%, transparent 10rem);
}
.ep-chapter--profesorado {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 12rem);
    border-top: 1px solid var(--ep-band-divider);
}

.ep-chapter-body > section.ep-section-compact,
.ep-chapter-body > .ep-combo-duo .ep-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}
.ep-apoyo-wrap { padding-top: 0 !important; padding-bottom: 1.75rem !important; }
.ep-apoyo-wrap .ep-container { padding-top: 0; padding-bottom: 0; }

/* Tests orientativos (ASRS / SNAP-IV / CI) dentro de #apoyo-emocional-2627 */
.ep-tests-ori {
  margin: 0 0 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border-radius: 1rem;
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.ep-tests-ori__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f4c5c;
}
.ep-tests-ori__head h4 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f4c5c;
}
.ep-tests-ori__lead {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}
.ep-tests-ori__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.ep-tests-ori__tab {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.ep-tests-ori__tab.is-active {
  background: #0f4c5c;
  border-color: #0f4c5c;
  color: #fff;
}
.ep-tests-ori__meta h5 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f4c5c;
}
.ep-tests-ori__meta p {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}
.ep-tests-ori__instr { font-weight: 500; }
.ep-tests-ori__note {
  background: #fff8e6;
  border: 1px solid #fed7aa;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  color: #9a3412 !important;
}
.ep-tests-ori__part {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f4c5c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ep-tests-ori__q {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.ep-tests-ori__q legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 0.45rem;
}
.ep-tests-ori__hint {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  color: #64748b;
}
.ep-tests-ori__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ep-tests-ori__opts label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}
.ep-tests-ori__opts--mc label {
  border-radius: 0.55rem;
  width: 100%;
}
.ep-tests-ori__opts input:checked + span {
  font-weight: 800;
  color: #0f4c5c;
}
.ep-tests-ori__num input {
  width: 100%;
  max-width: 16rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.ep-tests-ori__btn {
  appearance: none;
  border: 0;
  background: #0f4c5c;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.35rem;
}
.ep-tests-ori__result {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #164e63;
}
.ep-tests-ori__result ul {
  margin: 0.4rem 0 0.55rem;
  padding-left: 1.1rem;
}
.ep-tests-ori__badge {
  margin: 0 0 0.45rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
}
.ep-tests-ori__badge.is-ok { background: #dcfce7; color: #14532d; }
.ep-tests-ori__badge.is-alert { background: #ffedd5; color: #9a3412; }
.ep-tests-ori__badge.is-info { background: #dbeafe; color: #1e3a8a; }
.ep-tests-ori__src,
.ep-tests-ori__legal {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #64748b;
}
.ep-tests-ori .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .ep-tests-ori__opts label { font-size: 0.72rem; padding: 0.25rem 0.45rem; }
}

.ep-mobile-nav-group {
    margin: 0.85rem 0 0.25rem;
    padding: 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ep-muted);
}
#ep-mobile-menu-panel > .ep-mobile-nav-group:first-of-type {
    margin-top: 0.35rem;
}

html[data-theme="dark"] .ep-chapter--servicio,
html[data-theme="dark"] .ep-chapter--confianza,
html[data-theme="dark"] .ep-chapter--comunidad,
html[data-theme="dark"] .ep-chapter--informacion,
html[data-theme="dark"] .ep-chapter--profesorado {
    background: transparent;
}
