/* =========================================================
   Taller de Valentina – tema femenino estilo streaming
   ========================================================= */
:root {
  --bg: #1c0f17;
  --bg-2: #241420;
  --surface: #2f1a29;
  --surface-2: #3b2234;
  --line: rgba(249, 198, 214, 0.12);
  --rose: #ec6f9f;
  --rose-2: #f59bbd;
  --blush: #f9c6d6;
  --gold: #e8c39e;
  --text: #fcf1f5;
  --muted: #c7a6b6;
  --success: #7dd3a7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: .2px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose-2), var(--rose));
  color: #fff; box-shadow: 0 8px 22px rgba(236, 111, 159, .35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(236, 111, 159, .5); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-gold { background: linear-gradient(135deg, #f3d8bb, var(--gold)); color: #3b1a2c; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .1);
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn.active { background: var(--rose); color: #fff; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- Login (claro, premium) ----------
   Marfil + petróleo profundo (el mismo del fieltro de la guía) + rosa empolvado + champagne */
.login {
  --l-bg: #f8f3ec;
  --l-paper: #fffdf9;
  --l-ink: #1f2b2b;
  --l-soft: #6b6560;
  --l-line: #e7ddd1;
  --l-petrol: #1d4a4f;
  --l-petrol-2: #2a6a70;
  --l-rose: #b85c72;
  --l-gold: #a8844a;
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 1fr; align-content: start;
  background: var(--l-bg); color: var(--l-ink);
}
.login-photo { position: relative; margin: 0; height: 46vh; min-height: 300px; overflow: hidden; border-radius: 0 0 28px 28px; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.login-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 43, 43, 0) 45%, rgba(31, 43, 43, .6)); }
.login-cap {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; color: #fff;
}
.login-cap b { font-family: var(--font-title); font-size: 22px; font-weight: 600; letter-spacing: .2px; }
.login-cap span { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #f3e3c8; }
.login-cap em { font-family: var(--font-body); font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); margin-left: 8px; vertical-align: 4px; }
.login-side { display: flex; justify-content: center; padding: 0 var(--gutter) 40px; margin-top: -28px; position: relative; z-index: 3; }
.login-card {
  width: 100%; max-width: 440px;
  background: var(--l-paper); border: 1px solid var(--l-line); border-radius: 24px;
  padding: 28px 22px 24px; box-shadow: 0 24px 60px -24px rgba(29, 74, 79, .28);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--font-title); font-size: 18px; font-weight: 700; color: var(--l-petrol); }
.login-brand i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 15px; background: var(--l-petrol); color: #f3e3c8; }
.login-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--l-gold); margin-bottom: 8px; }
.login-card h1 { font-size: clamp(28px, 6vw, 40px); color: var(--l-ink); margin-bottom: 8px; text-wrap: balance; }
.login-card h1 em { font-style: italic; color: var(--l-rose); }
.login-card .lead { color: var(--l-soft); font-size: 15px; margin-bottom: 24px; max-width: 38ch; }
.login .field { margin-bottom: 14px; }
.login .field label { display: block; font-size: 13px; font-weight: 700; color: var(--l-ink); margin-bottom: 6px; }
.login .field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--l-line); background: #fff; color: var(--l-ink);
  font: inherit; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.login .field input::placeholder { color: #a9a097; }
.login .field input:focus { outline: none; border-color: var(--l-petrol-2); box-shadow: 0 0 0 4px rgba(42, 106, 112, .14); }
.login .form-error { color: #b3261e; }
.login .btn-primary { background: var(--l-petrol); color: #fff; box-shadow: 0 12px 26px -10px rgba(29, 74, 79, .6); min-height: 52px; }
.login .btn-primary:hover { background: var(--l-petrol-2); box-shadow: 0 14px 30px -10px rgba(29, 74, 79, .7); }
.login .btn-primary svg { transition: transform .2s ease; }
.login .btn-primary:hover svg { transform: translateX(3px); }
.login-perks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--l-line); display: grid; gap: 8px; }
.login-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--l-soft); }
.login-perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--l-gold); flex: none; }
.login-foot { margin-top: 16px; font-size: 13px; color: var(--l-soft); }
.login-foot a { color: var(--l-petrol); font-weight: 700; }
.login :focus-visible { outline-color: var(--l-petrol-2); }
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-content: stretch; padding: 20px; gap: 20px; }
  .login-photo { height: auto; min-height: 0; border-radius: 28px; }
  .login-cap { left: 36px; bottom: 34px; }
  .login-cap b { font-size: 28px; }
  .login-side { margin: 0; padding: 40px 48px; align-items: center; }
  .login-card { border: 0; box-shadow: none; background: transparent; padding: 0; max-width: 420px; }
}
.form-error { color: #ff9db5; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + var(--safe-t)) var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(28, 15, 23, .92), rgba(28, 15, 23, 0));
  transition: background .25s ease;
}
.header.solid { background: rgba(28, 15, 23, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 20px; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose-2), var(--rose)); font-size: 18px;
}
.brand span em { color: var(--rose-2); font-style: italic; }
.topnav { display: none; gap: 26px; }
.topnav a { color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); border-color: var(--rose); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header .avatar { width: 38px; height: 38px; }
@media (min-width: 900px) { .topnav { display: flex; } }

