/* Sol Domínguez — escenario partido: a la derecha, Sol trabajando (fijo, cambia con cada sección);
   a la izquierda, una columna de lectura tranquila sobre papel de lino. */
:root {
  --ground: #ECE6DD;
  --paper: #F9F6F1;
  --sand: #E2D4BF;
  --wood: #8A6A4E;
  --ink: #2A2826;
  --soft: #5E564E;
  --olive: #5F6A43;
  --olive-deep: #4E583A;
  --amber: #A8761F;
  --amber-soft: #EBD9B0;
  --night: #2A2826;
  --night-2: #34302C;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* cinco tamaños */
  --s-xl: clamp(40px, 6vw, 88px);
  --s-l: clamp(38px, 3.5vw, 54px);
  --s-m: clamp(27px, 2.4vw, 36px);
  --s-body: 18px;
  --s-small: 15px;

  --r: 14px;
  --gap: 12px;
  --pad: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: var(--s-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--s-m); font-weight: 500; line-height: 1.1; }
h3 { font-size: var(--s-body); font-weight: 600; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--olive); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: var(--s-body); padding: 16px 30px; border-radius: 999px;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--olive-deep); }
.btn:active { transform: scale(.97); }
.btn-small { font-size: var(--s-small); padding: 12px 22px; }

/* ---------- escenario partido ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap);
  padding: var(--gap); padding-left: max(var(--gap), env(safe-area-inset-left, 0px)); padding-right: max(var(--gap), env(safe-area-inset-right, 0px));
}
.read { min-width: 0; }
.stage {
  position: sticky; top: var(--gap); height: calc(100svh - var(--gap) * 2);
  border-radius: var(--r); overflow: hidden; background: var(--wood);
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.layer.is-on { opacity: 1; }
.layer.drift.is-on { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.m-only { display: none; }

/* ---------- inicio ---------- */
.card {
  position: relative; min-height: calc(100svh - var(--gap) * 2);
  background: var(--paper); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  text-align: center; padding: 120px var(--pad) 120px;
}
.sunrise { position: absolute; top: 34px; left: 50%; width: 260px; height: 28px; transform: translateX(-50%); overflow: visible; }
.sunrise circle { fill: var(--amber); }
.sunrise .rays path { stroke: var(--amber); stroke-width: 6; stroke-linecap: round; fill: none; }
.wordmark { font-family: var(--serif); font-size: var(--s-m); font-weight: 500; letter-spacing: -0.01em; }
.hero h1 { font-size: var(--s-l); max-width: 15ch; }
.lede { max-width: 36ch; }
.hero-links {
  position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 26px; font-size: var(--s-small); padding-inline: 20px;
}
.hero-links a { position: relative; text-decoration: none; padding: 4px 0; }
.hero-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hero-links a:hover::after { transform: scaleX(1); }

/* ---------- secciones de lectura ---------- */
.section { padding: clamp(96px, 12vw, 180px) var(--pad); display: grid; gap: 28px; align-content: start; }
.section > h2 { max-width: 20ch; }
.sub { max-width: 46ch; }

