/* Escuela Sabática: estilos propios (se apoya en ../assets/css/styles.css) */
.es-hero { padding: 40px 0 150px; }
.es-hero__inner { position: relative; z-index: 2; max-width: 760px; margin-left: max(16px, calc((100% - 1160px) / 2)); }
.crumbs { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 22px; font-weight: 600; }
.crumbs a { color: #fff; }

/* Este sábado: sube sobre la onda */
.today-wrap { position: relative; z-index: 3; margin-top: -120px; margin-bottom: 48px; }
.today { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 26px; }
.today__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.today h2 { font-size: 26px; margin: 0; }
.today__date { color: var(--accent-text); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.today__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.today__item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; border-radius: 18px; padding: 16px; }
.today__item--mision { background: #e3f1fa; }
.today__item--leccion { background: var(--peach); }
:root[data-theme="dark"] .today__item--mision { background: #1d2b3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .today__item--mision { background: #1d2b3a; } }
.today__item img { width: 88px; height: 88px; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.today__item .kind { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.today__item h3 { font-size: 20px; margin: 2px 0 4px; }
.today__item p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.today__item .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 760px) { .today__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .today__item { grid-template-columns: 64px 1fr; } .today__item img { width: 64px; height: 64px; } }

/* Pestañas tipo píldora */
.es-tabs-wrap { padding-bottom: 72px; scroll-margin-top: 84px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface-2); border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; }
.tabs [role="tab"] { font: 700 15px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--slate); color: #fff; box-shadow: var(--shadow); }
:root[data-theme="dark"] .tabs [role="tab"][aria-selected="true"] { background: var(--cta); color: var(--cta-ink); }

/* Descargas */
.dl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.dl:hover { border-color: var(--orange); transform: translateY(-3px); }
.dl img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.dl strong { display: block; line-height: 1.3; color: var(--ink); }
.dl small { color: var(--muted); font-weight: 600; }
.dl .go { display: block; margin-top: 6px; font-weight: 800; color: var(--accent-text); font-size: 14px; }

/* Semanas */
.weeks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.week { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
.week.is-past { opacity: .6; }
.week.is-now { border: 2px solid var(--orange); box-shadow: var(--shadow); opacity: 1; }
.week__date { font-size: 13px; color: var(--muted); line-height: 1.3; font-weight: 600; }
.week__date strong { display: block; font-size: 22px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.week__main h3 { font-size: 17px; margin: 0; letter-spacing: -0.02em; }
.week__main .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
.week__now { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: #241406; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.week .btn { padding: 10px 16px; font-size: 14px; }
.week .btn::after { content: none; }
@media (max-width: 560px) { .week { grid-template-columns: 70px 1fr; } .week .btn { grid-column: 1 / -1; } }

.weeks--games .week { grid-template-columns: 96px 1fr 1fr; align-items: stretch; }
.game-cell { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--text); border: 2px solid transparent; }
.game-cell:hover { border-color: var(--orange); }
.game-cell img { width: 52px; height: 52px; border-radius: 10px; }
.game-cell .tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.game-cell strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.game-cell small { color: var(--muted); }
@media (max-width: 760px) { .weeks--games .week { grid-template-columns: 1fr; } }

.games-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; background: var(--peach); border-radius: 24px; padding: 24px; margin-bottom: 24px; }
.games-intro img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.games-intro h2 { font-size: 28px; }
.tips { padding-left: 18px; color: var(--muted); margin: 10px 0 20px; }
.tips li { margin-bottom: 6px; }
@media (max-width: 760px) { .games-intro { grid-template-columns: 1fr; } }