/* ---------- Bottom nav (móvil) ---------- */
.bottomnav {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(28, 15, 23, .97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.bottomnav a.active { color: var(--rose-2); }
.bottomnav svg.i { width: 23px; height: 23px; }
@media (min-width: 900px) { .bottomnav { display: none; } }

main.page { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 32px); min-height: 100vh; }
@media (min-width: 900px) { main.page { padding-bottom: 64px; } }
.page-pad { padding: calc(84px + var(--safe-t)) var(--gutter) 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; min-height: 78svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 56px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(28, 15, 23, .55) 40%, rgba(28, 15, 23, .1) 75%),
    linear-gradient(90deg, rgba(28, 15, 23, .85), rgba(28, 15, 23, 0) 65%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.hero h1 { font-size: clamp(34px, 7vw, 64px); margin-bottom: 12px; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.hero p { color: #f1dde6; font-size: clamp(15px, 2vw, 18px); max-width: 520px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.progress-line { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--blush); font-weight: 700; }
.bar { flex: 1; max-width: 240px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose-2), var(--rose)); border-radius: inherit; }

/* Arte generado (cuando no hay portada) */
.art {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.art::before {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, #fff 0 1.5px, transparent 2.5px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 14px);
  background-size: 60px 60px, 40px 40px, auto;
}
.art::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -15%; top: -25%;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%);
}
.art .art-icon {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font-size: var(--icon-size, 48px); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25));
}
.hero .art .art-icon { --icon-size: clamp(110px, 22vw, 260px); right: 10%; top: 42%; opacity: .95; }

/* ---------- Valentina ---------- */
.avatar {
  display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid var(--gold); background: var(--surface-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mentor {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 8px var(--gutter) 8px; padding: 18px;
  background: linear-gradient(135deg, rgba(236, 111, 159, .16), rgba(232, 195, 158, .08));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.mentor .avatar { width: 58px; height: 58px; }
.mentor-name { font-family: var(--font-title); font-size: 18px; }
.mentor-role { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.mentor-msg { color: #f0dbe4; font-size: 15px; }
.mentor-ai { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(232, 195, 158, .18); color: var(--gold); vertical-align: middle; letter-spacing: .5px; font-family: var(--font-body); }
@media (min-width: 768px) { .mentor { padding: 22px 26px; max-width: 880px; } .mentor .avatar { width: 72px; height: 72px; } }

/* ---------- Filas (carruseles) ---------- */
.row { margin-top: 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: clamp(19px, 2.4vw, 24px); }
.row-head a { color: var(--rose-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.row-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; gap: 12px;
  grid-auto-columns: 72%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 14px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 560px) { .rail { grid-auto-columns: 44%; } }
@media (min-width: 900px) { .rail { grid-auto-columns: 30%; gap: 16px; } }
@media (min-width: 1280px) { .rail { grid-auto-columns: 23%; } }
.rail-arrow {
  display: none; position: absolute; top: 4px; bottom: 14px; width: calc(var(--gutter) - 4px); z-index: 3;
  background: rgba(28, 15, 23, .7); color: #fff; font-size: 28px;
}
.rail-arrow.left { left: 0; border-radius: 0 10px 10px 0; }
.rail-arrow.right { right: 0; border-radius: 10px 0 0 10px; }
@media (hover: hover) and (min-width: 900px) { .row-wrap:hover .rail-arrow { display: grid; place-items: center; } }

/* ---------- Tarjetas ---------- */
.card { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow); z-index: 2; } }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.thumb .art-icon { --icon-size: 46px; }
.thumb-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px;
  background: rgba(28, 15, 23, .7); backdrop-filter: blur(4px); color: var(--blush);
}
.thumb-badge.done { background: var(--success); color: #10291c; }
.thumb-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .2s ease;
  background: rgba(28, 15, 23, .35);
}
.thumb-play span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--rose); }
@media (hover: hover) { .card:hover .thumb-play { opacity: 1; } }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; height: 4px; z-index: 2; }
.card-body { padding: 11px 13px 13px; }
.card-title { font-weight: 800; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 6px; }

