/* ============================================================
   RoIAL.ai — sistema visual "Fiesta de mercado"
   Claymorphism + paleta del dragón RoI. Ver SITE_DESIGN.md §2/§7.
   ============================================================ */

:root {
  /* Paleta del plumaje de RoI */
  --lagoon: #12A0B3;
  --lagoon-deep: #0B7280;
  --jade: #2E9E4F;
  --jade-deep: #1E7A3C;
  --gold: #F4B223;
  --gold-deep: #C78D0E;
  --pink: #EE5FA7;
  --pink-deep: #B83D7E;
  --bone: #FBF1E4;
  --bone-2: #F6E7D2;
  --ink: #0E3A42;
  --ink-soft: #43606A;
  --white: #FFFFFF;

  /* Lavados de color (manchas de fiesta) */
  --wash-pink: rgba(238, 95, 167, 0.13);
  --wash-lagoon: rgba(18, 160, 179, 0.12);
  --wash-gold: rgba(244, 178, 35, 0.16);
  --wash-jade: rgba(46, 158, 79, 0.10);
  --wash-violet: rgba(124, 107, 201, 0.13);

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Sombra clay: doble inset + caída suave */
  --clay-shadow: inset 0 -10px 16px rgba(14, 58, 66, 0.05),
                 inset 0 8px 12px rgba(255, 255, 255, 0.85),
                 0 14px 30px rgba(14, 58, 66, 0.10);
  --clay-shadow-sm: inset 0 -6px 10px rgba(14, 58, 66, 0.05),
                    inset 0 5px 8px rgba(255, 255, 255, 0.8),
                    0 8px 18px rgba(14, 58, 66, 0.09);

  --radius: 26px;
  --radius-sm: 16px;
  --wrap: 1080px;
}

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

/* Gotcha real 2026-07-22: `overflow-x: hidden` convierte al body en scroller
   y rompe las anclas. `clip` recorta sin crear contenedor de scroll. */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--lagoon-deep); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 241, 228, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 58, 66, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
.nav-logo {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links { display: none; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--lagoon-deep); }
.nav-cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.96) translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: #3A2A00;
  box-shadow: 0 4px 0 var(--gold-deep), 0 12px 26px rgba(244, 178, 35, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold-deep), 0 16px 30px rgba(244, 178, 35, 0.42); }

.btn-ghost {
  background: var(--white);
  color: var(--lagoon-deep);
  box-shadow: inset 0 0 0 2px var(--lagoon), 0 6px 16px rgba(14, 58, 66, 0.08);
}
.btn-ghost:hover { transform: translateY(-2px); }
/* Botón que sostiene un estado de RoI (pensar / hablar): se queda hundido. */
.btn-ghost.is-on {
  background: var(--lagoon);
  color: var(--white);
  box-shadow: inset 0 3px 8px rgba(14, 58, 66, 0.35);
  transform: translateY(1px);
}

.btn-jade {
  background: var(--jade);
  color: var(--white);
  box-shadow: 0 4px 0 var(--jade-deep), 0 12px 24px rgba(46, 158, 79, 0.30);
}
.btn-jade:hover { transform: translateY(-2px); }

.btn-big { padding: 1.1rem 2.1rem; font-size: 1.15rem; }

/* ---------- Bandas / secciones ---------- */
.band { padding-block: 4.5rem; position: relative; }
.band-tight { padding-block: 3rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagoon-deep);
  margin-bottom: 0.7rem;
}
.band h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: 0.6rem; }
.band .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; }

/* Manchas de fiesta de fondo (decorativas, por banda) */
.band-wash {
  background:
    radial-gradient(circle at 88% 8%, var(--wash-pink), transparent 42%),
    radial-gradient(circle at 6% 92%, var(--wash-lagoon), transparent 40%);
}
.band-wash-gold {
  background:
    radial-gradient(circle at 12% 10%, var(--wash-gold), transparent 45%),
    radial-gradient(circle at 90% 85%, var(--wash-jade), transparent 40%);
}

/* ---------- Clay ---------- */
.clay {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--clay-shadow);
}
.clay-sm {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--clay-shadow-sm);
}

/* Disco clay para emojis / iconos */
.disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: var(--bone);
  box-shadow: inset 0 -5px 9px rgba(14, 58, 66, 0.07), inset 0 4px 7px rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

/* Sticker rotado */
.sticker {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: 0 3px 0 var(--pink-deep), 0 8px 18px rgba(238, 95, 167, 0.35);
}

/* Confeti estático decorativo */
.speck { position: absolute; border-radius: 3px; pointer-events: none; opacity: 0.85; }
.speck-round { border-radius: 50%; }

/* ---------- Burbujas estilo WhatsApp ---------- */
.bubble {
  background: var(--white);
  border-radius: 18px 18px 18px 6px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--clay-shadow-sm);
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
}
.bubble-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  opacity: 0.7;
  display: block;
  text-align: right;
  margin-top: 0.35rem;
}

