/* Keydd — pre-lanzamiento. Paleta y tipografía según Brandbook Kyndd/Keydd 2026:
   morado #4825A2 · lima #C5CA30 · crema · salvia #859B8B · lavanda #8B77CE · negro #0D0D0D.
   DIN → Barlow / Barlow Condensed (equivalentes libres en Google Fonts). */

:root {
  --purple: #4825A2;
  --purple-deep: #3a1d86;
  --lime: #C5CA30;
  --cream: #F2EDE8;
  --sage: #859B8B;
  --lavender: #8B77CE;
  --black: #0D0D0D;
  --ink: #1b1530;
  --radius: 22px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.wordmark { font: 800 26px/1 var(--display); letter-spacing: -.02em; }
.wordmark-lg { font-size: clamp(56px, 12vw, 120px); display: block; line-height: .85; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px; border-radius: 999px; border: 0;
  font: 700 18px/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn-lime { background: var(--lime); color: var(--black); box-shadow: 0 8px 0 -2px var(--black); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 8px 0 -2px var(--black); width: 100%; }
.btn-purple:disabled { opacity: .6; cursor: wait; transform: none; }

/* ── HERO ─────────────────────────────── */
.hero { background: var(--purple); color: var(--cream); position: relative; overflow: hidden; }
.hero::after { /* textura de puntos lima del brandbook */
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px;
  background-image: radial-gradient(var(--lime) 2px, transparent 2.5px); background-size: 18px 18px; opacity: .35;
}
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 2; }
.topbar-cta { color: var(--cream); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.hero-grid { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 80px; position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--black);
  font: 700 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.hero h1 { font-size: clamp(44px, 9.5vw, 92px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 34ch; margin: 24px 0 34px; color: #e9e3f7; }

/* Teaser "Tratamiento para el acné" (productos borrosos + ?) */
.teaser { margin: -8px 0 34px; max-width: 520px; border: 2px solid var(--lime); border-radius: 18px; overflow: hidden; background: var(--purple-deep); box-shadow: 0 8px 0 -2px var(--black); }
.teaser-label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--lime); color: var(--black); font: 800 clamp(20px, 3vw, 26px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.teaser-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); animation: pulse 1.6s infinite; flex: none; }
.teaser img { display: block; width: 100%; height: auto; }

.hero-visual { position: relative; display: grid; place-items: center; color: var(--lime); max-width: 420px; width: 100%; margin: 0 auto; aspect-ratio: 1; }
.stamp { width: 100%; height: 100%; animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-core { position: absolute; display: flex; flex-direction: column; align-items: center; font: 800 clamp(40px, 9vw, 64px)/.9 var(--display); }
.stamp-core svg { margin-top: 12px; }
.asterisk { position: absolute; width: 22%; top: 0; right: 2%; color: var(--lime); animation: spin 14s linear infinite reverse; }

/* ── IDENTIFICACIÓN ─────────────────────── */
.ident { padding: 88px 0 72px; }
.ident-grid { display: grid; gap: 24px; }
.voice { border-radius: var(--radius); padding: 32px 24px; border: 1.5px solid; display: flex; flex-direction: column; position: relative; }
.voice-face { position: absolute; top: 22px; right: 20px; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 10px 24px -12px rgba(27,21,48,.55); transform: rotate(4deg); }
.voice-parent .voice-face { transform: rotate(-4deg); }
.voice .eyebrow, .voice h2 { padding-right: 88px; }
.voice-teen { background: #ebe4f3; border-color: var(--lavender); }
.voice-parent { background: #eeeedc; border-color: var(--lime); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.voice-teen .eyebrow { color: var(--purple); }
.voice-parent .eyebrow { color: #6f7412; }
.voice h2 { font-size: clamp(38px, 6vw, 54px); color: var(--purple); margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23C5CA30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks li:last-child { font-weight: 600; }

.phone { margin-top: auto; align-self: center; width: min(300px, 100%); background: var(--black); border-radius: 30px; padding: 14px 10px 12px; box-shadow: 0 18px 40px -18px rgba(27,21,48,.6); }
.phone-bar { display: flex; justify-content: center; gap: 18px; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.phone-bar .muted { opacity: .45; }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { text-shadow: 0 1px 3px rgba(0,0,0,.55); aspect-ratio: 9/14; border-radius: 6px; padding: 6px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-size: 10.5px; line-height: 1.15; font-weight: 600; }
.tile em { font-style: normal; font-size: 10px; opacity: .85; }
.t1 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-1.webp") center/cover, #3b3550; }
.t2 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-2.webp") center/cover, #3b3550; }
.t3 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-3.webp") center/cover, #3b3550; }
.t4 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-4.webp") center/cover, #3b3550; }
.t5 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-5.webp") center/cover, #3b3550; }
.t6 { background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 34%, rgba(13,13,13,0) 62%, rgba(13,13,13,.6) 100%), url("/img/feed-6.webp") center/cover, #3b3550; }

.chat { margin-top: auto; align-self: center; width: min(320px, 100%); background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 18px 40px -20px rgba(27,21,48,.45); font-size: 15px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eee; margin-bottom: 12px; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { color: #6c6a73; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); color: #fff; display: grid; place-items: center; font-weight: 700; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px; margin: 0 0 6px; width: fit-content; }
.bubble.out { margin-left: auto; background: #e3f0c2; border-bottom-right-radius: 4px; }
.bubble.in { background: #f0edf5; border-bottom-left-radius: 4px; }
.seen { text-align: right; font-size: 11px; color: #6c6a73; margin-top: 2px; }

.relief { background: var(--purple); color: var(--cream); padding: 64px 0; }
.relief p { font: 700 clamp(34px, 6vw, 64px)/1.02 var(--display); text-transform: uppercase; }
.relief span { color: var(--lime); display: block; }

/* Foto adolescente frente al espejo (entre "No fallaste tú" y el giro) */
.mirror { margin: 0; background: var(--black); }
.mirror img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: center 35%; }

/* ── EL GIRO ─────────────────────────────── */
.shift { background: var(--black); color: var(--cream); padding: 96px 0; }
.shift-grid { display: grid; gap: 56px; align-items: center; }
.shift h2 { font-size: clamp(40px, 7vw, 72px); text-transform: uppercase; font-weight: 800; margin-bottom: 30px; }
.shift h2 span { color: var(--lime); display: block; }
.shift p { color: #d9d4df; max-width: 52ch; margin-bottom: 18px; }
.shift .anti { color: var(--cream); font-weight: 600; border-left: 3px solid var(--lime); padding-left: 16px; margin-top: 28px; }
.layers { position: relative; width: min(380px, 100%); margin: 0 auto; }
.layers svg { width: 100%; display: block; }
.spin-slow { transform-origin: 160px 160px; animation: spin 60s linear infinite; }
.tag { position: absolute; font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.tag-out { top: 6%; left: 0; background: var(--lime); color: var(--black); }
.tag-in { bottom: 10%; right: 0; background: var(--lavender); color: #fff; }

/* ── EXPECTATIVA ─────────────────────────── */
.soon { background: var(--lime); color: var(--black); padding: 96px 0; }
.soon h2 { font-size: clamp(44px, 8vw, 88px); text-transform: uppercase; font-weight: 800; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 36px 0; max-width: 620px; }
.countdown div { background: var(--black); color: var(--lime); border-radius: 16px; padding: 16px 6px 12px; text-align: center; }
.countdown strong { display: block; font: 800 clamp(38px, 8vw, 64px)/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.soon-body { font-size: clamp(18px, 2.2vw, 21px); max-width: 56ch; margin-bottom: 44px; }
.soon h3 { font-size: 28px; text-transform: uppercase; margin-bottom: 18px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 16px; background: var(--cream); border-radius: 16px; padding: 16px 18px; font-weight: 600; }
.perks svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--purple); color: var(--lime); }

/* ── FORMULARIO ─────────────────────────── */
.signup { padding: 96px 0; background:
  radial-gradient(circle at 100% 0, rgba(139,119,206,.22), transparent 45%),
  radial-gradient(circle at 0 100%, rgba(197,202,48,.25), transparent 40%), var(--cream); }
.signup-wrap { max-width: 640px; }
.signup h2 { font-size: clamp(38px, 6.5vw, 60px); color: var(--purple); text-transform: uppercase; font-weight: 800; margin-bottom: 32px; }
.form { background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 1.5px solid var(--purple); box-shadow: 10px 10px 0 var(--purple); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input[type=tel] {
  width: 100%; min-height: 54px; border: 1.5px solid #cfc8db; border-radius: 14px; padding: 12px 14px;
  font: 400 17px var(--body); color: var(--ink); background: #fff;
}
.form input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(72,37,162,.2); }
.form input[aria-invalid=true] { border-color: #c0392b; }
.phone-input { display: flex; }
.phone-input .prefix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid #cfc8db; border-right: 0; border-radius: 14px 0 0 14px; background: var(--cream); font-weight: 600; }
.phone-input input { border-radius: 0 14px 14px 0 !important; }
.consent { grid-template-columns: 22px 1fr; align-items: start; gap: 12px !important; font-weight: 400 !important; font-size: 14px !important; color: #4c4658; line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #8e1f14; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.micro { text-align: center; font-size: 14px; color: #6c6679; }

/* ── FOOTER ─────────────────────────────── */
.footer { background: var(--purple); color: var(--cream); padding: 64px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.tagline { font: 600 20px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; }
.tagline span { color: var(--lime); }
.social { display: flex; gap: 12px; }
.social a { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--black); display: grid; place-items: center; }
.social svg { width: 22px; height: 22px; }
.legal { font-size: 13px; color: #cfc6ea; line-height: 1.5; }

.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: none;
  background: var(--lime); color: var(--black); text-align: center; font-weight: 700; text-decoration: none;
  padding: 16px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transform: translateY(140%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }

@media (max-width: 767px) {
  .sticky-cta { display: block; }
  .topbar-cta { display: none; }
}
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .ident-grid { grid-template-columns: 1fr 1fr; }
  .voice { padding: 44px 36px; }
  .voice-face { width: 96px; height: 96px; top: 30px; right: 30px; }
  .voice .eyebrow, .voice h2 { padding-right: 112px; }
  .form { padding: 40px 36px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perks li { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; align-items: center; padding-top: 48px; padding-bottom: 120px; }
  .shift-grid { grid-template-columns: 1.2fr .8fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.consent a { color: var(--purple); font-weight: 600; }
.legal a { color: var(--lime); }
.policy { background: var(--cream); padding: 24px 0 80px; }
.policy h1 { font-size: clamp(40px, 7vw, 64px); color: var(--purple); text-transform: uppercase; font-weight: 800; margin: 24px 0 8px; }
.policy h2 { font-size: 26px; color: var(--purple); text-transform: uppercase; margin: 36px 0 10px; }
.policy p, .policy li { max-width: 70ch; margin-bottom: 12px; }
.policy a { color: var(--purple); font-weight: 600; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: clamp(56px, 11vw, 104px); width: auto; }
