html, body { background: #eef0f1 !important; color: #14161a; }

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #eef0f1;
  --gray-light: #eef0f1;
  --gray-mid: #cdd1d5;
  --gray-dark: #35383c;
  --text: #14161a;
  --muted: #55585d;
  --stat: #2a2c30;
  --silver: #6e7278;
  --silver-dim: #9aa0a6;
  --red: #b3363c;
  --red-dim: rgba(179, 54, 60, 0.55);
  --bar-dark: #202226;
  --panel-gray: #e3e5e7;
  --ink: #14161a;
  --ink-muted: #1c1e21;
  --border: rgba(30, 32, 36, 0.16);
  --border-soft: rgba(30, 32, 36, 0.09);

  --logo: 15.5px;
  --logo-mark: 22px;
  --nav: 14px;
  --nav-h: 40px;
  --btn: 13.5px;
  --btn-h: 40px;
  --hero-btn-h: 42px;
  --h1: 42px;
  --lede: 15.5px;
  --badge: 12.5px;
  --stat-size: 13.5px;
  --header-y: 10px;
  --header-x: 40px;
  --stats-x: 72px;
  --stats-y: 36px;
  --hero-gap: 64px;
  --copy-max: 620px;
  --lede-max: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

html, body {
  background: #eef0f1;
  background: var(--bg, #eef0f1);
  color: #14161a;
  color: var(--text, #14161a);
}

html { scroll-behavior: smooth; height: auto; }
body { overflow-y: auto; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 60%, rgba(238,240,241,0.3) 100%);
}

/* fondo animado: lámpara de lava horizontal en escala de grises */
.lava {
  position: absolute;
  inset: -10% -20%;
  filter: blur(45px);
}
.lava-blob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 46vw;
  height: 30vw;
  max-height: 420px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.lava-light { background: radial-gradient(closest-side, rgba(190,194,198,0.85), transparent 72%); }
.lava-mid { background: radial-gradient(closest-side, rgba(120,124,129,0.8), transparent 72%); }
.lava-dark { background: radial-gradient(closest-side, rgba(35,38,42,0.75), transparent 72%); }

.lava-1 { top: 14%; width: 52vw; height: 34vw; animation-name: lava-drift-a; animation-duration: 42s; }
.lava-2 { top: 66%; width: 40vw; height: 26vw; animation-name: lava-drift-b; animation-duration: 55s; animation-delay: -8s; }
.lava-3 { top: 40%; width: 48vw; height: 30vw; animation-name: lava-drift-a; animation-duration: 63s; animation-delay: -20s; }
.lava-4 { top: 84%; width: 36vw; height: 24vw; animation-name: lava-drift-b; animation-duration: 48s; animation-delay: -30s; }
.lava-5 { top: -4%; width: 44vw; height: 28vw; animation-name: lava-drift-a; animation-duration: 70s; animation-delay: -14s; }
.lava-6 { top: 26%; width: 34vw; height: 22vw; animation-name: lava-drift-b; animation-duration: 37s; animation-delay: -4s; }

@keyframes lava-drift-a {
  from { transform: translateX(-15vw) translateY(0); }
  to { transform: translateX(85vw) translateY(4vh); }
}
@keyframes lava-drift-b {
  from { transform: translateX(90vw) translateY(-3vh); }
  to { transform: translateX(-20vw) translateY(3vh); }
}

@media (prefers-reduced-motion: reduce) {
  .lava-blob { animation: none; }
}

.page {
  position: relative;
  z-index: 1;
}

/* top contact bar */
.top-bar {
  position: relative;
  z-index: 60;
  background: var(--bar-dark);
}
.top-bar-row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding: 9px 40px;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.top-bar-item svg { width: 14px; height: 14px; flex: none; }
.top-bar-item:hover { color: #fff; }

/* header */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-y) var(--header-x) 5px;
  z-index: 50;
  position: relative;
  background: var(--panel-gray);
  border-bottom: 1px solid rgba(20, 22, 26, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: var(--logo);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo svg { width: var(--logo-mark); height: var(--logo-mark); flex: none; }
.logo-name {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: calc(var(--logo-name-scale, 2.12) * 1em);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}
.logo-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: calc(var(--logo-sub-scale, 0.66) * 1em);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 5px;
  white-space: nowrap;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }

nav#site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.nav-link {
  height: var(--nav-h);
  padding: 0 18px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 22, 26, 0.16);
  background: linear-gradient(105deg, #ffffff 0%, #eef0f1 50%, #d7dbe0 100%);
  color: var(--ink);
  font-size: var(--nav);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.nav-link:hover::before { transform: translateX(120%); }
.nav-link:hover {
  border-color: rgba(179, 54, 60, 0.45);
  background: linear-gradient(105deg, #ffffff 0%, #f3f4f5 45%, #e3e6e8 100%);
  box-shadow: 0 0 16px rgba(179, 54, 60, 0.16);
}

.header .btn-solid {
  border-color: rgba(20, 22, 26, 0.22);
  box-shadow: 0 1px 3px rgba(20, 22, 26, 0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

.nav-cta-mobile { display: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.55);
  z-index: 60;
  position: relative;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  justify-self: end;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.burger:hover { border-color: rgba(207,211,216,0.5); background: rgba(207,211,216,0.06); }
.burger-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}
.burger-bars span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.menu-open .burger-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger-bars span:nth-child(2) { opacity: 0; }
body.menu-open .burger-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 16px;
  border-radius: 6px;
  font-size: var(--btn);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, filter 0.35s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.4) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}
.btn:hover::after { transform: translateX(130%); }

.btn-solid {
  background: linear-gradient(180deg, #2c2f33 0%, #17181b 55%, #000000 100%);
  color: #f5f4f1;
  border: 1px solid #000000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-solid:hover {
  background: linear-gradient(180deg, #3a3d42 0%, #1f2124 50%, #000000 100%);
  border-color: #000000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 22px rgba(20,22,26,0.22), 0 8px 18px rgba(179,54,60,0.16);
}
.hero-actions .btn-solid:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 26px rgba(20,22,26,0.26), 0 8px 18px rgba(179,54,60,0.18);
}

.btn-ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(20,22,26,0.03) 50%, rgba(255,255,255,0.55));
  color: var(--ink);
  border: 1px solid rgba(20,22,26,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(20,22,26,0.05) 48%, rgba(179,54,60,0.06));
  border-color: rgba(20,22,26,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 0 18px rgba(20,22,26,0.1);
}

.hero-ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.22) 46%, rgba(179,54,60,0.06));
  border: 1px solid rgba(20,22,26,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-ghost:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 22px rgba(20,22,26,0.12);
  border-color: rgba(20,22,26,0.45);
}

