/* Escaparate oscuro: producto sobre cristal, contenido en paneles que se revelan. */
:root {
  --bg: #000;
  --surface: #0e0e10;
  --surface-2: #1b1b1e;
  --text: #f5f5f7;
  --muted: #8e8e93;
  --hair: rgba(255, 255, 255, .09);
  --red: #e5232c;
  --red-text: #ff5a60;
  --yellow: #ffd60a;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: max(16px, 4vw); --box-gutter: max(26px, 5vw);
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--yellow); color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Barra superior */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
  margin-left: -20px;
}
@media (max-width: 900px) { .brand { margin-left: -4px; } }
.brand-mark { width: 18px; height: 24px; flex: none; fill: var(--red); filter: drop-shadow(0 0 8px rgba(229, 35, 44, .45)); transition: transform .3s ease; }
.brand-text {
  display: flex; align-items: baseline; gap: .38em; white-space: nowrap;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18);
  font-size: 14px; font-weight: 700; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase;
}
.brand-text .red { color: var(--red); font-weight: 800; }
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-6deg); }
/* Botones de cristal con brillo en los colores del sitio (rojo, carmesí, plata, amarillo) */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a {
  position: relative; isolation: isolate;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .01em;
  color: #e5e5ea; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.9);
  transition: color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.nav-links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), #e5232c, #7a0f14, #3a3a3e, #d9d9de, #ffd60a, #ff7a2e, #e5232c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .7;
  animation: iri 7s linear infinite;
}
.nav-links a::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--ang) at 30% 0%, rgba(229,35,44,.2), rgba(122,15,20,.14), rgba(255,255,255,.06), rgba(255,214,10,.14), rgba(255,122,46,.12), rgba(229,35,44,.2));
  mix-blend-mode: screen;
  opacity: .55;
  animation: iri 7s linear infinite;
  transition: opacity .3s ease;
}
.nav-links a:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.35), 0 10px 22px -8px rgba(229,35,44,.5); }
.nav-links a:hover::after { opacity: 1; }
.nav-links a:hover::before { opacity: 1; }
/* Botones de compra: mismo cristal en movimiento, pero en verde (el color de «comprar») */
.nav-links a.nav-buy { color: #eafff0; background: linear-gradient(180deg, rgba(48,209,88,.22), rgba(48,209,88,.08)); }
.nav-links a.nav-buy::before { background: conic-gradient(from var(--ang), #30d158, #0a7a35, #1f3d2a, #b8f5c8, #34c7a0, #30d158); opacity: .9; }
.nav-links a.nav-buy::after { background: conic-gradient(from var(--ang) at 30% 0%, rgba(48,209,88,.24), rgba(10,122,53,.14), rgba(255,255,255,.06), rgba(52,199,160,.16), rgba(48,209,88,.24)); }
.nav-links a.nav-buy:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.35), 0 10px 22px -8px rgba(48,209,88,.55); }
.nav-buy-pair { display: flex; gap: 8px; }
.nav-links .nav-buy-pair a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 9px; font-size: 11px; }
.nav-buy .flag { width: 14px; height: 9.5px; border-radius: 2px; flex: none; box-shadow: 0 0 0 .5px rgba(255,255,255,.25); }
@keyframes iri { to { --ang: 360deg; } }
.exit-wrap { position: relative; }
.menu-btn { display: none; }
.x-short { display: none; }
.exit-hint { z-index: 5; }
.exit {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--sans);
  color: #000; background: var(--yellow);
  border: 0; border-radius: 999px;
  padding: 8px 14px 8px 11px; cursor: pointer;
  white-space: nowrap;
}
.exit svg { width: 12px; height: 12px; stroke: #000; stroke-width: 2.4; stroke-linecap: round; }
.exit:hover { filter: brightness(1.08); }
.exit-hint {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 250px;
  padding: 12px 14px;
  background: var(--text); color: #000;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  font-size: 13px; line-height: 1.4; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
  animation: hint-in .4s ease both;
}
.exit-hint::before {
  content: ""; position: absolute; top: -8px; right: 28px;
  width: 12px; height: 12px; background: var(--text);
  border-left: 2px solid var(--yellow); border-top: 2px solid var(--yellow);
  transform: rotate(45deg); border-radius: 2px;
}
@keyframes hint-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Portada */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(16px, 2vw, 28px) var(--gutter) clamp(8px, 1vw, 14px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  position: relative;
}
.hero-text { min-width: 0; margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(30px, 3.9vw, 52px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .l2 { color: var(--red); font-size: 1.28em; letter-spacing: -.03em; }
.subtitle {
  margin-top: 20px;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--text);
  max-width: 30ch;
}
.hook {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 44ch;
}
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.15;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn small { font-size: 11px; font-weight: 400; opacity: .7; }
/* Botones al estilo de compra de Amazon (solo color y forma, sin logotipo) */
.btn-amz {
  --top: #ffe766; --bot: #f5c400; --edge: #b88f00;
  position: relative;
  background: linear-gradient(180deg, var(--top), var(--bot));
  color: #0f1111;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -2px 0 rgba(0,0,0,.08),
    0 4px 0 var(--edge),
    0 10px 18px -6px rgba(0,0,0,.75);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn-amz::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-amz:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(0,0,0,.08), 0 5px 0 var(--edge), 0 14px 22px -6px rgba(0,0,0,.8); }
.btn-amz:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 0 var(--edge), 0 4px 8px -4px rgba(0,0,0,.7); }
.btn-amz-alt { --top: #ffc061; --bot: #f5940f; --edge: #a95f00; }
.btn-amz .btn-row, .btn-amz small { position: relative; z-index: 1; }
.btn-amz small { color: #0f1111; opacity: .65; }
.btn-row { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn-row .flag { margin-right: 3px; }
.buy { flex-wrap: nowrap; }
.buy .btn { padding: 8px 18px; font-size: 14px; min-height: 46px; }
.btn .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.btn[aria-disabled="true"] { cursor: default; }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.soon { margin-top: 30px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.soon + .buy { margin-top: 12px; }
/* «¡Próximamente!» centrado sobre los dos botones de Amazon */
.buy-block { width: fit-content; max-width: 100%; }
/* Los dos botones juntos miden lo mismo que «EL JUEGO INFALIBLE» (app.js pone --title-w) */
.hero .buy-block { width: var(--title-w, fit-content); }
.hero .buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero .buy .btn { min-width: 0; padding: 8px 10px; font-size: 13.5px; }
.hero .buy .btn-row { gap: 4px; }
.hero .buy.compact .long { display: none; }
.hero .buy.tiny .btn { padding: 8px 6px; font-size: 12.5px; }
.hero .buy.tiny .flag { width: 17px; height: 12px; margin-right: 1px; }
.buy-block .soon, .buy-block .note { text-align: center; }
#comprar { scroll-margin-top: 110px; }

.hero { overflow-x: clip; }
.hero-book {
  order: -1;
  position: relative;
  justify-self: center;
  display: flex; flex-direction: column; align-items: center;
  --w: 270px;
}
@media (min-width: 901px) { .hero-book { margin-top: -24px; } }
.hero-book::before {
  content: "";
  position: absolute; inset: -6% -40% 30%;
  background: radial-gradient(closest-side, rgba(229, 35, 44, .2), rgba(229, 35, 44, 0));
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* Libro 3D: el ángulo (--ry) lo mueve app.js con el scroll */
.book3d {
  --h: calc(var(--w) * 1.4187);
  --d: calc(var(--w) * .078);
  --ry: 28deg;
  --dim-front: 0;
  --dim-back: 0;
  position: relative;
  width: var(--w);
  height: calc(var(--h) * 1.06);
}
.stage {
  position: absolute; left: 0; top: 0;
  width: var(--w); height: var(--h);
  perspective: calc(var(--w) * 3.2);
  perspective-origin: 50% calc(var(--h) * .25);
}
.b3 {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry));
}
.f { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.f.front, .f.back, .f.shade-front { left: 0; top: 0; width: var(--w); height: var(--h); max-width: none; }
.f.front { transform: translateZ(calc(var(--d) / 2)); }
.f.shade-front {
  transform: translateZ(calc(var(--d) / 2 + .5px));
  background:
    linear-gradient(90deg, rgba(0,0,0,.5) 0, rgba(255,255,255,.14) 1.4%, rgba(0,0,0,.2) 3%, rgba(0,0,0,0) 6%),
    linear-gradient(110deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%),
    rgba(0,0,0, var(--dim-front));
}
.f.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); filter: brightness(calc(1 - var(--dim-back))); }
.f.spine {
  top: 0; left: calc((var(--w) - var(--d)) / 2);
  width: var(--d); height: var(--h); max-width: none;
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  filter: brightness(.8);
}
.f.pages {
  top: 1%; left: calc((var(--w) - var(--d)) / 2);
  width: calc(var(--d) - 2px); height: 98%;
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 2px));
  background: repeating-linear-gradient(90deg, #ece7dc 0 1px, #cfc9bb 1px 2px);
}
.f.top, .f.bottom {
  left: 0; top: calc((var(--h) - var(--d)) / 2);
  width: calc(var(--w) - 2px); height: calc(var(--d) - 2px);
  background: repeating-linear-gradient(0deg, #e6e1d5 0 1px, #c9c3b5 1px 2px);
}
.f.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.f.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 1px)); }

