/* Apapacho, "sobremesa nocturna" v3. Editorial cinético: type gigante, photo-mask, sticky stack. */

@font-face {
  font-family: 'Boska';
  src: url('fonts/Boska-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Boska';
  src: url('fonts/Boska-VariableItalic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #181210;
  --surface: #251b15;
  --surface-2: #2e231b;
  --border: #3a2d22;
  --text: #f4ebdd;
  --text-2: #a8988a;
  --accent: #e8a94e;
  --accent-text: #241708;
  --support: #d97b63;
  --error: #e07856;

  --font-display: 'Boska', Georgia, serif;
  --font-body: 'General Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);

  --radius-media: 20px;
  --radius-input: 12px;
  --max-w: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf6ee;
    --surface: #fffdf7;
    --surface-2: #f4ecdd;
    --border: #e6d9c4;
    --text: #251f17;
    --text-2: #6e5f4e;
    --accent: #a86f14;
    --accent-text: #fff8ea;
    --support: #b05f4b;
    --error: #b3401f;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-text); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: light) {
  .grain { opacity: 0.035; }
  .hero__word--mask .wipe {
    filter: sepia(0.3) saturate(1.0) contrast(1.25) brightness(0.42);
    background-position: 50% 14%;
  }
  .wordmark__text { filter: sepia(0.3) saturate(1.0) brightness(0.85) contrast(1.05); }
}

.display {
  font-family: var(--font-display);
  font-weight: 440;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 400; }

h2.display {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  padding-bottom: 0.15em;
}

p { max-width: 65ch; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fotos: tratamiento único + arco superior */
.photo {
  filter: sepia(0.28) saturate(1.05) contrast(0.95) brightness(0.82);
  border: 1px solid var(--border);
  border-radius: 999px 999px var(--radius-media) var(--radius-media);
}
@media (prefers-color-scheme: light) {
  .photo { filter: sepia(0.18) saturate(1.0) contrast(0.95) brightness(1.0); }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { filter: brightness(1.1); }
  .btn--ghost:hover { border-color: var(--support); }
}
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }

/* Nav */
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:not(.btn):hover { color: var(--text); }
}

/* HERO v3: dos palabras gigantes — outline + photo mask */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-size: clamp(3.2rem, 11.5vw, 10rem);
  line-height: 0.94;
  font-weight: 460;
  letter-spacing: -0.02em;
}
.hero__word { display: block; overflow: hidden; padding-bottom: 0.06em; }
.wipe {
  display: inline-block;
  transform: translateY(112%);
  animation: rise 1.2s var(--ease-expo) forwards;
}
.wipe--late { animation-delay: 0.15s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__word--outline {
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 62%, transparent);
  color: transparent;
}
.hero__word--mask .wipe {
  font-style: italic;
  background-image: url('assets/img/mask-strip.webp');
  background-size: cover;
  background-position: 50% 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: sepia(0.25) saturate(1.0) contrast(1.1) brightness(1.0);
  animation: rise 1.2s var(--ease-expo) forwards;
}

.hero__meta {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 74%;
}
.hero__sub {
  color: var(--text-2);
  font-size: 1.15rem;
  max-width: 40ch;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.orb-card {
  position: absolute;
  right: 1.5rem;
  top: 6.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.375rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.orb-card__ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: orb 8s var(--ease-breath) infinite;
}
.orb-card__label { font-size: 0.875rem; color: var(--text-2); font-weight: 500; letter-spacing: 0.02em; }
@keyframes orb {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.55); opacity: 1; }
}

