/* Concepto: catálogo de ofertas con carteles de precio grandes y portadas tejidas como un aguayo. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef0f6; --fg: #0e1120; --muted: #586079; --line: #e0e3ec;
  --night: #0a0c18; --night-2: #181b30; --on-night: #f3f4fb; --on-night-muted: #a7acc6;
  --accent: #c2185b; --accent-ink: color-mix(in srgb, var(--accent) 88%, black); --on-accent: #ffffff; --sun: #f5b324; --on-sun: #231a02;
  --violet: #7c3aed;
  --ok: #1d7a46; --ok-bg: #dff3e6; --warn: #8a5a00; --warn-bg: #fdf0d3; --bad: #b3261e; --bad-bg: #fbe2df;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px; --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(10 12 24 / .06), 0 10px 28px rgb(10 12 24 / .08);
  --grad: linear-gradient(115deg, color-mix(in srgb, var(--accent) 62%, #ff8ab8) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 45%, var(--violet)) 100%);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
/* Tema oscuro: el panel lo usa si el sistema está en oscuro; el sitio público, según data-theme, que pone el navegador
   con lo que eligió el panel o el visitante (claro, oscuro o según el sistema). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080a14; --surface: #10131f; --surface-2: #191d2e; --fg: #eef0f8; --muted: #9ea4bf; --line: #252a42;
    --night: #05060d; --night-2: #151829; --accent-ink: color-mix(in srgb, var(--accent) 52%, white);
    --ok: #5ee08f; --ok-bg: #0f2e1c; --warn: #f5c45e; --warn-bg: #33270a; --bad: #fb8a97; --bad-bg: #3a1219;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 36px rgb(0 0 0 / .38);
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .site-dark, .x-shell {
  --bg: #080a14; --surface: #10131f; --surface-2: #191d2e; --fg: #eef0f8; --muted: #9ea4bf; --line: #252a42;
  --night: #05060d; --night-2: #151829; --accent-ink: color-mix(in srgb, var(--accent) 52%, white);
  --ok: #5ee08f; --ok-bg: #0f2e1c; --warn: #f5c45e; --warn-bg: #33270a; --bad: #fb8a97; --bad-bg: #3a1219;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 36px rgb(0 0 0 / .38);
  color-scheme: dark;
}

.area-scope { --c-ink: color-mix(in srgb, var(--c, var(--accent)) 82%, black); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .area-scope { --c-ink: color-mix(in srgb, var(--c, var(--accent)) 50%, white); } }
:root[data-theme="dark"] .area-scope, .site-dark .area-scope { --c-ink: color-mix(in srgb, var(--c, var(--accent)) 50%, white); }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
#app > main { flex: 1; width: 100%; }
#app > .admin { flex: 1; width: 100%; }
.boot { padding: 48px 16px; text-align: center; color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.sun { background: var(--sun); color: var(--on-sun); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { min-height: 34px; padding: 4px 10px; font-size: .86rem; }
.btn.block { width: 100%; }
.text-link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Encabezado público */
.topbar { background: var(--night); color: var(--on-night); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.5rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand img { height: 34px; width: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 4px; overflow: hidden; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.topnav { display: flex; gap: 18px; align-items: center; font-size: .92rem; }
.topnav button { background: none; border: 0; color: var(--on-night-muted); padding: 4px 0; }
.topnav button:hover { color: var(--on-night); }

/* Portada */
.hero { background: var(--night); color: var(--on-night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 40px; padding-block: 36px 40px; align-items: end; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.hero h1 {
  font: 900 clamp(3.2rem, 10.5vw, 7.6rem)/.9 var(--display); letter-spacing: -.005em;
  margin-block: 10px 16px; text-wrap: balance; overflow-wrap: anywhere;
}
.hero p.lead { max-width: 58ch; color: var(--on-night-muted); font-size: 1.06rem; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.benefits li { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--on-night) 28%, transparent); border-radius: 3px; font-size: .86rem; }
.ticket { background: var(--sun); color: var(--on-sun); padding: 16px 18px; border-radius: var(--radius); display: grid; gap: 2px; }
.ticket-label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ticket-price { font: 900 clamp(4.4rem, 9vw, 6.2rem)/.92 var(--display); font-variant-numeric: tabular-nums; }
.ticket-price small { font-size: .42em; margin-left: 4px; }
.ticket-tag { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.countdown { margin-top: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--on-sun) 45%, transparent); font-size: .88rem; }
.countdown strong { display: block; font: 800 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.band { height: 44px; overflow: hidden; line-height: 0; }
.band svg { width: 100%; height: 100%; display: block; }

/* Barra de filtros */
.filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; gap: 10px; padding-block: 12px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 240px; min-width: 0; position: relative; }
.search input { width: 100%; }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line);
  border-radius: 3px; background: var(--surface); font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.pill b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill i { width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--muted)); }
