/* ==========================================================================
   Astrea · Universo — hoja de estilos de /universo
   Dirección: templo griego reinterpretado para la web. Mármol y marfil,
   azul noche, dorado antiguo, arcos, serif editorial y espacio negativo.
   Mobile-first: todo parte en una columna y se abre en ≥ 860px.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --night: #0B1220;
  --night-deep: #070B14;
  --night-soft: #141D30;
  --marble: #F4EDE1;
  --ivory: #FBF7EF;
  --paper: #EFE6D6;
  --ink: #1D1A15;
  --ink-soft: #5E5547;
  --ink-on-dark: #EDE5D6;
  --ink-on-dark-soft: rgba(237, 229, 214, 0.72);
  --gold: #B08A4F;
  --gold-deep: #7F5F2E;       /* texto dorado sobre claro (AA) */
  --gold-light: #D4B172;      /* dorado sobre oscuro */
  --hairline: rgba(176, 138, 79, 0.35);
  --hairline-strong: rgba(176, 138, 79, 0.6);
  --hairline-dark: rgba(212, 177, 114, 0.28);
  --error: #9A3B2E;

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --fs-lede: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.7rem;
  --tracking-eyebrow: 0.32em;

  /* Espaciado */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --shell: 1180px;

  /* Bordes y radios */
  --r-hair: 2px;
  --r-card: 6px;
  --r-sheet: clamp(22px, 3vw, 32px);
  --arch: 999px 999px 0 0;

  /* Sombras */
  --shadow-page: 0 24px 48px -28px rgba(11, 18, 32, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(11, 18, 32, 0.28);
  --shadow-lift: 0 -18px 40px -24px rgba(7, 11, 20, 0.5);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Textura de mármol/papel: ruido fractal sutil, sin imagen externa */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .018' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 -2.2 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-hair); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1; }

/* ---------- 3. Tipografía ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--s-4);
}
.eyebrow--light { color: var(--gold-light); }

.h-display, .h-section {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-display { font-size: var(--fs-display); color: var(--ink-on-dark); }
.h-section { font-size: var(--fs-h2); color: var(--ink); margin-bottom: var(--s-4); }
.h-section--sm { font-size: var(--fs-h3); }
.h-section--light { color: var(--ink-on-dark); }

.lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 34rem;
  text-wrap: pretty;
}
.lede--light { color: var(--ink-on-dark-soft); }

.link-quiet {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small); color: var(--gold-deep);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.link-quiet:hover { border-color: currentColor; }
.link-quiet--light { color: var(--gold-light); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-6);
  border-radius: var(--r-hair);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-light); color: var(--night); }
.btn--gold:hover { background: #E0C28A; }
.btn--night { background: var(--night); color: var(--ink-on-dark); }
.btn--night:hover { background: var(--night-soft); }
.btn--ghost { background: transparent; border-color: var(--hairline-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(176, 138, 79, 0.06); }
.btn--sm { min-height: 38px; padding: 0 var(--s-4); font-size: 0.8rem; }
.btn--block { width: 100%; padding-inline: var(--s-4); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  max-width: var(--shell); margin-inline: auto;
  padding: var(--s-4) var(--gutter);
}
.wordmark {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.35rem; letter-spacing: 0.32em;
  color: var(--ink-on-dark); text-decoration: none;
}
.wordmark--small { font-size: 0.8rem; letter-spacing: 0.5em; color: var(--gold-light); margin-bottom: var(--s-4); }
.site-nav { display: none; gap: var(--s-6); }
.site-nav a {
  font-size: 0.82rem; color: var(--ink-on-dark-soft); text-decoration: none;
  transition: color .3s var(--ease);
}
.site-nav a:hover { color: var(--gold-light); }

/* ---------- 6. Hojas (secciones superpuestas) ---------- */
.sheet {
  position: relative;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding-block: var(--section-y);
  isolation: isolate;
}
.sheet--lift { margin-top: calc(var(--r-sheet) * -1.6); box-shadow: var(--shadow-lift); z-index: 2; }
.sheet--light { background: var(--ivory); }
.sheet--light::before, .sheet--marble::before, .about::before, .pricing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .06; border-radius: inherit;
}
.sheet--marble { background: var(--marble); }
.sheet--marble::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--veins); background-size: 100% 100%; opacity: .35; border-radius: inherit;
}
.sheet--dark { background: var(--night-deep); color: var(--ink-on-dark); }