/* ¿Dónde te duele? */
.map { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 600px; }
.body { width: 100%; height: auto; }
.silhouette > * { fill: var(--sand); }
.spot { cursor: pointer; }
.spot .dot { fill: var(--amber); transition: r .3s var(--ease); }
.spot .ring { fill: none; stroke: var(--amber); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.spot.is-on .dot { fill: var(--olive); }
.spot.is-on .ring { stroke: var(--olive); }
@keyframes pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.zones { display: grid; gap: 4px; }
.zone {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: 10px; padding: 10px 14px;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.zone:hover { background: var(--sand); }
.zone:active { transform: scale(.985); }
.zone[aria-pressed="true"] { background: var(--olive); color: var(--paper); }
.zone small { font-size: var(--s-small); opacity: .8; white-space: nowrap; }
.answer { background: var(--paper); border-radius: var(--r); padding: 28px 30px; display: grid; gap: 12px; max-width: 600px; justify-items: start; }
.answer-zone { font-family: var(--serif); font-size: var(--s-m); line-height: 1.1; }
.answer-why, .answer-what { max-width: 48ch; }
.answer-what strong { font-weight: 600; }
.answer.swap > * { animation: swapIn .5s var(--ease) both; }
.answer.swap > *:nth-child(2) { animation-delay: .06s; }
.answer.swap > *:nth-child(3) { animation-delay: .12s; }
.answer.swap > *:nth-child(4) { animation-delay: .18s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Precios como un menú */
.menu { display: grid; gap: 48px; max-width: 560px; }
.group { display: grid; gap: 22px; }
.group h3 { font-family: var(--serif); font-size: var(--s-m); font-weight: 400; letter-spacing: -0.01em; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; }
.item .name { font-weight: 600; }
.item .price { font-variant-numeric: tabular-nums; font-weight: 600; }
.item .desc { grid-column: 1 / -1; color: var(--soft); font-size: var(--s-small); max-width: 46ch; }

/* ---------- así es una sesión (ancho completo) ---------- */
.sesion {
  background: var(--olive); color: var(--paper);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px;
  padding: clamp(96px, 12vw, 180px) max(var(--pad), env(safe-area-inset-right, 0px)) clamp(96px, 12vw, 180px) max(var(--pad), env(safe-area-inset-left, 0px));
  margin: 0 var(--gap);
  border-radius: var(--r);
}
.sesion-text { grid-column: 1 / 6; display: grid; gap: 28px; align-content: start; }
.sesion h2 { font-size: var(--s-l); font-weight: 400; }
.sesion-text > p { max-width: 40ch; }
.sesion-photo { width: 62%; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.sesion-photo img { width: 100%; height: 100%; object-fit: cover; }
.slip {
  grid-column: 7 / 12; align-self: start; background: var(--paper); color: var(--ink);
  padding: 40px 36px 64px; display: grid; gap: 28px; font-size: 16px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px));
}
.slip-title { font-family: var(--serif); font-size: var(--s-m); line-height: 1.1; }
.slip-group { display: grid; gap: 10px; }
.slip-head { font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 18px; }
.row span:last-child { white-space: nowrap; color: var(--soft); }
.row.total { background: var(--ink); color: var(--paper); margin: 0 -36px; padding: 12px 36px; font-weight: 600; }
.row.total span:last-child { color: var(--paper); }

/* ---------- sobre Sol: una carta ---------- */
.carta { max-width: calc(520px + var(--pad) * 2); gap: 18px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.carta p { max-width: 46ch; }
.carta mark { background: var(--amber-soft); color: inherit; padding: 0 .15em; }
.sign { font-family: var(--serif); font-style: italic; font-size: var(--s-m); margin-top: 12px; line-height: 1.1; }
.role { color: var(--soft); font-size: var(--s-small); }

/* Frases */
.quote p { font-family: var(--serif); font-style: italic; font-size: var(--s-m); line-height: 1.25; max-width: 22ch; }
.attr { color: var(--soft); font-size: var(--s-small); max-width: 40ch; }
.small-photo { width: 46%; margin-left: auto; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; margin-top: 24px; }
.small-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Encuentros */
.encuentros > p { max-width: 38ch; }
.encuentros .first { font-weight: 500; }
.encuentros a { font-weight: 600; color: var(--olive); }

/* Preguntas */
.faq { gap: 22px; }
.faq > p { max-width: 50ch; }
.faq strong { font-weight: 600; }

.layer.pos-left { object-position: 30% 50%; }

/* ---------- contacto en filas grandes ---------- */
.contacto { margin: var(--gap); border-radius: var(--r); overflow: hidden; background: var(--night); color: var(--paper); }
.crow {
  font-family: var(--serif); font-size: var(--s-xl); line-height: 1; letter-spacing: -0.02em;
  min-height: clamp(96px, 10vw, 150px); display: flex; align-items: flex-end; gap: 24px;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px));
}
.crow:nth-child(even) { background: var(--night-2); }
.crow a { text-decoration: none; }
.crow a:hover { color: var(--amber-soft); }
.greet { background: var(--olive) !important; align-items: center; padding-top: 22px; }
.go {
  display: inline-grid; place-items: center; width: .9em; height: .9em; border-radius: 50%;
  background: var(--paper); color: var(--olive); flex: none; transition: transform .25s var(--ease);
}
.go:hover { transform: translateX(6px); }
.go svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- pie ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px;
  padding: 20svh max(24px, env(safe-area-inset-right, 0px)) 96px max(24px, env(safe-area-inset-left, 0px));
  font-size: var(--s-small); color: var(--soft);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); }
.foot-right { text-align: right; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 20; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; background: var(--olive); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: var(--s-small); padding: 12px 18px 12px 14px; border-radius: 999px;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .25s var(--ease);
}
.wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-float:hover { background: var(--olive-deep); }
.wa-float.show:active { transform: scale(.96); }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- entradas ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- celular (la mayoría de las visitas) ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .split { grid-template-columns: minmax(0, 1fr); padding: 8px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .stage { display: none; }
  .m-only { display: block; }

  /* inicio: la foto en movimiento arriba, la tarjeta se monta encima */
  .hero-media { height: 46svh; min-height: 280px; border-radius: var(--r); overflow: hidden; }
  .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .card { min-height: 0; margin-top: -24px; padding: 54px 20px 24px; gap: 16px; }
  .sunrise { top: 20px; width: 200px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 17px; }
  .card .btn { width: 100%; max-width: 360px; }
  .hero-links { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; width: 100%; padding: 6px 0 0; }
  .hero-links a { padding: 12px 0; }

  .section { padding: 64px 10px 16px; gap: 22px; }

  /* ¿Dónde te duele? */
  .map { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .zone { padding: 11px 12px; }
  .zone small { display: none; }
  .answer { padding: 22px 20px; scroll-margin: 24px; }

  .inline-photo { aspect-ratio: 4 / 5; max-height: 72svh; border-radius: var(--r); overflow: hidden; margin-top: 8px; }
  .inline-photo img { width: 100%; height: 100%; object-fit: cover; }
  .carta .inline-photo { aspect-ratio: 4 / 3; }

  .menu { gap: 40px; }
  .group { gap: 18px; }

  .sesion { grid-template-columns: minmax(0, 1fr); padding: 64px 20px; margin: 0 8px; row-gap: 36px; }
  .sesion-text, .slip { grid-column: 1; }
  .sesion-photo { width: 64%; }
  .slip { padding: 30px 22px 54px; }
  .row.total { margin: 0 -22px; padding: 12px 22px; }

  .small-photo { width: 64%; }

  .contacto { margin: 8px; }
  .crow { font-size: clamp(26px, 8vw, 40px); line-height: 1.05; min-height: 76px; padding: 14px 18px 14px; }
  .greet { justify-content: space-between; }
  .go { width: 56px; height: 56px; font-size: 20px; }

  .foot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12svh; padding-bottom: 104px; }
  .foot-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer { transition: none; }
  .layer.drift.is-on, .spot .ring { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .answer.swap > * { animation: none; }
}
