:root {
  --green: #388e3c;
  --green-hover: #2e7d32;
  --brand: #4caf50;
  --accent: #ef8a17;
  --accent-hover: #f5a13f;
  --ink: #323233;
  --muted: #5c5c5d;
  --paper: #ffffff;
  --mist: #ececec;
  --frame: #323233;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--green);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.on-dark a:focus-visible {
  outline-color: var(--paper);
}

h1, h2, h3, p {
  margin: 0;
}

h2 {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  font-weight: 700;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.band-mist {
  background: var(--mist);
}

.band-green {
  background: var(--green);
  color: var(--paper);
}

.lead {
  max-width: 640px;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.button {
  display: inline-block;
  padding: 17px 28px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

/* Cabecera */

.site-header {
  border-bottom: 1px solid var(--mist);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.site-nav a {
  padding: 12px;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav .button {
  padding: 13px 20px;
  font-size: 15px;
}

.site-nav .button:hover {
  text-decoration: none;
}

/* Hero */

.hero {
  overflow: hidden;
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px;
  padding-top: 64px;
}

.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  font-size: 24px;
  line-height: 1.35;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.store {
  display: block;
  line-height: 0;
}

.store img {
  height: 56px;
  width: auto;
}

.hero-more {
  padding: 14px 0;
  color: var(--paper);
  font-size: 19px;
  font-weight: 700;
}

.hero-more:hover {
  color: var(--mist);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  padding-top: 20px;
  border-top: 1px solid var(--paper);
}

.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}

.stats span {
  font-size: 19px;
  font-weight: 700;
}

.hero-phones {
  flex: 1 1 380px;
  min-width: 0;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.phone {
  flex: 0 1 236px;
  min-width: 0;
  border: 8px solid var(--frame);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--frame);
  overflow: hidden;
  line-height: 0;
  margin-bottom: -40px;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 716 / 1526;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 18px 18px 0 0;
}

.phone + .phone {
  margin-bottom: -110px;
}

/* Cómo funciona */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.step {
  flex: 1 1 280px;
  min-width: 0;
  background: var(--paper);
  border-radius: 2px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step p {
  color: var(--muted);
}

/* Sorteos */

.sorteos-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sorteos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.sorteo {
  --sorteo: var(--brand);
  min-width: 0;
  border-top: 8px solid var(--sorteo);
  border-radius: 2px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sorteo h3 {
  padding: 20px 20px 16px;
  font-size: 20px;
}

.c-super { --sorteo: #2196f3; }
.c-jackpot { --sorteo: #ff9800; }
.c-triplex { --sorteo: #f44336; }
.c-dupla { --sorteo: #388e3c; }
.c-midia { --sorteo: #ffc107; }

.latest {
  flex-grow: 1;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.latest-date {
  font-size: 14px;
  color: var(--muted);
}

.latest-date b {
  color: var(--ink);
  font-weight: 500;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
}

.minis {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}

.mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sorteo);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.comb {
  background: var(--mist);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  word-spacing: 0.25em;
}

.latest-text {
  font-size: 20px;
  font-weight: 700;
}

/* Opiniones */

.reviews-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.review {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  background: var(--paper);
  border-radius: 2px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review svg {
  fill: var(--green);
}

.review blockquote {
  margin: 0;
  font-size: 19px;
}

.review figcaption {
  margin-top: auto;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review a {
  padding: 10px 0;
  font-weight: 500;
}

/* Descarga */

.download .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.download .wrap > img {
  width: 96px;
  height: 96px;
}

.download-text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 900;
  text-wrap: balance;
}

.download-note {
  font-size: 19px;
  font-weight: 700;
}

/* Pie */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-about {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 680px;
}

.footer-links {
  flex: 0 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  color: var(--mist);
  padding: 10px 0;
}

.footer-links a:hover {
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  h2 {
    font-size: 28px;
  }

  .site-nav a:not(.button) {
    display: none;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 17px;
    white-space: nowrap;
  }

  .site-nav .button {
    padding: 12px 14px;
  }

  .hero .wrap {
    padding-top: 40px;
    gap: 32px;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero-sub {
    font-size: 24px;
  }

  .stats {
    gap: 12px 24px;
  }

  .stats strong {
    font-size: 24px;
  }

  .hero-phones {
    gap: 12px;
    padding: 0;
  }

  .phone {
    border-width: 6px;
    border-bottom: 0;
  }

  .download .wrap {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

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

/* Páginas de texto */

.page-hero .wrap {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-hero h1 {
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
}

.page-hero-kicker {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal h2 {
  font-size: 24px;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--green);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--green-hover);
}

.legal-apps {
  display: flex;
  flex-direction: column;
}

.legal-apps a {
  padding: 10px 0;
}