.hero-actions .btn { height: var(--hero-btn-h); padding: 0 18px; }

/* hero */
.hero {
  position: relative;
  padding: 34px 24px var(--hero-gap);
  min-height: calc(100svh - 38px);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--copy-max);
  width: 100%;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border: 1px solid rgba(207,211,216,0.3);
  border-radius: 5px;
  background: linear-gradient(90deg, #202225 0%, #131416 52%, #0a0a0a 100%);
  color: #eceeef;
  font-size: var(--badge);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-coin {
  width: 18px;
  height: 18px;
  flex: none;
  filter: drop-shadow(0 0 3px rgba(207,211,216,0.5));
}

h1 {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.16;
  color: var(--text);
  font-size: var(--h1);
}
.headline-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.15em 0.14em;
}
h1 em {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, var(--ink) 0%, var(--ink) 45%, var(--silver) 75%, var(--red) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: var(--lede-max);
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* book cover */
.hero-cover { display: flex; justify-content: center; }
.cover-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  background: linear-gradient(160deg, #1c1e21, #050505);
}
.cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.25;
  color: #cfd3d8;
  background: linear-gradient(160deg, #1c1e21, #050505);
}
.cover-placeholder span { display: block; }

/* stats footer — horizontal ticker so long copy is never clipped */
.stats {
  overflow: hidden;
  padding: 0 0 var(--stats-y);
  padding-bottom: max(var(--stats-y), env(safe-area-inset-bottom));
  color: var(--text);
  position: relative;
  z-index: 1;
  width: 100%;
}

.stats-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 0 var(--stats-x);
  animation: stats-marquee 30s linear infinite;
}
.stats:hover .stats-track { animation-play-state: paused; }

@keyframes stats-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--stat-size);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}
.stat-icon { width: 22px; height: 22px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .stats-track { animation: none; }
  .stats { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* consulta section */
.section-consulta {
  position: relative;
  z-index: 1;
  padding: 90px 40px 120px;
}
.consulta-inner { max-width: 760px; margin: 0 auto; }
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); }
.section-eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--red); }
.section-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; font-size: 15px; }