.pill[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pill[aria-pressed="true"] b { color: inherit; }
.result-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 18px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.result-line strong { color: var(--fg); }

/* Catálogo */
.catalog { padding-block: 0 48px; display: grid; gap: 32px; }
.area-head { display: flex; align-items: baseline; gap: 10px; padding-block: 16px 12px; }
.area-head i { width: 14px; height: 14px; border-radius: 2px; background: var(--c); align-self: center; }
.area-head h2 { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--display); }
.area-head h2 a { text-decoration: none; }
.area-head h2 a:hover { color: var(--c-ink); }
.area-scope .btn:not(.ghost):not(.sun):not(.danger) { background: var(--c); color: var(--on-c); }
.area-scope .text-link, .area-scope .crumb a { color: var(--c-ink); }
.area-scope .stamp.live { background: var(--c); color: var(--on-c); }
.area-scope .progress span { background: var(--c); }
.area-scope input:focus, .area-scope select:focus, .area-scope textarea:focus { outline-color: var(--c); }
.area-scope .option:has(input:checked) { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.area-scope .option input { accent-color: var(--c); }
.area-scope .check.on { background: var(--c); border-color: var(--c); }
.area-scope .player-side a[aria-current="true"] { background: var(--c); color: var(--on-c); }
.area-scope .prose h2, .area-scope .lesson-kind { color: var(--c-ink); }
.card-area { color: var(--c-ink); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.area-head span { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--c, var(--muted)); }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; background: var(--night); overflow: hidden; }
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.num { position: absolute; left: 8px; bottom: 8px; padding: 1px 7px; background: var(--night); color: var(--on-night); font: 700 .95rem/1.4 var(--display); letter-spacing: .04em; border-radius: 2px; }
.stamp { position: absolute; right: 8px; top: 8px; padding: 2px 8px; background: var(--sun); color: var(--on-sun); font: 800 1.02rem/1.35 var(--display); letter-spacing: .03em; text-transform: uppercase; border-radius: 2px; }
.stamp.live { background: var(--accent); color: var(--on-accent); }
.stamp.closed { background: var(--surface-2); color: var(--fg); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 14px 14px; min-width: 0; }
.card h3 { font-size: 1.03rem; line-height: 1.28; font-weight: 700; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.price-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.was { color: var(--muted); font-size: .8rem; line-height: 1.25; }
.was s { display: block; font-size: 1rem; }
.price { font: 900 2.7rem/.95 var(--display); font-variant-numeric: tabular-nums; }
.price small { font-size: .46em; margin-left: 2px; }
.until { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-actions .btn { flex: 1; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* Áreas */
.areas { padding-block: 28px 8px; }
.areas { display: grid; gap: 12px; justify-items: stretch; }
.areas h2 { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--display); }
.areas-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.area-search { flex: 0 1 460px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); gap: 8px; }
.family-pills .pill { min-height: 34px; }
#area-more { justify-self: center; }
.area-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 12px; }
.area-tile { position: relative; display: block; aspect-ratio: 16 / 11; max-width: 100%; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--c); transition: transform .15s; min-width: 0; }
.area-tile:hover { transform: translateY(-3px); }
.area-art { position: absolute; inset: 0; transition: transform .35s; }
.area-tile:hover .area-art { transform: scale(1.06); }
.area-art svg { display: block; width: 100%; height: 100%; }
.area-name { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 18px 10px 7px; color: #fff; background: linear-gradient(to top, rgb(14 12 40 / .94) 58%, transparent); }
.area-name strong { font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.area-name small { font-size: .78rem; color: #e4e2f5; }
.area-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--c) 34%, #0e0c28); color: #fff; overflow: hidden; }
.area-hero.compact { min-height: 250px; }
.area-hero-art { position: absolute; inset: 0 0 0 auto; width: min(56%, 640px); }
.area-hero-art svg, .area-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--c) 34%, #0e0c28) 0%, transparent 34%); }
.area-hero-text { position: relative; padding-block: 16px 26px; display: grid; gap: 8px; justify-items: start; }
.area-hero .crumb { padding-top: 0; color: #e4e2f5; }
.area-hero .crumb a { color: #fff; }
.area-hero h1 { max-width: 16ch; font: 900 clamp(2.7rem, 6.6vw, 4.8rem)/.95 var(--display); text-wrap: balance; overflow-wrap: anywhere; }
.area-hero.compact h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
.area-hero .lead { max-width: 52ch; font-size: 1.06rem; color: #eeedfa; }
.area-count { padding: 2px 9px; border-radius: 3px; background: var(--c); color: var(--on-c); font-size: .84rem; font-weight: 700; }
.area-body { padding-block: 26px 48px; }
.area-thumb { display: block; width: 92px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; }
.area-thumb svg { display: block; width: 100%; height: 100%; }
.stack { display: grid; gap: 5px; }
.stack input[type=text], .stack select { min-height: 34px; padding: 4px 9px; font-size: .9rem; }
.stack input[type=color] { width: 100%; height: 30px; }

/* Temario y lecciones */
.outline { display: grid; gap: 6px; }
.outline h3 { font-size: 1rem; }
.outline ul { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.outline li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.outline li:last-child { border-bottom: 0; }
.lesson-kind { flex: none; min-width: 58px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lesson-title { flex: 1 1 170px; min-width: 0; }
.lesson-title small { display: block; color: var(--muted); }
.lesson-lock { font-size: .82rem; color: var(--muted); }
.lesson-text { white-space: pre-line; max-width: 68ch; }
.media { width: 100%; border-radius: var(--radius); background: #000; max-height: 70vh; }
.media-audio { width: 100%; }
.media-frame { aspect-ratio: 16 / 9; max-width: 100%; }
.media-frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
dialog.wide { width: min(820px, calc(100vw - 32px)); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Video de un área */
.area-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 26px; }
.area-top .pack { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 0; }
.area-video { display: grid; gap: 10px; align-content: start; min-width: 0; margin-bottom: 26px; }
.area-top .area-video { margin-bottom: 0; }
.area-video h2 { font: 800 clamp(1.6rem, 3.2vw, 2.2rem)/1.05 var(--display); }
.area-video .media, .area-video .media-frame, .video-link { width: 100%; aspect-ratio: 16 / 9; }
.area-body > .area-video { max-width: 860px; }
.video-link { position: relative; display: block; max-width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--c, var(--night)); cursor: pointer; }
.video-link svg { display: block; width: 100%; height: 100%; }
.video-link::after { content: ""; position: absolute; inset: 0; background: rgb(14 12 40 / .35); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; transition: transform .15s; }
.video-play::after { content: ""; position: absolute; left: 29px; top: 21px; border-left: 28px solid var(--c, #17153b); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.video-link:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-preview { max-width: 420px; }
.video-preview .media, .video-preview .media-frame { width: 100%; aspect-ratio: 16 / 9; }

/* Compra de un área */
.pack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 24px; align-items: start; margin-bottom: 26px; padding: 18px 20px; background: var(--surface); border: 2px solid var(--c); border-radius: var(--radius); }
.pack-text { display: grid; gap: 8px; min-width: 0; }
.pack h2 { font: 800 clamp(1.6rem, 3.2vw, 2.2rem)/1.05 var(--display); }
.pack p { color: var(--muted); max-width: 60ch; }
.pack-buy { display: grid; gap: 6px; }
.pack-buy .price { font-size: 3.6rem; }
.included { font-weight: 600; font-size: .9rem; color: var(--c-ink, var(--accent-ink)); }
.quick-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.course-links { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.course-links li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.course-links li:last-child { border-bottom: 0; }
.course-links li > div:first-child { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.class-head { font: 800 1.5rem/1 var(--display); }

/* Mi aula */
.classroom { padding-block: 24px 48px; display: grid; gap: 18px; }
.classroom h1 { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); text-wrap: balance; }
.class-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; min-width: 0; }
.class-card:hover { border-color: var(--accent); }
.class-card-body { display: grid; gap: 8px; padding: 12px 14px; align-content: start; }
.class-card h2 { font-size: 1.05rem; line-height: 1.28; }
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 24px; align-items: start; }
.player-main { display: grid; gap: 14px; min-width: 0; }
.player-main h2 { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1.05 var(--display); overflow-wrap: anywhere; }
.player-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.player-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 10px; min-width: 0; }
.player-side a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 4px; text-decoration: none; font-size: .92rem; }
.player-side a:hover { background: var(--surface-2); }
.player-side a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.player-side h3 { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 0; }
.check { flex: none; width: 15px; height: 15px; margin-top: 4px; border: 2px solid var(--muted); border-radius: 3px; }
.check.on { background: var(--ok); border-color: var(--ok); }
.live-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.about { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.about img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius); }
.about > div { flex: 1 1 280px; min-width: 0; }
.about h2 { margin-bottom: 6px; }
.about p { max-width: 65ch; color: var(--muted); white-space: pre-line; }

/* Secciones informativas */
.section { padding-block: 40px; border-top: 1px solid var(--line); }
.section h2 { font: 800 clamp(1.9rem, 4vw, 2.7rem)/1 var(--display); margin-bottom: 20px; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 4px; align-content: start; }
.steps li::before { content: counter(step); font: 900 2.6rem/1 var(--display); color: var(--accent-ink); }
.steps h3 { font-size: 1.04rem; }
.steps p { color: var(--muted); font-size: .94rem; }
.faq { display: grid; gap: 8px; max-width: 76ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { padding-top: 6px; color: var(--muted); }
.contact-band { background: var(--night); color: var(--on-night); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; padding-block: 40px; align-items: center; }
.contact-grid h2 { font: 800 clamp(1.9rem, 4vw, 2.7rem)/1 var(--display); text-wrap: balance; }
.contact-grid p { color: var(--on-night-muted); margin-top: 8px; }
.wa-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-list .btn { font-variant-numeric: tabular-nums; }
.contact-extra { width: 100%; color: var(--on-night-muted); font-size: .9rem; display: grid; gap: 2px; margin-top: 6px; }
.footer { background: var(--night); color: var(--on-night-muted); font-size: .86rem; border-top: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; }

/* Detalle de curso */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: 36px; padding-block: 26px 48px; align-items: start; }
.crumb { padding-top: 18px; font-size: .9rem; color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 10px; }
.prose h2 { font: 800 1.6rem/1.1 var(--display); margin-top: 8px; }
.prose p { white-space: pre-line; }
.checks { display: grid; gap: 6px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--c, var(--accent)); transform: rotate(45deg); }
.buy { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.buy .price { font-size: 3.8rem; }
.facts { display: grid; gap: 6px; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }

/* Formularios */
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .label { font-size: .86rem; font-weight: 600; }
.hint { font-size: .8rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input[type=color] { width: 56px; height: 42px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.error { color: var(--bad); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.enroll { max-width: 760px; margin-inline: auto; padding-block: 24px 48px; }
.enroll h1 { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); margin-block: 12px 6px; text-wrap: balance; }
.enroll-sum { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-block: 14px 20px; }
.enroll-sum .price { font-size: 2.2rem; }
.options { display: grid; gap: 8px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.option input { margin-top: 4px; accent-color: var(--accent); }
.option span { display: grid; font-weight: 600; }
.option small { font-weight: 400; color: var(--muted); font-size: .86rem; }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: 16px; }
.code-box { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-box strong { display: block; font: 900 2.4rem/1 var(--display); letter-spacing: .05em; }
.qr { width: 200px; max-width: 100%; border-radius: var(--radius); background: #fff; padding: 8px; }

/* Avisos y diálogos */
#toasts { position: fixed; z-index: 90; right: calc(var(--gutter-r)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: var(--radius); font-size: .93rem; box-shadow: 0 6px 22px rgb(0 0 0 / .3); }
.toast.bad { background: var(--bad); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgb(10 9 30 / .6); }
.dlg { padding: 18px; display: grid; gap: 14px; }
.dlg h2 { font: 800 1.7rem/1.1 var(--display); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Panel */
.demo-bar { background: var(--sun); color: var(--on-sun); font-size: .86rem; }
.demo-bar .wrap { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-block: 6px; flex-wrap: wrap; max-width: none; }
.demo-bar button { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; color: inherit; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; }
.side { background: var(--night); color: var(--on-night); padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.side .brand { font-size: 1.3rem; padding-inline: 6px; }
.side nav { display: grid; gap: 2px; }
.side-title { padding: 12px 10px 4px; color: var(--on-night-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; color: var(--on-night-muted); font-weight: 500; font-size: .94rem; transition: background .12s, color .12s; }
.side nav a span:not(.badge) { flex: 1; min-width: 0; }
.side nav a:hover { background: var(--night-2); color: var(--on-night); }
.side nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.badge { min-width: 22px; padding: 0 6px; border-radius: 3px; background: var(--sun); color: var(--on-sun); font-size: .78rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; display: grid; gap: 6px; font-size: .86rem; color: var(--on-night-muted); padding-inline: 6px; }
.side-foot strong { color: var(--on-night); display: block; overflow-wrap: anywhere; }
.side-foot button { background: none; border: 0; padding: 0; color: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 10px 26px; background: var(--surface); border-bottom: 1px solid var(--line); }
.a-top [data-act="nav"] { display: none; }
.a-search { flex: 1 1 0; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-align: left; font-size: .92rem; }
.a-search:hover { border-color: var(--muted); }
.a-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 600 .74rem var(--body); }
.a-new { position: relative; margin-left: auto; }
.a-new summary { list-style: none; cursor: pointer; }
.a-new summary::-webkit-details-marker { display: none; }
.a-new > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 150px; display: grid; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(10 9 30 / .18); }
.a-new > div a, .a-new > div button { padding: 7px 10px; border: 0; border-radius: 4px; background: none; text-align: left; text-decoration: none; font-size: .92rem; }
.a-new > div a:hover, .a-new > div button:hover { background: var(--surface-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.icon-btn:hover { background: var(--surface-2); }
.seg { display: inline-flex; }
.seg .icon-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.seg .icon-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; }
.seg .icon-btn[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.main { min-width: 0; padding: 22px 26px 56px; display: grid; gap: 16px; align-content: start; }
.palette-dlg { width: min(600px, calc(100vw - 32px)); margin-top: 12vh; }
.palette { display: grid; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 52px; padding-inline: 16px; font-size: 1.04rem; background: transparent; }
.palette input:focus { outline: 0; }
.palette ul { max-height: 340px; overflow-y: auto; padding: 6px; }
.palette li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.palette li small { flex: none; width: 76px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.palette li[aria-selected="true"] { background: var(--surface-2); }
.filter-bar { display: grid; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filter-search { position: relative; flex: 1 1 260px; min-width: 0; }
.filter-search .ico { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.filter-search input { padding-left: 36px; }
.inline-field { display: grid; gap: 2px; flex: 0 1 200px; min-width: 0; font-size: .76rem; font-weight: 600; color: var(--muted); }
.inline-field select { color: var(--fg); font-weight: 400; font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: .84rem; }
.chip b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip[aria-pressed="true"] b { color: inherit; }
.result-bar { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.result-bar strong { color: var(--fg); }
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.a-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: border-color .12s, box-shadow .12s, transform .12s; }
.a-card:hover { border-color: var(--muted); box-shadow: 0 6px 18px rgb(10 9 30 / .1); }
.a-card.is-off .a-card-art { filter: grayscale(.8); opacity: .65; }
.a-card.dragging { opacity: .4; }
.a-card.drop-on { outline: 2px dashed var(--accent); outline-offset: 2px; }
.a-card[draggable="true"] { cursor: grab; }
.a-card-art { display: block; aspect-ratio: 16 / 7.5; max-width: 100%; overflow: hidden; }
.a-card-art svg { display: block; width: 100%; height: 100%; }
.pick { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.a-card .pick { position: absolute; left: 8px; top: 8px; }
.a-card-body { flex: 1; display: grid; gap: 2px; align-content: start; padding: 10px 12px; }
.a-card-name { font-weight: 700; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.a-card-name:hover { text-decoration: underline; }
.a-card-body small { color: var(--muted); font-size: .8rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-height: 22px; }
.a-card-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
tr.is-off td { color: var(--muted); }
.area-thumb.small { width: 64px; }
.crumbs { display: flex; gap: 6px; font-size: .9rem; }
.crumbs a { color: var(--accent-ink); font-weight: 600; }
.area-banner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; min-height: 132px; padding: 16px 18px; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--c) 34%, #0e0c28); color: #fff; }
.area-banner-art { position: absolute; inset: 0 0 0 auto; width: min(50%, 420px); }
.area-banner-art svg { width: 100%; height: 100%; display: block; }
.area-banner-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--c) 34%, #0e0c28), transparent 45%); }
.area-banner-text { position: relative; min-width: 0; }
.area-banner h1 { font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--display); overflow-wrap: anywhere; }
.area-banner p { color: #e4e2f5; font-size: .9rem; }
.btn.on-dark { position: relative; background: rgb(14 12 40 / .7); border-color: rgb(255 255 255 / .4); color: #fff; }
.btn.on-dark:hover { background: rgb(14 12 40 / .9); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 3px; }
.style-pick { display: grid; gap: 3px; padding: 3px 3px 5px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; min-width: 0; }
.style-pick svg { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 3px; }
.style-pick small { padding-inline: 3px; font-size: .74rem; line-height: 1.2; }
.style-pick[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.field-ok { color: var(--ok); font-size: .82rem; font-weight: 600; }
.danger-link { color: var(--bad) !important; }
.save-note { margin-right: auto; }
.setup { display: grid; gap: 2px; }
.setup a { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 4px; text-decoration: none; font-size: .94rem; }
.setup a:hover { background: var(--surface-2); }
.setup .ok a { color: var(--muted); text-decoration: line-through; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border: 2px solid var(--line); border-radius: 50%; }
.setup .ok .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick .ico { width: 13px; height: 13px; stroke-width: 3; }
.list .strong { font-weight: 600; }
.tile.alert { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font: 800 clamp(1.9rem, 3.4vw, 2.5rem)/1 var(--display); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.tile span { color: var(--muted); font-size: .86rem; }
.tile strong { font: 800 2.5rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.tile strong small { font-size: .5em; margin-left: 3px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.panel h2 { font: 800 1.35rem/1.1 var(--display); }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; min-width: 0; }
.toolbar select { flex: 0 1 190px; width: auto; min-width: 0; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 8px 12px; font-size: .92rem; }
.bulk select, .bulk input { width: auto; min-height: 34px; padding: 3px 8px; color: var(--fg); }
.bulk .btn.ghost { color: var(--on-night); border-color: var(--on-night-muted); }
.bulk .btn.ghost:hover { background: var(--night-2); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
td.num-cell, th.num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.title-cell { min-width: 210px; }
td.title-cell a { font-weight: 600; text-decoration: none; }
td.title-cell a:hover { text-decoration: underline; }
td small { display: block; color: var(--muted); font-size: .8rem; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 3px; font-size: .78rem; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.tag.pendiente, .tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.confirmada, .tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.rechazada, .tag.bad { background: var(--bad-bg); color: var(--bad); }
.switch { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; cursor: pointer; margin: 0; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(16px); }
.switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.switch-row label { display: grid; font-weight: 600; cursor: pointer; }
.switch-row small { font-weight: 400; color: var(--muted); font-size: .84rem; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs b { font-weight: 600; font-variant-numeric: tabular-nums; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.preview { position: sticky; top: 16px; display: grid; gap: 8px; }
.preview .label { color: var(--muted); }
.image-field { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.image-field .thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.rows { display: grid; gap: 8px; }
.rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: start; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 0; background: var(--surface); border-top: 1px solid var(--line); }
#settings > .save-bar { background: var(--bg); }
.login { min-height: 100dvh; display: grid; place-items: center; background: var(--night); padding: 24px var(--gutter-r) 24px var(--gutter-l); }
.login form { width: min(380px, 100%); background: var(--surface); color: var(--fg); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.login h1 { font: 800 2.2rem/1 var(--display); }
.list { display: grid; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; align-items: center; }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; font-weight: 600; }
.list a:hover { text-decoration: underline; }
.list small { display: block; color: var(--muted); font-weight: 400; }
.detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: .94rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-grid, .detail, .contact-grid, .two, .editor, .player { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 22px; padding-block: 24px; }
  .buy, .preview, .player-side { position: static; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .18s; box-shadow: 0 0 40px rgb(10 9 30 / .4); }
  .admin.nav-open .side { transform: none; }
  .a-top { padding: 8px var(--gutter-r) 8px var(--gutter-l); }
  .a-top [data-act="nav"] { display: inline-flex; }
  .a-search kbd, .a-top > a.btn span, .a-new summary span { display: none; }
  .main { padding: 16px var(--gutter-r) 48px var(--gutter-l); }
}
@media (max-width: 720px) {
  .pack, .quick-add, .area-top { grid-template-columns: minmax(0, 1fr); }
  .area-hero-art { width: 100%; }
  .area-hero-art::after { background: linear-gradient(to right, rgb(14 12 40 / .92), rgb(14 12 40 / .55)); }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .rep { grid-template-columns: minmax(0, 1fr); }
  .topnav button { display: none; }
  .toolbar select { flex: 1 1 40%; }
  .ticket { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .ticket-label, .countdown { grid-column: 1 / -1; }
  .ticket-price { font-size: 3.6rem; }
  .countdown { margin-top: 6px; padding-top: 6px; }
}

/* Las tablas anchas se desplazan dentro de su caja, no empujan la página */
.panel, .panel > *, .workspace, .workspace > * { min-width: 0; }
.table-wrap { max-width: 100%; position: relative; }

/* Portadas propias: la imagen se recorta según su encuadre en cualquier forma */
.photo { width: 100%; height: 100%; display: block; }
.area-hero-art, .area-banner-art, .area-art, .cover, .a-card-art, .area-thumb { overflow: hidden; }
.area-banner-art img, .a-card-art img, .area-thumb img, .area-art img { width: 100%; height: 100%; display: block; }

.hero { position: relative; overflow: hidden; }
.hero.has-photo { isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(14 12 40 / .9) 0%, rgb(14 12 40 / .72) 45%, rgb(14 12 40 / .4) 100%); }
.hero.has-photo .band { position: relative; }
@media (max-width: 720px) { .hero-photo::after { background: rgb(14 12 40 / .78); } }
.hero-fallback, .hero-fallback svg { display: block; width: 100%; height: 100%; }

/* Campo de portada en formularios */
.cover-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cover-thumb { position: relative; width: 220px; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--night); cursor: pointer; }
.cover-thumb svg { display: block; width: 100%; height: 100%; }
.cover-thumb-cta { position: absolute; inset: auto 8px 8px auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgb(14 12 40 / .78); color: #fff; font-size: .82rem; font-weight: 600; }
.cover-thumb:hover .cover-thumb-cta, .cover-thumb:focus-visible .cover-thumb-cta { background: var(--accent); }
.cover-field-actions { display: grid; gap: 6px; justify-items: start; }

/* Bloque de portada propia del área */
.own-cover { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2, var(--bg)); flex-wrap: wrap; }
.own-cover-thumb { width: 180px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night); display: grid; place-items: center; color: #fff; flex: none; max-width: 100%; }
.own-cover-thumb .ico { width: 34px; height: 34px; opacity: .7; }
.own-cover .hint { margin: 2px 0 8px; }
.own-cover > div:last-child { min-width: 0; flex: 1 1 220px; }
.btn.a-banner-cover { position: absolute; top: 12px; right: 12px; z-index: 1; }
.area-banner h1, .area-banner p { text-shadow: 0 1px 12px rgb(14 12 40 / .7); }
.a-card-cover { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 999px; background: rgb(14 12 40 / .72); color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; }
.a-card:hover .a-card-cover, .a-card-cover:focus-visible { opacity: 1; }
@media (hover: none) { .a-card-cover { opacity: 1; } }
.a-card-cover .ico, .a-banner-cover .ico { width: 16px; height: 16px; }

/* Editor de portadas */
dialog:has(.cover-dlg) { width: min(760px, calc(100vw - 24px)); }
.ce-stage { position: relative; width: 100%; margin-inline: auto; border-radius: 8px; overflow: hidden; background: var(--night); touch-action: none; user-select: none; outline-offset: 3px; }
.ce-stage.has-img { cursor: grab; }
.ce-stage.dragging { cursor: grabbing; }
.ce-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ce-fallback { position: absolute; inset: 0; opacity: .35; }
.ce-fallback svg, .ce-fallback span { display: block; width: 100%; height: 100%; }
.ce-stage.has-img .ce-fallback { display: none; }
.ce-drop { position: absolute; inset: 10px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; color: #fff; border: 2px dashed rgb(255 255 255 / .55); border-radius: 8px; background: rgb(14 12 40 / .55); }
.ce-drop .ico { width: 34px; height: 34px; }
.ce-drop small { max-width: 34ch; color: rgb(255 255 255 / .8); }
.ce-stage.over .ce-drop, .ce-stage.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.ce-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(14 12 40 / .7); color: #fff; font-weight: 600; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.ce-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ce-tools .hint { margin: 0; flex: 1 1 100%; }
.ce-zoom { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; }
.ce-zoom input { flex: 1; accent-color: var(--accent); }
.ce-previews > div { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-top: 6px; }
.ce-previews figure { margin: 0; display: grid; gap: 4px; width: 150px; }
.ce-mini { position: relative; overflow: hidden; border-radius: 5px; background: var(--night); }
.ce-mini img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ce-previews figcaption { font-size: .8rem; color: var(--muted); }
.dlg-actions .grow { flex: 1; }
.danger-text { color: var(--danger, #b3261e); }

/* ---------- Carrito y cuenta del alumno ---------- */
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--on-night); }
.cart-btn:hover, .cart-btn:focus-visible { background: var(--night-2); }
.cart-btn .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--on-sun); font-size: .74rem; font-weight: 800; line-height: 19px; text-align: center; }
.btn .ico, .pack-cta .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -3px; }
.pack-cta { display: grid; }
.pack.soon { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: center; }
.area-courses-title { font: 800 1.5rem/1.1 var(--display); margin: 6px 0 12px; }

.cart { padding-block: 24px 48px; display: grid; gap: 20px; }
.cart h1, .account h1 { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--night); }
.cart-thumb svg, .cart-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cart-info { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.cart-info a { color: inherit; text-decoration: none; }
.cart-info a:hover strong { text-decoration: underline; }
.cart-price { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.cart-price s { color: var(--muted); font-size: .86rem; }
.cart-price strong { font-size: 1.15rem; }
.cart-sum { position: sticky; top: 76px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.sum-row.good { color: var(--ok); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.2rem; }
.sum-row.total strong { font: 900 1.8rem/1 var(--display); }
.sum-title { font: 800 1.15rem/1.15 var(--display); margin-top: 6px; }
#checkout, #pay-form { display: grid; gap: 12px; }
.cart-suggest h2 { font: 800 1.4rem/1.1 var(--display); margin-bottom: 10px; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.suggest { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.suggest > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.suggest a { color: inherit; text-decoration: none; }
.suggest .btn { padding: 6px 12px; font-size: .86rem; }
@media (max-width: 820px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-price { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 8px; align-items: baseline; }
  .pack.soon { grid-template-columns: 1fr; }
}

.notice { display: block; padding: 10px 14px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); font-weight: 600; text-decoration: none; }
a.notice:hover { text-decoration: underline; }

.account { max-width: 560px; }
.auth-box { display: grid; gap: 12px; margin-top: 12px; }
.auth-box .tabs button { flex: 1 1 auto; }
.auth-form { display: grid; gap: 12px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--accent-ink); font-weight: 700; padding: 6px 8px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.account-nav { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.account-nav a { padding: 8px 12px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
.account-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.account-nav .text-link { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.account-grid form, .account-grid .panel { align-content: start; }

.orders { display: grid; gap: 12px; }
.order header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.order header > div { display: grid; gap: 2px; }
.order-code { font: 900 1.6rem/1 var(--display); letter-spacing: .04em; }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.order-items li, .order-total { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.order-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1.05rem; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status.pendiente { background: var(--warn-bg); color: var(--warn); }
.status.confirmada { background: var(--ok-bg); color: var(--ok); }
.status.rechazada { background: var(--bad-bg); color: var(--bad); }

/* ---------- Reseñas ---------- */
.stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; letter-spacing: 0; }
.stars span { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.stars span.on { color: var(--sun); }
.stars span.half { background: linear-gradient(90deg, var(--sun) 50%, color-mix(in srgb, var(--muted) 45%, transparent) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.rating-line > span:last-child { color: var(--muted); }
.reviews .reviews-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-bottom: 14px; }
.reviews h2 { font: 800 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--display); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 10px; }
.review { display: grid; gap: 8px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.verified { font-size: .78rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }
.review-body { white-space: pre-line; overflow-wrap: anywhere; }
.review footer { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: .9rem; }
.review footer .meta { margin-left: auto; }
.review-reply { border-left: 3px solid var(--accent); padding: 4px 10px; background: var(--surface-2); border-radius: 0 4px 4px 0; font-size: .92rem; }
.review-reply p { white-space: pre-line; }
.review-mine, .review-form { margin-top: 18px; max-width: 640px; }
.star-pick { border: 0; padding: 0; margin: 0; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.star-pick legend { width: 100%; margin-bottom: 4px; }
.star-pick label { cursor: pointer; font-size: 2rem; line-height: 1; color: color-mix(in srgb, var(--muted) 45%, transparent); }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label:has(~ label input:checked), .star-pick label:has(input:checked) { color: var(--sun); }
.star-pick:hover label { color: var(--sun); }
.star-pick label:hover ~ label { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.star-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.star-pick .error { width: 100%; }

/* ---------- Panel: pedidos, alumnos, reseñas y seguridad ---------- */
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.panel.soft { background: var(--surface-2); border-color: transparent; }
.review-admin { display: grid; gap: 12px; }
.rv header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.rv header small { display: block; color: var(--muted); margin-top: 2px; }
.steps-list { margin: 0 0 4px; padding-left: 20px; display: grid; gap: 4px; }
.tf-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tf-qr img { background: #fff; padding: 6px; border-radius: 6px; border: 1px solid var(--line); }
.tf-qr > div { display: grid; gap: 4px; min-width: 0; }
.tf-secret { font-size: 1rem; letter-spacing: .06em; word-break: break-all; background: var(--surface-2); padding: 6px 8px; border-radius: 4px; }
.recovery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.recovery code { display: block; text-align: center; padding: 6px; background: var(--surface-2); border-radius: 4px; font-size: 1rem; letter-spacing: .06em; }
.side-foot button { text-align: left; }
.main { grid-template-columns: minmax(0, 1fr); }
.toolbar select, .toolbar input { min-width: 0; max-width: 100%; }

/* ---------- Ofertas, anuncio y carrito desde el inicio ---------- */
.announce { background: var(--sun); color: var(--on-sun); text-align: center; font-weight: 700; font-size: .92rem; padding: 7px 16px; }
.announce a { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce.preview { border-radius: var(--radius); }

.area-tile .area-name { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; text-decoration: none;
  background: linear-gradient(to top, rgb(14 12 40 / .94) 0, rgb(14 12 40 / .9) 28%, transparent 58%); }
.area-tile .area-name:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.area-name s { opacity: .75; }
.area-tile:focus-within { transform: translateY(-3px); }
.tile-off { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--sun); color: var(--on-sun); font-weight: 800; font-size: .78rem; padding: 2px 7px; border-radius: 4px; }
.tile-cta { position: absolute; top: 7px; right: 7px; z-index: 2; }
.mini-cart { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .94); color: var(--night); cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.mini-cart:hover, .mini-cart:focus-visible { background: var(--sun); color: var(--on-sun); }
.mini-cart.on { background: var(--ok); color: #fff; }
.mini-cart .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0; }
.card-cta { display: inline-flex; }
.card-actions .card-cta .btn { white-space: nowrap; }

.offers { padding-block: 26px 4px; }
.offers-head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 12px; }
.offers h2 { font: 800 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--display); }
.tier-note { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--accent-ink); }
.tier-note.small { font-size: .86rem; }
.tier-note .ico, .nudge .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
.offer-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); justify-content: start; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.offer { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.offer-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--c); overflow: hidden; }
.offer-art svg, .offer-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-body { display: grid; gap: 4px; padding: 10px 12px 12px; justify-items: start; align-content: start; }
.offer-body a { color: inherit; text-decoration: none; }
.offer-body a:hover strong { text-decoration: underline; }
.offer-price s { color: var(--muted); }
.offer-price strong { font-size: 1.2rem; }
.offer-body .btn { margin-top: 4px; }

.nudge { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 10px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .9rem; }
.coupon-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.coupon-form input { flex: 1 1 140px; min-width: 0; text-transform: uppercase; }
.coupon-on { display: flex; justify-content: space-between; gap: 8px; width: 100%; font-size: .92rem; }
.coupon-on .bad { color: var(--bad); }
.order-items li.good { color: var(--ok); font-weight: 600; }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 6px 0; }
.tier-row input { width: 76px; display: inline-block; margin: 0 4px; }
.coupon-code { font-size: 1rem; font-weight: 700; letter-spacing: .04em; }
#promo-bar { flex-wrap: wrap; }
#promo-bar label { display: inline-flex; gap: 6px; align-items: center; }
.announce button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.announce button:hover { text-decoration: underline; }

/* ---------- Analíticas ----------
   Un solo color de serie (azul validado para fondo claro y oscuro), rejilla tenue y texto siempre en tintas de texto. */
:root { --viz-1: #2a78d6; --viz-1-hot: #1c5cab; --viz-grid: #e1e0d9; --viz-base: #c3c2b7; --st-good: #0ca30c; --st-warn: #fab219; --st-bad: #d03b3b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-1: #3987e5; --viz-1-hot: #6da7ec; --viz-grid: #2c2c46; --viz-base: #44436a; } }
:root[data-theme="dark"] { --viz-1: #3987e5; --viz-1-hot: #6da7ec; --viz-grid: #2c2c46; --viz-base: #44436a; }

.v-filters { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); align-items: end; }
.v-filters .field { margin: 0; }
.v-filters .text-link { justify-self: start; padding-bottom: 10px; }
.v-kpis .tile { align-content: start; }
.delta { font-size: .82rem; font-weight: 600; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--muted); font-weight: 400; }
.delta .vs { color: var(--muted); font-weight: 400; }
.v-card { position: relative; align-content: start; }
.v-card h2 + .hint { margin-top: -6px; }
.v-sub { margin-top: 10px; }
.v-plot { width: 100%; }
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.v-grid { stroke: var(--viz-grid); stroke-width: 1; }
.v-base { stroke: var(--viz-base); stroke-width: 1; }
.v-tick { fill: var(--muted); font-size: 11px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.v-bar { fill: var(--viz-1); }
.v-hit { fill: transparent; cursor: default; outline: none; }
.v-hit:focus-visible { stroke: var(--fg); stroke-width: 1.5; }
.v-plot svg:has(.v-hit.is-hot) .v-bar { opacity: .55; }
.v-hit.is-hot { fill: color-mix(in srgb, var(--viz-1) 8%, transparent); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 10px; align-items: center; border-radius: 4px; outline: none; }
.hbars li:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.hb-name { font-size: .88rem; overflow-wrap: anywhere; line-height: 1.2; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-bar { display: block; height: 18px; max-width: calc(100% - 92px); background: var(--viz-1); border-radius: 0 4px 4px 0; flex: none; }
.hbars li.is-hot .hb-bar, .hbars li:hover .hb-bar { background: var(--viz-1-hot); }
.hb-val { font-size: .84rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.segbar { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; }
.segbar span { min-width: 4px; outline: none; }
.segbar span.is-hot, .segbar span:focus-visible { filter: brightness(1.12); box-shadow: inset 0 0 0 2px var(--fg); }
.seg-confirmada { background: var(--st-good); }
.seg-pendiente { background: var(--st-warn); }
.seg-rechazada { background: var(--st-bad); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: .9rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: block; }
.legend strong { font-variant-numeric: tabular-nums; }
.legend small { color: var(--muted); min-width: 70px; text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { background: var(--surface); border: 0; padding: 6px 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.v-table summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.v-table .table-wrap { margin-top: 8px; }
.v-tip { position: absolute; z-index: 30; pointer-events: none; display: grid; gap: 1px; min-width: 120px; max-width: 260px; padding: 8px 10px; border-radius: 6px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.v-tip strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.v-tip span { color: var(--muted); font-size: .86rem; }
.v-tip small { color: var(--muted); }
.main { position: relative; }
.print-only { display: none; }
@media (max-width: 720px) { .hbars li { grid-template-columns: 1fr; gap: 3px; } .hb-bar { max-width: calc(100% - 92px); } }
@media print {
  .side, .a-top, .no-print, .v-tip, #toasts, [data-csv] { display: none !important; }
  .admin { display: block; }
  .print-only { display: block; }
  .main { padding: 0; }
  .panel, .tile { break-inside: avoid; border-color: #ccc; }
  details.v-table > summary { display: none; }
  .two { grid-template-columns: 1fr 1fr; }
  body { background: #fff; color: #000; }
}
.v-card > [data-csv] { justify-self: start; text-align: left; margin-top: -4px; font-size: .88rem; }

/* =====================================================================
   Rediseño: plataforma oscura con acento magenta, tarjetas suaves y animaciones.
   Va al final para ganar a las reglas anteriores sin tocarlas una por una.
   ===================================================================== */
body { font-feature-settings: "ss01", "cv11"; }
h1, h2, h3 { letter-spacing: -.02em; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.brand { font: 800 1.2rem/1 var(--display); letter-spacing: -.02em; text-transform: none; }
.brand-mark { border-radius: 8px; }

/* Botones */
.btn { border-radius: var(--radius); font-family: var(--display); font-weight: 700; letter-spacing: -.005em; transition: transform .18s, box-shadow .18s, filter .18s, background .18s, border-color .18s; }
.btn:not(.ghost):not(.sun):not(.danger):not(.on-dark) { background: var(--grad); background-size: 140% 100%; background-position: 0 0; box-shadow: 0 8px 22px -12px var(--accent); }
.btn:not(.ghost):not(.sun):not(.danger):not(.on-dark):hover { background-position: 100% 0; box-shadow: 0 14px 30px -12px var(--accent); transform: translateY(-1px); filter: none; }
.area-scope .btn:not(.ghost):not(.sun):not(.danger):not(.on-dark) { background: var(--c); box-shadow: 0 8px 22px -12px var(--c); }
.btn.ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); border-color: var(--line); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); background: var(--surface-2); }
.btn.sun:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
.btn.small { border-radius: 8px; }
.text-link { color: var(--accent-ink); }

/* Encabezado del sitio: fijo arriba, translúcido */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 72%, transparent); color: var(--fg);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.topbar .wrap.topbar-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: nowrap; }
.topnav { display: flex; gap: 4px; justify-content: center; align-items: center; font-size: .93rem; flex-wrap: nowrap; }
.topnav button, .topnav a { position: relative; background: none; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.topnav button:hover, .topnav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.topnav .nav-plan { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.topnav .nav-plan .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.topnav .nav-plan:hover, .topnav .nav-plan[aria-current="page"] { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.cart-btn { color: var(--fg); }
.cart-btn:hover, .cart-btn:focus-visible { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.cart-count { background: var(--accent); color: #fff; }
.nav-toggle { display: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.announce { background: var(--grad); color: #fff; }
.announce button { background: none; border: 0; color: inherit; font-weight: 700; padding: 0; }
@media (max-width: 1020px) {
  .topbar .wrap.topbar-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav-toggle { display: inline-grid; }
  .topnav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter-r) 16px var(--gutter-l);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgb(0 0 0 / .7); }
  .topbar.open .topnav { display: flex; animation: drop .2s ease-out; }
  .topnav button, .topnav a { text-align: left; padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .topnav button { display: block; }
  .top-actions { grid-column: 3; }
}
@media (max-width: 420px) { .top-actions .btn.small { padding-inline: 10px; } .brand span { font-size: 1.05rem; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Portada */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: var(--fg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px);
  background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; inset: -30% -10% auto; height: 130%; z-index: -2; pointer-events: none;
  background: radial-gradient(38% 46% at 12% 22%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(34% 42% at 88% 26%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%),
    radial-gradient(30% 36% at 55% 85%, rgb(14 165 233 / .12), transparent 70%);
  animation: glow 16s ease-in-out infinite alternate; }
.hero.has-photo .hero-glow { opacity: .55; }
.hero-photo::after { background: linear-gradient(100deg, rgb(8 10 20 / .94) 0%, rgb(8 10 20 / .78) 50%, rgb(8 10 20 / .5) 100%); }
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; padding-block: clamp(40px, 7vw, 88px) 36px; align-items: center; }
.chip-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--fg); font-size: .84rem; font-weight: 600; backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.2s infinite; }
.hero h1 { font: 800 clamp(2.5rem, 6.2vw, 4.7rem)/1.02 var(--display); letter-spacing: -.04em; margin-block: 20px 16px; text-transform: none; }
.grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.hero p.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 56ch; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 580px; margin-top: 26px; padding: 6px 6px 6px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.hero-search > .ico { color: var(--muted); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: 0; font-size: 1rem; }
.hero-search input:focus { outline: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-ctas .btn .ico { margin-right: 2px; }
.benefits { gap: 8px 18px; margin-top: 20px; }
.benefits li { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--muted); font-size: .9rem; }
.benefits .ico { width: 17px; height: 17px; color: var(--ok); stroke-width: 2.4; }
.hero-visual { position: relative; min-height: 440px; }
.float-card { position: absolute; width: 50%; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--fg) 10%, var(--line));
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .65); animation: float 8s ease-in-out infinite; }
.float-card.f1 { top: 0; left: 0; rotate: -4deg; }
.float-card.f2 { top: 40px; right: 4%; rotate: 3deg; animation-delay: -2.6s; }
.float-card.f3 { top: 215px; left: 12%; rotate: -1deg; animation-delay: -5.2s; z-index: 1; }
.fc-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.fc-art svg, .fc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc-body { display: grid; gap: 1px; padding: 10px 14px 12px; }
.fc-body strong { font: 700 .98rem/1.25 var(--display); }
.fc-body small { color: var(--muted); font-size: .8rem; }
.glass-ticket { position: absolute; right: 0; bottom: 0; z-index: 2; display: grid; gap: 3px; max-width: 270px; padding: 16px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6); animation: float 9s ease-in-out infinite; animation-delay: -1s; }
.ticket-label { color: var(--muted); font-size: .72rem; }
.ticket-price { font: 800 3.4rem/1 var(--display); letter-spacing: -.05em; }
.ticket-price small { font-size: .38em; letter-spacing: 0; color: var(--muted); }
.ticket-note, .ticket-tag { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 4px 0 40px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 16px 20px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.hero-stats dt { color: var(--muted); font-size: .86rem; }
.hero-stats dd { margin: 0; font: 800 2rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero .countdown { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: -24px 0 32px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; color: var(--muted); }
.hero .countdown strong { display: inline; font: 700 1rem/1.2 var(--display); color: var(--fg); }
.band { height: 6px; opacity: .55; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 24px; }
  .hero-visual { min-height: 300px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 230px; }
  .float-card { width: 60%; }
  .float-card.f2, .float-card.f3 { display: none; }
  .float-card.f1 { width: 72%; }
  .glass-ticket { max-width: 220px; padding: 12px 14px; }
  .ticket-price { font-size: 2.6rem; }
  .hero-search .btn { padding-inline: 12px; }
  .hero-stats > div { padding: 12px 14px; }
  .hero-stats dd { font-size: 1.6rem; }
}

/* Franja con las áreas */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 14px; background: color-mix(in srgb, var(--surface) 40%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 32px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 600 .95rem/1.2 var(--display); white-space: nowrap; }
.mq-item i { width: 8px; height: 8px; border-radius: 50%; }

/* Encabezados de sección */
.sec-head { display: grid; gap: 8px; justify-items: start; }
.sec-head.center { justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; }
.sec-head h2, .section .sec-head h2, .areas .sec-head h2, .offers .sec-head h2, .reviews .sec-head h2 { font: 800 clamp(1.8rem, 3.6vw, 2.75rem)/1.08 var(--display); letter-spacing: -.035em; margin: 0; text-transform: none; text-wrap: balance; }
.sec-head .lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .ico { width: 16px; height: 16px; }
.section { padding-block: clamp(48px, 7vw, 84px); border-top: 0; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.035em; }
.section > .wrap > .sec-head { margin-bottom: 28px; }
.catalog-head { padding-top: clamp(40px, 6vw, 72px); }

/* Áreas */
.areas { padding-block: clamp(44px, 6vw, 72px) 16px; gap: 16px; }
.areas-head { align-items: end; }
.area-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.area-tile { border-radius: 16px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.area-tile:hover, .area-tile:focus-within { transform: translateY(-5px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent), 0 22px 44px -22px var(--c); }
.area-art { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.area-tile .area-name { background: linear-gradient(to top, rgb(6 7 16 / .95) 0, rgb(6 7 16 / .82) 32%, transparent 64%); padding: 18px 12px 10px; }
.area-name strong { font: 700 .98rem/1.2 var(--display); }
.pill, .chip { border-radius: 999px; background: var(--surface); transition: background .15s, border-color .15s, color .15s; }
.pill:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.tile-off { border-radius: 999px; background: var(--grad); color: #fff; }
.mini-cart { transition: transform .15s, background .15s; }
.mini-cart:hover { transform: scale(1.08); background: var(--accent); color: #fff; }

/* Filtros del catálogo */
.filters { top: 64px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.search input, .area-search input, select, .toolbar input { border-radius: var(--radius); }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea { border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

/* Tarjetas de curso */
.grid { gap: 18px; }
.card { border-radius: 18px; background: var(--surface); transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--line)); box-shadow: 0 26px 50px -30px var(--c, var(--accent)); }
.cover img, .cover svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .cover img, .card:hover .cover svg { transform: scale(1.05); }
.card-body { padding: 14px 16px 16px; gap: 9px; }
.card h3 { font: 700 1.06rem/1.3 var(--display); letter-spacing: -.01em; }
.num { left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgb(6 7 16 / .62); backdrop-filter: blur(6px); font: 700 .74rem/1.4 var(--display); letter-spacing: .02em; }
.stamp { right: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font: 700 .74rem/1.5 var(--display); letter-spacing: .02em; }
.price { font: 800 2.3rem/1 var(--display); letter-spacing: -.04em; }
.area-head h2 { font: 800 clamp(1.4rem, 2.6vw, 1.8rem)/1.1 var(--display); letter-spacing: -.03em; }
.area-head i { border-radius: 50%; }

/* Ofertas y reseñas */
.offers { padding-block: clamp(44px, 6vw, 72px) 8px; }
.offers-head { align-items: end; margin-bottom: 18px; }
.offer, .review { border-radius: 18px; transition: transform .25s, border-color .25s; }
.offer:hover, .review:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--fg) 22%, var(--line)); }
.reviews { padding-block: clamp(48px, 7vw, 84px); }
.reviews .reviews-head { align-items: end; margin-bottom: 22px; }
.review { padding: 18px 20px; }
.review-body { color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }

/* Acceso total */
.plans-sec { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 96px); }
.plans-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 45% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.plan-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 36px 70px -36px var(--accent); }
.plan-card.is-featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 36px 90px -44px var(--accent); }
.plan-card.static:hover { transform: none; }
.plan-badge { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font: 700 .76rem/1.4 var(--display); box-shadow: 0 8px 20px -8px var(--accent); }
.plan-card h3 { font: 800 1.35rem/1.1 var(--display); letter-spacing: -.02em; }
.plan-tag { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font: 800 3.1rem/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-weight: 700; }
.plan-price s { color: var(--muted); font-size: 1rem; width: 100%; }
.plan-per { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.plan-per b { color: var(--fg); font-weight: 600; }
.plan-perks { display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.plan-perks li { display: flex; gap: 9px; align-items: flex-start; }
.plan-perks .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); stroke-width: 2.4; }
.plan-foot { margin: 26px auto 0; max-width: 70ch; text-align: center; color: var(--muted); font-size: .92rem; }
.plan-foot .text-link { margin-left: 4px; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) 8px; text-align: center; }
.page-hero .wrap { display: grid; gap: 14px; justify-items: center; }
.page-hero h1 { font: 800 clamp(2.6rem, 7vw, 4.8rem)/1.02 var(--display); letter-spacing: -.045em; }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.page-hero .crumb { padding: 0; }
.page-hero + .plans-sec { padding-top: 8px; }
.page-hero + .plans-sec::before { display: none; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.feature { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); stroke-width: 2.4; }
.feature h3 { font: 700 1.05rem/1.25 var(--display); }
.feature p { color: var(--muted); font-size: .94rem; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.compare > div { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.compare > div:first-child { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.compare h3 { font: 800 1.2rem/1.2 var(--display); }
.compare p { color: var(--muted); }
@media (max-width: 720px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Pasos, preguntas, autor y contacto */
.steps { gap: 14px; }
.steps li { position: relative; padding: 22px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: var(--grad); color: #fff; font: 800 1.1rem/1 var(--display); }
.steps h3 { font: 700 1.05rem/1.3 var(--display); }
.faq { gap: 10px; max-width: 820px; }
.faq details { border-radius: 14px; padding: 0; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; font: 600 1rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent-ink); }
.faq p { padding: 0 18px 16px; }
.about { gap: 32px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.about img { width: 160px; height: 160px; border-radius: 20px; }
.about h2 { font: 800 1.9rem/1.1 var(--display); margin-bottom: 4px; }
.contact-band { background: transparent; color: var(--fg); padding-block: 8px clamp(48px, 7vw, 84px); }
.contact-grid { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), radial-gradient(50% 100% at 0% 100%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%), var(--surface); }
.contact-grid h2 { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.08 var(--display); letter-spacing: -.035em; margin-top: 6px; }
.contact-grid p, .contact-extra { color: var(--muted); }

/* Pie */
.footer { background: var(--night); color: var(--muted); border-top: 1px solid var(--line); }
.footer .wrap { display: block; padding-block: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 48px 28px; }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-brand .brand { color: var(--fg); }
.foot-brand p { max-width: 40ch; }
.footer h3 { color: var(--fg); font: 700 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer ul { display: grid; gap: 4px; }
.footer li button, .footer li a { background: none; border: 0; padding: 3px 0; color: var(--muted); text-decoration: none; font-size: .93rem; }
.footer li button:hover, .footer li a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--line); font-size: .86rem; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Páginas de área y de curso */
.area-hero { min-height: 340px; background: color-mix(in srgb, var(--c) 22%, var(--bg)); }
.area-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.area-hero-art::after { background: linear-gradient(to right, color-mix(in srgb, var(--c) 22%, var(--bg)) 0%, transparent 40%); }
.area-hero-text { z-index: 1; padding-block: 24px 34px; }
.area-hero h1 { font: 800 clamp(2.2rem, 5.4vw, 3.8rem)/1.02 var(--display); letter-spacing: -.04em; max-width: 18ch; text-transform: none; }
.area-hero.compact h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.area-count { border-radius: 999px; padding: 3px 12px; }
.pack, .buy, .outline ul, .course-links, .live-box, .class-card, .cart-line, .suggest, .offer, .panel, .tile, .table-wrap, .filter-bar, .a-card, dialog { border-radius: 16px; }
.pack { border-width: 1px; border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--surface); padding: 22px 24px; }
.pack h2, .area-video h2, .area-courses-title, .prose h2, .player-main h2, .class-head, .cart-suggest h2, .reviews h2, .offers h2, .areas h2 { letter-spacing: -.03em; }
.pack-buy .price, .buy .price { font-size: 3rem; }
.video-link, .media, .media-frame iframe { border-radius: 16px; }

/* Carrito, cuenta y Mi aula */
.cart h1, .account h1, .classroom h1, .enroll h1 { font: 800 clamp(2rem, 4.6vw, 3rem)/1.05 var(--display); letter-spacing: -.04em; }
.sum-row.total strong { font: 800 1.8rem/1 var(--display); letter-spacing: -.03em; }
.sum-title { font: 700 1.05rem/1.25 var(--display); }
.code-box { background: var(--grad); color: #fff; border-radius: 16px; }
.code-box strong { font: 800 2.2rem/1 var(--display); letter-spacing: .02em; }
.code-box .eyebrow { color: rgb(255 255 255 / .85); }
.order-code { font: 800 1.4rem/1 var(--display); letter-spacing: .02em; }
.notice { border-radius: 12px; }
.member-band { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; color: inherit; text-decoration: none;
  background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.member-band > .ico { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 12px; background: var(--grad); color: #fff; }
.member-band > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.member-band strong { font: 700 1.02rem/1.3 var(--display); }
.member-band span { color: var(--muted); font-size: .92rem; }
.member-band.soon { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
a.member-band.offer:hover { border-color: var(--accent); }
.plan-summary { display: grid; gap: 14px; align-content: start; }
.class-card { transition: transform .25s, border-color .25s, box-shadow .25s; }
.class-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--line)); box-shadow: 0 22px 44px -28px var(--c, var(--accent)); }
.class-card h2 { font: 700 1.05rem/1.3 var(--display); }
.tabs button[aria-selected="true"], .account-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.progress span { background: var(--grad); }

/* Panel */
.side nav a[aria-current="page"] { background: var(--grad); box-shadow: 0 10px 24px -14px var(--accent); }
.side nav a { border-radius: 10px; }
.page-head h1 { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -.035em; }
.panel h2 { font: 700 1.12rem/1.2 var(--display); letter-spacing: -.015em; }
.tile strong { font: 800 2rem/1.1 var(--display); letter-spacing: -.03em; }
.dlg h2, .login h1, .area-banner h1 { letter-spacing: -.03em; }
.dlg h2 { font-size: 1.45rem; }
.tag.plan { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.plan-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.plan-a { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.plan-a.is-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.plan-a.is-off { opacity: .7; }
.plan-a header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plan-a header strong { font: 700 1.05rem/1.2 var(--display); margin-right: auto; }
.plan-a-price b { font: 800 1.3rem/1.2 var(--display); }
.plan-a-price s, .plan-a small { color: var(--muted); }
.plan-a .row-actions { justify-content: flex-start; margin-top: 6px; flex-wrap: wrap; }
.pick-list { display: grid; gap: 4px; margin-top: 6px; }
.pick-list button { display: grid; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.pick-list button small { color: var(--muted); }
.pick-list button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1 1 90px; min-width: 0; }

/* Animaciones de entrada (solo si la persona no pidió menos movimiento; ver App.reveal) */
html.motion [data-reveal]:not(.in) { opacity: 0; }
html.motion [data-reveal].in { animation: rise .75s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes glow { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(2%, 3%, 0) scale(1.08); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
.catalog-zone { position: relative; }
.plan-card header { min-height: 4.4em; }
@media (max-width: 560px) { .plan-card header { min-height: 0; } }
.foot-brand { align-content: start; }
.footer li button, .footer li a { display: inline-block; line-height: 1.5; }
@media print { html.motion [data-reveal]:not(.in) { opacity: 1; } }
.plan-line { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: .88rem; line-height: 1.35; color: var(--fg);
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); transition: background .15s; }
.plan-line:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.plan-line .ico { width: 18px; height: 18px; flex: none; color: var(--accent-ink); margin-top: 1px; }

/* ---------- Logo de Aprendemos Mejor ----------
   En la página oscura: trazos claros, rayos en ámbar (la luz de la idea) y el circuito en el color de marca. */
.logo-svg { display: block; width: auto; height: 100%; overflow: visible; }
.logo-svg path { fill: currentColor; }
.logo-svg .lg-rays { fill: var(--logo-rays, currentColor); }
.logo-svg .lg-circuit { fill: var(--logo-circuit, currentColor); }
:root { --logo-rays: #d98e04; --logo-circuit: var(--accent); }
:root[data-theme="dark"], .site-dark { --logo-rays: var(--sun); --logo-circuit: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-rays: var(--sun); --logo-circuit: var(--accent-ink); } }
.brand-logo { display: block; color: var(--fg); }
.brand-logo.horizontal { height: 46px; }
.brand-logo.vertical { height: 132px; }
.brand:hover .lg-rays, .brand:focus-visible .lg-rays { filter: drop-shadow(0 0 6px var(--sun)); }
.topbar .brand { flex: none; }
.side .brand-logo { color: var(--on-night); --logo-rays: var(--sun); --logo-circuit: color-mix(in srgb, var(--accent) 52%, white); }
.side .brand-logo.horizontal { height: 36px; }
.side .brand { padding-block: 4px 6px; }
.foot-brand .brand-logo.vertical { height: 140px; }
.login-logo { display: block; height: 120px; margin: 0 auto 4px; color: var(--fg); }
.auth-logo { display: block; height: 104px; color: var(--fg); margin-bottom: 4px; }
@media (max-width: 420px) { .brand-logo.horizontal { height: 34px; } }

/* La bombilla grande de la portada: se enciende con un halo y los rayos laten. */
.hero-bulb { position: absolute; left: 47%; top: 0; height: 400px; translate: -50% 0; color: var(--fg); filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 35%, transparent)); }
.hero-bulb::before { content: ""; position: absolute; inset: 12% 14% 30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 30%, transparent), color-mix(in srgb, var(--accent) 18%, transparent) 45%, transparent 70%); filter: blur(18px); animation: bulb-glow 4s ease-in-out infinite; }
.hero-bulb .lg-rays { transform-box: view-box; transform-origin: 640px 400px; animation: rays 4s ease-in-out infinite; }
.hero-bulb .lg-circuit { animation: circuit 2.6s ease-in-out infinite; }
.hero-visual:has(.hero-bulb) .glass-ticket { right: 0; bottom: -36px; }
.orbit-chip { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -20px rgb(0 0 0 / .7); animation: float 8s ease-in-out infinite; }
.oc-art { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--c); }
.oc-art svg, .oc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.orbit-chip > span:last-child { display: grid; min-width: 0; }
.orbit-chip strong { font: 700 .88rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orbit-chip small { color: var(--muted); font-size: .76rem; }
.orbit-chip.o1 { top: 40px; left: 0; }
.orbit-chip.o2 { top: 168px; right: 0; animation-delay: -2.7s; }
.orbit-chip.o3 { top: 300px; left: 2%; animation-delay: -5.3s; }
@keyframes rays { 0%, 100% { opacity: .75; scale: .97; } 50% { opacity: 1; scale: 1.04; } }
@keyframes circuit { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes bulb-glow { 0%, 100% { opacity: .7; scale: .95; } 50% { opacity: 1; scale: 1.05; } }
@media (max-width: 900px) { .hero-bulb { height: 320px; } .orbit-chip.o3 { top: 250px; } }
@media (max-width: 560px) {
  .hero-bulb { height: 230px; left: 32%; }
  .orbit-chip { max-width: 190px; padding: 5px 10px 5px 5px; }
  .oc-art { width: 32px; height: 32px; }
  .orbit-chip.o1 { top: 6px; left: auto; right: 0; }
  .orbit-chip.o2, .orbit-chip.o3 { display: none; }
}
/* Plan de por vida: borde ámbar a magenta, como la luz de la bombilla del logo */
.plan-card.is-lifetime { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sun), var(--accent) 70%) border-box; box-shadow: 0 36px 90px -46px var(--sun); }
.plan-card.is-lifetime:hover { box-shadow: 0 36px 80px -36px var(--sun); }
.plan-card.is-lifetime .btn.btn:not(.ghost):not(.sun):not(.danger):not(.on-dark) { background: linear-gradient(115deg, var(--sun), color-mix(in srgb, var(--sun) 40%, var(--accent))); color: #1d1402; box-shadow: 0 8px 22px -12px var(--sun); }
.plan-badge.life { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(115deg, var(--sun), #ffd76a); color: #1d1402; box-shadow: 0 8px 20px -8px var(--sun); }
.plan-badge.life .ico { width: 15px; height: 15px; }
.member-band.life { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--sun) 20%, transparent), transparent 70%), var(--surface); }
.member-band.life > .ico { background: linear-gradient(115deg, var(--sun), var(--accent)); }
.plan-card.wide { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px 40px; align-items: center; padding: 30px 32px; }
.plan-card.wide .life-main { display: grid; gap: 12px; justify-items: start; }
.plan-card.wide .plan-price strong { font-size: 3.6rem; }
.plan-card.wide .plan-perks { border-top: 0; padding-top: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.plan-card.wide:hover { transform: translateY(-4px); }
@media (max-width: 760px) {
  .plan-card.wide { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 22px; }
  .plan-card.wide .plan-perks { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .plan-card.wide .life-main .btn { width: 100%; }
}
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- País y moneda ---------- */
.region-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 4%, transparent); color: var(--fg); font: 700 .82rem/1 var(--sans, inherit); letter-spacing: .02em; transition: background .15s, border-color .15s; }
.region-btn:hover, .region-btn:focus-visible { background: color-mix(in srgb, var(--fg) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.region-btn .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); }
.region-btn .rg-cur { color: var(--accent-ink); }
.region-btn .rg-code::after { content: '·'; margin-left: 6px; color: var(--muted); }
@media (max-width: 520px) { .region-btn { padding: 0 9px; } .region-btn .rg-code { display: none; } }
.region-note { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--fg); }
.region-note .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.region-note .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; }
.region-note p { margin: 0; flex: 1 1 260px; font-size: .93rem; }
.region-note .rn-actions { display: flex; gap: 8px; }
.region-dlg select, #pay-country { width: 100%; }
.fx-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.plan-price.usd span { order: 0; }
.plan-price.usd s { order: -1; }
.cur-pre { font-size: .42em; margin-right: 4px; letter-spacing: 0; color: var(--muted); }
.price .cur-pre { margin-left: 0; }
.pay-how { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin: 12px 0; }
.pay-how p { margin: 0; }
.pay-how .qr { margin: 0; }
.order .pay-how { margin: 12px 0 4px; }
.ref-form { margin: 8px 0; }
.ref-row { display: flex; gap: 8px; }
.ref-row input { flex: 1; min-width: 0; }
.topnav .menu-region { display: none; }
@media (max-width: 1020px) {
  .topnav .menu-region { display: flex; align-items: center; gap: 8px; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; color: var(--fg); }
  .topnav .menu-region .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--accent-ink); }
}
@media (max-width: 520px) { .top-actions .region-btn { display: none; } .top-actions .btn.small { white-space: nowrap; } }
/* Panel: formas de pago */
.rep.method-rep { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.method-rep .mr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px) auto; gap: 8px; }
.method-rep .mr-img { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .method-rep .mr-head { grid-template-columns: minmax(0, 1fr) auto; } .method-rep .mr-head select { grid-column: 1 / -1; grid-row: 2; } }
.tag.country { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--fg); }

/* ---------- Acceso total: fila de áreas incluidas ---------- */
.plan-areas { margin: 0 0 28px; padding: 20px 0 6px; border-radius: 20px; }
.pa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pa-head h3 { margin: 0; font: 800 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.pa-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.pa-nav { display: flex; gap: 8px; flex: none; }
.pa-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); transition: background .15s, opacity .15s, border-color .15s; }
.pa-btn:hover:not(:disabled), .pa-btn:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pa-btn:disabled { opacity: .35; cursor: default; }
.pa-btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.no-scroll .pa-nav { visibility: hidden; }
.pa-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); cursor: grab; }
.at-start .pa-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.at-end .pa-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.at-start.at-end .pa-track, .no-scroll .pa-track { -webkit-mask-image: none; mask-image: none; cursor: auto; }
.pa-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pa-track.dragging .pa-item { pointer-events: none; }
.pa-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.pa-item { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.pa-item:hover, .pa-item:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.pa-art { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #000); }
.pa-art svg, .pa-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pa-body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; }
.pa-body strong { font-weight: 700; line-height: 1.25; }
.pa-body small { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) {
  .pa-head { align-items: flex-start; }
  .pa-btn { width: 38px; height: 38px; }
  .pa-track { grid-auto-columns: 72%; }
}
@media (prefers-reduced-motion: reduce) { .pa-item { transition: none; } .pa-item:hover { transform: none; } }

/* ---------- Acceso total: zona exclusiva ----------
   Un marco propio con el color que elige el panel (--x), un brillo que recorre el borde, insignia y puntos destacados. */
.plans-sec.exclusive { --x: #f4a81d; }
.plans-sec.exclusive::before { background: radial-gradient(60% 50% at 50% 10%, color-mix(in srgb, var(--x) 16%, transparent), transparent 72%); }
.x-shell { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: clamp(26px, 4.4vw, 60px) clamp(16px, 3.6vw, 48px) clamp(26px, 3.4vw, 44px);
  border: 1.5px solid transparent;
  background: linear-gradient(165deg, color-mix(in srgb, var(--x) 9%, #0c0a1a), #0a0917 55%, color-mix(in srgb, var(--accent) 7%, #0a0917)) padding-box,
    linear-gradient(115deg, color-mix(in srgb, var(--x) 85%, transparent), color-mix(in srgb, var(--accent) 70%, transparent) 40%, color-mix(in srgb, var(--x) 30%, transparent) 70%, color-mix(in srgb, var(--x) 85%, transparent)) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 70px 140px -70px color-mix(in srgb, var(--x) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / .06); }
.shine .x-shell { animation: x-shine 9s linear infinite; }
@keyframes x-shine { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 300% 0; } }
.x-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 50% -5%, color-mix(in srgb, var(--x) 24%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / .022) 0 1px, transparent 1px 14px); }
.x-photo { position: absolute; inset: 0; z-index: -2; opacity: .28; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.x-photo .photo { width: 100%; height: 100%; object-fit: cover; }
.x-head { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 820px; margin: 0 auto 30px; }
.x-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.x-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--x), color-mix(in srgb, var(--x) 70%, #fff));
  color: #1b1405; font: 800 .74rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 26px -10px var(--x); }
.x-badge .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.x-name { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--x) 45%, transparent);
  color: color-mix(in srgb, var(--x) 70%, #fff); font: 700 .78rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.x-name .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.x-head h2 { font: 800 clamp(2rem, 5.2vw, 3.6rem)/1.04 var(--display); letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--x) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-head .lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.x-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 4px; }
.x-points li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); font-size: .9rem; font-weight: 600; }
.x-points .ico { width: 16px; height: 16px; color: var(--x); stroke-width: 2.6; fill: none; stroke: currentColor; }
.x-shell .plan-areas { margin-bottom: 8px; }
.x-shell .plan-grid { margin-top: 26px; }
.x-shell .pa-btn:hover:not(:disabled), .x-shell .pa-btn:focus-visible { background: color-mix(in srgb, var(--x) 22%, transparent); border-color: color-mix(in srgb, var(--x) 55%, var(--line)); }
.x-shell .pa-track { scrollbar-color: color-mix(in srgb, var(--x) 50%, transparent) transparent; }
.x-shell .plan-card { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.x-shell .plan-card.is-featured { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.x-shell .plan-foot { margin-top: 22px; }
.page-hero + .plans-sec .x-shell { padding-top: clamp(22px, 3vw, 36px); }
@media (max-width: 560px) { .x-shell { border-radius: 24px; } .x-points li { font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) { .shine .x-shell { animation: none; } }

/* Panel: diseño de la zona de acceso total */
.x-admin-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.x-fields { display: grid; gap: 14px; }
.x-preview-wrap { position: sticky; top: 84px; display: grid; gap: 8px; }
.x-preview { border-radius: 18px; overflow: hidden; background: var(--bg); color: var(--fg); padding: 14px; font-size: .86rem; }
.x-preview .plans-sec { padding: 0; }
.x-preview .plans-sec::before { display: none; }
.x-preview .plans-sec.is-off { opacity: .45; filter: grayscale(.6); }
.x-preview .x-shell { padding: 22px 16px 18px; border-radius: 20px; }
.x-preview .x-head { margin-bottom: 14px; gap: 10px; }
.x-preview .x-head h2 { font-size: 1.7rem; }
.x-preview .x-head .lead { font-size: .88rem; }
.x-preview .x-points li { font-size: .76rem; padding: 5px 10px; }
.x-mini-areas, .x-mini-plans { display: grid; gap: 8px; margin-top: 10px; }
.x-mini-areas { grid-template-columns: repeat(4, 1fr); }
.x-mini-areas i { height: 34px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--x) 30%, #1a1d2e), #141726); }
.x-mini-plans { grid-template-columns: repeat(3, 1fr); }
.x-mini-plans i { height: 64px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.x-mini-plans i.hot { border-color: var(--accent); box-shadow: 0 10px 24px -14px var(--accent); }
.x-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); background: var(--sw); box-shadow: 0 0 0 1px var(--line); }
.x-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }
.x-custom { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.x-custom input { width: 38px; height: 34px; padding: 0; border: 0; background: none; }
@media (max-width: 980px) { .x-admin-grid { grid-template-columns: minmax(0, 1fr); } .x-preview-wrap { position: static; order: -1; } }

/* Panel: importar clientes */
.drop { display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop .ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.imp-help { margin-top: 12px; font-size: .92rem; }
.imp-help summary, .imp-areas summary { cursor: pointer; font-weight: 600; }
.imp-help p { margin: 8px 0 0; color: var(--muted); }
.imp-tiles { margin: 6px 0 14px; }
.tile.muted strong { color: var(--muted); }
.imp-table { max-height: 520px; overflow: auto; margin-top: 10px; }
.imp-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.imp-seg { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.imp-seg label { display: inline-flex; align-items: center; gap: 7px; }
.imp-plan { padding: 4px 0 4px 2px; }
.imp-areas { margin: 10px 0 4px; }
.imp-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin-top: 8px; max-height: 260px; overflow: auto; }
.imp-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.imp-done .code-box { margin: 10px 0 14px; }
.imp-done textarea { font-family: inherit; }

/* Panel: alumnos con actividad y datos del grupo */
.s-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.s-toolbar input[type=search] { flex: 1 1 260px; }
.s-toolbar select { flex: 0 1 260px; }
.when-cell { white-space: nowrap; }
.when-cell small { display: block; color: var(--muted); font-size: .76rem; }
.muted-text { color: var(--muted); }
.title-cell .tag-row { min-height: 0; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.st-grid h3, .dlg-wide h3 { font: 700 .82rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.st-lessons { display: grid; gap: 6px; margin-top: 10px; font-size: .9rem; }
.st-lessons small { display: block; color: var(--muted); }
.grp { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.grp summary { cursor: pointer; }
.grp .detail-list { margin-top: 8px; }
.grp-data { width: 100%; margin-top: 8px; font-size: .86rem; border-collapse: collapse; }
.grp-data th, .grp-data td { text-align: left; padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.grp-data th { width: 42%; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .84rem; }
@media (max-width: 680px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* Panel: exportar datos */
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ex-side { display: grid; gap: 16px; }
.ex-sets { display: grid; gap: 8px; margin: 6px 0 10px; }
.ex-set { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.ex-set:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ex-set input { margin-top: 4px; }
.ex-set small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.ex-n { font-weight: 600; font-size: .78rem; color: var(--muted); margin-left: 6px; }
.ex-formats { display: grid; gap: 8px; margin-bottom: 12px; }
.ex-help p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.ex-help summary { cursor: pointer; }
@media (max-width: 980px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-group { margin: 10px 0 6px; font: 700 .74rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ex-group:first-of-type { margin-top: 0; }

/* De por vida: sección propia, con marco doble y dorado, más reservada que el acceso total por meses.
   Tono noche (fondo oscuro) o marfil (fondo claro); el color dorado se cambia desde el panel (--g). */
.life-sec { --g: #d4af37; --g-ink: color-mix(in srgb, var(--g) 70%, white); position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 104px); }
.life-shell { --l-fg: #f6efdc; --l-muted: #b9ae92; --l-line: color-mix(in srgb, var(--g) 26%, transparent); --l-card: rgb(255 255 255 / .035);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; color: var(--l-fg);
  padding: clamp(30px, 5vw, 68px) clamp(18px, 4.4vw, 60px);
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--g) 16%, transparent), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--g) 8%, transparent), transparent 70%),
    linear-gradient(160deg, #0c0a07, #060504 55%, #0d0b06);
  border: 1px solid color-mix(in srgb, var(--g) 60%, transparent);
  box-shadow: 0 80px 160px -80px color-mix(in srgb, var(--g) 55%, transparent), inset 0 1px 0 rgb(255 255 255 / .06); }
.life-shell::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; border: 1px solid var(--l-line); pointer-events: none; }
.life-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 18px); }
.life-mark { position: absolute; z-index: -1; right: -6%; bottom: -22%; width: min(560px, 70%); aspect-ratio: 1; opacity: .07; pointer-events: none; color: var(--g); }
.life-mark .ico { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .9; }
.life-photo { position: absolute; inset: 0; z-index: -2; opacity: .22; -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }
.life-photo .photo { width: 100%; height: 100%; object-fit: cover; }
.life-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.life-copy { display: grid; gap: 18px; justify-items: start; }
.life-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--g) 55%, transparent);
  color: var(--g-ink); font: 700 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; background: color-mix(in srgb, var(--g) 8%, transparent); }
.life-badge .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.life-copy h2 { font: 600 clamp(2.2rem, 5.4vw, 4.1rem)/1.02 "Fraunces", Georgia, "Times New Roman", serif; letter-spacing: -.02em; text-wrap: balance;
  background: linear-gradient(100deg, var(--l-fg) 0%, var(--l-fg) 45%, var(--g-ink) 75%, var(--g) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.life-copy .lead { color: var(--l-muted); font-size: 1.06rem; max-width: 56ch; }
.life-points { display: grid; gap: 0; width: 100%; max-width: 560px; }
.life-points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--l-line); font-weight: 600; }
.life-points li:first-child { border-top: 1px solid var(--l-line); }
.life-points .ico { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--g); stroke-width: 2.4; }
.life-compare { padding-left: 14px; border-left: 2px solid var(--g); color: var(--l-muted); max-width: 56ch; }
.life-compare b { color: var(--l-fg); }
.life-offers { display: grid; gap: 18px; }
.life-offer { position: relative; display: grid; gap: 14px; padding: 30px 26px 26px; border-radius: 24px; background: var(--l-card);
  border: 1px solid color-mix(in srgb, var(--g) 45%, transparent); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--g) 80%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.life-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--g-ink); font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.life-kicker .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.life-offer .plan-tag, .life-offer .plan-per { color: var(--l-muted); }
.life-offer .plan-price strong { font-size: clamp(3rem, 6vw, 4rem); background: linear-gradient(180deg, var(--g-ink), var(--g)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.life-offer .plan-price span, .life-offer .plan-price s { color: var(--l-muted); }
.life-offer .plan-perks { border-top: 1px solid var(--l-line); padding-top: 14px; display: grid; gap: 8px; font-size: .92rem; color: var(--l-muted); }
.life-offer .plan-perks li { display: flex; gap: 8px; align-items: flex-start; }
.life-offer .plan-perks .ico { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--g); stroke-width: 2.4; }
.life-sec .btn.btn.life-cta:not(.ghost):not(.sun):not(.danger):not(.on-dark) { min-height: 52px; text-align: center; font-size: 1.02rem; background: linear-gradient(115deg, var(--g-ink), var(--g) 55%, color-mix(in srgb, var(--g) 70%, #6b4a00)); color: #1c1503;
  border: 0; box-shadow: 0 14px 34px -16px var(--g); }
.life-sec .btn.btn.life-cta:not(.ghost):not(.sun):not(.danger):not(.on-dark):hover { filter: brightness(1.06); }
.life-sec .btn.btn.life-cta:not(.ghost):not(.sun):not(.danger):not(.on-dark)[aria-disabled="true"] { background: rgb(255 255 255 / .08); color: var(--l-muted); box-shadow: none; cursor: not-allowed; filter: none; }
.life-seats { display: grid; gap: 7px; font-size: .88rem; color: var(--l-muted); }
.life-seats .ls-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.life-seats b { color: var(--l-fg); font-variant-numeric: tabular-nums; }
.ls-bar { height: 8px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.ls-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--g) 60%, transparent), var(--g)); }
.life-seats.few b { color: var(--g-ink); }
.life-seats.out .ls-bar i { background: var(--l-muted); }
/* Tono marfil: fondo claro y letras oscuras, como una invitación impresa. */
.life-sec.tone-marfil .life-shell { --l-fg: #1d1608; --l-muted: #6c5f43; --l-line: color-mix(in srgb, var(--g) 40%, transparent); --l-card: rgb(255 255 255 / .7); --g-ink: color-mix(in srgb, var(--g) 55%, #3a2a00);
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--g) 22%, transparent), transparent 60%), linear-gradient(160deg, #fbf7ec, #f2e9d2); }
.life-sec.tone-marfil .life-copy h2 { background: linear-gradient(100deg, #1d1608 0%, #1d1608 50%, var(--g-ink) 100%); -webkit-background-clip: text; background-clip: text; }
.life-sec.tone-marfil .life-offer .plan-price strong { background: linear-gradient(180deg, #2a1e04, var(--g-ink)); -webkit-background-clip: text; background-clip: text; }
.life-sec.tone-marfil .btn.btn.life-cta:not(.ghost):not(.sun):not(.danger):not(.on-dark) { background: #1d1608; color: #f6e7b8; box-shadow: 0 14px 34px -18px #1d1608; }
.life-sec.tone-marfil .ls-bar, .life-sec.tone-marfil .btn.btn.life-cta:not(.ghost):not(.sun):not(.danger):not(.on-dark)[aria-disabled="true"] { background: rgb(29 22 8 / .1); }
.life-sec.tone-marfil .life-mark { opacity: .12; }
@media (max-width: 900px) { .life-grid { grid-template-columns: minmax(0, 1fr); } .life-mark { bottom: auto; top: -10%; } }
@media (max-width: 560px) { .life-shell { border-radius: 26px; } .life-shell::before { inset: 7px; border-radius: 20px; } .life-offer { padding: 24px 18px 20px; } }
/* Panel: vista previa de la sección de por vida */
.x-preview .life-sec { padding: 0; }
.x-preview .life-sec.is-off { opacity: .45; filter: grayscale(.6); }
.x-preview .life-shell { padding: 22px 16px 18px; border-radius: 20px; }
.x-preview .life-shell::before { inset: 6px; border-radius: 15px; }
.x-preview .life-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.x-preview .life-copy { gap: 10px; }
.x-preview .life-copy h2 { font-size: 1.7rem; }
.x-preview .life-copy .lead, .x-preview .life-compare { font-size: .84rem; }
.x-preview .life-points li { padding: 7px 0; font-size: .8rem; }
.x-preview .life-offer { padding: 18px 16px; gap: 10px; }
.x-preview .life-offer .plan-price strong { font-size: 2.4rem; }
.x-preview .life-offer .plan-perks { display: none; }

/* Programa de afiliados: página pública y página del afiliado en Mi aula */
.aff-hero { position: relative; isolation: isolate; padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); }
.aff-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(40% 50% at 90% 30%, color-mix(in srgb, var(--sun) 14%, transparent), transparent 70%); }
.aff-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.aff-copy { display: grid; gap: 16px; justify-items: start; }
.aff-copy h1 { font: 800 clamp(2.2rem, 5.6vw, 4rem)/1.03 var(--display); letter-spacing: -.045em; text-wrap: balance; margin: 0; }
.aff-copy .lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.aff-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.aff-facts span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.aff-facts b { color: var(--sun); font-variant-numeric: tabular-nums; }
.aff-example { display: grid; gap: 10px; padding: 26px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--sun) 40%, var(--line)); box-shadow: 0 40px 80px -50px var(--sun); }
.aff-example p { margin: 0; }
.aff-earn { font: 700 1.3rem/1.2 var(--display); }
.aff-earn strong { font-size: 2.4rem; color: var(--sun); letter-spacing: -.03em; }
.aff-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; counter-reset: s; }
.aff-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.aff-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 20px; font: 800 2.4rem/1 var(--display); color: color-mix(in srgb, var(--fg) 10%, transparent); }
.aff-steps .ico { width: 30px; height: 30px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; }
.aff-steps h3 { font: 800 1.2rem/1.2 var(--display); margin: 0; }
.aff-steps p { margin: 0; color: var(--muted); }
.aff-terms { margin-top: 20px; }
.aff-terms summary, .aff-terms-mini summary { cursor: pointer; font-weight: 600; }
.aff-terms p, .aff-terms-mini p { color: var(--muted); margin: 10px 0 0; }
.aff-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.aff-pitch { display: grid; gap: 12px; justify-items: start; }
.aff-pitch h2 { margin: 0; }
.aff-pitch p { margin: 0; color: var(--muted); }
#aff-join { display: grid; gap: 14px; }
.aff-accept { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.aff-accept input { width: 18px; height: 18px; accent-color: var(--accent); }
.aff-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.aff-copy-row { display: flex; gap: 8px; margin-top: 8px; }
.aff-copy-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.aff-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--sun); }
.aff-share { display: flex; flex-wrap: wrap; gap: 8px; }
.aff-tiles { margin: 16px 0; }
.tile.hot { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.tile.hot strong { color: var(--ok); }
.aff-pay { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.aff-pay h2 { margin: 0 0 4px; }
.aff-pay .hint { margin: 0; }
.aff-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.aff-tag.ok { background: var(--ok-bg); color: var(--ok); }
.aff-tag.warn { background: var(--warn-bg); color: var(--warn); }
.aff-tag.bad { background: var(--bad-bg); color: var(--bad); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.classroom > .panel + .panel, .classroom > .panel + form.panel, .classroom > section + section { margin-top: 16px; }
@media (max-width: 900px) { .aff-hero-grid, .aff-join { grid-template-columns: minmax(0, 1fr); } .aff-steps { grid-template-columns: minmax(0, 1fr); } .aff-link { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .aff-copy-row { flex-direction: column; } }
.warn-text { display: block; color: var(--warn); font-weight: 600; font-size: .8rem; }
td code, .dlg h2 code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.aff-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.life-offer .plan-per b, .life-offer .plan-per strong { color: var(--l-fg); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }

/* Botón del tema en la barra y opciones en el menú del celular */
.theme-wrap { position: relative; }
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.theme-btn:hover, .theme-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.theme-btn .ico, .theme-pop .ico, .theme-seg .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 2px; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.theme-pop[hidden] { display: none; }
.theme-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.theme-pop button:hover, .theme-pop button:focus-visible { background: var(--surface-2); }
.theme-pop button[aria-checked="true"] { color: var(--accent-ink); font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.menu-theme { display: none; }
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .88rem/1 var(--body); cursor: pointer; }
.theme-seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
@media (max-width: 900px) {
  .top-actions .theme-wrap { display: none; }
  .topbar.open .menu-theme { display: grid; gap: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
  .menu-theme > span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}
.topnav .theme-seg button { display: inline-flex; }
/* Panel: vista previa de los dos modos */
.th-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.th-previews { display: grid; gap: 12px; position: sticky; top: 84px; }
.th-prev { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--pb); border: 1px solid var(--pl); }
.th-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; font: 700 .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--pm); border: 1px solid var(--pl); }
.th-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--pl); }
.th-bar i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }
.th-bar b { height: 8px; width: 46px; border-radius: 99px; background: var(--pm); opacity: .5; }
.th-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.th-card { display: grid; gap: 7px; padding: 10px; border-radius: 12px; background: var(--ps); border: 1px solid var(--pl); }
.th-card i { height: 46px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, var(--pb)), var(--accent)); }
.th-card b { height: 8px; border-radius: 99px; background: var(--pf); opacity: .8; }
.th-card b.short { width: 60%; background: var(--pm); opacity: .6; }
.th-btn { height: 20px; border-radius: 6px; background: var(--accent); }
@media (max-width: 980px) { .th-grid { grid-template-columns: minmax(0, 1fr); } .th-previews { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .th-previews { grid-template-columns: minmax(0, 1fr); } }

/* Modo claro del sitio: lo que antes daba por hecho el fondo oscuro */
.x-shell { color: var(--fg); }
:root[data-theme="light"] .footer { background: var(--surface-2); }
:root[data-theme="light"] .cart-btn { color: var(--fg); }
:root[data-theme="light"] .cart-btn:hover, :root[data-theme="light"] .cart-btn:focus-visible { background: var(--surface-2); }
/* Portada de área y de curso: los textos siguen al tema (antes eran blancos fijos) */
.area-hero { color: var(--fg); }
.area-hero .crumb { color: var(--muted); }
.area-hero .crumb a { color: var(--fg); }
.area-hero .lead { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
@media (max-width: 720px) {
  .area-hero-art::after { background: linear-gradient(to right, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 60%, transparent)); }
}
:root[data-theme="light"] ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); }
