/* v14.css — el libro primero. Se carga al final: inicio claro, sección del libro,
   pestañas (Explora y Para tu día), encabezado que reaparece al subir y barra fija del libro. */

html {
  scroll-padding-top: 96px;
}
.skip {
  z-index: 60;
}

/* ───── Encabezado: se queda arriba; se esconde al bajar y vuelve al subir ───── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.header.is-stuck {
  box-shadow: 0 12px 30px #0000007a;
}
.header.is-away {
  transform: translateY(-105%);
}
.anchor-alias {
  display: block;
  height: 0;
}

/* ───── Inicio ───── */
.hero {
  row-gap: 34px;
}
.hero h1 + .hero-what {
  margin-top: 26px;
}
.hero-what {
  margin-bottom: 14px;
  color: #ddd3e6;
  font-size: 17px;
}
.hero-how {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border: 2px solid #faf1da59;
  border-radius: 4px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.ghost-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.art-caption {
  letter-spacing: 1px;
}
.hero-more {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-top: 22px;
  border-top: 1px solid #ffffff1a;
  color: var(--muted);
  font-size: 14px;
}
.hero-more a {
  padding-bottom: 2px;
  border-bottom: 1px solid #d5e04b59;
  color: #e6dcef;
}
.hero-more a:hover {
  color: var(--lime);
}

/* ───── Frase del inicio ───── */
.hero-quote {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label actions"
    "text actions"
    "who actions";
  column-gap: 44px;
  align-items: end;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid #ffffff1a;
}
.hq-label {
  grid-area: label;
  margin: 0 0 10px;
  color: var(--lime);
  font: 700 14px "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.hero-quote blockquote {
  grid-area: text;
  max-width: 34ch;
  margin: 0;
  color: #fff3d9;
  font: 800 clamp(24px, 2.7vw, 38px) / 1.2 "Roboto Slab", Georgia, serif;
  text-wrap: balance;
}
.hero-quote blockquote:before {
  content: "«";
  color: var(--lime);
}
.hero-quote blockquote:after {
  content: "»";
  color: var(--lime);
}
.hero-quote figcaption {
  grid-area: who;
  margin-top: 12px;
  color: #cfc4dc;
  font: 600 13px "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hq-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.hq-next {
  padding: 10px 20px;
}
.hero-quote.swap blockquote,
.hero-quote.swap figcaption {
  animation: quote-in 0.5s ease-out;
}
body.still .hero-quote.swap blockquote,
body.still .hero-quote.swap figcaption {
  animation: none;
}

/* En compu el inicio es más compacto para que la frase se vea sin bajar */
@media (min-width: 901px) {
  .hero {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 56px;
    row-gap: 24px;
  }
  .hero h1 {
    font-size: clamp(48px, 4.8vw, 80px);
  }
  .hero h1 + .hero-what {
    margin-top: 18px;
  }
  .hero-how {
    margin-bottom: 22px;
  }
  .hero-note {
    margin-top: 14px;
  }
  .hero .art-label {
    margin-bottom: 12px;
  }
  .hero .cover-window {
    width: min(100%, 320px);
  }
  .hero .art-caption {
    margin-top: 18px;
  }
  .hero-quote {
    padding-top: 20px;
  }
}

/* Inicio: frase y pregunta, mitad y mitad */
.hero-duo {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ffffff1a;
}
.hero-duo .hero-quote {
  grid-column: auto;
  grid-template-columns: 1fr;
  grid-template-areas:
    "label"
    "text"
    "who"
    "actions";
  align-content: start;
  padding-top: 22px;
  border-top: 0;
}
.hero-duo .hero-quote blockquote {
  max-width: none;
  font-size: clamp(20px, 1.85vw, 30px);
}
.hero-duo .hq-actions {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.hero-duo .hero-question {
  padding-left: 44px;
  border-left: 1px solid #ffffff1a;
}
.hero-duo .hero-quote:first-child {
  padding-right: 44px;
}
.hero-question blockquote:before,
.hero-question blockquote:after,
.question-card blockquote:before,
.question-card blockquote:after {
  content: none;
}
.hero-question blockquote {
  color: #e9f0a6;
}

/* Sección: frases | preguntas */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.duo-title {
  margin: 0 0 14px;
  font: 800 26px "Roboto Slab", Georgia, serif;
}
.duo .quote-card blockquote {
  font-size: clamp(22px, 2.3vw, 34px);
}
.question-card blockquote {
  color: #e9f0a6;
}

/* ───── Frases (sección propia) ───── */
.quotes-main .quote-card blockquote {
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.18;
  text-wrap: balance;
}

/* ───── El libro ───── */
.book-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 56px;
  align-items: start;
}
.book-pitch h2 {
  margin: 10px 0 20px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
}
.book-q {
  margin: 0 0 18px;
  color: #f6e7b8;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.4;
}
.book-pitch > p:not(.eyebrow):not(.book-q) {
  max-width: 62ch;
  color: #d8cfe2;
}
.book-gets {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.book-gets li {
  position: relative;
  max-width: 60ch;
  padding-left: 30px;
  color: #d8cfe2;
  line-height: 1.55;
}
.book-gets li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 11px;
  background: var(--lime);
  box-shadow: 2px 2px 0 #100c1d;
  transform: rotate(45deg);
}
.book-gets strong {
  color: var(--fg);
}
.book .book-buy {
  display: block;
  position: sticky;
  top: 120px;
  margin-top: 6px;
}
.book .book-buy > p:not(.eyebrow):not(.buy-note) {
  margin: 0 0 18px;
}
.book .buy-links {
  display: grid;
  gap: 10px;
}
.book .buy-links a {
  width: 100%;
  min-height: 54px;
}
.book .buy-links .primary {
  align-items: flex-start;
}
.book .buy-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.buy-note a {
  color: var(--lime);
  border-bottom: 1px solid #d5e04b66;
  overflow-wrap: anywhere;
}
.book-preview {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid #9c78eb33;
}
.book-preview-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}
.book-preview-head h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
}
.book-preview-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.book-author {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 30px;
  align-items: start;
  max-width: 880px;
  margin: 80px auto 0;
  padding: 30px;
  border: 2px solid #0f0b1a;
  border-radius: 8px;
  background: #241c37;
  box-shadow: 6px 6px 0 #100c1d;
}
.book-author .author-photo {
  width: 132px;
  height: 132px;
  margin: 0;
}
.book-author h3 {
  margin: 6px 0 10px;
  font-size: 28px;
}
.book-author p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #d8cfe2;
}
.book-author blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--yellow);
  color: #f6e7b8;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
}
.book-author cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 600 13px "DM Sans", Arial, sans-serif;
  font-style: normal;
}