.center-head { text-align: center; margin-bottom: var(--s-7); }
.center-head .lede { margin-inline: auto; }

/* ---------- 7. Arcos y media-slot (imágenes reemplazables) ---------- */
.arch {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
}
.arch--framed { padding: 10px; border: 1px solid var(--hairline-strong); border-bottom: 0; }
.arch--framed > .media-slot { border-radius: var(--arch); overflow: hidden; }
.arch--columns::after {
  /* dos columnas finas en los bordes del arco */
  content: ""; position: absolute; inset: 18% 0 0 0; pointer-events: none;
  border-inline: 1px solid rgba(212, 177, 114, 0.35);
}

.media-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--night) url("img/cielo-noche.webp") center / cover;
  overflow: hidden;
}
.media-slot--hero { aspect-ratio: 3 / 4; }
.media-slot--tall { aspect-ratio: 3 / 4.4; }
.media-slot--bust { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.media-slot > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.media-slot__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-5);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  background: radial-gradient(ellipse at 50% 35%, rgba(212, 177, 114, 0.12), transparent 60%);
}
.ph-art { width: 46%; max-width: 180px; fill: none; stroke: var(--gold-light); stroke-width: 1; opacity: .7; }
.ph-label {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.7;
  color: var(--gold-light);
  border: 1px dashed rgba(212, 177, 114, 0.5);
  padding: var(--s-2) var(--s-3);
  max-width: 90%;
}
.ph-label code { font-family: ui-monospace, monospace; text-transform: none; letter-spacing: 0; font-size: 0.68rem; opacity: .85; word-break: break-all; }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  background: var(--night-deep);
  color: var(--ink-on-dark);
  padding-top: calc(76px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--section-y) + var(--r-sheet));
  overflow: hidden;
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background: url("img/cielo-noche.webp") center top / cover;
  opacity: .9;
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, .2) 0%, rgba(7, 11, 20, .55) 55%, var(--night-deep) 100%);
}
.constellation { fill: var(--gold-light); stroke: rgba(212, 177, 114, .45); stroke-width: .7; }
.constellation path { fill: none; }
.hero__constellation { position: absolute; z-index: -1; width: min(46vw, 380px); top: 90px; left: 42%; opacity: .6; }

.hero__grid { display: grid; gap: var(--s-7); }
.hero__figure { order: -1; width: min(78%, 360px); margin-inline: auto; }
.hero__figure .arch { box-shadow: 0 0 0 1px rgba(212, 177, 114, .25), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.hero__figure .media-slot--hero { aspect-ratio: 4 / 5; }
.hero__figure .media-slot--hero > img { object-position: 62% center; }
.hero__copy .h-display { margin-bottom: var(--s-5); }
.hero__copy .lede { margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.hero__scroll {
  display: inline-flex; margin-top: var(--s-7); color: var(--gold-light);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-dark); border-radius: 50%;
}
.hero__scroll .icon { animation: float 2.8s var(--ease) infinite; }
@keyframes float { 50% { transform: translateY(4px); } }

/* ---------- 9. Generador ---------- */
.gen { display: grid; gap: var(--s-7); }
.gen__figure { display: none; }
.gen__figure .media-slot--tall > img { object-position: center 42%; }
.natal-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
  margin-top: var(--s-6);
  max-width: 34rem;
}
.field { display: grid; gap: var(--s-2); grid-column: span 2; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-hair);
  font-size: 1rem; /* evita zoom en iOS */
  color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(94, 85, 71, .6); }
