/* ============================================================================
   1APICKS — 1apicks.com
   Molde: las dos landings de YRL (docs/DISECCION-YRL.md). Lo que se copia es la
   MECÁNICA, no la paleta:
     · la página es CLARA y las secciones alternan claro / negro
     · el acento va en barras a sangre, pastillas y el subrayado de los titulares
     · Anton negra en mayúsculas, centrada, sobre texto gris tranquilo
     · fotos y maquetas de móvil llevan el peso, no los degradados
   Su acento es lima sobre negro; el nuestro es el violeta #701cfc de marcas.json
   con texto blanco encima. El verde solo aparece cuando algo se ha ganado.
   ============================================================================ */

/* ---------------------------------------------------------------- TOKENS -- */
:root {
  --font-heading: "Anton", "Arial Narrow", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --violet: #701cfc;
  --violet-hi: #8f4dff;
  --violet-deep: #2a0a63;
  --violet-wash: rgba(112, 28, 252, .10);
  --violet-line: rgba(112, 28, 252, .28);

  --win: #12b76a;

  /* claros: el gris tira un pelín a violeta, no es un gris de fábrica */
  --paper: #f3f2f6;
  --paper-2: #eceaf2;
  --card: #ffffff;
  --ink: #12101a;
  --ink-2: #57525f;
  --ink-3: #8d879a;
  --line: rgba(18, 16, 26, .10);

  /* oscuros */
  --night: #0d0a14;
  --night-2: #16111f;
  --on-night: #f4f2f8;
  --on-night-2: rgba(244, 242, 248, .70);
  --line-night: rgba(255, 255, 255, .12);

  --r-pill: 999px;
  --r-lg: 18px;
  --r-md: 12px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --max-w: 430px;
  --pad: 18px;
}

/* ------------------------------------------------------------------ BASE -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0b0910;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* height:auto o el atributo height del HTML gana sobre el ancho del CSS y
   aplasta la imagen. Las que llevan alto fijo (avatares, escudos) lo pisan
   con su propia regla, que es más específica. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

#stage {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--paper);
  overflow-x: clip;
  position: relative;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(30px, 8.6vw, 36px); line-height: 1.02; }
h2 { font-size: clamp(27px, 7.8vw, 32px); line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.12; }
p { margin: 0; }

/* ---- la sección ---- */
.sec {
  padding: 42px var(--pad);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  background: var(--paper);
}
.sec--white { background: var(--card); }
.sec--night { background: var(--night); color: var(--on-night); }
.sec--night h2, .sec--night h3 { color: var(--on-night); }
.sec--night .lead { color: var(--on-night-2); }
.lead { color: var(--ink-2); max-width: 36ch; }

/* la pastilla que va encima del titular */
.kicker {
  display: inline-block;
  background: var(--violet); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--r-pill);
}
/* el guion corto debajo del titular */
.rule { width: 54px; height: 4px; background: var(--violet); border-radius: 2px; }
.sec--night .rule { background: var(--violet-hi); }

/* el resaltador detrás de la cifra */
.mark { background: var(--violet); color: #fff; padding: 0 .12em; }
.mark--win { background: var(--win); }

/* ------------------------------------------------------------------ CTA -- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 360px;
  padding: 18px 20px;
  text-decoration: none;
  font-size: 14.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #fff;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--violet-hi) 0%, var(--violet) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px -12px rgba(112,28,252,.7);
  transition: filter .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.975); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-note { font-size: 12.5px; color: var(--ink-3); }
.sec--night .btn-note { color: rgba(244,242,248,.45); }

/* la barra a sangre: su recurso más reconocible */
.ctaband {
  background: var(--violet);
  padding: 20px var(--pad);
  display: grid; justify-items: center; gap: 8px;
}
.ctaband a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.ctaband svg { width: 19px; height: 19px; }

/* el mismo botón, clavado abajo */
.sticky {
  position: fixed; left: 50%; z-index: 40;
  bottom: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(calc(var(--max-w) - 28px), calc(100vw - 28px));
  transform: translate(-50%, calc(100% + 30px));
  opacity: 0;
  transition: transform .34s var(--spring), opacity .22s var(--ease);
  pointer-events: none;
}
.sticky.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sticky .btn { max-width: none; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); }