/* ───── Pestañas ───── */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.tab-bar [role="tab"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 18px;
  border: 2px solid #ffffff1f;
  border-radius: 8px;
  background: #ffffff08;
  color: var(--fg);
  font: 700 17px "Roboto Slab", Georgia, serif;
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tab-bar [role="tab"] small {
  color: var(--muted);
  font: 500 13px "DM Sans", Arial, sans-serif;
}
.tab-bar [role="tab"]:hover {
  border-color: #d5e04b80;
}
.tab-bar [role="tab"][aria-selected="true"] {
  border-color: var(--lime);
  background: #d5e04b17;
  box-shadow: 4px 4px 0 #100c1d;
}
.tab-bar [role="tab"][aria-selected="true"] small {
  color: #e9e1c4;
}
.tab-bar [role="tab"]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.tab-panel[hidden] {
  display: none !important;
}
.tab-panel.journey {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #ffffff14;
  border-radius: 10px;
}
.panel-intro {
  max-width: 72ch;
  margin: 0 0 22px;
  color: #d8cfe2;
}

/* ───── Para tu día ───── */
.foryou .pv-heading {
  margin-bottom: 30px;
}
.practice-hacks summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  font: 700 15px "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.practice-hacks summary::-webkit-details-marker {
  display: none;
}
.practice-hacks summary:after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}
.practice-hacks[open] summary:after {
  content: "−";
}
.practice-hacks[open] ol {
  margin-top: 16px;
}
.practice-more {
  align-items: start;
}

/* Ficha: respiración holotrópica (solo información) */
.practice-info {
  margin-top: 22px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff08;
}
.practice-info summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 56px 18px 24px;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.practice-info summary::-webkit-details-marker {
  display: none;
}
.practice-info summary span {
  color: var(--fg);
  font: 700 18px "Roboto Slab", Georgia, serif;
}
.practice-info summary small {
  color: var(--muted);
  font-size: 14px;
}
.practice-info summary:after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lime);
  font-size: 24px;
}
.practice-info[open] summary:after {
  content: "−";
}
.practice-info-body {
  max-width: 76ch;
  padding: 0 24px 20px;
}
.practice-info-body p {
  margin: 0 0 12px;
  color: #ddd6e8;
  font-size: 15px;
  line-height: 1.6;
}
.practice-info-body strong {
  color: var(--fg);
}