/* Manifiesto con foto */
.manifesto { max-width: var(--max-w); margin: 0 auto; padding: 9rem 1.5rem; }
.manifesto__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}
.manifesto__media .photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.manifesto__text {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.36;
}
.manifesto__text em { color: var(--accent); }
.manifesto__cap {
  float: left;
  font-size: 4.4em;
  line-height: 0.78;
  padding-right: 0.12em;
  padding-top: 0.07em;
  font-style: italic;
  color: var(--accent);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Features: sticky stack sin JS */
.features { max-width: var(--max-w); margin: 0 auto; padding: 6.5rem 1.5rem 8rem; }
.features__head { margin-bottom: 3.5rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--support);
  margin-bottom: 1.1rem;
}
.stack { display: flex; flex-direction: column; gap: 2rem; }
.stack-card {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  min-height: 62vh;
}
.stack-card:nth-child(2) { top: 112px; grid-template-columns: 1fr; min-height: 52vh; }
.stack-card:nth-child(3) { top: 128px; grid-template-columns: 1fr; min-height: 48vh; }
.stack-card--tint { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.stack-card__body .ph { font-size: 1.75rem; color: var(--accent); display: block; margin-bottom: 1.25rem; }
.stack-card__body h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 460;
  margin-bottom: 1rem;
}
.stack-card__body p { color: var(--text-2); font-size: 1.1rem; max-width: 46ch; }
.stack-card__media .photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-media) var(--radius-media);
}

/* Un respiro + ghost word */
.breath {
  position: relative;
  overflow: hidden;
  padding: 9rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 24vw, 22rem);
  font-style: italic;
  font-weight: 400;
  -webkit-text-stroke: 1px var(--border);
  color: transparent;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.breath__inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }
.breath__sub { color: var(--text-2); margin: 1rem auto 3.5rem; max-width: 40ch; }
.breath__stage {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.breath__ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.breath__ring--1 { width: 210px; height: 210px; }
.breath__ring--2 { width: 268px; height: 268px; opacity: 0.6; }
.breath__circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform 4000ms var(--ease-breath), opacity 600ms var(--ease-out);
}
.breath__circle[data-phase="inhala"] { transform: scale(1.42); transition-duration: 4000ms; }
.breath__circle[data-phase="sosten"] { transform: scale(1.42); transition-duration: 4000ms; }
.breath__circle[data-phase="exhala"] { transform: scale(1); transition-duration: 6000ms; }
.breath__phase { font-size: 2rem; margin-bottom: 0.5rem; min-height: 2.6rem; }
.breath__hint { color: var(--text-2); font-size: 0.9375rem; margin: 0 auto 2rem; max-width: 38ch; }
.breath__static { text-align: left; max-width: 320px; margin: 0 auto; color: var(--text-2); }
.breath__static li { margin-bottom: 0.5rem; }

/* Honestidad */
.honest { max-width: var(--max-w); margin: 0 auto; padding: 6.5rem 1.5rem; }
.honest__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}
.honest__text { color: var(--text-2); margin-top: 1.25rem; font-size: 1.1rem; }
.crisis {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  padding: 2.25rem;
}
.crisis__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.crisis__list { list-style: none; }
.crisis__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
}
.crisis__list li + li { border-top: 1px solid var(--border); }
.crisis__list span { color: var(--text-2); font-size: 0.9375rem; white-space: nowrap; }
.crisis__note { margin-top: 1.25rem; color: var(--support); font-size: 0.9375rem; font-style: italic; }

/* Privacidad */
.privacy { max-width: var(--max-w); margin: 0 auto; padding: 6.5rem 1.5rem; text-align: center; }
.privacy__list {
  list-style: none;
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.privacy__list li { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.privacy__list .ph { font-size: 1.375rem; color: var(--accent); }
.privacy__list span { color: var(--text-2); font-size: 0.9375rem; }

/* Lista de espera */
.waitlist { max-width: 660px; margin: 0 auto; padding: 6.5rem 1.5rem; text-align: center; }
.waitlist h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.waitlist__sub { color: var(--text-2); margin: 1rem auto 2.75rem; }
.waitlist__form { display: flex; flex-direction: column; gap: 1.25rem; text-align: left; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms var(--ease-out);
}
.field input::placeholder { color: var(--text-2); }
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__helper { color: var(--text-2); font-size: 0.875rem; }
.field__error { color: var(--error); font-size: 0.875rem; }
.waitlist__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
}
.waitlist__success .ph { font-size: 1.5rem; color: var(--support); }
.waitlist__success p { max-width: none; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 6.5rem 1.5rem; }
.faq__items { margin-top: 2.75rem; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent); }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-2);
  transition: transform 220ms var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 1.5rem; }

