/* Seguir de Pie, hoja de estilos pública. Mobile-first, sin dependencias, sin fuentes externas.
   Paleta tomada de la portada y el logotipo (azul tormenta, dorado de amanecer, crema editorial).
   Contrastes verificados WCAG AA: texto principal 14.6:1, secundario 6.5:1, dorado sobre crema 5.0:1. */

:root {
  --navy-900: #0b1a2c;
  --navy-800: #0f2238;
  --navy-700: #1c3a5a;
  --slate-700: #35506b;
  --slate-600: #3e5c7a;
  --gold-300: #e3c58c;
  --gold-400: #d9b06b;
  --gold-500: #c49a55;
  --gold-700: #7a5614;
  --cream-50: #fbf7ee;
  --cream-100: #f4eddd;
  --sand-200: #e8dcc3;
  --ink: #1b2431;
  --muted: #556577;
  --error: #a32020;
  --success: #1f6b45;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 26, 44, 0.16);
  --shadow-sm: 0 2px 8px rgba(11, 26, 44, 0.1);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 72rem;
  --prose: 42rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--navy-800); margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--navy-700); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-900); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible, .hero--dark :focus-visible { outline-color: var(--gold-300); }
::selection { background: var(--gold-300); color: var(--navy-900); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--navy-800); color: var(--cream-50); padding: 0.75rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 0.5rem; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--prose)); margin-inline: auto; }
.section { padding: clamp(2.8rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--cream-100); }
.section--dark { background: var(--navy-800); color: var(--cream-50); }
.section--dark h2, .section--dark h3 { color: var(--cream-50); }
.section--dark a { color: var(--gold-300); }
.eyebrow { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-bottom: 0.8rem; }
.section--dark .eyebrow, .hero--dark .eyebrow { color: var(--gold-300); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--slate-700); max-width: 38rem; }
.section--dark .lead, .hero--dark .lead { color: var(--sand-200); }
.muted { color: var(--muted); }
.hero--dark .muted, .section--dark .muted { color: var(--sand-200); }
.tight { margin: 0; }
.center { text-align: center; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--cream-50); border-bottom: 1px solid var(--sand-200); position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy-800); font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 2.6rem; height: auto; }
.nav-toggle { background: none; border: 2px solid var(--navy-700); color: var(--navy-800); border-radius: var(--radius-sm); padding: 0.45rem 0.8rem; font: inherit; font-weight: 600; cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream-50); border-bottom: 1px solid var(--sand-200); padding: 0.5rem 1.25rem 1.2rem; box-shadow: var(--shadow-sm); }
.nav.is-open { display: block; }
.no-js .nav { display: block; position: static; box-shadow: none; padding: 0; border: 0; }
.no-js .nav-toggle { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.nav a { display: block; padding: 0.7rem 0.4rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--cream-100); }
.nav a[aria-current="page"] { color: var(--gold-700); box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 0; }
@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .nav, .no-js .nav { display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav ul { display: flex; gap: 0.2rem; align-items: center; }
  .nav a { padding: 0.55rem 0.8rem; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy-800); color: var(--cream-50); }
.btn--primary:hover { background: var(--navy-900); color: var(--cream-50); }
.btn--gold { background: var(--gold-400); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-300); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-700); }
.btn--ghost:hover { background: var(--navy-800); color: var(--cream-50); }
.section--dark .btn--ghost, .hero--dark .btn--ghost { color: var(--cream-50); border-color: var(--gold-300); }
.section--dark .btn--ghost:hover, .hero--dark .btn--ghost:hover { background: var(--cream-50); color: var(--navy-900); }
.btn--small { min-height: 2.3rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn-row--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.hero--dark { background: radial-gradient(120% 90% at 85% 10%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: var(--cream-50); }
.hero--dark h1 { color: var(--cream-50); }
.hero__grid { display: grid; gap: 2.2rem; align-items: center; }
.hero__subtitle { font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--gold-300); margin: 0 0 1.2rem; }
.cover { display: block; width: min(15rem, 62vw); margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow); }
.cover--lg { width: min(21rem, 78vw); }
@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: 1.25fr 0.75fr; }
  .cover { width: 100%; max-width: 20rem; }
}