.flip {
  margin-top: 6px;
  font: 600 9.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  position: relative;
}
.flip:hover { color: var(--text); border-color: rgba(255,255,255,.25); }

/* Cinta de advertencia: la frase de la contraportada corre despacio sobre una banda amarilla */
.tape-wrap { overflow: hidden; padding-block: calc(14px + 1.2vw); }
.tape {
  margin: 0 -4%;
  background: var(--yellow);
  color: #000;
  transform: rotate(-1.2deg);
  border-block: 3px solid #000;
  box-shadow: 0 0 0 1px var(--yellow);
  overflow: hidden;
  padding-block: 7px;
}
.tape-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.tape-group { display: flex; align-items: center; }
.tape-item {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tape-sep {
  width: 7px; height: 7px; margin-inline: 18px;
  background: var(--red); border-radius: 50%;
  flex: none;
}
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; justify-content: center; width: 100%; }
  .tape-group[aria-hidden="true"], .tape-group .tape-item[aria-hidden="true"], .tape-group .tape-sep { display: none; }
  .tape-item { white-space: normal; text-align: center; padding-inline: 16px; }
}

/* El libro: pestañas */
.book { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(8px, 1.9vw, 24px); }
.book h2, .help-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
}
.book h2, .help-title { text-align: center; }
.help-title { margin: 0 auto; }
/* Encabezado de sección */
.sec-head { position: relative; text-align: center; padding-top: 16px; }
.sec-head::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40%;
  width: min(560px, 90%); height: 220px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(229,35,44,.16), rgba(229,35,44,0));
  pointer-events: none;
}
.kicker {
  display: flex; justify-content: center; align-items: center; gap: 16px; white-space: nowrap;
  font-size: clamp(16px, 1.7vw, 22px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-text); margin-bottom: 16px;
}
.kicker::before, .kicker::after { content: ""; flex: 0 1 300px; min-width: 24px; height: 1px; transform: scaleY(.6); background: linear-gradient(90deg, rgba(229,35,44,0), rgba(229,35,44,.35) 55%, rgba(229,35,44,.75)); }
.kicker::after { transform: scale(-1, .6); }
.sec-head h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.sec-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--red); letter-spacing: -.02em; padding-right: .04em; }
.sec-lead { color: #a1a1a6; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; max-width: 70ch; margin: 14px auto 0; text-wrap: balance; }
.sec-lead b { color: var(--text); font-weight: 600; }
.sec-lead span { display: block; margin-top: 4px; }
/* Variante de Ayuda: amarillo de la tarjeta en lugar de rojo */
.sec-head--help { margin-bottom: 30px; }
.sec-head--help .sec-lead { max-width: 80ch; }
.sec-head--help::before { background: radial-gradient(closest-side, rgba(255,214,10,.10), rgba(255,214,10,0)); }
.sec-head--help .kicker { color: var(--yellow); }
.sec-head--help .kicker::before, .sec-head--help .kicker::after { background: linear-gradient(90deg, rgba(255,214,10,0), rgba(255,214,10,.3) 55%, rgba(255,214,10,.7)); }
.sec-head--help h2 em { color: var(--yellow); }
.help-sub { text-align: center; color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0 auto 28px; text-wrap: balance; }
.tabs {
  position: relative;
  display: flex; width: max-content; max-width: 100%;
  margin: 34px auto 0;
  position: relative; z-index: 2;
  padding: 5px; gap: 2px;
  background: linear-gradient(180deg, #1c1c1f, #121214);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 14px 34px -14px rgba(0,0,0,.9);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
/* Mismo estilo que los botones del menú de arriba, pero quieto: borde de cristal en los colores del sitio */
.tabs { border-color: transparent; isolation: isolate; }
.tabs::before, .tab-glider::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tabs::before { background: linear-gradient(100deg, rgba(229,35,44,.75), rgba(122,15,20,.6) 22%, rgba(140,140,146,.45) 48%, rgba(255,214,10,.6) 76%, rgba(255,122,46,.7)); opacity: .7; }
.tab-glider::before { background: conic-gradient(from 200deg, #e5232c, #7a0f14, #3a3a3e, #d9d9de, #ffd60a, #ff7a2e, #e5232c); opacity: .85; }
.tab-glider::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 200deg at 30% 0%, rgba(229,35,44,.22), rgba(122,15,20,.14), rgba(255,255,255,.06), rgba(255,214,10,.14), rgba(255,122,46,.12), rgba(229,35,44,.22));
  mix-blend-mode: screen; opacity: .6;
}
/* Índice en verde y Autor en azul: el mismo brillo en movimiento de los botones de compra */
.tab-glider[data-tone="t-contenido"]::before { background: conic-gradient(from var(--ang), #30d158, #0a7a35, #1f3d2a, #b8f5c8, #34c7a0, #30d158); opacity: .95; animation: iri 7s linear infinite; }
.tab-glider[data-tone="t-contenido"]::after { background: conic-gradient(from var(--ang) at 30% 0%, rgba(48,209,88,.26), rgba(10,122,53,.14), rgba(255,255,255,.06), rgba(52,199,160,.16), rgba(48,209,88,.26)); animation: iri 7s linear infinite; }
.tab-glider[data-tone="t-contenido"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.9), 0 10px 22px -10px rgba(48,209,88,.55); }
.tab-glider[data-tone="t-autor"]::before { background: conic-gradient(from var(--ang), #0a84ff, #0a3d7a, #1c2a3d, #b8dcff, #40c8e0, #0a84ff); opacity: .95; animation: iri 7s linear infinite; }
.tab-glider[data-tone="t-autor"]::after { background: conic-gradient(from var(--ang) at 30% 0%, rgba(10,132,255,.26), rgba(10,61,122,.14), rgba(255,255,255,.06), rgba(64,200,224,.16), rgba(10,132,255,.26)); animation: iri 7s linear infinite; }
.tab-glider[data-tone="t-autor"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.9), 0 10px 22px -10px rgba(10,132,255,.55); }
.t-short { display: none; }
/* Píldora de vidrio que se desliza bajo la pestaña activa (la mueve app.js) */
.tab-glider {
  position: absolute; top: 5px; left: 5px; width: 0; height: calc(100% - 10px);
  border-radius: 999px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 6px 16px -8px rgba(0,0,0,.9),
    0 10px 22px -10px rgba(229, 35, 44, .5);
  transition: left .45s cubic-bezier(.3,1.25,.4,1), top .45s cubic-bezier(.3,1.25,.4,1), width .45s cubic-bezier(.3,1.25,.4,1);
  pointer-events: none;
}
.tabs [role="tab"] {
  position: relative; z-index: 1;
  font: 600 12.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  background: transparent;
  border: 0; border-radius: 999px;
  padding: 11px 19px;
  cursor: pointer; white-space: nowrap;
  transition: color .3s ease, background-color .3s ease;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
/* Sin JavaScript (no hay píldora): la pestaña activa se marca sola */
.tabs:not(.has-glider) [role="tab"][aria-selected="true"] { background: rgba(255,255,255,.18); }

.panel {
  margin-top: -25px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 44px);
  padding-top: calc(clamp(14px, 2vw, 24px) + 25px);
  min-height: 460px;
}
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.panel-intro { text-align: center; color: #c7c7cc; font-size: 16px; line-height: 1.5; max-width: none; margin: 0 auto calc(clamp(14px, 2vw, 24px) + 1px); text-wrap: balance; }
.panel-intro b { display: block; color: var(--text); font-weight: 700; margin-top: 6px; }
.panel-intro span { display: block; }
.foot-note { color: var(--muted); font-size: 14px; margin-top: 24px; text-align: center; }

/* Frases: conversación y decodificador */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 440px);
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
/* Teléfono: marco de titanio color vino, isla, barra de estado y Mensajes en modo oscuro */
.phone {
  position: relative;
  zoom: .75; /* 25 % más chico, mismas proporciones */
  width: 340px; max-width: none;
  justify-self: center;
  padding: 11px;
  border-radius: 58px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,.18)),
    linear-gradient(145deg, #7b3440 0%, #4e1a23 28%, #2f0d14 55%, #5a222c 80%, #7b3440 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 0 0 2.5px rgba(40,8,14,.9),
    inset 0 2px 3px rgba(255,255,255,.25),
    0 40px 90px -40px rgba(229, 35, 44, .5),
    0 30px 60px -30px rgba(0,0,0,.9);
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 47px;
  background: #000;
  box-shadow: 0 0 0 3px #050505, inset 0 0 0 1px rgba(255,255,255,.04);
  padding-bottom: 22px;
}
/* Botones laterales */
.ph-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3a1018, #8a4250 55%, #4a1820); }
.ph-action { left: -3px; top: 118px; height: 30px; }
.ph-volup { left: -3px; top: 168px; height: 52px; }
.ph-voldn { left: -3px; top: 232px; height: 52px; }
.ph-power { right: -3px; top: 190px; height: 82px; transform: scaleX(-1); }
.ph-cam { right: -3px; top: 400px; height: 46px; transform: scaleX(-1); border-radius: 2px; opacity: .9; }
/* Barra de estado e isla */
.ph-status {
  position: relative; height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8% 0 11%;
  color: #fff;
  background: #121214;
}
.ph-time { font: 600 15px/1 var(--sans); letter-spacing: -.01em; }
.ph-island { position: absolute; left: 50%; top: 11px; width: 33%; max-width: 104px; height: 31px; transform: translateX(-50%); border-radius: 20px; background: #000; box-shadow: 0 0 0 1px #0d0d0d; }
.ph-island::after { content: ""; position: absolute; right: 12px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550, #0a0c14 70%); }
.ph-icons { display: flex; align-items: center; gap: 4px; }
@media (max-width: 420px) { .ph-island { width: 28%; height: 28px; top: 12px; } .ph-status { padding-right: 6%; } .ph-icons svg:first-child { width: 16px; } .ph-batt { width: 23px; } }
.ph-icons svg { fill: #fff; display: block; }
.ph-batt { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.45); padding: 1.5px; }
.ph-batt span { display: block; height: 100%; width: 78%; border-radius: 2px; background: #fff; }
.ph-batt::after { content: ""; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,.45); }
/* Encabezado de la conversación */
.phone-head {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 2px 18px 10px;
  background: linear-gradient(180deg, #121214, #0d0d0f);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #0a84ff;
}
.ph-back { margin-top: 14px; }
.ph-video { margin-top: 15px; }
.ph-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 600 20px/1 var(--sans); color: #fff;
  background: linear-gradient(180deg, #a3a3a9, #6c6c72);
}
.ph-name { font-size: 11.5px; color: #f2f2f7; letter-spacing: .01em; }
.ph-name i { font-style: normal; color: #8e8e93; margin-left: 1px; }
.thread {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 16px 14px;
  max-height: 512px; overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px);
  mask-image: linear-gradient(to bottom, transparent, #000 14px);
}
.thread::-webkit-scrollbar { display: none; }
.thread-wrap { position: relative; }
.scroll-ind {
  position: absolute; right: 4px; top: 0;
  width: 3px; height: 40px; border-radius: 3px;
  background: rgba(255,255,255,.5);
  opacity: .35;
  transition: opacity .4s ease;
  pointer-events: none;
}
.scroll-ind.active { opacity: .9; transition-duration: .1s; }
.stamp { align-self: center; font-size: 11px; font-weight: 500; color: #8e8e93; margin: 10px 0 4px; }
/* Burbujas con colita, como en Mensajes */
.msg {
  position: relative;
  max-width: 78%;
  margin: 0 0 2px;
  padding: 8px 13px;
  border: 0; border-radius: 19px;
  font: inherit; font-size: 15px; line-height: 1.32; text-align: left;
}
.msg.in::before, .msg.out::before, .msg.in::after, .msg.out::after { content: ""; position: absolute; bottom: 0; height: 17px; pointer-events: none; }
.msg.out { align-self: flex-end; background: #0a84ff; color: #fff; }
.msg.out::before { right: -7px; width: 20px; background: inherit; border-bottom-left-radius: 16px 14px; }
.msg.out::after { right: -10px; width: 10px; background: #000; border-bottom-left-radius: 10px; }
.msg.in {
  align-self: flex-start; background: #262628; color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.msg.in::before { left: -7px; width: 20px; background: inherit; border-bottom-right-radius: 16px 14px; }
.msg.in::after { left: -10px; width: 10px; background: #000; border-bottom-right-radius: 10px; }
.msg.in:hover { background: #333336; }
.msg.in[aria-pressed="true"] { background: #8e1a22; box-shadow: 0 6px 22px -8px rgba(229,35,44,.8); }
/* «Leído», como el aviso de lectura bajo tu mensaje */
.msg.sys {
  align-self: flex-end; background: transparent; color: #8e8e93;
  font-size: 11px; font-weight: 500; padding: 0 2px; margin: -1px 2px 4px;
  border-radius: 4px; cursor: pointer;
  text-decoration: underline dotted rgba(142,142,147,.6); text-underline-offset: 3px;
}
.msg.sys:hover { color: #c7c7cc; }
.msg.sys[aria-pressed="true"] { color: #ff5a60; text-decoration-color: #ff5a60; }
/* Barra para escribir */
.ph-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; }
.ph-plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1f1f21; color: #a1a1a6; flex: none; }
.ph-field { flex: 1; display: flex; align-items: center; justify-content: flex-end; height: 34px; padding: 0 12px 0 14px; border-radius: 18px; border: 1px solid #38383a; color: #6e6e73; font-size: 15px; }
.ph-field svg { color: #8e8e93; }
.ph-home { position: absolute; left: 50%; bottom: 8px; width: 128px; height: 5px; margin-left: -64px; border-radius: 3px; background: rgba(255,255,255,.75); }

.decoder { min-width: 0; }
.dec-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.dec-quote {
  margin: 14px 0 26px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.28;
  max-width: 22ch;
}
.q-text {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s cubic-bezier(.6,0,.2,1) .2s, color .5s ease .2s;
}
.dec-name, .dec-text { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.dec-name {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05;
  font-weight: 700; letter-spacing: -.035em;
  color: var(--red-text);
  margin-bottom: 10px;
}
.dec-text { color: #c7c7cc; font-size: 17px; max-width: 40ch; }
.decoder.on .q-text { background-size: 100% 2px; color: var(--muted); }
.decoder.on .dec-name { opacity: 1; transform: none; transition-delay: .75s; }
.decoder.on .dec-text { opacity: 1; transform: none; transition-delay: .9s; }
/* Anterior / Siguiente debajo del texto y fijos: app.js reserva la altura del texto más largo,
   así los botones no se mueven al cambiar de mensaje, fase, parte o etapa */
.decoder { display: flex; flex-direction: column; }
.decoder > * { align-self: stretch; }
.dec-nav { display: flex; justify-content: center; gap: 8px; margin-top: auto; padding-top: 28px; }
.dec-nav button {
  font: 500 13px/1 var(--sans); color: var(--text);
  background: var(--surface-2); border: 0; border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.dec-nav button:hover { background: #2a2a2e; }

/* Paneles con decodificador: ciclo, estante y línea de tiempo */
.dec-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.dec-list li {
  padding: 9px 0; border-bottom: 1px solid var(--hair);
  font-size: 15.5px; color: #d1d1d6;
  font-variant-numeric: tabular-nums;
}
.dec-list li:last-child { border-bottom: 0; }
.dec-extra {
  margin-top: 16px; padding: 12px 14px;
  background: var(--surface-2); border-radius: 12px;
  font-size: 14.5px; color: #d1d1d6; max-width: 44ch;
}
.dec-list, .dec-extra { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.decoder.on .dec-list, .decoder.on .dec-extra { opacity: 1; transform: none; transition-delay: .35s; }
[data-dec] .dec-name, [data-dec] .dec-text { transition-delay: 0s; }
.decoder.on[data-dec] .dec-name { transition-delay: .1s; }
.decoder.on[data-dec] .dec-text { transition-delay: .22s; }

/* Ciclo */
.cycle { width: 100%; max-width: 340px; justify-self: center; }
.cycle svg { width: 100%; height: auto; display: block; overflow: visible; }
.ring-track { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 30; }
/* Punto de luz que recorre el ciclo sin parar */
.orbit { pointer-events: none; } /* app.js lo hace girar, sincronizado con la gráfica */
.orbit-dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 14px var(--glow, rgba(48,209,88,.9))); }
@keyframes orbit { to { transform: rotate(360deg); } }
/* Gráfica de cómo te sientes en cada fase */
.mood { grid-column: 1 / -1; width: 100%; max-width: 820px; justify-self: center; margin-top: 0; padding: 16px 22px 14px; border-radius: 20px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.mood-sep { stroke: rgba(255,255,255,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mood-legend { display: grid; grid-template-columns: 100fr 120fr 80fr; margin-top: 8px; text-align: center; }
.mood-legend .mood-l { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--muted); opacity: .55; transition: opacity .4s ease, color .4s ease; }
.mood-legend .mood-l b { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 560px) { .mood { padding: 14px 12px 12px; } .mood-legend .mood-l { font-size: 11px; } .mood-legend .mood-l b { font-size: 8.5px; letter-spacing: .04em; } }
/* El ciclo: el texto se centra para equilibrar con el anillo y la gráfica */
#p-fases .chat-layout { row-gap: 28px; }
/* Todas las explicaciones van centradas, como el contador y los botones */
.decoder { text-align: center; }
.decoder .dec-text, .decoder .dec-quote, .decoder .dec-extra { margin-left: auto; margin-right: auto; }
.mood-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; text-align: center; }
.mood svg { display: block; width: 100%; height: 96px; overflow: visible; }
.mood-plot { position: relative; }
.mood-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--dot, rgba(229,35,44,.9)); pointer-events: none; will-change: left, top; }
.mood-base { stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.mood-seg { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .28; transition: opacity .4s ease, filter .4s ease; }
.mood-seg.m0 { stroke: #30d158; }
.mood-seg.m1 { stroke: #ff9f0a; }
.mood-seg.m2 { stroke: #e5232c; }
[data-cur="0"] .mood-seg.m0, [data-cur="1"] .mood-seg.m1, [data-cur="2"] .mood-seg.m2 { opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
[data-cur="0"] .mood-seg.m0 { color: #30d158; } [data-cur="1"] .mood-seg.m1 { color: #ff9f0a; } [data-cur="2"] .mood-seg.m2 { color: #e5232c; }
[data-cur="0"] .mood-l.l0, [data-cur="1"] .mood-l.l1, [data-cur="2"] .mood-l.l2 { opacity: 1; color: var(--text); }
[data-cur="0"] .mood-l.l0 b { color: #4ade80; } [data-cur="1"] .mood-l.l1 b { color: #ffb340; } [data-cur="2"] .mood-l.l2 b { color: #ff5a60; }
/* Semáforo: el título y el número de la fase toman el color de su fase */
#p-fases [data-cur="0"] .dec-name, #p-fases [data-cur="0"] .ring-num { color: #4ade80; fill: #4ade80; }
#p-fases [data-cur="1"] .dec-name, #p-fases [data-cur="1"] .ring-num { color: #ffb340; fill: #ffb340; }
#p-fases [data-cur="2"] .dec-name, #p-fases [data-cur="2"] .ring-num { color: #ff5a60; fill: #ff5a60; }
/* La línea de la fase elegida se dibuja otra vez */
[data-cur] .mood-seg { stroke-dasharray: 1400; stroke-dashoffset: 0; }
[data-cur="0"] .mood-seg.m0, [data-cur="1"] .mood-seg.m1, [data-cur="2"] .mood-seg.m2 { animation: draw 1.1s ease both; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
/* El arco activo late suavemente */
.arc[aria-pressed="true"] .arc-line { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { stroke-width: 29; } }
.arc { cursor: pointer; outline: none; }
.arc-hit { fill: none; stroke: transparent; stroke-width: 54; }
.arc-line { fill: none; stroke: var(--c); stroke-width: 22; stroke-linecap: butt; opacity: .38; transition: opacity .35s ease, stroke-width .35s ease; }
.arc-head { fill: var(--c); opacity: .38; transition: opacity .35s ease; }
.arc-label { font: 600 13px var(--sans); fill: var(--muted); letter-spacing: .02em; transition: fill .3s ease; }
.arc:hover .arc-line, .arc:hover .arc-head { opacity: .7; }
.arc[aria-pressed="true"] .arc-line { opacity: 1; stroke-width: 26; filter: drop-shadow(0 0 10px var(--c)); }
.arc[aria-pressed="true"] .arc-head { opacity: 1; filter: drop-shadow(0 0 10px var(--c)); }
.arc[aria-pressed="true"] .arc-label { fill: var(--text); }
.arc:focus-visible .arc-line { stroke: var(--yellow); opacity: 1; }
.ring-num { font: 700 78px var(--sans); fill: var(--text); letter-spacing: -.04em; }
.ring-cap { font: 500 13px var(--sans); fill: var(--muted); }

/* Estante con las partes del libro */
.shelf { width: 100%; max-width: 360px; justify-self: center; align-self: start; }
.shelf-books {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  height: 340px; padding-bottom: 12px;
  border-bottom: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 18px -12px rgba(0,0,0,.9);
}
.shelf-books .spine {
  --c: rgba(255,255,255,.22);
  position: relative;
  width: 58px; height: 300px;
  border: 0; border-radius: 4px 4px 2px 2px;
  padding: 14px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,0) 22%, rgba(0,0,0,.35) 100%),
    #1c1c1f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 10px 20px -8px rgba(0,0,0,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  cursor: pointer;
  color: #c7c7cc;
  transition: transform .45s cubic-bezier(.3,1.3,.4,1), box-shadow .3s ease, background-color .35s ease, color .35s ease;
}
.shelf-books .spine::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 5px; background: var(--c); transition: background-color .35s ease; }
.shelf-books .spine::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; background: var(--c); opacity: .7; transition: background-color .35s ease; }
.shelf-books .spine-num { font: 700 13px var(--sans); color: var(--muted); transition: color .35s ease; }
/* Cada lomo tiene su propio dibujo según el título */
.shelf-books .spine-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.shelf-books .spine-art svg { display: block; width: 100%; height: 100%; }
.shelf-books .spine-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.shelf-books .spine-emblem { display: block; width: 20px; height: 15px; color: rgba(255,255,255,.5); transition: color .35s ease; }
.shelf-books .spine:hover .spine-emblem, .shelf-books .spine[aria-pressed="true"] .spine-emblem { color: #fff; }
.shelf-books .spine-title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 31px;
  position: relative; z-index: 1;
  text-shadow: 0 0 6px rgba(0,0,0,.55);
}
.shelf-books .spine:hover { transform: translateY(-6px); color: #fff; }
/* Seleccionado: el lomo se vuelve rojo y sube */
.shelf-books .spine[aria-pressed="true"] {
  --c: rgba(255,255,255,.75);
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0) 22%, rgba(0,0,0,.3) 100%),
    var(--red);
  color: #fff;
  transform: translateY(-22px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 30px -10px rgba(0,0,0,.95), 0 0 30px -6px rgba(229,35,44,.7);
}
.shelf-books .spine[aria-pressed="true"] .spine-num { color: rgba(255,255,255,.85); }

/* El autor: tarjeta con cita y tres facetas (lo vivió, lo estudió, lo escribió) */
.author { width: 100%; max-width: 360px; justify-self: center; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.author-card {
  position: relative; margin: 0; overflow: hidden;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(10,132,255,.16), rgba(10,132,255,0) 60%),
    linear-gradient(180deg, #1a1a1d, #111113);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -20px rgba(0,0,0,.9);
}
.author-card::before {
  content: "«"; position: absolute; right: 14px; top: -34px;
  font: italic 600 150px/1 var(--serif); color: rgba(255,255,255,.05); pointer-events: none;
}
.author-quote { margin: 0 0 20px; font: italic 600 clamp(21px, 2vw, 24px)/1.3 var(--serif); color: var(--text); letter-spacing: -.01em; text-wrap: balance; }
.author-who { display: flex; align-items: center; gap: 12px; }
.author-who b { display: block; font-size: 15px; }
.author-who small { color: var(--muted); font-size: 11.5px; letter-spacing: .02em; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 700 11px var(--sans); letter-spacing: .06em;
  background: linear-gradient(140deg, #2c2c30, #111113);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(10,132,255,.45), 0 0 18px -4px rgba(10,132,255,.6);
}
.facets { display: flex; flex-direction: column; gap: 8px; }
.facet {
  --c: #8e8e93;
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 16px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; text-align: left; color: var(--muted);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  transition: background-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.3,1.3,.4,1), color .3s ease;
}
.facet-num { font: 700 12px var(--sans); letter-spacing: .08em; color: var(--c); width: 22px; flex: none; }
.facet-txt { font-size: 13px; }
.facet-txt b { display: block; font-size: 17px; color: var(--text); letter-spacing: -.01em; margin-bottom: 1px; }
.f-lived { --c: var(--red); }
.f-study { --c: #0a84ff; }
.f-wrote { --c: var(--yellow); }
.facet:hover { background: rgba(255,255,255,.06); }
.facet[aria-pressed="true"] {
  color: #d1d1d6; transform: translateX(6px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 24px -14px var(--c);
}
.facet[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* Ayuda: tarjeta oscura con un brillo cálido, sin deslumbrar */
.help { --help-gap: clamp(20px, 4vw, 48px); --help-pad: clamp(20px, 4vw, 44px); --help-inner: 16px; --help-box-x: 16px; }
.help { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 4vw, 48px); }
/* Las cajas grandes (pestañas y ayuda) se separan un poco más de las orillas de la pantalla */
.book, .help { padding-left: var(--box-gutter); padding-right: var(--box-gutter); }
.help-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--help-gap);
  align-items: start;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 214, 10, .10), rgba(255, 214, 10, 0) 55%),
    linear-gradient(180deg, #17171a, #0f0f11);
  color: var(--text);
  border: 1px solid rgba(255, 214, 10, .18);
  border-radius: 28px;
  padding: var(--help-pad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.9);
}
.help-card h3 { color: var(--text); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.help-intro { display: flex; flex-direction: column; gap: var(--help-inner); }
.help-intro p { font-size: 16px; margin: 0; color: #c7c7cc; }
.help-intro .num { font-weight: 700; color: var(--yellow); }
/* El título y el texto empiezan donde empieza el texto del recuadro de abajo */
.help-intro > h3, .help-intro > p:not(.tip) { padding-left: calc(var(--help-box-x) + 1px); padding-right: calc(var(--help-box-x) + 1px); }
.tip {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--hair);
  border-radius: 16px; padding: 14px var(--help-box-x);
  font-size: 14px !important; color: #aeaeb2 !important;
}
.tip b { color: var(--text); }
.help-lines {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 2px var(--help-box-x);
}
.help-lines dl { margin: 0; }
.help-lines dl > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; column-gap: 16px; row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.help-lines dt { font-weight: 500; font-size: 14px; color: #e5e5ea; display: flex; align-items: center; gap: 10px; }
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.help-lines dd { margin: 0; display: contents; }
.help-lines .num {
  grid-column: 2; grid-row: 1; text-align: right;
  font-size: 16px; font-weight: 600; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text); white-space: nowrap;
  -webkit-user-select: all; user-select: all;
}
.help-lines dd span:not(.num) { grid-column: 1 / -1; padding-left: 32px; font-size: 13px; color: var(--muted); }
.help-lines details { margin-top: 2px; }
.help-lines summary {
  cursor: pointer; list-style: none;
  padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--yellow);
}
.help-lines summary::-webkit-details-marker { display: none; }
.help-lines summary::after { content: " +"; }
.help-lines details[open] summary::after { content: " −"; }

/* Pie */
.footer { position: relative; }
.footer::before { content: ""; display: block; width: min(240px, 50%); height: 1px; margin: 0 auto; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0)); }
.footer-row {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gutter) 10px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.footer-label { font-size: 9.5px; color: #6e6e73; margin-bottom: 1px; letter-spacing: .12em; text-transform: uppercase; }
.mail { font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: -.01em; text-decoration: none; word-break: break-word; }
.mail:hover { color: var(--yellow); }
.social { display: flex; gap: 18px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.app-icon {
  width: 48px; height: 48px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 8px 20px -8px rgba(0,0,0,.9);
  transition: transform .2s ease;
}
.app:hover .app-icon { transform: translateY(-2px); }
.app-name { font-size: 11px; color: var(--muted); }
.app:hover .app-name { color: var(--text); }
.legal { text-align: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 18px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); font-size: 12px; color: #6e6e73; }

/* Tableta y móvil */
@media (max-width: 900px) {
  .exit-wrap { margin-left: auto; }
  .nav { gap: 10px; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px;
    width: 38px; height: 38px; flex: none;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    cursor: pointer;
  }
  .menu-btn span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .3s ease; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin: 0;
    padding: 16px var(--gutter) 20px;
    background: rgba(8,8,10,.97);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--hair);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav-links a { text-align: center; font-size: 15px; padding: 13px 16px; width: min(60%, 280px); }
  .nav-buy-pair { width: min(60%, 280px); gap: 8px; }
  .nav-links .nav-buy-pair a { flex: 1 1 0; width: auto; justify-content: center; font-size: 14px; padding: 12px 8px; gap: 7px; }
  .nav-buy .flag { width: 18px; height: 12px; }
  .hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; gap: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 0; margin: 0 0 24px; }
  .hero-book { order: 1; }
  .hero .subtitle { order: 2; margin-top: 4px; }
  .hero .buy-block { order: 3; margin-left: auto; margin-right: auto; }
  .hero .soon { margin-top: 22px; }
  .hero .buy { order: 3; margin-top: 10px; justify-content: center; }
  .hero .note { order: 4; }
  .hero .hook { order: 5; margin-top: 26px; }
  .subtitle, .hook { margin-left: auto; margin-right: auto; }
  .buy { justify-content: center; }
  .hero-book { --w: min(54vw, 259px); margin-bottom: 8px; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .decoder { text-align: center; }
  .decoder > * { align-self: stretch; }
  .phone { justify-self: center; }
  .shelf-books { height: 302px; }
  .shelf-books .spine { height: 262px; }
  .help-card { grid-template-columns: 1fr; }
  .help-intro { text-align: center; }
  #p-fases .cycle { order: 1; } #p-fases .mood { order: 2; } #p-fases .decoder { order: 3; }
  .help-lines summary { text-align: center; }
  .help-lines dt { font-size: 13px; gap: 8px; }
  .help-lines .num { font-size: 14.5px; }
  .help-lines .flag { width: 19px; height: 13px; }
  .help-lines dd span:not(.num) { padding-left: 27px; font-size: 12px; }
  .panel { min-height: 0; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .exit { padding: 9px 14px 9px 11px; }
  .x-long { display: none; }
  .x-short { display: inline; }
  .menu-btn { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand-text { padding-left: 7px; font-size: clamp(8.5px, 2.55vw, 11px); letter-spacing: .03em; gap: .3em; }
  .brand-mark { width: 15px; height: 20px; }
  .tabs { width: 100%; overflow: visible; }
  .tabs [role="tab"] { flex: 1 1 0; padding: 11px 4px; text-align: center; font-size: 11.5px; letter-spacing: .05em; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .shelf-books .spine { width: 48px; }
  .shelf-books { gap: 6px; }
  .long { display: none; }
  .buy { gap: 8px; width: 100%; }
  .buy .btn { flex: 1 1 0; padding: 8px 10px; }
  .hero-book { --w: min(51.75vw, 214px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab-glider { transition: none; }
  .nav-links a::before, .nav-links a::after { animation: none; }
  .tab-glider::before, .tab-glider::after { animation: none; }
  .orbit, .arc .arc-line, .mood-seg { animation: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Sin estilos en línea (la política de seguridad del sitio no los permite) */
.svg-defs { position: absolute; }
.arc-1 { --c: #30d158; } .arc-2 { --c: #ff9f0a; } .arc-3 { --c: #e5232c; }
.od0 { opacity: .25; } .od1 { opacity: .45; } .od2 { opacity: .7; }