.field input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(176, 138, 79, .15); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field small { font-size: 0.74rem; color: var(--ink-soft); }
.natal-form .btn { grid-column: 1 / -1; margin-top: var(--s-2); }
.form-msg { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--error); }
.form-status { grid-column: 1 / -1; min-height: 1.4em; font-family: var(--font-serif); font-style: italic; color: var(--gold-deep); text-align: center; }

/* Resultado */
.result { margin-top: var(--s-8); }
.result:focus { outline: none; }
.result__card {
  background: var(--marble);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  animation: rise .8s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.result__saludo { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--gold-deep); margin-bottom: var(--s-5); }

.tabs {
  display: flex; gap: var(--s-1);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-6);
  overflow-x: auto; scrollbar-width: none;
}
.tabs__tab {
  flex: 0 0 auto;
  background: none; border: 0; cursor: pointer;
  padding: var(--s-3) var(--s-4);
  font-size: 0.85rem; color: var(--ink-soft);
  border-bottom: 1px solid transparent; margin-bottom: -1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.tabs__tab:hover { color: var(--ink); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs__panel { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }

.result__wheel-layout { display: grid; gap: var(--s-6); align-items: center; }

/* Rueda natal en tema noche. rueda-natal.js pinta con var(--gold),
   var(--hairline), var(--cream) (fondo de planetas) y var(--ink) (glifo de
   planeta); aquí se redefinen en ámbito local para la versión oscura. */
.rueda-noche {
  --cream: var(--night);
  --ink: var(--ink-on-dark);
  --gold: var(--gold-light);
  --hairline: rgba(212, 177, 114, 0.4);
  --rueda-texto-casas: rgba(237, 229, 214, 0.6);
  width: 100%; max-width: 380px; margin-inline: auto;
}
.rueda-noche svg, .rueda-papel svg { width: 100%; height: auto; display: block; }
.rueda-noche svg > circle:first-of-type { fill: var(--night) !important; }
.rueda-signo-simbolo { font-family: var(--font-serif); font-size: 14px; fill: var(--gold); text-anchor: middle; dominant-baseline: middle; }
.rueda-planeta-simbolo { font-family: var(--font-serif); font-size: 15px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.rueda-casa-numero { font-family: var(--font-sans); font-size: 9px; fill: var(--rueda-texto-casas); text-anchor: middle; dominant-baseline: middle; }
.rueda-eje-label { font-family: var(--font-sans); font-size: 10px; font-weight: 600; fill: var(--gold); text-anchor: middle; dominant-baseline: middle; }

/* Variante sobre papel (páginas de muestra). Valores literales: redefinir
   --ink con var(--ink) sería una referencia circular. */
.rueda-papel {
  --cream: #FBF7EF;
  --ink: #1D1A15;
  --gold: #8C6A36;
  --hairline: rgba(176, 138, 79, 0.45);
  --rueda-texto-casas: #5E5547;
  width: 100%; margin-inline: auto;
}
.rueda-papel svg > circle:first-of-type { fill: transparent !important; }

.bigthree-card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.bigthree-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; margin-bottom: var(--s-4); }
.bigthree { display: grid; gap: var(--s-4); }
.bigthree li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.bigthree__glyph {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center; color: var(--gold-deep);
}
.bigthree__glyph .icon { width: 22px; height: 22px; }
.bigthree__kicker { font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.bigthree__sign { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.2; }
.bigthree__meta { font-size: 0.8rem; color: var(--ink-soft); }
.bigthree__text { font-size: 0.9rem; color: var(--ink-soft); margin-top: var(--s-2); }
.bigthree--full { gap: var(--s-6); }
.bigthree--full li { padding-bottom: var(--s-5); border-bottom: 1px solid var(--hairline); }
.bigthree--full li:last-child { border-bottom: 0; padding-bottom: 0; }

.essence-grid { display: grid; gap: var(--s-4); }
.essence {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.essence__title { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: var(--s-2); }
.essence__text { font-size: 0.93rem; color: var(--ink-soft); }
.essence__tag { margin-top: var(--s-4); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.essence--wide { grid-column: 1 / -1; border-top-color: var(--hairline-strong); }
.element-bars { display: grid; gap: var(--s-2); margin-top: var(--s-4); max-width: 30rem; }
.element-row { display: grid; grid-template-columns: 4.5rem 1fr 1.5rem; gap: var(--s-3); align-items: center; font-size: 0.8rem; color: var(--ink-soft); }
.element-row__track { height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.element-row__track span { display: block; height: 100%; background: var(--gold); }

.result__next {
  display: grid; gap: var(--s-4); justify-items: start;
  margin-top: var(--s-7); padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.result__next p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.4; max-width: 36rem; }

/* ---------- 10. ¿Qué es? ---------- */
.about {
  position: relative;
  background: var(--paper);
  padding-block: var(--section-y) calc(var(--section-y) + var(--r-sheet));
  overflow: hidden;
  isolation: isolate;
}
.about__grid { display: grid; gap: var(--s-7); align-items: center; }
.about__copy .lede { margin-bottom: var(--s-6); }
.about__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
  border-block: 1px solid var(--hairline);
  padding-block: var(--s-4);
  margin-bottom: var(--s-6);
  max-width: 34rem;
}
.about__facts dt { font-family: var(--font-serif); font-size: 1.2rem; }
.about__facts dd { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.about__art { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 8%; }
.rueda-noche--deco {
  max-width: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 30px 60px -30px rgba(7, 11, 20, .8);
  background: var(--night);
}
.moon {
  position: absolute; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, #F6EEDD, #D8C9AC 55%, #B9A887 100%);
  box-shadow: inset -6px -8px 14px rgba(90, 70, 40, .25), 0 10px 24px -10px rgba(7, 11, 20, .5);
}
.moon::after { /* cráteres suaves */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 40%, rgba(120, 100, 70, .18) 0 8%, transparent 9%),
              radial-gradient(circle at 40% 68%, rgba(120, 100, 70, .14) 0 10%, transparent 11%),
              radial-gradient(circle at 30% 30%, rgba(120, 100, 70, .1) 0 6%, transparent 7%);
}
.moon--a { width: 16%; aspect-ratio: 1; top: 18%; left: -2%; }
.moon--b { width: 24%; aspect-ratio: 1; bottom: 2%; left: 18%; }
.marble-rock {
  position: absolute; z-index: 2; right: -6%; bottom: -4%; width: 62%; height: 26%;
  background: linear-gradient(160deg, #F8F2E6, #E4D8C2);
  border-radius: 60% 40% 0 0 / 80% 70% 0 0;
  box-shadow: 0 -8px 30px -12px rgba(7, 11, 20, .25);
}
.marble-rock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--veins); background-size: 500px auto; opacity: .5; }

/* ---------- 11. Producto ---------- */
.product { margin-top: calc(var(--r-sheet) * -1); overflow: hidden; }
.product__arch { display: none; }
.product__grid { display: grid; gap: var(--s-7); }
.product__head .lede { margin-bottom: 0; }
.product__arch .media-slot--tall > img { object-position: 50% center; }

.book { position: relative; display: grid; grid-template-columns: 40% 60%; align-items: end; }
.book__cover {
  position: relative; z-index: 2;
  transform: rotate(-4deg) translateY(4%);
  box-shadow: -18px 30px 40px -18px rgba(7, 11, 20, .6);
  border-radius: 2px 4px 4px 2px; overflow: hidden;
}
.book__cover img { width: 100%; height: auto; }
.book__spread {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-left: -8%;
  background: var(--ivory);
  box-shadow: var(--shadow-page);
  border-radius: 2px;
  transform: perspective(1200px) rotateY(-6deg);
}
.page { position: relative; padding: 12% 10% 16%; min-height: 100%; font-size: 0.7rem; }
.page--left { background: linear-gradient(90deg, #FBF7EF 85%, #EBE1CE); padding-left: 20%; }
.page--right { background: linear-gradient(270deg, #FBF7EF 85%, #EBE1CE); }
.page__kicker { font-size: 0.55rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s-1); }
.page__title { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: var(--s-2); }
.page__text { font-family: var(--font-serif); font-size: 0.78rem; line-height: 1.45; color: var(--ink-soft); }
.page__img { margin-top: var(--s-3); background: var(--night); border-radius: 2px; padding: 12% 8% 0; }
.page__img svg, .page__bust svg { width: 100%; fill: none; stroke: var(--gold-light); stroke-width: 1.2; }
.page__bust { background: var(--paper); border-radius: var(--arch); padding: 10% 18% 0; margin-bottom: var(--s-3); }
.page__bust svg { stroke: var(--gold-deep); }
.page__num { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-size: 0.55rem; color: var(--ink-soft); }

.includes {
  background: rgba(251, 247, 239, .8);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s-6);
  box-shadow: var(--shadow-soft);
}
.includes__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.6rem; margin-bottom: var(--s-4); }
.includes__list { display: grid; gap: var(--s-3); }
.includes__list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 0.93rem; }
.includes__list .icon { color: var(--gold-deep); margin-top: .2em; }

/* ---------- 12. Preview / carrusel ---------- */
.preview { overflow: hidden; }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: var(--s-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: var(--s-5) max(var(--gutter), calc((100vw - 300px) / 2)) var(--s-7);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.leaf {
  position: relative;
  flex: 0 0 min(72vw, 300px);
  aspect-ratio: 5 / 7.2;
  scroll-snap-align: center;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-page);
  padding: 2.4rem 1.8rem 2.6rem 2.2rem;
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.leaf::before { /* sombra de lomo */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 12%;
  background: linear-gradient(90deg, rgba(90, 70, 40, .12), transparent);
  pointer-events: none;
}
.leaf--cover { padding: 0; border: 0; background: var(--night); overflow: hidden; }
.leaf--cover img { width: 100%; height: 100%; object-fit: cover; }
.leaf__title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.1; }
.leaf .page__text { font-size: 0.9rem; }
.leaf__art { margin-top: auto; background: var(--paper); border-radius: var(--arch); padding: 10% 20% 0; }
.leaf__art svg { width: 100%; fill: none; stroke: var(--gold-deep); stroke-width: 1.1; }
.leaf__wheel { max-width: 100%; }
.leaf__quote { margin-top: auto; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); border-left: 1px solid var(--gold); padding-left: var(--s-3); }
.leaf__list { display: grid; gap: var(--s-3); font-family: var(--font-serif); font-size: 0.98rem; color: var(--ink-soft); }
.leaf__list li { padding-bottom: var(--s-3); border-bottom: 1px solid var(--hairline); }
.leaf__list strong { color: var(--ink); font-weight: 600; }
.leaf .page__kicker { font-size: 0.62rem; }
.leaf .page__num { font-size: 0.66rem; }

.carousel__btn {
  position: absolute; top: calc(50% - 30px); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--night); color: var(--ink-on-dark);
  border: 1px solid var(--hairline-dark); cursor: pointer;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.carousel__btn:hover { background: var(--night-soft); }
.carousel__btn[disabled] { opacity: .25; cursor: default; }
.carousel__btn--prev { left: var(--gutter); }
.carousel__btn--next { right: var(--gutter); }
.carousel__dots { display: flex; justify-content: center; gap: var(--s-2); }
.carousel__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-strong); transition: background-color .3s, transform .3s; }
.carousel__dots span.is-active { background: var(--night); transform: scale(1.3); }
.preview__note { margin-top: var(--s-5); text-align: center; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- 13. Precios ---------- */
.pricing {
  position: relative;
  background: var(--marble);
  padding-block: calc(var(--section-y) + var(--r-sheet)) calc(var(--section-y) + var(--r-sheet));
  margin-top: calc(var(--r-sheet) * -1);
  overflow: hidden;
  isolation: isolate;
}
.pricing__arch {
  display: none;
  position: absolute; z-index: -1; bottom: 0; width: 220px; height: 70%;
  border: 1px solid var(--hairline-strong); border-bottom: 0; border-radius: var(--arch);
}
.pricing__arch::before { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid var(--hairline); border-bottom: 0; border-radius: var(--arch); }
.pricing__arch--left { left: -60px; }
.pricing__grid { display: grid; gap: var(--s-6); max-width: 860px; margin-inline: auto; align-items: stretch; }
.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
  background: rgba(251, 247, 239, .9);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-card);
  padding: var(--s-7) var(--s-6) var(--s-6);
  text-align: center;
}
.price-card__emblem { width: 44px; height: 44px; margin-inline: auto; fill: none; stroke: var(--gold-deep); stroke-width: 1; }
.price-card__name { font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.price-card__price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-deep); }
.price-card .checklist { text-align: left; margin-block: var(--s-3) var(--s-5); flex: 1; align-content: start; }
.price-card__note { display: flex; justify-content: center; align-items: center; gap: var(--s-2); font-size: 0.74rem; color: var(--ink-on-dark-soft); }
.price-card--featured {
  background: var(--night);
  color: var(--ink-on-dark);
  border-color: var(--gold);
  box-shadow: 0 40px 80px -40px rgba(7, 11, 20, .75), inset 0 0 0 5px var(--night), inset 0 0 0 6px var(--hairline-dark);
}
.price-card--featured .price-card__price { color: var(--gold-light); font-size: 2rem; }
.price-card__seal {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold-light); color: var(--night);
  font-size: 0.64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  padding: var(--s-1) var(--s-4); border-radius: var(--r-hair);
}
.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 0.93rem; }
.checklist .icon { color: var(--gold-deep); margin-top: .15em; }
.checklist--light .icon { color: var(--gold-light); }