/* ---------- Teléfono clay ---------- */
.phone {
  width: min(330px, 88vw);
  background: var(--white);
  border-radius: 36px;
  padding: 13px;
  box-shadow: var(--clay-shadow);
}
.phone-screen {
  position: relative;
  background: #F4FAFB;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 14;
}
/* Captura real de la app detrás del chat de RoI. El velo de arriba mantiene
   legible la burbuja sin esconder la mitad inferior de la pantalla. */
.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-overlay {
  position: relative;
  z-index: 1;
  padding: 16px 14px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg,
    rgba(244, 250, 251, 0.97) 0%,
    rgba(244, 250, 251, 0.93) 62%,
    rgba(244, 250, 251, 0) 100%);
}
.phone-head { display: flex; align-items: center; gap: 10px; }
.phone-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bone);
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: inset 0 -4px 7px rgba(14, 58, 66, 0.08);
}
.phone-name { font-weight: 800; font-size: 0.95rem; }
.phone-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

/* Placeholder de captura real de la app */
.shot {
  aspect-ratio: 9 / 18;
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(160deg, #F4FAFB, var(--bone-2));
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.shot .big { font-size: 2.6rem; margin-bottom: 0.5rem; }

/* Captura real de la app: marco clay + pie de foto debajo (no encima, para
   que el texto se lea sin velos sobre la interfaz). */
.shot-real { display: flex; flex-direction: column; gap: 0.75rem; }
.shot-frame {
  aspect-ratio: 9 / 18;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bone-2);
}
.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* El encabezado identifica la pantalla: se ancla arriba y se recorta abajo. */
  object-position: top center;
}
/* La portada del catálogo es una hoja completa: se centra en vez de anclarse. */
.shot-frame--center img { object-position: center; }
.shot-real figcaption {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
  padding-inline: 0.3rem;
}

/* ---------- HERO scrollytelling ----------
   Móvil: hero estático y el día avanza solo (auto-ciclo en JS) — un sticky
   de 100svh recortaría el contenido (copy+dragón+teléfono ≈ 1000px).
   Desktop: scrollytelling clavado controlado por el scroll. */