/* Tarjeta de producto (vertical tipo póster) */
.rail.posters { grid-auto-columns: 46%; }
@media (min-width: 560px) { .rail.posters { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .rail.posters { grid-auto-columns: 21%; } }
@media (min-width: 1280px) { .rail.posters { grid-auto-columns: 16%; } }
.poster .thumb { aspect-ratio: 2 / 3; }
.poster .thumb .art-icon { --icon-size: 58px; right: 50%; top: 40%; transform: translate(50%, -50%) rotate(-8deg); }
.poster-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 12px 12px;
  background: linear-gradient(0deg, rgba(20, 8, 15, .92), transparent);
  font-family: var(--font-title); font-weight: 700; font-size: 17px; line-height: 1.15;
}
.poster-title.is-slim { padding-top: 28px; }
.poster-title.is-slim small { margin-top: 0; color: #fff; }
.poster-title small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--blush); margin-top: 4px; }
.locked .thumb > img, .locked .art { filter: saturate(.7) brightness(.75); }
.lock-chip {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(28, 15, 23, .75); color: var(--gold);
}
.price-chip { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #3b1a2c; }

/* ---------- Página de producto ---------- */
.p-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; padding: 110px var(--gutter) 30px; overflow: hidden; }
.p-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, var(--bg) 4%, rgba(28, 15, 23, .45) 55%, rgba(28, 15, 23, .2));
}
.p-hero .hero-content { max-width: 720px; }
.p-hero h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 10px; }
.p-hero p { color: #f1dde6; margin-bottom: 18px; max-width: 600px; }
.p-stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.p-stats b { color: var(--text); }
.modules { padding: 10px var(--gutter) 0; max-width: 1100px; }
.module { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.module > summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.module > summary::-webkit-details-marker { display: none; }
.module > summary h3 { font-size: 18px; }
.module > summary .m-meta { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; }
.module > summary .chev { transition: transform .2s ease; color: var(--rose-2); }
.module[open] > summary .chev { transform: rotate(180deg); }
.lesson {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line);
  transition: background .15s ease;
}
.lesson:hover { background: rgba(255, 255, 255, .04); }
.lesson.current { background: rgba(236, 111, 159, .12); }
.l-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); color: var(--rose-2);
}
.l-icon.done { background: var(--success); color: #10291c; }
.l-text { flex: 1; min-width: 0; }
.l-title { font-weight: 700; font-size: 15px; }
.l-meta { color: var(--muted); font-size: 13px; }

/* ---------- Clase ---------- */
.lesson-layout { display: grid; gap: 24px; padding: calc(74px + var(--safe-t)) 0 0; }
@media (min-width: 1024px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 360px; padding: calc(84px + var(--safe-t)) var(--gutter) 0; align-items: start; }
}
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
@media (min-width: 1024px) { .player { border-radius: var(--radius); } }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; z-index: 2; background: rgba(28, 15, 23, .55); }
.player-empty div { max-width: 340px; }
.player-empty .big { font-size: 46px; margin-bottom: 8px; }
.player-empty h3 { font-size: 20px; margin-bottom: 4px; }
.player-empty p { color: #f1dde6; font-size: 14px; }
.lesson-main { padding: 0 var(--gutter); }
@media (min-width: 1024px) { .lesson-main { padding: 0; } }
.crumbs { color: var(--muted); font-size: 13px; font-weight: 700; margin: 18px 0 6px; }
.crumbs a { color: var(--rose-2); }
.lesson-main h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.btn-done.is-done { background: var(--success); color: #10291c; box-shadow: none; }
.lesson-desc { color: #ead5de; font-size: 16px; margin-bottom: 22px; }
.rich { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; }
.rich li { margin-bottom: 6px; }
.rich strong { color: var(--rose-2); }
.materials h3 { font-size: 18px; margin-bottom: 10px; }
.mat {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 700;
}
.mat:hover { border-color: var(--rose); }
.mat .l-icon { width: 36px; height: 36px; }
.mat span { flex: 1; min-width: 0; }
.nav-lessons { display: flex; gap: 10px; margin: 22px 0 6px; }
.nav-lessons .btn { flex: 1; }
.side { padding: 0 var(--gutter); }
@media (min-width: 1024px) { .side { padding: 0; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
.side h2 { font-size: 20px; margin-bottom: 12px; }
.side .module { margin-bottom: 10px; }

/* ---------- Tienda ---------- */
.page-title { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 24px; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.offer { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.offer .thumb { aspect-ratio: 16 / 9; }
.offer-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer-body h3 { font-size: 21px; }
.offer-body p { color: var(--muted); font-size: 14px; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.benefits li { display: flex; gap: 8px; font-size: 14px; }
.benefits li::before { content: "✓"; color: var(--rose-2); font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; }
.price b { font-size: 24px; font-family: var(--font-title); }
.price s { color: var(--muted); font-size: 14px; }
.offer-owned { color: var(--success); font-weight: 800; font-size: 14px; }
.link-btn { color: var(--rose-2); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- Perfil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-head .avatar { width: 72px; height: 72px; display: grid; place-items: center; font-family: var(--font-title); font-size: 30px; background: linear-gradient(135deg, var(--rose-2), var(--rose)); border-color: transparent; }
.profile-head h1 { font-size: 26px; }
.profile-head p { color: var(--muted); font-size: 14px; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; max-width: 640px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-title); font-size: 26px; color: var(--rose-2); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.list { max-width: 640px; display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; width: 100%; font-weight: 700; }
.list-item:hover { border-color: rgba(236, 111, 159, .5); }
.list-item span { flex: 1; }
.list-item small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.mentor-card { max-width: 640px; margin: 0 0 24px; }
.mentor-card.mentor { margin-left: 0; margin-right: 0; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(10, 4, 8, .7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 24px; } }
.modal {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; animation: up .25s ease;
  padding-bottom: var(--safe-b);
}
@media (min-width: 640px) { .modal { border-radius: 22px; } }
.modal .thumb { aspect-ratio: 16 / 8; }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 5; background: rgba(28, 15, 23, .7); }
.modal-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.modal-body h2 { font-size: 26px; }
.modal-body p { color: #ead5de; }
.unlock { border-top: 1px solid var(--line); padding-top: 14px; }
.unlock-row { display: flex; gap: 8px; }
.unlock-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 16px; text-transform: uppercase; }
.unlock-row input:focus { outline: none; border-color: var(--rose-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Toast / banner instalación ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px;
  padding: 12px 18px; border-radius: 99px; box-shadow: var(--shadow); transition: all .25s ease;
  max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { #toast { bottom: 28px; } }
.install-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 18px var(--gutter) 0; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 880px;
}
.install-banner .brand-mark { width: 42px; height: 42px; font-size: 22px; flex: none; }
.install-banner div { flex: 1; min-width: 0; font-size: 14px; }
.install-banner b { display: block; font-size: 15px; }
.install-banner small { color: var(--muted); }

.footer-note { text-align: center; color: var(--muted); font-size: 12px; padding: 40px var(--gutter) 0; }
.fade-in { animation: fade .3s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.p-hero .art .art-icon { --icon-size: clamp(80px, 16vw, 200px); top: 34%; opacity: .55; }
@media (min-width: 900px) { .p-hero .art .art-icon { opacity: .95; top: 45%; } }

/* ---------- Lector de PDF ---------- */
.reader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #2b2327; animation: fade .2s ease; }
.reader-bar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + var(--safe-t)) 10px 8px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.reader-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.reader-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title span { font-size: 12px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.reader-bar .icon-btn { font-size: 22px; font-weight: 700; line-height: 1; }
.reader-scroll { position: relative; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 8px calc(24px + var(--safe-b)); }
.reader-pages { margin: 0 auto; }
.reader-page { position: relative; margin: 0 auto 12px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.reader-page > span { position: absolute; inset: 0; display: grid; place-items: center; color: #c4b8be; font-weight: 800; font-size: 18px; }
.reader-page canvas { position: relative; display: block; width: 100%; height: 100%; }
.reader-msg { color: var(--text); text-align: center; padding: 60px 20px; }

/* ---------- Bonos ---------- */
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.bonus-link {
  display: flex; align-items: center; gap: 14px; margin: 30px var(--gutter) 0; padding: 14px 18px; max-width: 880px;
  background: linear-gradient(135deg, rgba(232, 195, 158, .14), rgba(236, 111, 159, .1));
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease;
}
.bonus-link:hover { border-color: rgba(232, 195, 158, .5); }
.bonus-link .l-icon { color: var(--gold); }
.bonus-link > span:nth-child(2) { flex: 1; min-width: 0; }
.bonus-link b { display: block; font-family: var(--font-title); font-size: 18px; }
.bonus-link small { color: var(--muted); font-size: 13px; font-weight: 600; }