/* ---------- 14. Testimonios ---------- */
.testimonials {
  margin-top: calc(var(--r-sheet) * -1);
  background: var(--night-deep) url("img/cielo-noche.webp") center 30% / cover;
}
.testimonials::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 11, 20, .72); border-radius: inherit; }
.quotes { display: grid; gap: var(--s-5); }
.quote-card {
  background: var(--ivory); color: var(--ink);
  border-radius: var(--r-card);
  padding: var(--s-6) var(--s-5) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-5);
  position: relative;
}
.quote-card::before { /* marco interior fino, como ficha impresa */
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--hairline); border-radius: 3px; pointer-events: none;
}
.quote-card blockquote { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.4; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: 0.82rem; color: var(--ink-soft); }
.quote-card__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline-strong); font-family: var(--font-serif); color: var(--gold-deep);
}
.quote-card[data-placeholder] { outline: 1px dashed rgba(212, 177, 114, .7); outline-offset: 4px; }
.quote-card[data-placeholder] blockquote { color: var(--ink-soft); font-style: italic; }

/* ---------- 15. FAQ ---------- */
.faq { overflow: hidden; }
.faq__grid { display: grid; gap: var(--s-7); align-items: center; }
.faq__figure { width: min(70%, 300px); margin-inline: auto; }
.faq__figure .media-slot--bust > img { object-position: 66% center; }
.accordion { margin-top: var(--s-5); border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--gold-deep); transition: transform .35s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion details p { padding: 0 var(--s-6) var(--s-5) 0; color: var(--ink-soft); font-size: 0.95rem; animation: fade .4s var(--ease); }