/* Wordmark gigante con foto */
.wordmark {
  overflow: hidden;
  padding: 3rem 0 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.wordmark__text {
  display: block;
  font-size: clamp(6rem, 23vw, 21rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  background-image: url('assets/img/mask-strip.webp');
  background-size: 120%;
  background-position: 50% 40%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: sepia(0.35) saturate(1.0) brightness(0.7) contrast(1.1);
  transform: translateY(16%);
  user-select: none;
}

/* Footer */
.footer { padding: 3rem 1.5rem; max-width: var(--max-w); margin: 0 auto; }
.footer__crisis {
  color: var(--text-2);
  font-size: 0.9375rem;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.footer__crisis a { color: var(--accent); text-decoration: none; }
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-2);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.footer__brand { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--text); }

/* Reveal on scroll: caen desde arriba */
[data-reveal] {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .wipe, .hero__word--mask .wipe { animation: none; transform: none; }
  .orb-card__ring { animation: none; }
  .marquee__track { animation: none; }
  .breath__circle { transition: none; }
  .btn, .btn:active { transition: none; transform: none; }
}

/* Mobile */
@media (max-width: 860px) {
  .hero { padding-top: 2.5rem; min-height: 0; }
  .hero__title { font-size: clamp(2.9rem, 15vw, 6rem); }
  .hero__meta { margin-top: 2.25rem; }
  .orb-card { position: static; margin-top: 2rem; align-self: flex-start; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .manifesto__media { max-width: 320px; }
  .manifesto { padding: 5.5rem 1.5rem; }
  .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(3) {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2rem;
    gap: 1.75rem;
  }
  .stack-card__media { max-width: 300px; }
  .honest__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .privacy__list { grid-template-columns: 1fr; gap: 1.5rem; }
  .features, .honest, .privacy, .waitlist, .faq { padding: 4.5rem 1.5rem; }
  .breath { padding: 5.5rem 1.5rem; }
  .nav__links a:not(.btn) { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .crisis__list li { flex-direction: column; gap: 0.125rem; }
  .crisis__list span { white-space: normal; }
  .wordmark__text { transform: translateY(22%); }
}

/* ===== v4 rareza: sticky nav, thread, spotlight, wave, orbit ===== */

/* Nav sticky con lens blur */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

section[id] { scroll-margin-top: 88px; }

/* Thread: hilo que te acompaña (scroll-driven, sin JS) */
.thread {
  position: fixed;
  left: 1.75rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 40;
  display: none;
}
.thread__dot {
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: threaddrop linear both;
  animation-timeline: scroll(root);
}
@keyframes threaddrop {
  to { transform: translateY(calc(100dvh - 24px)); }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 1280px) {
    .thread { display: block; }
  }
}

/* Spotlight border: el borde se ilumina cerca del cursor */
.spotlight { position: relative; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 60%, transparent),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .spotlight:hover::before { opacity: 1; }
}

/* Wave: onda de respiración que se dibuja */
.wave {
  width: 220px;
  height: 24px;
  margin: 0.75rem auto 0;
  color: var(--accent);
}
.wave path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease-expo);
}
.wave.in path, [data-reveal].in .wave path { stroke-dashoffset: 0; }

/* Orbit: texto circular alrededor del respiro */
.breath__orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  animation: orbitspin 48s linear infinite;
}
.breath__orbit text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  fill: var(--text-2);
}
@keyframes orbitspin {
  to { transform: rotate(360deg); }
}

/* Reduced motion: apagar lo nuevo */
@media (prefers-reduced-motion: reduce) {
  .thread__dot { animation: none; }
  .breath__orbit { animation: none; }
  .wave path { stroke-dashoffset: 0; transition: none; }
}

/* ===== v5: ciclo de fotos, reveals clip-path, zoom parallax, mask fallback ===== */

/* Fallback si el navegador no soporta background-clip:text */
@supports not (-webkit-background-clip: text) {
  .hero__word--mask .wipe,
  .wordmark__text {
    background-image: none;
    color: var(--accent);
    filter: none;
  }
}

/* Ciclo de fotos en el marco del manifiesto (3 fotos, 21s, solo CSS) */
.cycle { position: relative; aspect-ratio: 3/4; }
.cycle__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: cyclefade 21s ease-in-out infinite;
}
.cycle__img--1 { position: relative; }
.cycle__img--2 { animation-delay: -7s; }
.cycle__img--3 { animation-delay: -14s; }
@keyframes cyclefade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