/* ---------- Tarjetas y cuadrículas ---------- */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
/* Compra del kit con PayPal y canales externos (p. ej. impreso en Amazon) lado a lado */
.buy-layout { display: grid; gap: 1.2rem; align-items: start; }
.buy-layout__side { display: grid; gap: 1.2rem; }
@media (min-width: 62rem) { .buy-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: 0.88rem; color: var(--muted); margin-top: auto; padding-top: 0.8rem; }
.card__foot { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.h3 { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.25; font-weight: 600; color: var(--navy-800); }
.h4 { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.3; font-weight: 600; color: var(--navy-800); margin: 0 0 0.4rem; }
.card img.card__img { border-radius: var(--radius-sm); margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--cream-100); color: var(--navy-800); border: 1px solid var(--sand-200); }
.badge--book { background: #e4edf6; border-color: #b9cde0; color: #17304a; }
.badge--complement { background: #f3e9d3; border-color: #dcc79b; color: #5b3f0a; }
.badge--draft { background: #fff1c2; border-color: #d4b24a; color: #4d3a00; }

.quote { margin: 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--gold-500); background: rgba(255, 255, 255, 0.06); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-serif); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.45; }
.section--tint .quote, .section:not(.section--dark) .quote { background: #fff; color: var(--navy-800); }
.quote cite { display: block; font-family: var(--font-sans); font-style: normal; font-size: 0.85rem; margin-top: 0.7rem; color: var(--muted); }
.section--dark .quote cite { color: var(--sand-200); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--gold-400); box-shadow: inset 0 0 0 4px var(--cream-50); outline: 2px solid var(--gold-500); }

/* ---------- Avisos ---------- */
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; border: 1px solid var(--sand-200); background: #fff; margin: 1.2rem 0; }
.notice--info { background: #eaf1f8; border-color: #b9cde0; }
.notice--warn { background: #fff6dd; border-color: #d9b44a; }
.notice--danger { background: #fdeaea; border-color: #d99; color: #5c1010; }
.notice--ok { background: #e6f4ec; border-color: #9fcdb0; color: #123d27; }
.notice--help { background: #eef1f6; border-color: #c4cddb; }
.notice strong { color: inherit; }
.placeholder { background: #fff1c2; padding: 0 0.3rem; border-radius: 4px; font-weight: 700; color: #4d3a00; }

/* ---------- Prosa ---------- */
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.6rem 0; padding: 0.2rem 1.3rem; border-left: 4px solid var(--gold-500); font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy-800); }
.prose hr { border: 0; border-top: 1px solid var(--sand-200); margin: 2.2rem 0; }
.prose img, .md-figure img { border-radius: var(--radius-sm); }
.md-figure { margin: 1.6rem 0; }
.prose code { background: var(--cream-100); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--sand-200); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-700); }
.faq details[open] summary::after { content: "−"; }
.faq .faq__body { padding: 0 1.2rem 1rem; color: var(--ink); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--navy-800); }
.field .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field input[type="number"], .field input[type="search"], .field input[type="datetime-local"], .field select, .field textarea, .input {
  width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 2px solid #9aa9ba; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(28, 58, 90, 0.25); outline-offset: 1px; }
.field--check { display: flex; gap: 0.7rem; align-items: flex-start; }
.field--check input { width: 1.3rem; height: 1.3rem; margin-top: 0.25rem; accent-color: var(--navy-700); flex: none; }
.field--check label { margin: 0; font-weight: 400; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--error); }
.error-text { color: var(--error); font-weight: 600; font-size: 0.95rem; margin-top: 0.3rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 14rem; }
.newsletter { background: var(--navy-800); color: var(--cream-50); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); }
.newsletter h2, .newsletter h3 { color: var(--cream-50); }
.newsletter .field label { color: var(--cream-50); }
.newsletter .field input { border-color: var(--gold-300); }
.newsletter .hint, .newsletter .field--check label { color: var(--sand-200); }
.newsletter a { color: var(--gold-300); }
.newsletter .error-text { color: #ffb3b3; }

/* ---------- Blog ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pills a { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--sand-200); background: #fff; text-decoration: none; font-size: 0.95rem; color: var(--navy-800); }
.pills a[aria-current="true"], .pills a:hover { background: var(--navy-800); color: var(--cream-50); border-color: var(--navy-800); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.article-head { max-width: var(--prose); margin-inline: auto; }
.article-meta { color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.article-cover { border-radius: var(--radius); margin: 1.6rem 0; width: 100%; }
.cta-box { margin: 2.6rem 0; padding: 1.6rem; border-radius: var(--radius); background: var(--cream-100); border: 1px solid var(--sand-200); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: var(--sand-200); padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--gold-300); }
.site-footer h2 { font-size: 1rem; color: var(--cream-50); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { color: var(--cream-50); font-family: var(--font-serif); font-size: 1.25rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__legal { border-top: 1px solid var(--navy-700); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.88rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-300); text-decoration: underline; cursor: pointer; }

/* ---------- Cookies ---------- */
.consent { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 90; background: var(--navy-900); color: var(--cream-50); border: 2px solid var(--gold-400); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); max-width: 44rem; margin-inline: auto; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.8rem; font-size: 0.97rem; }
.consent a { color: var(--gold-300); }
.consent .btn-row { margin-top: 0.4rem; }

/* ---------- Herramientas ---------- */
.tool-layout { display: grid; gap: 2rem; }
.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.step-list li { counter-increment: step; padding-left: 2.6rem; position: relative; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy-800); color: var(--cream-50); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.tool-panel { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm); }
.tool-panel + .tool-panel { margin-top: 1.2rem; }
.columns3 { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.columns3 > .tool-panel { margin-top: 0; min-width: 0; }
@media (min-width: 62rem) { .columns3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.list-editor { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.list-editor li { display: flex; gap: 0.5rem; align-items: center; min-width: 0; }
.list-editor input[type="text"], .list-editor input[type="number"] { flex: 1; min-width: 0; font: inherit; padding: 0.55rem 0.7rem; border: 2px solid #9aa9ba; border-radius: var(--radius-sm); }
.list-editor input[type="number"] { flex: 0 1 6.5rem; }
.icon-btn { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--sand-200); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--navy-800); }
.icon-btn:hover { border-color: var(--error); color: var(--error); }
.totals { font-weight: 700; color: var(--navy-800); }
.saved-note { font-size: 0.9rem; color: var(--muted); }
.privacy-switch { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; background: var(--cream-100); border-radius: var(--radius-sm); border: 1px dashed var(--gold-500); }
.privacy-switch input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--navy-700); }
.week-grid { display: grid; gap: 0.8rem; margin-bottom: 0.4rem; }
.week-grid > .tool-panel { margin-top: 0; min-width: 0; }
.week-grid .field--check { margin-top: 0.7rem; }
@media (min-width: 62rem) { .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
[data-tool="weekly"] .tool-panel > .h3 { margin-top: 1.6rem; }
[data-tool="weekly"] .tool-panel > .h3:first-child { margin-top: 0; }
@media (max-width: 47.99rem) {
  [data-tool="weekly"] .list-editor li { flex-wrap: wrap; row-gap: 0.4rem; }
  [data-tool="weekly"] .list-editor li input[type="text"] { flex: 1 1 100%; }
}
.challenge-day { display: grid; gap: 0.4rem; }
.challenge-day label { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.challenge-day input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; accent-color: var(--navy-700); flex: none; }
.progress { height: 0.7rem; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold-500); width: 0; transition: width 0.3s ease; }
.breath { display: grid; place-items: center; gap: 1rem; padding: 1rem 0; }
.breath__circle { width: 9rem; height: 9rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-500)); display: grid; place-items: center; font-weight: 700; color: var(--navy-900); }
.breath__circle.is-in { transform: scale(1.18); transition: transform 4s ease-in-out; }
.breath__circle.is-out { transform: scale(0.85); transition: transform 6s ease-in-out; }