/* ---------- 16. Valores ---------- */
.values {
  position: relative;
  background: var(--night);
  color: var(--ink-on-dark);
  padding-block: calc(var(--section-y) * .8);
  text-align: center;
  isolation: isolate;
}
.values::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/cielo-noche.webp") center 70% / cover; opacity: .5; }
.values__list { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
.values__list li { display: grid; justify-items: center; gap: var(--s-2); }
.values__list .icon { color: var(--gold-light); margin-bottom: var(--s-2); }
.values__list strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; }
.values__list span { font-size: 0.88rem; color: var(--ink-on-dark-soft); max-width: 18rem; }

/* ---------- 17. Cierre y footer ---------- */
.closing {
  position: relative;
  background: var(--night-deep);
  color: var(--ink-on-dark);
  text-align: center;
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--hairline-dark);
}
.closing::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/cielo-noche.webp") center bottom / cover; opacity: .8; }
.closing__constellation { position: absolute; z-index: -1; width: min(80vw, 520px); left: 50%; top: 4%; transform: translateX(-50%); opacity: .5; }
.closing__inner { display: grid; justify-items: center; gap: var(--s-5); }
.h-display--closing { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); max-width: 20ch; }
.closing__tag { margin: var(--s-4) 0 0; }

.site-footer { background: var(--night-deep); color: var(--ink-on-dark-soft); padding-block: var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline-dark); }
.site-footer__inner { display: grid; justify-items: center; gap: var(--s-4); text-align: center; }
.site-footer__social { display: flex; gap: var(--s-4); }
.site-footer__social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline-dark); color: var(--gold-light);
}
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__disclaimer { font-size: 0.78rem; max-width: 32rem; }
.site-footer__meta { font-size: 0.74rem; }
.site-footer__meta a { color: var(--gold-light); text-decoration: none; }