/* Zoom parallax suave en el marco (donde haya scroll-driven animations) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cycle {
      animation: cyclezoom linear both;
      animation-timeline: view();
    }
    @keyframes cyclezoom {
      from { transform: scale(1); }
      to { transform: scale(1.06); }
    }
  }
}

/* Reveal de la foto del stack-card con clip-path */
.stack-card__media { overflow: hidden; border-radius: 999px 999px var(--radius-media) var(--radius-media); }
.stack-card__media .photo {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-expo) 0.15s;
}
.stack-card.in .stack-card__media .photo { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .cycle__img { animation: none !important; opacity: 0; }
  .cycle__img--1 { opacity: 1; }
  .stack-card__media .photo { clip-path: none; transition: none; }
}

/* ===== v6: badge pill, foto flotante, interludio full-bleed ===== */

/* Badge pill estilo tasteskill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  margin-bottom: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: none;
}
.hero__badge .ph { color: var(--accent); font-size: 0.9375rem; }

/* Foto flotante en el hero (lado derecho, rotación suave) */
.hero__float {
  position: absolute;
  right: -4rem;
  bottom: -1rem;
  width: 300px;
  z-index: 1;
  transform: rotate(2deg);
  border-radius: 999px 0 0 0;
  overflow: hidden;
  animation: floaty 9s var(--ease-breath) infinite alternate;
}
.hero__float .photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 0; border-radius: 999px 0 0 0; }
@keyframes floaty {
  from { transform: rotate(2deg) translateY(0); }
  to { transform: rotate(1deg) translateY(-14px); }
}

/* Interludio full-bleed */
.interlude {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.interlude__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: sepia(0.3) saturate(1.05) contrast(0.95) brightness(0.55);
}
.interlude__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.6));
}
.interlude__quote {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 4rem 1.5rem;
  text-align: center;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  color: #f4ebdd;
}
.interlude__quote em { display: block; color: var(--accent); margin-top: 0.2em; }
.interlude__rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 2rem auto 0;
  background: var(--accent);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .interlude__bg {
      animation: interludepan linear both;
      animation-timeline: view();
    }
    @keyframes interludepan {
      from { transform: translateY(-8%); }
      to { transform: translateY(0); }
    }
  }
}

/* CTA icono flecha */
.btn .ph-arrow-right { font-size: 1rem; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ph-arrow-right { transform: translateX(3px); }
}

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

@media (max-width: 1100px) {
  .hero__float { display: none; }
}
@media (max-width: 860px) {
  .interlude { min-height: 56vh; }
  .hero__badge { font-size: 0.75rem; }
}

