/* =====================================================================
   RETO10K — Estilos (mobile first)
   ===================================================================== */

/* ---------- FUENTES DE MARCA ----------
   Coloca los archivos en assets/fonts/ con estos nombres exactos.
   Si no existen, el navegador usa automáticamente el fallback
   (Anton ≈ Be Bold, Sacramento ≈ Halimun) sin romper nada. */
@font-face {
  font-family: "Be Bold";
  src: url("../assets/fonts/BeBold.woff2") format("woff2"),
       url("../assets/fonts/BeBold.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Halimun";
  src: url("../assets/fonts/Halimun.woff2") format("woff2"),
       url("../assets/fonts/Halimun.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --pink: #FF0055;
  --pink-2: #FF2E7A;
  --black: #0D0D0D;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --gray-1: #F4F4F5;   /* fondos claros */
  --gray-2: #E4E4E7;   /* bordes claros */
  --gray-7: #A1A1AA;   /* texto secundario en oscuro */
  --gray-8: #1C1C1F;   /* tarjetas en oscuro */
  --gray-9: #141416;

  --font-display: "Be Bold", "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Halimun", "Sacramento", "Segoe Script", cursive;

  --container: 1120px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 60px;

  --shadow-pink: 0 10px 30px -8px rgba(255, 0, 85, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- RESET ---------- */
*, *::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: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ico {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.accent { color: var(--pink); }

/* ---------- TIPOGRAFÍA ---------- */
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 7.6vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-align: center;
}
.section__sub {
  margin-top: 8px;
  text-align: center;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 34ch;
  margin-inline: auto;
}
.section--light .section__sub { color: #3F3F46; }
.section--dark  .section__sub { color: #D4D4D8; }

/* Anotaciones manuscritas */
.note {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-7deg);
  display: inline-block;
}
.note--gold  { color: var(--gold); }
.note--white { color: var(--white); }
.note__arrow {
  display: block; width: 34px; height: 24px; margin-top: 4px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.note__arrow--flip { transform: scaleX(-1); margin-left: auto; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  border: 0; cursor: pointer; user-select: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-2) 100%); color: var(--white); box-shadow: var(--shadow-pink); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255, 0, 85, .7); }
.btn--primary:active { transform: translateY(0) scale(.985); }
.btn--block { width: 100%; }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); font-weight: 700; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.badge, .tag {
  display: inline-block;
  background: var(--pink); color: var(--white);
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .12em;
  padding: 6px 14px 5px; border-radius: 6px; line-height: 1.2;
}
.tag { transform: rotate(-2deg); font-size: .95rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: relative; z-index: 50;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .04em; line-height: 1;
  color: var(--white);
}
.logo span { color: var(--pink); }

.day-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pink); color: var(--white);
  font-weight: 800; font-size: .76rem; letter-spacing: .06em;
  padding: 8px 12px; border-radius: 999px;
  white-space: nowrap;
}
.day-badge .ico { width: 1em; height: 1em; stroke-width: 2.2; }
.day-badge__date { display: inline-flex; align-items: center; gap: 7px; opacity: .85; }
.day-badge__date::before { content: ""; width: 1px; height: .9em; background: currentColor; opacity: .5; }
.day-badge__date[hidden] { display: none; }
/* En pantallas pequeñas se oculta la fecha para que el header no desborde */
.day-badge__date { display: none; }
@media (min-width: 480px) { .day-badge__date { display: inline-flex; } }
.day-badge.is-upcoming { background: var(--gray-8); border: 1px solid #333; }
.day-badge.is-finished { background: var(--white); color: var(--black); }

.day-progress { height: 3px; background: #262629; }
.day-progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink), var(--pink-2));
  transition: width 1.2s var(--ease);
}

