:root {
  --ink: #0b0d10;
  --navy: #071826;
  --navy-2: #0d2638;
  --paper: #ffffff;
  --mist: #f3f5f6;
  --line: #dfe3e6;
  --gold: #d7a72a;
  --gold-light: #f2d377;
  --gold-text: #876206;
  --green: #2d8065;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 4.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus { top: 1rem; }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 5rem;
  padding: .75rem clamp(1.25rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(11,13,16,.1);
  backdrop-filter: blur(18px);
}

.wordmark {
  width: max-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  text-transform: uppercase;
  line-height: .9;
}

.wordmark-mark {
  display: block;
  width: auto;
  height: 3.1rem;
  flex: none;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.wordmark span {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .04em;
}

.wordmark small {
  margin-top: .48rem;
  font-size: .62rem;
  letter-spacing: .55em;
  text-align: center;
}

.site-header nav { display: flex; justify-content: center; gap: clamp(1rem, 2.8vw, 2.4rem); }

.site-header nav a {
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible { color: #8f6a08; }
.site-header nav a[aria-current="page"] { color: var(--gold-text); text-decoration: underline; text-underline-offset: .35rem; }

.header-actions { display: flex; gap: .6rem; align-items: center; }

/* Botón de menú móvil: oculto en escritorio */
.menu-toggle { display: none; }

/* ============ BOTONES ============ */

.button {
  min-height: 3rem;
  padding: .72rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); background: var(--navy-2); }

.button-small { min-height: 2.65rem; padding: .58rem 1.05rem; font-size: .86rem; }

.button-gold {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-gold:hover,
.button-gold:focus-visible { background: #fff0b9; }

.button-ghost {
  color: var(--navy);
  background: transparent;
  border-color: #c3cbd1;
}

.button-ghost:hover,
.button-ghost:focus-visible { background: var(--mist); color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============ HERO ============ */

.hero {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(215,167,42,.08) 1px, transparent 1px),
    linear-gradient(rgba(215,167,42,.08) 1px, transparent 1px),
    #fff;
  background-size: 54px 54px;
}

.hero-copy { position: relative; z-index: 2; max-width: 47rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-text);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-gold { color: var(--gold-light); }

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 {
  margin-bottom: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

h1 em { color: #866100; font-weight: 400; }

.hero-lead {
  max-width: 43rem;
  margin: 0;
  color: #4d5359;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  margin: 2.2rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.text-link {
  padding: .45rem 0;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero-proof { display: flex; gap: .6rem; flex-wrap: wrap; }

.hero-proof span,
.edition-tag {
  padding: .42rem .72rem;
  color: #40464c;
  background: rgba(255,255,255,.72);
  border: 1px solid #ccd2d6;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.cover-stage {
  position: relative;
  min-height: 42rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-orbit {
  position: absolute;
  width: min(40rem, 90%);
  aspect-ratio: 1;
  border: 1px solid rgba(215,167,42,.65);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3rem rgba(215,167,42,.04), 0 0 80px rgba(215,167,42,.14);
}

.gold-orbit::before,
.gold-orbit::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(7,24,38,.2);
  border-radius: 50%;
}

.gold-orbit::after { inset: 23%; border-style: solid; }

.hero-cover {
  position: absolute;
  width: clamp(12rem, 18vw, 17rem);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: .35rem .7rem .7rem .35rem;
  box-shadow: 0 2rem 4rem rgba(7,24,38,.28);
}

.hero-cover-main { z-index: 3; transform: translateY(-1rem); }
.hero-cover-left { z-index: 2; transform: translate(-86%, 1.4rem) rotate(-9deg); }
.hero-cover-right { z-index: 1; transform: translate(86%, 1.8rem) rotate(9deg); }

.live-seal {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 10%;
  width: 6.7rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--navy);
  background: var(--gold-light);
  border: 3px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--gold-light), 0 1rem 2rem rgba(7,24,38,.2);
  transform: rotate(-8deg);
}

.live-seal strong { font-size: 1.25rem; line-height: 1; }
.live-seal span { font-size: .72rem; font-weight: 850; letter-spacing: .22em; }

/* ============ SECCIONES ============ */

.section { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem); }

.section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .65fr);
  gap: 3rem;
  align-items: end;
}

.section-heading h2,
.live-intro h2,
.author-copy h2,
.contact-section h2,
.demo-copy h2 {
  max-width: 54rem;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.section-heading > p { margin: 0; color: #5c646b; font-size: 1.06rem; }

.catalog { background: var(--mist); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.book-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 1rem 3rem rgba(7,24,38,.06);
}

.book-image-wrap {
  min-height: 26rem;
  padding: 2.5rem 2rem;
  display: grid;
  place-items: center;
}

.blue-glow { background: radial-gradient(circle at 50% 40%, #214c6f, var(--navy) 68%); }
.gold-glow { background: radial-gradient(circle at 50% 40%, #625015, #080a0d 70%); }
.amber-glow { background: radial-gradient(circle at 50% 40%, #273146, #090d1d 72%); }

.book-image-wrap img {
  width: min(15rem, 76%);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: .25rem .55rem .55rem .25rem;
  box-shadow: 0 1.5rem 2.8rem rgba(0,0,0,.42);
}

.book-copy { padding: 2rem; display: flex; flex-direction: column; flex: 1; }

.book-genre {
  color: #8a6506;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.book-copy h3 {
  margin: .65rem 0 .8rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.book-copy h3 a { text-decoration: none; }
.book-copy h3 a:hover, .book-copy h3 a:focus-visible { color: var(--gold-text); }

.book-copy > p { margin: 0 0 1.2rem; color: #555d64; }

.edition-tag { display: inline-flex; background: #f7f3e5; border-color: #e7d79d; }

.book-meta {
  margin: 0 0 1.3rem;
  color: #6b747b;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.book-actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.book-price { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.book-price small { display: block; font-family: var(--sans); font-size: .72rem; color: #6b747b; font-weight: 600; }

/* ============ LIVE BOOKS ============ */

.live-section {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(28rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(33,111,151,.27), transparent 35%),
    linear-gradient(135deg, var(--navy), #02090f 72%);
}

.live-intro > p:not(.eyebrow) { max-width: 43rem; color: #c6d0d7; font-size: 1.08rem; }
.live-intro h2 { margin-bottom: 1.8rem; }
.live-intro .button { margin-top: 1.2rem; }

.live-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.25);
  border-left: 1px solid rgba(255,255,255,.25);
}

.live-flow article {
  min-height: 15rem;
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.flow-number { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; }
.live-flow h3 { margin: 2.5rem 0 .5rem; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.live-flow p { margin: 0; color: #b9c5cd; }

/* ============ DEMO ============ */

.demo-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(20rem, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  background: #f7f9fa;
  border-top: 1px solid var(--line);
}

.demo-copy p:not(.eyebrow) { color: #4d5359; font-size: 1.05rem; max-width: 34rem; }
.demo-copy h2 { margin-bottom: 1.3rem; }

.demo-note {
  margin-top: 1.6rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: .4rem;
  font-size: .88rem;
  color: #4d5359;
}

.chat {
  display: flex;
  flex-direction: column;
  max-height: 34rem;
  background: var(--navy);
  border-radius: 1.1rem;
  box-shadow: 0 1.5rem 3.5rem rgba(7,24,38,.24);
  overflow: hidden;
}

.chat-bar {
  padding: .9rem 1.2rem;
  display: flex;
  gap: .7rem;
  align-items: center;
  color: #fff;
  background: #05121d;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.chat-bar img { width: 2rem; height: 3rem; object-fit: cover; border-radius: .15rem; }
.chat-bar strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.chat-bar span { display: block; color: #8fa3b1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.chat-log {
  flex: 1;
  min-height: 14rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  overflow-y: auto;
}

.msg { max-width: 85%; padding: .8rem 1rem; border-radius: .9rem; font-size: .93rem; line-height: 1.55; }
.msg-bot { align-self: flex-start; color: #e7eef3; background: #123449; border-bottom-left-radius: .2rem; }
.msg-user { align-self: flex-end; color: var(--navy); background: var(--gold-light); border-bottom-right-radius: .2rem; font-weight: 600; }
.msg-bot em { color: var(--gold-light); font-style: normal; font-weight: 700; }
.msg p { margin: 0 0 .7rem; }
.msg p:last-child { margin-bottom: 0; }

.typing { display: inline-flex; gap: .25rem; }
.typing i { width: .4rem; height: .4rem; background: #7fa0b4; border-radius: 50%; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat-prompts {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  background: #05121d;
  border-top: 1px solid rgba(255,255,255,.12);
}

.chat-prompts button {
  padding: .5rem .85rem;
  color: #dceaf2;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.chat-prompts button:hover:not(:disabled),
.chat-prompts button:focus-visible:not(:disabled) { background: rgba(242,211,119,.16); border-color: var(--gold-light); }
.chat-prompts button:disabled { opacity: .35; cursor: default; }
.chat-prompts p { width: 100%; margin: .4rem 0 0; color: #8fa3b1; font-size: .78rem; }

/* ============ PLAN LECTOR ============ */

.schools { background: #fff; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  position: relative;
  padding: 1.7rem;
  background: #fff;
  border: 1px solid #cfd5d9;
  border-radius: 1.1rem;
}

.price-card.featured { border: 2px solid var(--gold); box-shadow: 0 1.5rem 3rem rgba(215,167,42,.16); }

.price-label {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-range { margin: .2rem 0 1.1rem; color: #6b747b; font-size: .9rem; }

.price-card > div {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

.price-card strong { color: var(--navy); font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.price-card strong small { font-size: .62rem; font-weight: 700; color: #6b747b; }

.recommended {
  position: absolute;
  right: 1rem;
  top: -1rem;
  padding: .35rem .7rem;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-legal {
  margin: 1.2rem 0 0;
  color: #6b747b;
  font-size: .86rem;
}

.school-benefits {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 2rem;
  align-items: stretch;
}

.school-benefits > div:first-child {
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--mist);
  border-radius: 1.25rem;
}

.school-benefits h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; }

.school-benefits ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 2rem;
  list-style: none;
}

.school-benefits li { position: relative; padding-left: 1.75rem; color: #444c53; }
.school-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.proposal-card {
  padding: clamp(2.2rem, 4vw, 3.5rem);
  color: #fff;
  background: var(--navy);
  border-radius: 1.25rem;
}

.proposal-card h3 { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.proposal-card p:not(.eyebrow) { color: #c3cdd3; }
.proposal-card .button { margin-top: 1rem; }

/* ============ FORMULARIOS ============ */

.form-section { background: var(--mist); }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(20rem, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.form-aside p { color: #4d5359; max-width: 30rem; }
.form-aside h2 { margin-bottom: 1.2rem; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; }

.form-card {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(7,24,38,.06);
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: .35rem;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.field label .req { color: #a3312a; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8cfd4;
  border-radius: .5rem;
  font-family: inherit;
  font-size: .95rem;
}

.field textarea { min-height: 6rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(215,167,42,.45); outline-offset: 0; }

.consent {
  margin: 1.2rem 0;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .84rem;
  color: #4d5359;
}

.consent input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; }

.form-card .button { width: 100%; }

.form-note { margin: 1rem 0 0; color: #6b747b; font-size: .82rem; text-align: center; }

/* ============ FAQ ============ */

.faq-list { display: grid; gap: .7rem; max-width: 52rem; }

.faq-list details {
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.faq-list summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--gold-text); font-family: var(--sans); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: .8rem 0 0; color: #4d5359; font-size: .96rem; }

/* ============ AUTOR ============ */

.about-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: minmax(17rem, .7fr) minmax(0, 1.1fr) minmax(12rem, .45fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  color: #fff;
  background: #090b0e;
}

.author-photo { position: relative; }
.author-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(35%); }
.author-photo span { position: absolute; right: -1rem; bottom: -1rem; padding: .65rem 1rem; color: var(--navy); background: var(--gold-light); font-weight: 850; }

.author-copy h2 { margin-bottom: 1.6rem; }
.author-copy > p:not(.eyebrow) { color: #c3c7ca; }
.author-copy blockquote { margin: 2rem 0 0; padding-left: 1.5rem; color: var(--gold-light); border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; font-style: italic; }

.publisher-mark {
  padding: 1.6rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: .4rem;
}

.publisher-mark img { width: 100%; height: auto; max-width: 13rem; }

/* ============ CONTACTO ============ */

.contact-section {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.25rem, 8vw, 10rem);
  text-align: center;
  background: #fff;
}

.contact-section h2 { max-width: 65rem; margin: 0 auto 2.5rem; }

.contact-grid {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  text-align: left;
}

.contact-card {
  min-height: 13rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

a.contact-card:hover,
a.contact-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); }

.contact-card span { color: var(--gold-text); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.contact-card strong {
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card small { color: #626b72; font-size: .9rem; }
.contact-address { background: var(--navy); border-color: var(--navy); }
.contact-address strong { color: #fff; }
.contact-address small { color: #b9c5cd; }

/* ============ WHATSAPP ============ */

.whatsapp-float {
  position: fixed;
  z-index: 30;
  right: 1.25rem;
  bottom: 1.25rem;
  min-height: 3rem;
  padding: .6rem 1rem .6rem .65rem;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: #fff;
  background: #167c55;
  border-radius: 999px;
  box-shadow: 0 .75rem 2rem rgba(7,24,38,.24);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-float span {
  width: 1.8rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  background: #fff;
  color: #167c55;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1rem;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible { background: #0f6846; }

/* ============ PÁGINAS INTERIORES ============ */

.page-head {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 6vw, 7rem) 0;
}

.crumbs { margin: 0 0 1.5rem; color: #6b747b; font-size: .85rem; }
.crumbs a { color: var(--gold-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.book-hero {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 6vw, 7rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(14rem, .55fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.book-hero-cover {
  padding: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
}

.book-hero-cover img { width: 100%; height: auto; border-radius: .3rem .6rem .6rem .3rem; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.45); }

.book-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 1rem; }
.book-hero .lead { max-width: 42rem; color: #4d5359; font-size: 1.1rem; }

.buy-box {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.buy-box .price { font-family: var(--serif); font-size: 2rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.buy-box .price small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 700; color: #6b747b; }
.buy-box .buy-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-left: auto; }

.specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.2rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs dt { color: var(--gold-text); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.specs dd { margin: .2rem 0 0; font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.prose { max-width: 42rem; }
.prose h2 { margin: 2.5rem 0 1rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; }
.prose p { color: #3f464c; }

.excerpt {
  margin: 1.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  border-radius: 0 .6rem .6rem 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2b3238;
}

.excerpt p:first-child { margin-top: 0; }
.excerpt p:last-child { margin-bottom: 0; }

.curriculum { display: grid; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.curriculum li { position: relative; padding-left: 1.6rem; color: #444c53; }
.curriculum li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: .4rem; }

.legal-page { padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 6vw, 7rem) 5rem; }
.legal-page .prose { max-width: 45rem; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.legal-page h2 { margin-top: 2.6rem; }
.legal-page h3 { margin: 1.8rem 0 .6rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.legal-page ul { color: #3f464c; padding-left: 1.2rem; }
.legal-page li { margin-bottom: .5rem; }
.legal-updated { color: #6b747b; font-size: .88rem; }

.placeholder {
  padding: .1em .45em;
  background: #ffe9a8;
  border: 1px dashed #b98a00;
  border-radius: 3px;
  color: #6b4d00;
  font-size: .85em;
  font-weight: 700;
}

/* ============ PIE ============ */

footer {
  padding: 3rem clamp(1.25rem, 5vw, 5rem) 5.5rem;
  color: #fff;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) repeat(4, minmax(0, .75fr));
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.wordmark-footer span { color: #fff; }
.wordmark-footer small { color: var(--gold-light); }
.wordmark-footer .wordmark-mark { height: 3rem; }
.footer-brand p { margin: 1.2rem 0 0; color: #b8c1c8; font-size: .88rem; max-width: 22rem; }

.footer-col h3 {
  margin: 0 0 .9rem;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: #cfd8de; font-size: .9rem; text-decoration: none; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; }

.footer-legal {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  color: #93a2ad;
  font-size: .82rem;
}

.footer-legal p { margin: 0; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .cover-stage { min-height: 34rem; }
  .live-section { grid-template-columns: 1fr; }
  .demo-section { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: .7fr 1.3fr; }
  .publisher-mark { display: none; }
  .book-image-wrap { min-height: 22rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .section-heading { grid-template-columns: 1fr; gap: 1.4rem; }
  .book-grid, .pricing-grid { grid-template-columns: 1fr; }
  .book-card { display: grid; grid-template-columns: minmax(12rem, .7fr) 1fr; }
  .book-image-wrap { min-height: 24rem; }
  .school-benefits { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .book-hero { grid-template-columns: 1fr; }
  .book-hero-cover { max-width: 20rem; }
}

/* Cabecera móvil: se mantiene fija y conserva el botón de acceso */
@media (max-width: 780px) {
  :root { --header-h: 4rem; }

  .site-header {
    position: sticky;
    top: 0;
    min-height: var(--header-h);
    padding: .6rem 1.1rem;
    grid-template-columns: auto 1fr;
    gap: .75rem;
  }

  .site-header .wordmark span { font-size: 1.1rem; }
  .site-header .wordmark small { font-size: .55rem; letter-spacing: .4em; }
  .site-header .wordmark { gap: .5rem; }
  .site-header .wordmark-mark { height: 2.4rem; }

  .header-actions { justify-self: end; gap: .4rem; }
  .header-actions .button { display: inline-flex; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 1px solid #c3cbd1;
    border-radius: .6rem;
    cursor: pointer;
  }

  .menu-toggle svg { width: 1.2rem; height: 1.2rem; }

  .site-header nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: .5rem -1.1rem -0.6rem;
    padding: .3rem 1.1rem .8rem;
    border-top: 1px solid var(--line);
  }

  .site-header nav.open { display: flex; }

  .site-header nav a {
    padding: .85rem .2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav a:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .cover-stage { min-height: 24rem; margin-top: .5rem; }
  .hero-cover { width: 9.5rem; }
  .hero-cover-left { transform: translate(-66%, 1.5rem) rotate(-8deg); }
  .hero-cover-right { transform: translate(66%, 1.5rem) rotate(8deg); }
  .live-seal { right: .5rem; bottom: .5rem; width: 4.6rem; }
  .live-seal strong { font-size: 1rem; }
  .live-seal span { font-size: .6rem; }
  .book-card { display: block; }
  .book-image-wrap { min-height: 21rem; }
  .live-flow { grid-template-columns: 1fr; }
  .live-flow article { min-height: auto; }
  .live-flow h3 { margin-top: 1.6rem; }
  .school-benefits ul { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .author-photo { max-width: 22rem; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .buy-box .buy-actions { margin-left: 0; width: 100%; }
  .buy-box .buy-actions .button { flex: 1 1 12rem; }

  /* Solo icono, y elevado para no tapar la acción secundaria del hero */
  .whatsapp-float {
    right: .85rem;
    bottom: .85rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-float b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .whatsapp-float span { width: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .whatsapp-float, .chat-prompts, footer nav { display: none; }
}

/* Frase de gancho al abrir la sinopsis, tomada de la contracubierta */
.prose .lead-question {
  margin: 0 0 1.4rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}

/* Comparables de lectura al cierre de la ficha */
.prose .read-alike {
  margin-top: 1.5rem;
  padding: .9rem 1.1rem;
  background: var(--mist);
  border-radius: .5rem;
  color: #4d5359;
  font-size: .95rem;
}

/* Extracto: procedencia y marca de pasaje omitido */
.prose .excerpt-source {
  margin: -.4rem 0 .8rem;
  color: var(--gold-text);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.excerpt .elision {
  margin: 1.2rem 0;
  color: #8a939a;
  text-align: center;
  letter-spacing: .3em;
}

/* Segunda caja de compra: lo que aún no está disponible */
.buy-box { align-items: flex-start; }
.buy-box .price { display: block; }
.buy-note { margin: .35rem 0 0; max-width: 26rem; color: #5c646b; font-size: .88rem; }

.buy-box-soon {
  margin-top: -.6rem;
  background: #fff;
  border-style: dashed;
  border-color: var(--gold);
}

.buy-box-soon .price { font-size: 1.6rem; }