/* ===== v6b: waitlist en banda de foto ===== */
.waitlist { max-width: var(--max-w); }
.waitlist__band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 4.5rem 2rem;
}
.waitlist__bgimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) saturate(1.0) contrast(0.95) brightness(0.5);
}
.waitlist__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.55));
}
.waitlist__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.waitlist__content .eyebrow { color: var(--accent); }
.waitlist__content h2 { color: #f4ebdd; }
.waitlist__content .waitlist__sub { color: rgb(244 235 221 / 0.75); }
.waitlist__content .field label { color: #f4ebdd; }
.waitlist__content .field input {
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(10px);
  border-color: rgb(255 255 255 / 0.25);
  color: #f4ebdd;
}
.waitlist__content .field input::placeholder { color: rgb(244 235 221 / 0.5); }
.waitlist__content .field input:focus { border-color: var(--accent); }
.waitlist__content .field__helper { color: rgb(244 235 221 / 0.6); }
.waitlist__content .waitlist__success {
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(10px);
  border-color: rgb(255 255 255 / 0.25);
  color: #f4ebdd;
}
@media (max-width: 860px) {
  .waitlist__band { padding: 3rem 1.25rem; }
}

/* ===== v7: mini stat-card flotante (estilo Nexora) ===== */
.hero__sos {
  position: absolute;
  right: 1.5rem;
  top: 11.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 1.125rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
  z-index: 2;
}
.hero__sos-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
}
.hero__sos-number {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: 0.01em;
}
@media (hover: hover) and (pointer: fine) {
  .hero__sos:hover { border-color: var(--accent); transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .hero__sos { display: none; }
}

/* ===== v8: statement con píldoras de imagen (estilo taste-skill) ===== */
.pills {
  padding: 8rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.pills__line {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.pills__line + .pills__line { margin-top: 0.35em; }
.pills__line--sans {
  font-family: var(--font-body);
  font-weight: 700;
}
.pills__line--serif {
  font-style: italic;
  font-weight: 420;
  color: var(--accent);
}
.pills__spark {
  font-style: normal;
  font-size: 0.5em;
  vertical-align: 0.35em;
  color: var(--support);
}
.imgpill {
  display: inline-block;
  height: 0.82em;
  aspect-ratio: 2.1 / 1;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.1em;
  border: 1px solid var(--border);
}
.imgpill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) saturate(1.05) contrast(0.95) brightness(0.85);
}
@media (max-width: 860px) {
  .pills { padding: 5rem 1.5rem; }
}

/* ===== v9: carga "caen del cielo" + stage 3D con hover ===== */

/* Cielo disparejo: cada pieza cae con su propio ritmo */
@keyframes dropin {
  from { opacity: 0; transform: translateY(-85%) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes dropinSoft {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: none; }
}

.hero__badge { animation: dropinSoft 0.9s var(--ease-expo) 0.06s both; }
.hero__word--outline .wipe { animation: dropin 1.1s var(--ease-expo) 0.18s both; }
.hero__word--mask .wipe { animation: dropin 1.1s var(--ease-expo) 0.34s both; }
.hero__sub { animation: dropinSoft 0.9s var(--ease-expo) 0.52s both; }
.hero__ctas { animation: dropinSoft 0.9s var(--ease-expo) 0.64s both; }
.hero__sos { animation: dropinSoft 0.9s var(--ease-expo) 0.8s both; }

/* Stage 3D: constelación de cards del producto */
.hero__stage {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-52%);
  width: 460px;
  height: 430px;
  perspective: 1100px;
  z-index: 2;
}
.stage-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.125rem 1.375rem;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(var(--rz, 0deg));
  transition: transform 550ms var(--ease-expo), border-color 300ms var(--ease-out);
  animation: stagein 1.1s var(--ease-expo) both;
  will-change: transform;
}
.stage-card:hover {
  border-color: var(--support);
}
@keyframes stagein {
  from { opacity: 0; transform: translateY(-70px) rotateY(-16deg) rotateX(7deg) rotateZ(var(--rz, 0deg)); }
  to { opacity: 1; transform: translateY(0) rotateY(-16deg) rotateX(7deg) rotateZ(var(--rz, 0deg)); }
}
.stage-card--chat { top: 0; right: 4.5rem; --rz: -2.5deg; animation-delay: 0.92s; max-width: 300px; }
.stage-card--checkin { top: 10.5rem; right: 0.5rem; --rz: 2deg; animation-delay: 1.06s; }
.stage-card--breath {
  top: 17rem;
  right: 13rem;
  --rz: -2deg;
  animation-delay: 1.22s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stage-card__kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.625rem;
}
.stage-card__bubble {
  background: var(--surface-2);
  border-radius: 12px 12px 12px 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  max-width: none;
}
.stage-card__bubble--me {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  border-radius: 12px 12px 4px 12px;
  margin-left: 1.5rem;
  margin-bottom: 0;
}
.stage-card__dots { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.stage-card__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}
.stage-card__dots i.on { background: var(--accent); border-color: var(--accent); }
.stage-card__small { font-size: 0.8125rem; color: var(--text-2); max-width: none; }
.stage-card__orb {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  animation: orb 8s var(--ease-breath) infinite;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .hero__stage {
    display: block;
    right: 0;
    transform: translateY(-52%) scale(0.72);
    transform-origin: right center;
  }
}
@media (max-width: 860px) {
  .hero__stage { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__word--outline .wipe,
  .hero__word--mask .wipe,
  .hero__sub,
  .hero__ctas,
  .hero__sos,
  .stage-card { animation: none !important; opacity: 1 !important; }
  .stage-card__orb { animation: none; }
}

/* ===== v9b: soslink discreto + constelación reordenada ===== */
.hero__soslink {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.125rem;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  animation: dropinSoft 0.9s var(--ease-expo) 0.8s both;
}
.hero__soslink strong { color: var(--accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .hero__soslink:hover { color: var(--text); border-color: var(--accent); }
}

/* Cascada deliberada: chat domina arriba, check-in+breath entrelazados, journal ancla */
.stage-card--chat { top: 0; right: 0; z-index: 3; --rz: -2deg; animation-delay: 0.92s; width: 300px; }
.stage-card--checkin { top: 12.5rem; right: 16.5rem; z-index: 2; --rz: 2deg; animation-delay: 1.06s; width: 172px; }
.stage-card--breath { top: 15rem; right: 0.75rem; z-index: 1; --rz: -1.5deg; animation-delay: 1.22s; }

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

/* ===== v10: ritmo apretado + features editorial + pills por elemento + mask light fallback ===== */

/* Ritmo vertical apretado */
.hero { min-height: calc(100dvh - 72px); padding: 2rem 1.5rem 3rem; }
.manifesto { padding: 5rem 1.5rem; }
.features, .honest, .privacy, .waitlist, .faq { padding: 4.5rem 1.5rem; }
.breath { padding: 6rem 1.5rem; }
.pills { padding: 5rem 1.5rem; }
.interlude { min-height: 56vh; }
.wordmark { padding: 2rem 0 0; }

/* Features: editorial foto + filas */
.features__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}
.features__media .photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.features__list h2 { margin-bottom: 1.75rem; }
.feature {
  display: flex;
  gap: 1.25rem;
  padding: 1.625rem 0;
  align-items: flex-start;
}
.feature + .feature { border-top: 1px solid var(--border); }
.feature .ph { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}
.feature p { color: var(--text-2); font-size: 1rem; max-width: 52ch; }
@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .features__media { max-width: 340px; }
}

/* Pills: animación exacta de tasteskill (blur+rise palabras, blur+side serif, scale-rotate pills, pop sparkle) */
@keyframes tsWord {
  from { opacity: 0; filter: blur(12px); transform: translateY(70px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes tsSerif {
  from { opacity: 0; filter: blur(8px); transform: translateX(-28px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes tsPill {
  from { opacity: 0; transform: scale(0.45) rotate(-22deg); }
  to { opacity: 1; transform: none; }
}
@keyframes tsSpark {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
  to { opacity: 1; transform: none; }
}
.pills .w, .pills .pills__spark, .pills .imgpill { display: inline-block; opacity: 0; }
.pills.in .w { animation: tsWord 1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
.pills.in .pills__line--serif .w { animation-name: tsSerif; }
.pills.in .imgpill {
  animation: tsPill 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 1s);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.28);
}
.pills.in .pills__spark { animation: tsSpark 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
@media (prefers-reduced-motion: reduce) {
  .pills .w, .pills .pills__spark, .pills .imgpill { opacity: 1; animation: none; }
}

/* Light mode: la máscara falla siempre, mejor acento sólido */
@media (prefers-color-scheme: light) {
  .hero__word--mask .wipe {
    background-image: none;
    color: var(--accent);
    filter: none;
  }
}

/* ===== v11: cuarta card (Diario con barras) ===== */
.hero__stage { height: 540px; }
.stage-card--journal { top: 23rem; right: 6rem; z-index: 2; --rz: 1.5deg; animation-delay: 1.38s; width: 295px; }
.stage-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-bottom: 0.5rem;
}
.stage-card__bars i {
  width: 6px;
  height: var(--h);
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.5;
}
.stage-card__bars i:nth-child(6) { opacity: 1; }

/* Trust controls: legal links, verified crisis contacts, honest waitlist state. */
.crisis__list a,
.footer a,
.faq a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.waitlist__consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .75rem;
  align-items: start;
  max-width: 48rem;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}

.waitlist__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  accent-color: var(--accent);
}

.waitlist__consent a {
  color: var(--text);
  text-underline-offset: .16em;
}

.waitlist__status {
  min-height: 1.5rem;
  color: var(--text);
  font-size: .9rem;
}

/* ============ Páginas legales ============ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.75rem 0 2rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.625rem; margin: 1rem 0; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal__notice {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-input);
  padding: 1rem 1.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.legal__back {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Iconos inline (antes Phosphor via unpkg) */
.ph {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
