/* ---------- Tokens (animated by GSAP on :root) ---------- */
:root {
  --bg: rgb(16, 6, 9);
  --fg: rgb(250, 236, 238);
  --muted: rgba(250, 210, 215, 0.62);
  --line: rgba(255, 90, 105, 0.14);
  --card: rgba(40, 12, 18, 0.78);
  --card-line: rgba(255, 80, 96, 0.32);
  --accent: rgb(255, 77, 94);
  --nav-bg: rgba(16, 6, 9, 0.55);
  /* Logo: versión nocturna (fondo rojo oscuro) → oficial al calmarse */
  --logo-ink: rgb(255, 255, 255);
  --logo-soft: rgba(255, 255, 255, 0.16);
  --logo-face: rgba(255, 255, 255, 0);
  --logo-leg: rgba(24, 9, 13, 1);
  --logo-word: rgb(255, 255, 255);

  --red: #ff4d5e;
  --green: #12b76a;
  --green-deep: #067647;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 40px; height: 40px; flex: none; }
.brand-icon .l-soft { fill: var(--logo-soft); }
.brand-icon .l-ink { fill: var(--logo-ink); }
.brand-icon .l-stroke { stroke: var(--logo-ink); }
.brand-icon .l-face { fill: var(--logo-face); }
.brand-icon .l-leg { fill: var(--logo-leg); }
.brand-word { font-family: "Poppins", var(--font); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; color: var(--logo-word); line-height: 1; }
.brand b { font-weight: 800; }
.brand .tld { color: var(--muted); font-weight: 500; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 200deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent), var(--accent));
  box-shadow: 0 0 0 1px var(--card-line), 0 6px 18px -6px var(--accent);
}
.nav-cta {
  font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--card-line); background: var(--card);
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; will-change: opacity, transform; }
.glow-stress {
  width: 70vmax; height: 70vmax; right: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(255, 40, 60, 0.42), rgba(160, 0, 30, 0.12) 55%, transparent 70%);
}
.glow-calm {
  width: 75vmax; height: 75vmax; left: -20vmax; bottom: -35vmax; opacity: 0;
  background: radial-gradient(circle, rgba(18, 183, 106, 0.32), rgba(120, 220, 170, 0.14) 50%, transparent 70%);
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
}

.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 88px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}