/* ---------- 18. Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- 19. ≥ 600px ---------- */
@media (min-width: 600px) {
  .essence-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .values__list { grid-template-columns: repeat(3, 1fr); }
  .values__list li + li { border-left: 1px solid var(--hairline-dark); }
  .field { grid-column: span 1; }
  .field--full { grid-column: 1 / -1; }
  .pricing__grid { grid-template-columns: 1fr 1.12fr; }
}

/* ---------- 20. ≥ 860px ---------- */
@media (min-width: 860px) {
  .site-nav { display: flex; }

  .hero { min-height: min(100svh, 900px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: .88fr 1.12fr; align-items: center; }
  .hero__figure { order: 0; width: 100%; max-width: 560px; justify-self: end; }
  .hero__figure .media-slot--hero { aspect-ratio: 4 / 5; }
  .hero__constellation { left: 38%; top: 120px; }

  .gen { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .gen__figure { display: block; max-width: 400px; justify-self: end; width: 100%; }

  .result__wheel-layout { grid-template-columns: 1.1fr 0.9fr; }

  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__art { margin-right: calc(var(--gutter) * -1); }

  .product__grid { grid-template-columns: 1.35fr 0.65fr; grid-template-areas: "head head" "book incl"; column-gap: var(--s-7); padding-left: clamp(0px, 16vw, 230px); }
  .product__head { grid-area: head; }
  .book { grid-area: book; }
  .includes { grid-area: incl; align-self: end; }
  .product__arch { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(160px, 18vw, 260px); }
  .product__arch .arch { height: 100%; border-radius: 0 999px 0 0; }
  .product__arch .media-slot { height: 100%; aspect-ratio: auto; }

  .carousel__btn { display: grid; }
  .carousel__track { padding-inline: max(var(--gutter), calc((100vw - 960px) / 2)); }
  .leaf { flex-basis: 300px; }

  .pricing__arch { display: block; }

  .faq__grid { grid-template-columns: 1.15fr 0.85fr; }
  .faq__figure { width: 100%; max-width: 380px; justify-self: end; }
}

@media (min-width: 1100px) {
  .hero .h-display { max-width: 13ch; }
}

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}

/* Lista de correos (Big 3 por correo) */
.natal-form .opcional { font-weight: 400; opacity: .7; }
.check-big3 { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3, 12px); align-items: start; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.check-big3 input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; padding: 0; accent-color: var(--gold-deep, #8c5f24); -webkit-appearance: auto; appearance: auto; }
.check-big3 a { color: var(--gold-deep, #8c5f24); }
.error-big3 { min-height: 1em; margin: 0; font-size: 0.85rem; color: #9b3b2f; }
.error-big3:empty { display: none; }
.aviso-big3 { margin: 0 0 var(--s-5, 20px); padding: 12px 16px; border: 1px solid var(--gold, #b8955a); border-radius: 10px; font-size: 0.92rem; line-height: 1.5; }
.aviso-big3[data-estado="error"] { border-color: #9b3b2f; color: #9b3b2f; }