.hero-track { position: relative; }
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  overflow: clip;
  padding-block: 1.5rem 2.5rem;
}
@media (min-width: 900px) {
  .hero-track { height: 340svh; }
  .hero-stage {
    position: sticky;
    top: 0;
    min-height: 100svh;
    padding-block: 0;
  }
}
.hero-sky { position: absolute; inset: 0; z-index: -1; }
.hero-sky span {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-sky span.on { opacity: 1; }
.sky-0 { background: radial-gradient(circle at 80% 12%, var(--wash-gold), transparent 50%), radial-gradient(circle at 10% 88%, var(--wash-pink), transparent 45%), var(--bone); }
.sky-1 { background: radial-gradient(circle at 85% 15%, var(--wash-lagoon), transparent 50%), radial-gradient(circle at 8% 90%, var(--wash-gold), transparent 42%), var(--bone); }
.sky-2 { background: radial-gradient(circle at 82% 10%, var(--wash-pink), transparent 48%), radial-gradient(circle at 12% 85%, var(--wash-lagoon), transparent 45%), var(--bone); }
.sky-3 { background: radial-gradient(circle at 80% 14%, var(--wash-violet), transparent 50%), radial-gradient(circle at 10% 88%, var(--wash-pink), transparent 42%), var(--bone); }
.sky-4 { background: radial-gradient(circle at 84% 12%, var(--wash-jade), transparent 48%), radial-gradient(circle at 8% 86%, var(--wash-violet), transparent 45%), var(--bone); }

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  width: 100%;
  padding-block: 1.5rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; padding-block: 4.5rem 3rem; }
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  margin-block: 0.8rem 1rem;
}
.hero-copy h1 .accent { color: var(--lagoon); }
.hero-sign {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.6rem; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.hero-roi {
  width: clamp(150px, 22vw, 220px);
  height: clamp(150px, 22vw, 220px);
  position: relative;
  z-index: 2;
  margin-bottom: -34px;
}
.hero-roi canvas, .hero-roi img { width: 100%; height: 100%; }
.hero-roi img { border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }

.hero-dots { display: flex; gap: 7px; margin-top: 0.9rem; width: min(330px, 88vw); }
.hero-dots i {
  height: 6px; flex: 1; border-radius: 99px;
  background: rgba(14, 58, 66, 0.12);
  transition: background 0.3s ease;
}
.hero-dots i.on { background: var(--lagoon); }

.hero-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-sticker { position: absolute; top: 6svh; right: 4vw; z-index: 5; }
@media (max-width: 899px) {
  .hero-sticker { position: static; align-self: flex-start; margin-top: 0.4rem; }
}

/* ---------- Dolores (¿Te suena?) ---------- */
.pains {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}
@media (min-width: 720px) { .pains { grid-template-columns: 1fr 1fr; gap: 1.3rem; } }
.pain { max-width: 460px; }
.pain:nth-child(even) { justify-self: end; border-radius: 18px 18px 6px 18px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.6rem 1.5rem; text-align: left; position: relative; }
.step-num {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--gold-deep);
}
.step h3 { font-size: 1.25rem; margin-block: 0.5rem 0.4rem; }
.step p { font-size: 0.98rem; color: var(--ink-soft); }
.steps-outro {
  text-align: center;
  font-weight: 700;
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

/* ---------- Poderes (grid 2×3) ---------- */
.powers { display: grid; gap: 1.1rem; margin-top: 2.4rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .powers { grid-template-columns: repeat(3, 1fr); } }
.power {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.4rem;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.power:hover { transform: translateY(-4px) scale(1.015); }
.power:active { transform: scale(0.97); }
.power h3 { font-size: 1.15rem; }
.power p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.power .go { font-weight: 800; color: var(--lagoon-deep); font-size: 0.9rem; }

/* ---------- Conoce a RoI (RoI vivo dentro de una tarjeta) ---------- */
.meet-roi {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem;
  background: linear-gradient(135deg, var(--white), #FDF3F8);
}
/* Anula el desbordamiento del hero: aquí RoI vive dentro de la tarjeta. */
.meet-roi-stage {
  width: clamp(140px, 20vw, 200px);
  height: clamp(140px, 20vw, 200px);
  margin-bottom: 0;
  flex: none;
  filter: drop-shadow(0 12px 20px rgba(14, 58, 66, 0.16));
}

/* ---------- Sin maquillaje ---------- */
.honest {
  box-shadow: inset 0 0 0 2.5px var(--ink), 0 14px 30px rgba(14, 58, 66, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  padding: 2.4rem 2rem;
}
.honest .eyebrow { color: var(--ink); }
.honest p { max-width: 640px; }
.honest strong { color: var(--ink); }

/* ---------- Precio ---------- */
.price-card {
  padding: 2.6rem 2rem;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
}
.price-amount {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 4.5rem);
  color: var(--ink);
  line-height: 1;
}
.price-amount small { font-size: 0.35em; font-weight: 700; color: var(--ink-soft); }
.price-frozen {
  display: inline-block;
  background: var(--wash-lagoon);
  color: var(--lagoon-deep);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-top: 0.6rem;
}
.price-list {
  list-style: none;
  margin-block: 1.6rem;
  text-align: left;
  display: grid;
  gap: 0.55rem;
  font-size: 1rem;
}
.price-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.price-list li::before { content: '✓'; color: var(--jade); font-weight: 900; }

.pips { display: flex; justify-content: center; gap: 7px; margin-block: 1.2rem 0.5rem; flex-wrap: wrap; }
.pip {
  width: 20px; height: 20px; border-radius: 7px;
  background: var(--bone-2);
  box-shadow: inset 0 -3px 5px rgba(14, 58, 66, 0.08);
}
.pip.taken { background: var(--gold); box-shadow: inset 0 -3px 5px rgba(199, 141, 14, 0.6); }
.pips-label { font-size: 0.92rem; color: var(--ink-soft); text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.9rem; margin-top: 2.2rem; max-width: 760px; }
details.faq {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--clay-shadow-sm);
  padding: 1.1rem 1.3rem;
}
details.faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lagoon);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Cross-links ("también te va a gustar") ---------- */
.also { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 720px) { .also { grid-template-columns: 1fr 1fr; } }

/* ---------- Cierre + footer ---------- */
.outro { text-align: center; padding-block: 5rem 4rem; }
.outro h2 { font-size: clamp(2rem, 5.5vw, 3rem); }

.foot {
  background: var(--ink);
  color: #C9D8DB;
  border-radius: 34px 34px 0 0;
  padding: 3.2rem 0 2.2rem;
  font-size: 0.95rem;
}
.foot a { color: var(--bone); font-weight: 600; }
.foot a:hover { color: var(--gold); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--bone); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot-small { margin-top: 2rem; font-size: 0.82rem; opacity: 0.7; }
.stores { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.stores img { height: 42px; width: auto; border-radius: 8px; }

/* ---------- Página de dolor: hero corto ---------- */
.pain-hero { padding-block: 4.5rem 3.5rem; }
.pain-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); max-width: 640px; margin-block: 0.8rem 1rem; }
.pain-hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }

/* Fila de capturas */
.shots-row { display: grid; gap: 1.4rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 760px; }

/* Compartir con una amiga */
.share-box {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--white), #F2FAF4);
}

/* ---------- Aviso de privacidad ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: 3.5rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; font-family: var(--font-body); font-weight: 800; }
.legal p, .legal li { font-size: 0.98rem; color: var(--ink-soft); }
.legal ul { padding-left: 1.3rem; margin-block: 0.5rem; }
.legal .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.legal .placeholder { background: var(--wash-gold); border-radius: 6px; padding: 0.05rem 0.4rem; font-weight: 700; color: var(--ink); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hide-desktop { display: initial; }
@media (min-width: 900px) { .hide-desktop { display: none; } }

/* ---------- Movimiento reducido / accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-track { height: auto; }
  .hero-stage { position: static; min-height: 0; padding-block: 3rem; }
  .speck { display: none; }
}