/* stacked text swaps */
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; }
.s-calm { opacity: 0; visibility: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.title {
  margin: 0; font-size: clamp(36px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
}
.title em { font-style: normal; color: var(--accent); }
.lead { margin: 20px 0 0; max-width: 34ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--muted); }

/* ---------- Meter ---------- */
.meter {
  margin-top: 32px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 22px; align-items: center;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line);
  max-width: 440px;
}
.gauge { width: 150px; height: auto; grid-row: 1 / span 2; overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; stroke-width: 14; }
.gauge-track { stroke: var(--line); }
.gauge-fill { stroke: var(--red); stroke-dasharray: 100 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px currentColor); }
.gauge-ticks line { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.gauge-knob { fill: var(--bg); stroke: var(--red); stroke-width: 4; }
.meter-readout { display: flex; flex-direction: column; }
.meter-value { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.meter-value small { font-size: 22px; margin-left: 2px; color: var(--muted); }
.meter-label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.meter-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- CTA ---------- */
.cta-wrap { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 800; font-size: 16px;
  background: var(--green); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(18, 183, 106, .7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover { transform: translateY(-2px); background: #0ea35d; box-shadow: 0 18px 36px -12px rgba(18, 183, 106, .8); }
.cta:focus-visible { outline: 3px solid rgba(18, 183, 106, .45); outline-offset: 3px; }
.cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cta:hover svg { transform: translateX(3px); }
.cta-note { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Notification feed ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; perspective: 1200px; }
.feed-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.card { position: relative; height: 100px; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
}
.front {
  background: linear-gradient(180deg, #e8505b, #c9343f);
  border: 1px solid rgba(255, 150, 160, .45);
  box-shadow: 0 18px 40px -18px rgba(255, 30, 60, .7);
  color: #fff;
}
.back {
  transform: rotateX(180deg);
  background: #fff;
  border: 1px solid rgba(18, 183, 106, .28);
  box-shadow: 0 18px 40px -24px rgba(6, 118, 71, .45);
  color: #10261b;
}
.ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-weight: 800; font-size: 17px; color: #fff; background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 77, 94, .16);
}
.front .ico { animation: buzz 2.4s infinite; background: rgba(255,255,255,.22); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.front .meta { opacity: .9; }
.ico.ok { background: var(--green); box-shadow: 0 0 0 5px rgba(18, 183, 106, .14); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.txt { display: flex; flex-direction: column; min-width: 0; }
.meta { font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: .7; }
.back .meta { color: var(--green-deep); opacity: 1; }
.txt strong { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin: 3px 0; }
.front strong { letter-spacing: 0.01em; }
.back strong::after { content: " ✓"; color: var(--green); }
.desc { font-size: 13.5px; line-height: 1.35; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back .desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@keyframes buzz {
  0%, 82%, 100% { transform: rotate(0); }
  85% { transform: rotate(-10deg); } 88% { transform: rotate(9deg); }
  91% { transform: rotate(-7deg); } 94% { transform: rotate(5deg); }
}

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s infinite ease-in-out; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Below the fold ---------- */
.options { background: rgb(244, 250, 246); color: #10261b; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.wrap { max-width: 1100px; margin: 0 auto; }
.kicker { margin: 0 0 12px; color: var(--green-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.options h2 { margin: 0 0 40px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }
.step { background: #fff; border: 1px solid rgba(6, 118, 71, .14); border-radius: var(--radius); padding: 26px; }
.step span { font-weight: 800; color: var(--green); font-size: 14px; }
.step h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.step p { margin: 0; color: #4a5e53; line-height: 1.55; }
.foot { background: rgb(244, 250, 246); color: #5d7065; text-align: center; font-size: 13px; padding: 0 var(--gutter) 40px; }

/* progress dots (mobile deck only) */
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: none; gap: 6px; }
.dots i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 77, 94, .45); }

/* ---------- Mobile: one big notification at a time ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr; gap: 18px; align-content: center;
    padding: 72px var(--gutter) 124px;
  }
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 7px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-word { font-size: 19px; }
  .nav-cta { font-size: 13px; padding: 8px 13px; }

  .eyebrow { margin-bottom: 14px; font-size: 12px; padding: 6px 12px 6px 10px; }
  .title { font-size: clamp(34px, 9.8vw, 48px); line-height: 1.04; }
  .lead { margin-top: 12px; font-size: 17px; line-height: 1.5; max-width: none; }

  .meter { margin-top: 20px; padding: 14px 18px; column-gap: 16px; max-width: none; }
  .gauge { width: 104px; }
  .meter-value { font-size: 38px; }
  .meter-label { font-size: 12px; }
  .meter-status { font-size: 15px; margin-top: 6px; }

  /* deck */
  .feed { display: block; position: relative; height: 210px; }
  .feed-head { margin: 0 0 12px; font-size: 12.5px; }
  .dots { display: inline-flex; }
  .card { position: absolute; left: 0; right: 0; top: 30px; height: 156px; transform-origin: 50% 0; }
  .face { align-items: flex-start; padding: 18px; gap: 14px; border-radius: 20px; }
  .ico { width: 44px; height: 44px; font-size: 18px; }
  .meta { font-size: 13px; }
  .txt strong { font-size: 24px; line-height: 1.12; margin: 4px 0 6px; }
  .desc { font-size: 16px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .cta-wrap { margin-top: 0; gap: 8px; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 4; }
  .cta { width: 100%; justify-content: center; padding: 17px 20px; font-size: 17px; }
  .cta-note { width: 100%; text-align: center; font-size: 13px; }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: 1fr; }
}
/* short phones: drop the lead paragraph, tighten */
@media (max-width: 860px) and (max-height: 740px) {
  .hero-inner { gap: 14px; padding-top: 66px; padding-bottom: 112px; }
  .lead { display: none; }
  .title { font-size: clamp(30px, 8.8vw, 40px); }
  .meter { margin-top: 14px; padding: 10px 16px; }
  .gauge { width: 88px; }
  .meter-value { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .front .ico, .scroll-hint i { animation: none; }
}
