/* SuerteYa — landing de producto.
   Sin framework ni compilación a propósito: es una página, no una aplicación. */

:root {
  --verde: #16a34a;
  --verde-osc: #15803d;
  --verde-noche: #052e16;
  --oro: #fbbf24;
  --oro-osc: #b45309;
  --tinta: #0f172a;
  --gris: #64748b;
  --linea: #e2e8f0;
  --fondo: #ffffff;
  --fondo-alt: #f8fafc;
  --radio: 16px;
  --ancho: 1120px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

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

img, svg { max-width: 100%; }

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.95rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--verde-noche); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .72rem 1.3rem; border-radius: 999px;
  background: var(--verde); color: #fff; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid var(--verde);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--verde-osc); border-color: var(--verde-osc); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--gold { background: var(--oro); border-color: var(--oro); color: #3b2504; }
.btn--gold:hover { background: #f0b419; border-color: #f0b419; }

/* ---------- barra superior ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 46, 22, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__accent { color: var(--oro); }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; }

/* ---------- portada ---------- */
.hero { position: relative; background: linear-gradient(160deg, #052e16 0%, #14532d 55%, #166534 100%); color: #fff; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(251,191,36,.20), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--oro); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--oro); }
.lede { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: min(52ch, 100%); }
.lede--light { color: rgba(255,255,255,.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
/* flex-wrap y min-width:0 no son adorno: sin ellos, los hijos flex y de rejilla
   se niegan a encoger por debajo de su contenido, ensanchan la columna y
   desbordan la página entera en pantallas angostas. */
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; font-size: .9rem; color: rgba(255,255,255,.72); margin: 0; }
.hero__copy, .hero__art { min-width: 0; }
.responsible__inner > * { min-width: 0; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 800; font-size: .78rem; padding: .25rem .6rem;
}
.pill--age { background: var(--oro); color: #3b2504; }
.pill--lg { font-size: 1.1rem; padding: .4rem .9rem; }

.hero__art { display: flex; justify-content: center; }
.phone { width: min(100%, 310px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.42)); }

/* ---------- secciones ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--fondo-alt); border-block: 1px solid var(--linea); }
.section__lede { color: var(--gris); font-size: 1.08rem; max-width: min(56ch, 100%); margin-bottom: 2.4rem; }

/* loterías */
.lotteries {
  list-style: none; padding: 0; margin: 0;
  /* 320px de mínimo para que caigan 3 por fila en escritorio: con 250px salían
     4 + 2 y la segunda fila quedaba coja. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .9rem;
}
.lotteries li {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.05rem 1.2rem; font-weight: 600; box-shadow: var(--sombra);
}
.lot__dot { width: 12px; height: 12px; border-radius: 999px; background: var(--c); flex: none; }

/* pasos */
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }
.step { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); }
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: -14px; left: 1.6rem;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--verde-noche); color: var(--oro);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.step__art { width: 76px; height: 76px; margin: .4rem 0 1rem; }
.step__art svg { width: 100%; height: 100%; }
.step p { color: var(--gris); margin: 0; font-size: .98rem; }

/* tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--verde); border-radius: var(--radio); padding: 1.4rem 1.5rem; box-shadow: var(--sombra); }
.card p { color: var(--gris); margin: 0; font-size: .98rem; }

/* juego responsable */
.responsible { background: linear-gradient(150deg, #052e16, #14532d); color: #fff; }
.responsible__inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.6rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; color: rgba(255,255,255,.9); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px; border-left: 3px solid var(--oro); border-bottom: 3px solid var(--oro);
  transform: rotate(-45deg);
}
.responsible__box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radio); padding: 1.6rem; }
.responsible__box p { font-size: .96rem; color: rgba(255,255,255,.88); }
.responsible__box p:last-child { margin-bottom: 0; }
.muted { color: rgba(255,255,255,.62) !important; font-size: .88rem !important; }

/* cierre */
.cta { background: var(--fondo-alt); border-top: 1px solid var(--linea); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__inner { text-align: center; }
.cta p { color: var(--gris); margin-bottom: 1.6rem; }

/* pie */
.foot { background: var(--verde-noche); color: rgba(255,255,255,.72); padding: 2.8rem 0 2.2rem; font-size: .92rem; }
.foot__top { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1.4rem; }
.brand--foot .brand__name { font-size: 1.1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.foot__links a { color: rgba(255,255,255,.78); text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.legal { max-width: min(78ch, 100%); font-size: .86rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.legal strong { color: rgba(255,255,255,.86); }

/* ---------- adaptación a pantallas angostas ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .phone { width: min(70%, 230px); }
  .responsible__inner { grid-template-columns: 1fr; }

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #052e16; border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.08); }

  .nav__toggle {
    display: grid; gap: 5px; margin-left: auto; order: 3;
    background: none; border: 0; padding: .5rem; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .nav .btn--sm { order: 2; margin-left: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}