/* ---------- Rueda ---------- */
.wheel { display: grid; gap: 1.6rem; }
@media (min-width: 62rem) { .wheel { grid-template-columns: 1.05fr 0.95fr; align-items: start; } .wheel__chart { position: sticky; top: 5.5rem; } }
.wheel__chart { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 0.8rem; box-shadow: var(--shadow-sm); }
.wheel svg { display: block; width: 100%; height: auto; }
.wheel-ring { fill: none; stroke: #c9d2dc; stroke-width: 1; }
.wheel-ring--5 { stroke: #8fa0b3; stroke-width: 1.6; }
.wheel-ring--10 { stroke: #5b7088; stroke-width: 2; }
.wheel-axis { stroke: #a8b5c4; stroke-width: 1; }
.wheel-ringlabel { font: 600 10px var(--font-sans); fill: #556577; text-anchor: middle; }
.wheel-label { font: 700 15px var(--font-sans); fill: var(--navy-800); }
.wheel-poly { fill: rgba(196, 154, 85, 0.35); stroke: var(--gold-700); stroke-width: 3; stroke-linejoin: round; }
.wheel-dot { fill: var(--navy-800); stroke: #fff; stroke-width: 3; cursor: grab; }
.wheel-dot--untouched { fill: #fff; stroke: var(--navy-800); stroke-width: 3; }
.wheel-dot:focus-visible { outline: 3px solid var(--gold-700); outline-offset: 3px; }
.wheel-dot--want { stroke: var(--gold-700); stroke-width: 5; }
.dim { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.dim__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dim__name { font-weight: 700; color: var(--navy-800); font-size: 1.05rem; }
.dim__score { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--navy-800); min-width: 3rem; text-align: right; }
.dim__score.is-empty { color: var(--muted); font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; }
.dim__q { font-size: 0.93rem; color: var(--muted); margin: 0.1rem 0 0.5rem; }
.dim input[type="range"] { width: 100%; accent-color: var(--navy-700); height: 2rem; }
.dim__scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.dim__want { margin-top: 0.4rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.dim__want input { width: 1.2rem; height: 1.2rem; accent-color: var(--gold-700); }
.exercise { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 0.8rem; }
.exercise h4 { margin-bottom: 0.3rem; }
.exercise ol { padding-left: 1.2rem; margin: 0.5rem 0; }
.exercise__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--muted); }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.summary-table th, .summary-table td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--sand-200); }
.summary-table th { color: var(--navy-800); }

/* ---------- Instalador y errores ---------- */
.bare { min-height: 100vh; background: var(--cream-100); padding: 2rem 0; }
.req-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.req-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--sand-200); display: flex; justify-content: space-between; gap: 1rem; }
.ok { color: var(--success); font-weight: 700; }
.fail { color: var(--error); font-weight: 700; }
.error-page { text-align: center; padding: clamp(3rem, 10vw, 7rem) 0; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--gold-500); margin: 0; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}

/* ---------- Impresión (informe de la rueda, plantillas) ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .consent, .no-print, .skip-link, .nav-toggle, .btn, .btn-row, .wheel__controls, .dim__want, .newsletter { display: none !important; }
  .section, .hero { padding: 0.6rem 0; }
  .container, .narrow { width: 100%; }
  .card, .tool-panel, .exercise, .dim { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block !important; }
  .wheel { display: block; }
  .wheel__chart { position: static; border: 0; box-shadow: none; }
  .wheel svg { max-width: 15cm; margin: 0 auto; }
  /* Las herramientas gratuitas no se imprimen: la versión para imprimir va en el kit y en la membresía. */
  [data-tool], #wheel-app, .wheel { display: none !important; }
  .print-tool-notice { display: block !important; border: 1px solid #000; padding: 0.6rem; margin: 0.6rem 0; }
}
.print-only { display: none; }
.print-tool-notice { display: none; }

/* ---------- Barras de resumen ---------- */
.bar { background: var(--sand-200); border-radius: 6px; height: 0.9rem; min-width: 5rem; }
.bar > span { display: block; height: 100%; background: var(--navy-700); border-radius: 6px; width: 0; }
.bar--gold > span { background: var(--gold-500); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; }

.nav a.btn { color: var(--cream-50); }
.nav a.btn:hover { background: var(--navy-900); color: var(--cream-50); }
.nav a.btn[aria-current="page"] { box-shadow: none; }
.section--dark a.btn--gold, .site-footer a.btn--gold { color: var(--navy-900); }
.section--dark a.btn--primary { background: var(--gold-400); color: var(--navy-900); }
#wheel-chart { aspect-ratio: 720 / 680; width: 100%; }

/* Datos opcionales para la factura (compra directa) */
.billing-fields { border: 1px dashed var(--sand-200); border-radius: var(--radius-sm); padding: 0.8rem 1rem 1rem; margin: 0 0 1rem; min-width: 0; }
.billing-fields legend { font-weight: 700; padding: 0 0.4rem; }
.billing-fields .hint { font-weight: 400; font-size: 0.9rem; }
.billing-row { display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .billing-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.billing-fields p { margin: 0.5rem 0 0; font-size: 0.9rem; }

/* Formularios dentro de secciones oscuras: etiquetas legibles (antes el texto de aceptación era invisible) */
.section--dark .field label, .section--dark .field .label, .section--dark .billing-fields legend { color: var(--cream-50); }
.section--dark .field--check label { color: var(--cream-50); }
.section--dark .billing-fields { border-color: var(--sand-200); }
.section--dark .field--check input { accent-color: var(--gold-300); }

/* ---------- Reconocimientos de las herramientas ---------- */
.tool-credits { margin: 1.6rem 0; padding-top: 1rem; border-top: 1px solid var(--sand-200); }
.tool-credits p.small { font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.5rem; color: var(--slate-700); }
.tool-credits p.muted { color: var(--muted); }

/* Listas de descargas */
.plain-list { list-style: none; padding: 0; margin: 1rem 0; }
.plain-list li { margin: 0 0 0.9rem; }

/* Lista de datos (pagos manuales) */
dl.kv{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1rem;margin:1rem 0}
dl.kv dt{font-weight:600}
dl.kv dd{margin:0;word-break:break-word}
@media (max-width:480px){dl.kv{grid-template-columns:1fr}dl.kv dd{margin-bottom:.4rem}}

/* Aviso del webinario (portada, libro y talleres) */
.notice--banner{margin:0;border-radius:0;text-align:center}
.notice--banner p{margin:0}