/* ───── Preguntas con «Otra pregunta» (preguntas.js) ───── */
.cq-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.community-prompt .text-button {
  color: var(--fg);
}
#community-question.q-in,
.ps-q.q-in {
  animation: quote-in 0.5s ease-out;
}
body.still #community-question.q-in,
body.still .ps-q.q-in {
  animation: none;
}
.ps-question {
  width: min(560px, 100%);
  margin: 18px auto 6px;
  padding: 20px 22px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  background: #ffffff0a;
  text-align: center;
}
.ps-q-label {
  margin: 0 0 8px;
  color: var(--lime);
  font: 700 13px "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.ps-q {
  margin: 0 0 16px;
  color: #fff3d9;
  font: 700 clamp(20px, 3.4vw, 26px) / 1.3 "Roboto Slab", Georgia, serif;
  text-wrap: balance;
}
.ps-q-next {
  padding: 9px 18px;
  border: 1px solid #ffffff3d;
  border-radius: 99px;
  background: transparent;
  color: var(--fg);
  font: 600 14px "DM Sans", Arial, sans-serif;
  cursor: pointer;
}
.ps-q-next:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ───── Redes ───── */
.social-extra .contact-link + .contact-link {
  margin-left: 4px;
}

/* ───── Barra fija del libro ───── */
.book-bar {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 24px));
  padding: 10px 12px 10px 10px;
  border: 2px solid #0f0b1a;
  border-radius: 10px;
  background: #2b2342f2;
  box-shadow:
    6px 6px 0 #100c1d,
    0 20px 50px #0008;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 140%);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}
.book-bar.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.book-bar[hidden] {
  display: none;
}
.book-bar img {
  width: 34px;
  height: auto;
  border: 1px solid #0f0b1a;
  border-radius: 3px;
}
.book-bar p {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}
.book-bar strong {
  display: block;
  overflow: hidden;
  font: 700 15px "Roboto Slab", Georgia, serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.book-bar span {
  color: var(--muted);
  font-size: 12.5px;
}
.book-bar .text-button {
  font-size: 14px;
  white-space: nowrap;
}
.book-bar .primary {
  padding: 10px 18px;
}

/* En compu la barra va en la esquina, chiquita, para no tapar el centro de la página */
@media (min-width: 901px) {
  .book-bar {
    left: auto;
    right: 24px;
    width: auto;
    max-width: 480px;
    transform: translateY(140%);
  }
  .book-bar.on {
    transform: none;
  }
  .book-bar span {
    display: none;
  }
}

@media (max-width: 1100px) {
  .duo {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ───── Tablet ───── */
@media (max-width: 900px) {
  .book-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .book .book-buy {
    position: static;
  }
}

/* En celular también se ve para qué sirve cada técnica */
@media (max-width: 900px) {
  .tech-item span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
  }
}

/* ───── Celular ───── */
@media (max-width: 750px) {
  html {
    scroll-padding-top: 90px;
  }
  .hero {
    padding-top: 22px;
    row-gap: 22px;
  }
  .hero-art {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
  }
  .hero .art-label {
    display: none;
  }
  .hero .cover-window {
    width: min(42vw, 160px);
    box-shadow:
      7px 8px 0 #100c1b,
      15px 22px 50px #0d0a1c80;
  }
  .hero .art-caption {
    margin-top: 14px;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
  }
  .hero-copy .hero-actions {
    order: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-copy .hero-how {
    order: 2;
    margin: 22px 0 0;
  }
  .hero-copy .hero-note {
    order: 3;
  }
  .hero-what {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .hero-quote {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "text"
      "who"
      "actions";
  }
  .hero-duo {
    grid-template-columns: 1fr;
  }
  .hero-duo .hero-quote:first-child {
    padding-right: 0;
  }
  .hero-duo .hero-question {
    margin-top: 22px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #ffffff1a;
  }
  .hq-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 18px;
  }
  .tab-bar {
    gap: 8px;
  }
  .tab-bar [role="tab"] {
    padding: 12px 13px;
    font-size: 15px;
  }
  .tab-bar [role="tab"] small {
    font-size: 12px;
  }
  .book-preview {
    margin-top: 54px;
    padding-top: 44px;
  }
  .book-author {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 54px;
    padding: 22px;
  }
  .book-author .author-photo {
    width: 88px;
    height: 88px;
  }
  /* El tráiler ya enseña el juego: en celular se quita el segundo video y las capturas se deslizan de lado */
  .gm-video {
    display: none;
  }
  .gm-shots {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--px));
    padding: 0 var(--px) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .gm-shots figure {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }
}
@media (max-width: 520px) {
  .book-bar {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-width: 2px 0 0;
    border-radius: 0;
    transform: translateY(110%);
  }
  .book-bar.on {
    transform: none;
  }
  .book-bar span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header,
  .book-bar {
    transition: none;
  }
}