.consulta-panel {
  background: rgba(205, 209, 213, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(20,22,26,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: rgba(20,22,26,0.035);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(20,22,26,0.5);
}
.form-grid textarea { min-height: 90px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* scheduling: tipo / fecha / horario */
.schedule-block { margin-bottom: 4px; }
.schedule-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.type-toggle { display: flex; gap: 10px; }
.type-option {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(20,22,26,0.035);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.type-option svg { width: 18px; height: 18px; flex: none; color: var(--silver); }
.type-option:hover { border-color: rgba(20,22,26,0.4); }
.type-option.selected {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(179,54,60,0.2), rgba(179,54,60,0.06));
  box-shadow: inset 0 0 0 1px rgba(179,54,60,0.35);
}
.type-option.selected svg { color: var(--red); }

.calendar {
  background: rgba(20,22,26,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-title { font-size: 14px; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.calendar-nav {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(20,22,26,0.03);
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.calendar-nav:hover:not(:disabled) { border-color: rgba(20,22,26,0.4); background: rgba(20,22,26,0.06); }
.calendar-nav:disabled { opacity: 0.25; cursor: not-allowed; }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cal-day.is-empty { visibility: hidden; cursor: default; }
.cal-day.is-disabled { color: rgba(20,22,26,0.25); cursor: not-allowed; }
.cal-day:not(.is-disabled):not(.is-empty):hover { border-color: rgba(20,22,26,0.35); }
.cal-day.is-selected { background: var(--red); color: #fff; font-weight: 600; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time-slot {
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(20,22,26,0.035);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.time-slot:hover { border-color: rgba(20,22,26,0.4); }
.time-slot.selected { background: var(--red); border-color: var(--red); font-weight: 600; }
.btn-primario { margin-top: 22px; width: 100%; }
.btn-primario:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primario:disabled::after { display: none; }
.form-nota { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.form-status { margin-top: 10px; text-align: center; font-size: 13.5px; min-height: 1.2em; }
.form-status.err { color: #a13a3f; }
.form-status.ok { color: #2f7d43; }
.wa-icon { width: 18px; height: 18px; margin-right: 8px; flex: none; }

/* content sections (régimen, anatomía, riesgos, autor) */
.content-section {
  position: relative;
  z-index: 1;
  padding: 96px 40px;
  border-top: 1px solid var(--border-soft);
}
.content-section-inner { margin: 0 auto; }
.content-section-inner.text-narrow { max-width: 760px; }
.content-section-inner.text-wide { max-width: 1140px; }

.content-section .section-title { max-width: 780px; margin-left: auto; margin-right: auto; line-height: 1.28; }
.content-section .section-sub { max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* frosted-glass "document" card wrapping every section's body copy for legibility */
.content-card {
  --silver: #4a4d52;
  position: relative;
  background: rgba(205, 209, 213, 0.48);
  color: var(--ink);
  border-radius: 22px;
  padding: 44px 48px;
  margin-top: 44px;
  border: 1px solid rgba(30, 32, 36, 0.1);
  box-shadow:
    0 36px 80px rgba(20, 22, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  overflow: hidden;
}
.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.content-card > * { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .content-card { background: rgba(217, 220, 223, 0.97); }
}

.section-body { margin-top: 0; }
.section-body + .section-body { margin-top: 28px; }
.section-body p {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.001em;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 22px;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--red); font-weight: 700; }

/* citas normativas literales */
.content-card blockquote {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  background: rgba(179, 54, 60, 0.06);
  border-radius: 0 10px 10px 0;
}
.content-card blockquote p {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
  margin: 0 0 8px;
}
.content-card blockquote cite {
  display: block;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--red);
  text-transform: uppercase;
}

/* preguntas frecuentes */
.faq-list { display: flex; flex-direction: column; gap: 22px; }
.faq-item h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.faq-item p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}
.faq-item + .faq-item { padding-top: 22px; border-top: 1px solid rgba(20, 22, 26, 0.1); }

.book-hook {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
}
.book-hook .hook-arrow { color: var(--red); font-weight: 600; white-space: nowrap; transition: color 0.2s ease; }
.book-hook:hover .hook-arrow { color: #e08a8f; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}
.info-card {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 6px 18px rgba(20, 22, 26, 0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}
.info-card .card-num {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}
.info-card .card-icon { width: 28px; height: 28px; margin-bottom: 14px; }
.info-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--ink); }
.info-card p { font-family: "Source Serif 4", Georgia, serif; font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; margin: 0; }

.callout-panel {
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(179,54,60,0.4);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 8px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.callout-panel h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.callout-panel p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}
.content-card > .callout-panel:not(:last-child) { margin-bottom: 28px; }

/* tabla de contenidos temática (sección "Temas que involucra la obra") */
.topic-block {
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(179,54,60,0.35);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.topic-block + .topic-block { margin-top: 22px; }
.topic-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.topic-num {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 32px;
  color: var(--red);
  flex: none;
  line-height: 1;
}
.topic-block h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.35; }
.topic-intro {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic-list > li {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.topic-list > li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.topic-list strong { color: var(--ink); font-weight: 700; }
.topic-sublist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(179,54,60,0.25);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.topic-sublist li { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.topic-sublist strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .topic-block { padding: 22px 20px; }
  .topic-num { font-size: 26px; }
}

.risk-list { display: flex; flex-direction: column; gap: 26px; margin: 28px 0; }
.risk-item { display: flex; gap: 22px; align-items: flex-start; }
.risk-num {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 36px;
  color: var(--red);
  flex: none;
  width: 56px;
  line-height: 1;
}
.risk-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.risk-item p { font-family: "Source Serif 4", Georgia, serif; font-size: 15.5px; color: var(--ink-muted); line-height: 1.62; margin: 0; }

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 44px;
  padding: 46px 36px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(207,211,216,0.06), rgba(179,54,60,0.05));
  border: 1px solid var(--border);
}
.download-cta .download-icon { width: 34px; height: 34px; }
.download-cta h3 { font-size: 25px; font-weight: 500; letter-spacing: -0.01em; }
.download-cta p { font-size: 15px; color: var(--muted); max-width: 480px; margin: 0; line-height: 1.6; }

.author-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(20, 22, 26, 0.12);
}
.author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(20,22,26,0.18);
}
.author-name {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.author-tagline { font-family: "Source Serif 4", Georgia, serif; font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; margin: 0; }

.author-credentials { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.author-credentials li {
  color: var(--ink-muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.author-credentials li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.author-more { font-family: "Source Serif 4", Georgia, serif; font-size: 13.5px; color: var(--ink-muted); margin: 0 0 24px; }
.author-more a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .author-profile { flex-direction: column; align-items: flex-start; text-align: left; }
  .author-photo { width: 84px; height: 84px; }
}

@media (max-width: 900px) {
  .content-section { padding: 64px 20px; }
  .content-card { padding: 30px 24px; margin-top: 32px; }
  .risk-item { gap: 16px; }
  .risk-num { width: 40px; font-size: 28px; }
  .download-cta { padding: 34px 22px; }
}

/* menu backdrop */
.menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 4, 5, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease, backdrop-filter 0.28s ease;
}
body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* modal de captura de datos previo a la descarga del libro */
.dl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 22, 26, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dl-modal-backdrop[hidden] { display: none; }
.dl-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(224, 226, 229, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dl-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-modal-close:hover { background: rgba(255,255,255,0.8); }
#dl-modal-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
  padding-right: 20px;
}
.dl-modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.dl-field { margin-bottom: 14px; }
.dl-field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.dl-field input,
.dl-field select {
  width: 100%;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.dl-field input:focus,
.dl-field select:focus { outline: none; border-color: rgba(20,22,26,0.5); }
.dl-submit { width: 100%; margin-top: 4px; }
.dl-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.dl-submit:disabled::after { display: none; }
.dl-modal-nota { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.dl-status { margin-top: 8px; text-align: center; font-size: 13.5px; min-height: 1.2em; }
.dl-status.err { color: #a13a3f; }
.dl-status.ok { color: #2f7d43; }

/* entrance motion */
.appear {
  opacity: 1;
  animation-duration: 1.05s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: var(--d, 0.08s);
}
.appear.is-in {
  animation: none;
  opacity: 1;
  transform: none;
  clip-path: none;
  filter: none;
}
.hero-photo.is-in { opacity: 1; }

.appear--scale { animation-name: in-scale; }
.appear--soft { animation-name: in-soft; }
.appear--mask { animation-name: in-mask; }
.appear--pop { animation-name: in-pop; }
.appear--btn { animation-name: in-btn; }
.appear--side { animation-name: in-side; }
.appear--stat { animation-name: in-stat; }

@keyframes in-scale {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes in-soft {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes in-mask {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes in-pop {
  0% { opacity: 0; transform: scale(0.9); }
  70% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes in-btn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes in-side {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes in-stat {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes in-coin {
  0% { transform: scale(0.2) rotate(-90deg); }
  65% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.badge-coin {
  animation: in-coin 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}
@keyframes in-em {
  from { opacity: 0.35; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}
h1 em {
  display: inline-block;
  animation: in-em 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.72s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .appear, .hero-photo, .hero h1 em, .badge-coin {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

/* ---------- desktop two-column hero ---------- */
@media (min-width: 901px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero-copy { align-items: flex-start; text-align: left; margin: 0; }
  .lede { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .cover-frame { max-width: 300px; }
}

/* ---------- responsive scale tokens ---------- */

@media (min-width: 1600px) {
  :root {
    --logo: 17px; --logo-mark: 24px; --nav: 15px; --nav-h: 44px; --btn: 15px; --btn-h: 44px;
    --hero-btn-h: 48px; --h1: 56px; --lede: 18px; --badge: 13.5px; --stat-size: 15px;
    --header-y: 13px; --header-x: 64px; --stats-x: 96px; --stats-y: 44px;
    --copy-max: 680px; --lede-max: 540px;
  }
  .nav-link { padding: 0 20px; }
  .badge { margin-bottom: 26px; }
  .lede { margin-top: 22px; }
  .hero-actions { margin-top: 30px; gap: 12px; }
  .stat-icon { width: 24px; height: 24px; }
  .cover-frame { max-width: 340px; }
}

@media (min-width: 1920px) {
  :root {
    --logo: 18px; --logo-mark: 26px; --nav: 16px; --nav-h: 48px; --btn: 16px; --btn-h: 48px;
    --hero-btn-h: 52px; --h1: 64px; --lede: 20px; --badge: 14.5px; --stat-size: 16px;
    --header-y: 15px; --header-x: 80px; --stats-x: 120px; --stats-y: 52px;
    --copy-max: 720px; --lede-max: 600px;
  }
  nav#site-nav { gap: 10px; }
  .nav-link { padding: 0 22px; }
  .btn { padding: 0 22px; }
  .badge { padding: 10px 15px; }
  .stat-icon { width: 26px; height: 26px; }
  .cover-frame { max-width: 380px; }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  :root { --h1: 48px; --lede: 16px; --header-x: 48px; --stats-x: 80px; --copy-max: 640px; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  :root {
    --logo: 15px; --nav: 13px; --nav-h: 36px; --btn: 13px; --btn-h: 38px; --hero-btn-h: 40px;
    --h1: 36px; --lede: 15px; --badge: 12px; --stat-size: 12.5px;
    --header-y: 8px; --header-x: 28px; --stats-y: 28px; --stats-x: 36px;
    --hero-gap: 56px; --copy-max: 520px; --lede-max: 440px;
  }
  .nav-link { padding: 0 14px; }
  .badge { margin-bottom: 16px; }
  .lede { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .cover-frame { max-width: 240px; }
}

@media (max-width: 900px) {
  .top-bar-row { padding: 8px 16px; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-left: max(var(--header-x), calc(env(safe-area-inset-left) + 16px));
    padding-right: max(var(--header-x), calc(env(safe-area-inset-right) + 16px));
  }
  .logo, .burger { z-index: 80; }
  .header-cta { display: none; }
  .burger { display: flex; }
  nav#site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 45;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: transparent;
    padding: 96px 22px 32px;
    padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  body.menu-open nav#site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    height: 56px;
    font-size: 19px;
    border-radius: 10px;
    justify-content: center;
  }
  .nav-cta-mobile {
    display: inline-flex;
    width: 100%;
    height: 56px;
    font-size: 17px;
    margin-top: 6px;
  }
  :root { --logo-name-scale: 1.7; --logo-sub-scale: 0.6; }
  .hero { padding: 20px 20px 48px; min-height: 0; }
  .hero-inner { gap: 32px; }
  .stats { padding-top: 24px; }
  .stats-track { gap: 40px; }
  .hero-copy { max-width: 100%; }
  .lede { max-width: 100%; }
  .cover-frame { max-width: 220px; }
  .section-consulta { padding: 64px 20px 80px; }
  .consulta-panel { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  :root {
    --logo: 16px; --btn: 15px; --btn-h: 46px; --hero-btn-h: 48px; --h1: 30px;
    --lede: 16.5px; --badge: 13px; --stat-size: 15px;
    --header-y: 8px; --header-x: 16px; --stats-y: 28px; --stats-x: 20px; --hero-gap: 24px;
  }
}

@media (max-width: 560px) {
  :root { --h1: 28px; --lede: 16px; --header-x: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