.burger {
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: absolute; inset: calc(var(--header-h) + 3px) 0 auto 0; z-index: 49;
  background: var(--black); border-bottom: 1px solid #262629;
  padding: 12px var(--gutter) 20px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .3s, visibility 0s .35s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-nav a:not(.btn) { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid #1f1f22; }
.mobile-nav .btn { margin-top: 12px; }

/* ---------- HERO ---------- */
.hero { background: var(--black); position: relative; overflow: hidden; }
.hero__collage {
  position: relative;
  height: min(68vh, 580px);
  min-height: 400px;
}
.hero__photo {
  position: absolute; inset: 0; margin: 0;
  display: flex; justify-content: center; align-items: flex-start;
}
.hero__photo img {
  height: 100%; width: 100%; object-fit: cover; object-position: center 35%;
  /* Foto a color natural: solo un fundido inferior para que el título se lea sobre el negro */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 66%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 0, #000 66%, transparent 99%);
}
/* Solo móvil: máscara ovalada vertical. Centro 100% nítido (rostro + billete),
   laterales y esquinas se disuelven en el negro. Sin blur, sin bordes, sin glow. */
@media (max-width: 639.98px) {
  /* Hero compacto: contenedor más bajo; la foto conserva su escala y se recorta abajo */
  .hero__collage { height: min(124vw, 57vh); min-height: 320px; }
  .hero__photo { overflow: hidden; }
  .hero__photo img {
    flex: none; width: auto; min-width: 100%; max-width: none; height: 111%;
    object-fit: cover; object-position: center 20%;
    transform: translateY(-5.5%);
    -webkit-mask-image: none; mask-image: none;
  }
  /* La máscara vive en el contenedor para que el degradado no cambie al recortar la foto */
  .hero__photo {
    -webkit-mask-image:
      radial-gradient(ellipse 66% 64% at 50% 52%,
        #000 0, #000 52%, rgba(0,0,0,.86) 63%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.2) 89%, transparent 100%),
      linear-gradient(to right,
        transparent 0, rgba(0,0,0,.4) 6%, rgba(0,0,0,.82) 12%, #000 19%, #000 81%, rgba(0,0,0,.82) 88%, rgba(0,0,0,.4) 94%, transparent 100%),
      linear-gradient(to bottom,
        transparent 0, rgba(0,0,0,.3) 4%, rgba(0,0,0,.7) 9%, rgba(0,0,0,.93) 13%, #000 17%, #000 60%, rgba(0,0,0,.6) 78%, rgba(0,0,0,.2) 90%, transparent 98%);
    -webkit-mask-composite: source-in, source-in;
            mask-image:
      radial-gradient(ellipse 66% 64% at 50% 52%,
        #000 0, #000 52%, rgba(0,0,0,.86) 63%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.2) 89%, transparent 100%),
      linear-gradient(to right,
        transparent 0, rgba(0,0,0,.4) 6%, rgba(0,0,0,.82) 12%, #000 19%, #000 81%, rgba(0,0,0,.82) 88%, rgba(0,0,0,.4) 94%, transparent 100%),
      linear-gradient(to bottom,
        transparent 0, rgba(0,0,0,.3) 4%, rgba(0,0,0,.7) 9%, rgba(0,0,0,.93) 13%, #000 17%, #000 60%, rgba(0,0,0,.6) 78%, rgba(0,0,0,.2) 90%, transparent 98%);
            mask-composite: intersect, intersect;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
  }
}
/* Fundido inferior hacia el negro del contenido */
.hero__collage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 62%, var(--black) 100%);
}

/* Notas manuscritas del hero */
.hero .note { position: absolute; z-index: 3; text-shadow: 0 2px 6px rgba(0,0,0,.95), 0 0 20px rgba(0,0,0,.85); }
.note--tl { left: 6%;  top: 8%; }
.note--ml { left: 3%;  top: 36%; font-size: 1.3rem; }
.note--tr { right: 6%; top: 6%; transform: rotate(6deg); text-align: right; }
.note--mr { right: 2%; top: 62%; transform: rotate(6deg); font-size: 1.3rem; }

.hero__content {
  position: relative; z-index: 3;
  margin-top: -76px;
  text-align: center;
  padding-bottom: 22px;
}
.hero__title {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 10.6vw, 4.4rem);
  line-height: .98; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.7);
}
.hero__sub {
  margin: 12px auto 0; max-width: 32ch;
  font-size: .92rem; line-height: 1.45; color: #E4E4E7;
}
.hero__sub strong { color: var(--pink); }
.hero .btn { margin-top: 18px; }

.trust {
  margin-top: 14px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px;
  font-size: .78rem; font-weight: 500; color: #D4D4D8;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { color: var(--pink); width: 1.2rem; height: 1.2rem; }
.trust--wrap { gap: 10px 16px; }

/* Solo móvil: hero compacto, titular con más protagonismo y CTA visible sin scroll */
@media (max-width: 639.98px) {
  .hero__content { margin-top: -98px; padding-bottom: 18px; }
  .hero__title { margin-top: 6px; font-size: clamp(2.6rem, 12.2vw, 4.4rem); }
  .hero__sub { margin-top: 8px; }
  .hero .btn { margin-top: 14px; }
  .hero .trust { margin-top: 10px; }
}

/* ---------- SECCIONES ---------- */
.section { padding: 32px 0; }
.section--light { background: var(--white); color: var(--black); }
.section--dark  { background: var(--black); color: var(--white); }

/* ---------- PUNTO DE PARTIDA ---------- */
.start { padding: 36px 0; }
.start__inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.start__day {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #52525B;
  padding: 7px 14px; border: 1px solid var(--gray-2); border-radius: 999px;
}
.start__day::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.start__title { margin-top: 12px; font-size: clamp(2.3rem, 10vw, 3.4rem); }
.start__sub { margin-top: 10px; max-width: 32ch; text-wrap: balance; font-size: .98rem; line-height: 1.55; color: #52525B; }

.start-photo {
  position: relative; width: 100%; margin: 22px 0 0;
  aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--gray-1);
}
.start-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.start-photo__note {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; flex-direction: column; align-items: flex-start;
  font-size: 1.55rem; transform: rotate(-4deg);
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.35);
}
.start-photo__arrow {
  width: 46px; height: 32px; margin: 0 0 2px 58%;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.start-duo { width: 100%; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.start-box, .start-stats {
  background: var(--white); border: 1px solid #EFEFF1; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 10px 28px -18px rgba(0,0,0,.18);
}
.start-box { padding: 12px 12px 16px; text-align: left; }
.start-box__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--gray-1); }
.start-box__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* La foto del celular trae fondo blanco: multiply lo funde con el gris de la tarjeta */
.start-box__media--contain { padding: 0; }
.start-box__media--contain img { object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.start-box__num {
  margin: 12px 4px 0; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-size: clamp(2.5rem, 11.5vw, 3.4rem); line-height: .95; letter-spacing: .01em; color: var(--pink);
}
.start-box__unit { font-size: .42em; letter-spacing: .08em; color: var(--black); text-transform: uppercase; }
.start-box__sub {
  margin: 6px 4px 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: #71717A;
}

.start-stats { width: 100%; margin-top: 12px; padding: 18px 6px; display: grid; grid-template-columns: repeat(3, 1fr); }
.start-stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.start-stat + .start-stat { border-left: 1px solid var(--gray-2); }
.start-stat .ico { width: 22px; height: 22px; color: #3F3F46; stroke-width: 1.6; }
.start-stat__num {
  margin-top: 10px; font-family: var(--font-display); font-size: clamp(1.9rem, 8.4vw, 2.6rem); line-height: 1; letter-spacing: .02em; color: var(--pink);
}
.start-stat__label {
  margin-top: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: #3F3F46;
  max-width: 11ch;
}

.start-close {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: 1.05rem; line-height: 1.4; color: #52525B;
}
.start-close__line { width: 36px; height: 3px; border-radius: 3px; background: var(--pink); margin-bottom: 12px; }
.start-close strong { font-weight: 800; font-size: 1.25rem; color: var(--black); }

/* ---------- OBJETIVO ---------- */
.goal {
  margin-top: 22px;
  display: flex; align-items: center; gap: 8px;
}
.goal__box {
  flex: none;
  font-family: var(--font-display); font-size: clamp(1.35rem, 5.5vw, 2rem); letter-spacing: .02em; line-height: 1;
  padding: 12px 14px 10px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.goal__box--start { background: var(--white); color: var(--black); }
.goal__box--end   { background: var(--pink); color: var(--white); box-shadow: var(--shadow-pink); }
.goal__line { flex: 1; position: relative; height: 4px; background: #2A2A2E; border-radius: 4px; }
.goal__line-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--pink); border-radius: 4px;
  transition: width 1.4s var(--ease) .2s;
}
.goal__line-fill::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 12px; height: 12px; border-right: 4px solid var(--pink); border-top: 4px solid var(--pink);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0; transition: opacity .3s 1.3s;
}
.goal.is-visible .goal__line-fill { width: 100%; }
.goal.is-visible .goal__line-fill::after { opacity: 1; }
.goal__days {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .08em; color: var(--pink);
  white-space: nowrap;
}

.pledge {
  margin-top: 26px;
  position: relative;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  background: linear-gradient(135deg, #1A1A1D, #111113);
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px;
  overflow: hidden;
}
.pledge__text { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pledge__heart { width: 34px; height: 34px; color: var(--pink); flex: none; }
.pledge__text p { font-size: .95rem; line-height: 1.4; }
.pledge__text strong { color: var(--white); font-weight: 800; }
.pledge__photo { position: relative; flex: none; width: 104px; height: 104px; margin: -16px -14px -16px 0; }
.pledge__photo img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
          mask-image: linear-gradient(to right, transparent, #000 45%);
}
.pledge__hearts { position: absolute; right: 8px; top: 8px; width: 40px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2; }

/* ---------- REGLAS ---------- */
.rules-grid {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px;
}
.rule { text-align: center; }
.rule .ico {
  width: 48px; height: 48px; padding: 12px; border-radius: 50%;
  background: rgba(255, 0, 85, .08); color: var(--pink); stroke-width: 1.8;
}
.rule__label { display: block; margin-top: 7px; font-size: .76rem; font-weight: 600; line-height: 1.2; color: #27272A; }

.rules-highlight {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: .95rem; text-align: left;
}
.rules-highlight .ico { width: 36px; height: 36px; color: var(--pink); }
.underline-gold { position: relative; display: inline-block; padding-bottom: 6px; }
.underline-gold::after {
  content: ""; position: absolute; left: 30%; right: 0; bottom: 0; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 60 2, 140 9, 198 4' fill='none' stroke='%23D4AF37' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- METODOLOGÍA ---------- */
.method { position: relative; overflow: hidden; padding-bottom: 16px; }
.method::before {  /* textura sutil de "notas en la pared" */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 70%);
}
.method__inner { position: relative; display: grid; gap: 6px; }
.method__title {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 9.5vw, 3.4rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.method__copy { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: #D4D4D8; max-width: 36ch; }
.method__copy strong { color: var(--white); }

.method__visual { position: relative; display: grid; place-items: center; padding: 0; }
.method__box {
  position: relative; width: min(70vw, 300px); aspect-ratio: 1;
  filter: drop-shadow(0 20px 50px rgba(255,0,85,.35));
}
.method__box img {
  width: 100%; height: 100%; object-fit: cover;
  /* la foto tiene fondo negro: se funde con la sección por los bordes */
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}

/* ---------- POR QUÉ SEGUIR ---------- */
.why-grid {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.why {
  text-align: center; padding: 16px 12px;
  border: 1px solid var(--gray-2); border-radius: var(--radius); background: var(--gray-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.2); }
.why .ico {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: rgba(255, 0, 85, .08); color: var(--pink); stroke-width: 1.8;
}
.why__label { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.35; color: #3F3F46; }
.why__label strong { color: var(--black); }

/* ---------- CTA FINAL ---------- */
.final { position: relative; overflow: hidden; }
.final__inner { position: relative; text-align: center; }
.final .section__title { margin-top: 0; }
.final .btn { margin-top: 20px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--black); border-top: 1px solid #262629; padding: 24px 0 calc(20px + env(safe-area-inset-bottom)); color: #A1A1AA; }
.footer__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer__links { display: flex; gap: 18px; font-size: .82rem; }
.footer__links a:hover { color: var(--white); }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--pink); }
.footer__social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__tagline { font-size: .8rem; line-height: 1.35; max-width: 26ch; }

/* ---------- CTA FLOTANTE (solo móvil) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(13,13,13,.95), rgba(13,13,13,.8));
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }
body.has-sticky-cta { padding-bottom: 0; }

/* ---------- REVEAL AL SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }

/* Notas manuscritas: pequeño movimiento al aparecer */
.hero .note { animation: noteIn .9s var(--ease) both; }
.note--ml { animation-delay: .15s !important; }
.note--tr { animation-delay: .3s !important; }
.note--mr { animation-delay: .45s !important; }
@keyframes noteIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .note { animation: none; }
  .goal__line-fill { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =====================================================================
   TABLET  (≥ 640px)
   ===================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .section { padding: 48px 0; }
  .section__sub { font-size: 1rem; max-width: 48ch; }

  .hero__collage { height: min(72vh, 720px); }
  .hero__photo img {
    width: auto; max-width: 78%;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 4%, rgba(0,0,0,.7) 9%, rgba(0,0,0,.93) 13%, #000 17%, #000 66%, transparent 99%),
      linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 4%, rgba(0,0,0,.7) 9%, rgba(0,0,0,.93) 13%, #000 17%, #000 66%, transparent 99%),
      linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
  .note { font-size: 2.1rem; }
  .note--tl { left: 10%; top: 12%; }
  .note--ml { left: 6%; top: 40%; font-size: 1.8rem; }
  .note--tr { right: 10%; top: 10%; }
  .note--mr { right: 4%; top: 62%; font-size: 1.8rem; }
  .hero__content { margin-top: -80px; }
  .hero__title { font-size: clamp(3.6rem, 9vw, 5.2rem); }
  .hero__sub { font-size: 1rem; max-width: 40ch; }
  .hero .btn--block, .final .btn--block { width: auto; min-width: 380px; padding-inline: 40px; }
  .trust { font-size: .88rem; gap: 12px 28px; }

  .start { padding: 56px 0; }
  .start__sub { max-width: 40ch; font-size: 1.05rem; text-wrap: balance; }
  .start-photo { aspect-ratio: 16 / 10; border-radius: 24px; margin-top: 28px; }
  .start-photo img { object-position: center 30%; }
  .start-photo__note { left: 26px; bottom: 24px; font-size: 2.1rem; }
  .start-duo, .start-stats { margin-top: 16px; }
  .start-duo { gap: 18px; }
  .start-box { padding: 16px 16px 24px; }
  .start-box__media { aspect-ratio: 16 / 10; }
  .start-box__sub { font-size: .76rem; }
  .start-stats { padding: 24px 12px; }
  .start-stat .ico { width: 26px; height: 26px; }
  .start-stat__label { font-size: .74rem; max-width: none; }
  .start-close { font-size: 1.2rem; margin-top: 32px; }
  .start-close strong { font-size: 1.45rem; }

  .goal { gap: 16px; max-width: 760px; margin-inline: auto; }
  .goal__box { padding: 16px 22px 14px; }
  .goal__days { font-size: 1.35rem; top: 14px; }
  .pledge { max-width: 760px; margin-inline: auto; padding: 22px 22px; gap: 20px; }
  .pledge__text p { font-size: 1.1rem; }
  .pledge__photo { width: 150px; height: 150px; margin: -22px -22px -22px 0; }

  .rules-grid { grid-template-columns: repeat(4, 1fr); gap: 26px 12px; }
  .rule__label { font-size: .88rem; }
  .rules-highlight { font-size: 1.1rem; }

  .method__inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; }
  .method__box { width: min(40vw, 360px); }
  .method__copy { font-size: 1rem; }

  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why__label { font-size: .9rem; }


  .footer__inner { grid-template-columns: auto 1fr auto auto; align-items: center; justify-items: start; text-align: left; gap: 28px; }
  .footer__links { justify-self: start; }
  .sticky-cta { display: none; }
}

/* =====================================================================
   LAPTOP / DESKTOP  (≥ 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 68px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 3.1rem; }
  .logo { font-size: 1.7rem; }
  .day-badge { font-size: .9rem; padding: 9px 16px; }
  .burger { display: none; }
  .mobile-nav { display: none; }

  .hero__collage { height: min(78vh, 780px); }
  .hero__photo img { max-width: 56%; }
  .note { font-size: 2.4rem; }
  .note--tl { left: 22%; top: 14%; }
  .note--ml { left: 16%; top: 48%; font-size: 2.1rem; }
  .note--tr { right: 22%; top: 12%; }
  .note--mr { right: 13%; top: 64%; font-size: 2.1rem; }
  .hero__content { margin-top: -110px; padding-bottom: 48px; }
  .hero__title { font-size: 5.8rem; }

  .start { padding: 72px 0; }
  .start__title { font-size: 3.8rem; }
  .rules-grid { grid-template-columns: repeat(6, 1fr); max-width: 1000px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(6, 1fr); }
  .why { padding: 22px 12px; }
  .method__inner { gap: 56px; }
  .method__title { font-size: 3.8rem; }
  .method__box { width: 400px; }
  .goal__box { font-size: 2.3rem; }
}

/* =====================================================================
   MODAL DE REGISTRO ("SEGUIR EL RETO AHORA")
   ===================================================================== */
.reg {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(5, 5, 6, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.reg.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.reg [hidden] { display: none !important; }

.reg__dialog {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 34px 20px 22px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 0, 85, .07), transparent 60%),
    linear-gradient(180deg, #17171A 0%, var(--gray-9) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 0, 85, .06), 0 24px 60px -12px rgba(0, 0, 0, .85), 0 0 48px -16px rgba(255, 0, 85, .28);
  transform: translateY(16px) scale(.97); opacity: 0;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.reg.is-open .reg__dialog { transform: none; opacity: 1; }
.reg__dialog::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 85, .8), transparent);
  pointer-events: none;
}
.reg__dialog:focus { outline: none; }

.reg__close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  color: var(--gray-7); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.reg__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.reg__close:hover { color: var(--white); background: rgba(255, 255, 255, .1); border-color: rgba(255, 0, 85, .6); }
.reg__close:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.reg__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1; letter-spacing: .025em;
  text-align: center; margin: 0; padding-inline: 28px;
}
.reg__title:focus { outline: none; }
.reg__sub {
  margin: 10px auto 0; max-width: 32ch;
  text-align: center; font-size: .9rem; line-height: 1.45; color: #D4D4D8;
}

.reg__form { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field__input {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: 500 16px/1.2 var(--font-body); /* 16px evita el zoom automático en iPhone */
  color: var(--white); background: #0F0F11;
  border: 1px solid #2A2A2F; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #5E5E66; }
.field__input:hover { border-color: #3A3A40; }
.field__input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 0, 85, .18); background: #121215; }
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 100px #121215 inset; caret-color: var(--white);
}
.field__error { margin: 0; font-size: .78rem; line-height: 1.35; color: #FF5C8A; }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: #FF5C8A; }

/* WhatsApp: país + número en un solo recuadro */
.phone {
  display: flex; align-items: stretch; min-height: 52px;
  background: #0F0F11; border: 1px solid #2A2A2F; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.phone:hover { border-color: #3A3A40; }
.phone:focus-within, .phone.is-open { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 0, 85, .18); background: #121215; }
.field.is-invalid .phone { border-color: #FF5C8A; }
.phone__country {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 0 12px 0 14px; margin: 0;
  background: none; border: 0; border-right: 1px solid #2A2A2F; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--white); font: 700 16px/1 var(--font-body); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phone__country:hover { background: rgba(255, 255, 255, .03); }
.phone__country:focus-visible { outline: none; background: rgba(255, 0, 85, .08); }
.phone__flag { font-size: 1.2rem; line-height: 1; }
.phone__chev { width: 14px; height: 14px; fill: none; stroke: var(--gray-7); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.phone.is-open .phone__chev { transform: rotate(180deg); }
.phone__input {
  flex: 1; min-width: 0; padding: 0 16px;
  font: 500 16px/1.2 var(--font-body); letter-spacing: .03em; /* 16px evita el zoom en iPhone */
  color: var(--white); background: none; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  -webkit-appearance: none; appearance: none;
}
.phone__input::placeholder { color: #5E5E66; letter-spacing: 0; }
.phone__input:focus { outline: none; }

/* Desplegable de países (posición calculada por JS) */
.cc {
  position: fixed; z-index: 5;
  display: flex; flex-direction: column;
  background: #141417; border: 1px solid #2A2A2F; border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 0, 85, .05);
  overflow: hidden;
  animation: cc-in .18s var(--ease);
}
.cc[hidden] { display: none; }
@keyframes cc-in { from { opacity: 0; transform: translateY(-4px); } }
.cc__search {
  flex: none; margin: 8px; min-height: 46px; padding: 0 14px;
  font: 500 16px/1.2 var(--font-body); color: var(--white);
  background: #0F0F11; border: 1px solid #2A2A2F; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.cc__search::placeholder { color: #6B6B73; }
.cc__search:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 0, 85, .15); }
.cc__list {
  flex: 1; min-height: 0; margin: 0; padding: 0 6px 6px; list-style: none;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #3A3A40 transparent;
}
.cc__opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px; border-radius: 8px;
  font-size: .95rem; color: #E4E4E7; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cc__opt[hidden] { display: none; }
.cc__opt:hover, .cc__opt.is-active { background: rgba(255, 255, 255, .06); }
.cc__opt[aria-selected="true"] { color: var(--pink); background: rgba(255, 0, 85, .08); }
.cc__opt[aria-selected="true"] .cc__dial { color: var(--pink); }
.cc__flag { font-size: 1.15rem; line-height: 1; flex: none; }
.cc__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc__dial { flex: none; color: var(--gray-7); font-variant-numeric: tabular-nums; }
.cc__empty { margin: 0; padding: 14px 16px 18px; font-size: .88rem; color: var(--gray-7); text-align: center; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Botón principal */
.reg__submit { position: relative; margin-top: 6px; min-height: 56px; font-size: .92rem; }
.reg__submit:disabled { cursor: progress; filter: saturate(.85) brightness(.92); transform: none; }
.reg__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white);
  animation: reg-spin .7s linear infinite;
}
.reg__submit.is-loading .arrow { display: none; }
.reg__submit.is-loading .reg__spinner { display: inline-block; }
@keyframes reg-spin { to { transform: rotate(360deg); } }

.reg__status { margin: 0; text-align: center; font-size: .82rem; color: #FF5C8A; }
.reg__status:empty { display: none; }

.reg__legal {
  margin: 2px auto 0; max-width: 36ch;
  text-align: center; font-size: .7rem; line-height: 1.45; color: #71717A;
}

/* Estado de éxito */
.reg__done { text-align: center; padding-top: 6px; }
.reg__done .btn { margin-top: 22px; }
.reg__check {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 0, 85, .12); border: 1px solid rgba(255, 0, 85, .35);
}
.reg__check svg { width: 26px; height: 26px; fill: none; stroke: var(--pink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pantallas bajitas: compacta un poco */
@media (max-height: 640px) {
  .reg__dialog { padding-top: 28px; }
  .reg__form { margin-top: 16px; gap: 10px; }
  .field__input, .phone { min-height: 48px; }
}
@media (min-width: 768px) {
  .reg__dialog { padding: 40px 32px 26px; }
  .reg__title { font-size: 2.6rem; }
  .reg__sub { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reg, .reg__dialog { transition: none; }
}
