/* ==========================================================================
   WAMA — Landing de captación
   Sistema visual derivado del logo: el motivo del espejo (una mitad
   reflejada sobre la otra) es el hilo conductor, no decoración.
   ========================================================================== */

:root {
  --violet-600: #7a05d6;
  --violet-800: #4a0d7a;
  --violet-900: #2e0b3d;
  --violet-400: #a855f7;
  --lime: #c6ff4f;
  --white: #ffffff;
  --neutral-100: #f4f1f7;
  --neutral-300: #d9d3e0;
  --neutral-500: #6b6475;

  --grad-brand: linear-gradient(160deg, #7a05d6 0%, #4a0d7a 55%, #2e0b3d 100%);

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 24px;

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--violet-900);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Logo: fila 1 + la misma fila espejada en el eje horizontal ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: var(--logo-size, 28px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: currentColor;
  text-decoration: none;
  user-select: none;
}

.logo span {
  display: block;
}

.logo span:last-child {
  transform: scaleY(-1);
}

/* --- Tipografía --------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 8.5vw, 4.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.85rem, 5.6vw, 3rem);
  line-height: 1.03;
}

h3 {
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  line-height: 1.2;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--neutral-500);
}

.accent {
  color: var(--lime);
}

/* --- Botones ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--lime {
  background: var(--lime);
  color: var(--violet-900);
  box-shadow: 0 10px 30px rgba(198, 255, 79, 0.28);
}

.btn--violet {
  background: var(--violet-600);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(122, 5, 214, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--violet-400);
  outline-offset: 3px;
}

.btn--block {
  width: 100%;
}

/* --- HERO --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--grad-brand);
  color: var(--white);
  padding-block: clamp(28px, 6vw, 44px) clamp(72px, 14vw, 120px);
  overflow: hidden;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(48px, 12vw, 96px);
}

.hero__bar .logo {
  --logo-size: 26px;
  color: var(--white);
}

.hero__tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 8vw, 72px);
}

.hero h1 {
  max-width: 14ch;
}

.hero__sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__micro {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Foto + su propio reflejo: el motivo del espejo del logo, en imagen.
   El reflejo NO es decoración — es la misma idea de dos mitades
   compartiendo un espacio que construye el wordmark. */
.hero__media {
  margin: 0;
}

.hero__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 2, 20, 0.4);
}

.hero__reflection {
  width: 100%;
  height: clamp(70px, 13vw, 130px);
  margin-top: 10px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius);
  transform: scaleY(-1);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  /* Transparente en el borde alejado de la foto. La máscara se aplica antes
     del transform, por eso el degradado va "to bottom" y no al revés. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 78%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 78%);
}

/* --- Secciones ---------------------------------------------------------- */

section {
  padding-block: clamp(64px, 12vw, 112px);
}

.section__head {
  max-width: 30ch;
  margin-bottom: clamp(36px, 7vw, 56px);
}

.section__head p {
  margin-top: 18px;
}

/* --- DOLOR -------------------------------------------------------------- */

.pain {
  background: var(--violet-900);
  color: var(--white);
}

.pain .lede {
  color: rgba(255, 255, 255, 0.7);
}

.pain__list {
  list-style: none;
  margin: 0 0 clamp(48px, 9vw, 72px);
  padding: 0;
  display: grid;
  gap: 28px;
}

.pain__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 22px;
}

.pain__list .marker {
  margin-top: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--violet-400);
}

.pain__list strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}

.pain__list span.desc {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
}

.stat {
  border-top: 1px solid rgba(168, 85, 247, 0.35);
  padding-top: clamp(36px, 7vw, 56px);
  display: grid;
  gap: 8px;
}

.stat__figure {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.stat__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.6vw, 2.1rem);
  line-height: 1.1;
  max-width: 22ch;
}

.stat__source {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- CÓMO FUNCIONA ------------------------------------------------------ */

.how {
  background: var(--neutral-100);
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 36px);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  box-shadow: 0 8px 28px rgba(46, 11, 61, 0.07);
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--violet-600);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
}

.step p {
  margin-top: 8px;
  color: var(--neutral-500);
}

/* --- SEGURIDAD ---------------------------------------------------------- */

.safety {
  background: var(--white);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.checks li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  align-items: start;
  font-size: 1.08rem;
}

.checks svg {
  margin-top: 4px;
  color: var(--violet-600);
}

.checks strong {
  font-weight: 600;
}

.checks span.desc {
  display: block;
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 0.98rem;
}

/* --- COMUNIDAD ---------------------------------------------------------- */

.community {
  background: var(--violet-600);
  color: var(--white);
  text-align: left;
}

.community p {
  margin-top: 20px;
  max-width: 40ch;
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}

.community__grid {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.community__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(11, 2, 20, 0.3);
}

/* --- FORMULARIO --------------------------------------------------------- */

.signup {
  background: var(--violet-900);
  color: var(--white);
}

.signup .lede {
  color: rgba(255, 255, 255, 0.7);
}

.form {
  display: grid;
  gap: 22px;
  max-width: 520px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.segmented input:checked + label {
  background: var(--white);
  color: var(--violet-900);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 46px;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.1);
}

.field select option {
  color: #111;
}

.form__note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.52);
}

.form__note a {
  color: rgba(255, 255, 255, 0.72);
}

.form__error {
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 92, 92, 0.14);
  border: 1px solid rgba(255, 92, 92, 0.4);
  font-size: 0.95rem;
}

.form__error.is-visible {
  display: block;
}

/* --- FOOTER ------------------------------------------------------------- */

footer {
  background: var(--violet-900);
  color: rgba(255, 255, 255, 0.5);
  padding-block: 44px 56px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}

footer .logo {
  --logo-size: 22px;
  color: rgba(255, 255, 255, 0.75);
}

footer a {
  color: rgba(255, 255, 255, 0.62);
}

/* --- PÁGINA DE GRACIAS -------------------------------------------------- */

.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  background: var(--grad-brand);
  color: var(--white);
  padding-block: 56px;
}

.thanks h1 {
  max-width: 16ch;
}

.thanks__sub {
  margin-top: 22px;
  max-width: 40ch;
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
}

.price {
  margin-top: clamp(48px, 9vw, 72px);
  padding-top: clamp(32px, 6vw, 48px);
  border-top: 1px solid rgba(168, 85, 247, 0.42);
  max-width: 560px;
}

.price h2 {
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  max-width: 24ch;
}

.price__hint {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.price__options {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.price__options button {
  min-height: 60px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.price__options button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--lime);
  transform: translateX(4px);
}

.price__options button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.price__done {
  display: none;
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lime);
}

.price.is-answered .price__options,
.price.is-answered .price__hint {
  display: none;
}

.price.is-answered .price__done {
  display: block;
}

/* --- Escritorio --------------------------------------------------------- */

@media (min-width: 760px) {
  .steps {
    gap: 24px;
  }

  .pain__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .pain__list li {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pain__list .marker {
    width: 44px;
    margin-top: 0;
  }

  .stat {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;
  }

  .checks {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .community__grid {
    grid-template-columns: 1fr 1fr;
  }

  .price__options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
  }
}

/* --- Accesibilidad ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