/* --------------------------------------------------------------- MARQUEE -- */
.marquee {
  position: sticky; top: 0; z-index: 30;
  overflow: hidden; background: var(--night);
  padding: 10px 0; border-bottom: 1px solid var(--line-night);
}
.marquee__track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee__track span {
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet-hi); padding: 0 11px; white-space: nowrap;
}
.marquee__track .d { color: rgba(255,255,255,.22); padding: 0 1px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ HERO -- */
.hero { padding-top: 26px; gap: 12px; }
.social { display: flex; align-items: center; gap: 9px; }
.avatars { display: flex; }
.avatars img {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  border: 2.5px solid var(--paper); object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }
.social p { font-size: 12.5px; color: var(--ink-2); }
.social b { color: var(--ink); }
.hero h1 { margin: 4px 0 2px; }
.hero__media {
  width: 100%; max-width: 360px; margin: 8px 0 4px;
  border-radius: var(--r-md); box-shadow: 0 22px 44px -22px rgba(18,16,26,.55);
}

/* ------------------------------------------------------------- CHECKLIST -- */
.checks { display: grid; gap: 12px; width: 100%; text-align: left; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks svg { width: 22px; height: 22px; margin-top: 1px; }

/* --------------------------------------------------------------- RESEÑAS -- */
.revs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; width: 100%; }
.rev {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; text-align: left; display: grid; gap: 8px; align-content: start;
}
.rev__top { display: flex; align-items: center; gap: 9px; }
.rev__top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.rev__name { font-size: 13.5px; font-weight: 800; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 13px; height: 13px; fill: var(--win); }
.rev p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* ---------------------------------------------------------------- ESCUDOS -- */
.logos {
  display: flex; gap: 26px; align-items: center;
  overflow-x: auto; width: 100%; padding: 4px 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.logos::-webkit-scrollbar { display: none; }
.logos img { height: 28px; width: auto; max-width: 82px; object-fit: contain; flex: none; opacity: .38; filter: grayscale(1); }

/* ------------------------------------------------------------------ RAIL -- */
.rail {
  display: flex; gap: 12px; width: calc(100% + 36px); margin: 0 -18px;
  padding: 2px 18px 4px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 88%; scroll-snap-align: center; }
.slip { display: grid; gap: 10px; }
.slip img { border-radius: var(--r-md); border: 1px solid var(--line-night); }
.slip figcaption {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: var(--win);
}
.dots { display: flex; gap: 6px; justify-content: center; padding-top: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); transition: all .25s var(--ease); }
.dots i.on { width: 20px; background: var(--violet-hi); }

/* ----------------------------------------------------------------- PASOS -- */
.step { display: grid; justify-items: center; gap: 12px; padding-top: 10px; }
.step img { max-width: 250px; }

/* ----------------------------------------------------------------- CIFRAS -- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; }
.sec--night .stat { background: var(--night-2); border-color: var(--line-night); }
.stat b { display: block; font-family: var(--font-heading); font-size: 30px; line-height: 1; color: var(--violet); }
.sec--night .stat b { color: var(--violet-hi); }
.stat b.win { color: var(--win); }
.stat i {
  display: block; font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px;
}
.sec--night .stat i { color: rgba(244,242,248,.45); }
.verify { font-size: 13px; color: var(--ink-2); }
.sec--night .verify { color: var(--on-night-2); }
.verify a { color: var(--violet-hi); font-weight: 800; text-decoration: none; border-bottom: 1.5px solid var(--violet-line); }

/* ------------------------------------------------------------ CUENTA ATRÁS -- */
.count { display: flex; gap: 10px; }
.count div {
  min-width: 82px; padding: 14px 8px; border-radius: 14px;
  background: var(--night-2); border: 1px solid var(--line-night);
}
.count b { display: block; font-family: var(--font-heading); font-size: 32px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.count i { display: block; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,242,248,.42); margin-top: 6px; }

/* ----------------------------------------------------------------- QUIÉN -- */
.about img { width: 176px; border-radius: var(--r-lg); }
.about blockquote { margin: 0; font-size: 15.5px; color: var(--on-night-2); font-style: italic; max-width: 34ch; }
.about cite { display: block; font-style: normal; font-size: 12px; color: rgba(244,242,248,.4); margin-top: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------------- FAQ -- */
.faq { width: 100%; display: grid; gap: 9px; text-align: left; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-size: 14.5px; font-weight: 800;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); font-size: 21px; font-weight: 500; color: var(--violet); line-height: 1; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq p { font-size: 13.5px; color: var(--ink-2); padding-bottom: 16px; }

/* ----------------------------------------------------------------- PIE -- */
.foot { background: var(--night); color: rgba(244,242,248,.34); padding: 26px var(--pad) 100px; text-align: center; }
.foot img { width: 52px; margin: 0 auto 12px; border-radius: 12px; }
.foot small { font-size: 11.5px; }
.foot__legal { font-size: 10.5px; line-height: 1.6; margin-top: 14px; }
.foot__legal b { display: block; color: rgba(244,242,248,.5); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }

/* --------------------------------------------------------------- APARECER -- */
.rise { opacity: 0; transform: translateY(15px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}


/* ============================================================================
   ESCRITORIO. La página deja de ser una columna de 430 px flotando en negro:
   las secciones pasan a ocupar el ancho entero de la pantalla y lo que se
   limita es el CONTENIDO de cada una. Así las franjas de color siguen yendo
   a sangre, que es lo que sostiene el diseño.
   ============================================================================ */
@media (min-width: 760px) {
  body { background: var(--paper); }
  #stage { max-width: none; }

  .sec { padding: 84px 40px; gap: 20px; }
  h1 { font-size: clamp(46px, 4.4vw, 60px); }
  h2 { font-size: clamp(36px, 3.4vw, 46px); }
  h3 { font-size: 24px; }
  .lead { font-size: 17px; max-width: 56ch; }
  .kicker { font-size: 13px; padding: 8px 18px; }
  .rule { width: 64px; }

  .hero { padding-top: 60px; }
  .hero__media { max-width: 520px; }
  .social p { font-size: 14px; }
  .avatars img { width: 40px; height: 40px; }

  .ctaband { padding: 26px 40px; }
  .ctaband a { font-size: 17px; }

  .checks { grid-template-columns: 1fr 1fr; max-width: 900px; gap: 16px 40px; }
  .checks li { font-size: 16px; }

  .stats { grid-template-columns: repeat(4, 1fr); max-width: 940px; gap: 16px; }
  .stat { padding: 26px 14px; }
  .stat b { font-size: 38px; }
  .verify { font-size: 15px; }

  .logos { justify-content: center; gap: 48px; max-width: 900px; overflow: visible; }
  .logos img { height: 38px; max-width: 120px; }

  .rail { width: 100%; margin: 0; padding: 6px 0; max-width: 1080px; gap: 20px; }
  .rail > * { flex: 0 0 31.5%; }
  .slip figcaption { font-size: 15px; }

  .revs { grid-template-columns: repeat(4, 1fr); max-width: 1080px; gap: 18px; }
  .rev { padding: 18px; }
  .rev p { font-size: 14px; }

  /* los tres pasos, uno al lado del otro */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1060px; align-items: start; margin-top: 14px; }
  .step { padding-top: 0; }
  .step img { max-width: 250px; }

  .count div { min-width: 118px; padding: 22px 14px; }
  .count b { font-size: 46px; }

  .about img { width: 230px; }
  .about blockquote { font-size: 19px; max-width: 42ch; }

  .faq { max-width: 800px; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .faq p { font-size: 15px; padding-bottom: 20px; }

  .btn { max-width: 340px; padding: 19px 24px; font-size: 15px; }
  .foot { padding: 50px 40px 60px; }
  .foot__legal { max-width: 860px; margin-left: auto; margin-right: auto; }

  /* el botón flotante sobra cuando el de la sección ya se ve entero */
  .sticky { display: none; }
}

/* en pantallas muy anchas el texto no se estira más de la cuenta */
@media (min-width: 1280px) {
  .sec { padding: 96px 40px; }
}
