:root {
  --blue: #2d649a;
  --blue-hover: #1f4a75;
  --ink: #000000;
  --paper: #ffffff;
  --mist: #ececec;
  --frame: #1f1f1f;
  --footer: #424242;
  --bote: #ffbb33;
  --display: Rubik, Roboto, system-ui, sans-serif;
  --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: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
}

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

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

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;
}

h1, h2, .brand-name {
  font-family: var(--display);
  font-weight: 700;
}

h2 {
  font-size: 36px;
  line-height: 1.15;
}

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

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

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

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

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

.lead {
  font-size: 18px;
  max-width: 640px;
}

.small {
  font-size: 14px;
}

/* 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;
  color: var(--ink);
  text-decoration: none;
}

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

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

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

.site-nav a {
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.site-nav .cta {
  padding: 12px 20px;
  background: var(--blue);
  color: var(--paper);
  font-weight: 700;
  border-radius: 2px;
}

.site-nav .cta:hover {
  background: var(--blue-hover);
  text-decoration: none;
}

/* Hero */

.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: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 20px;
  max-width: 520px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stores a {
  display: block;
  line-height: 0;
}

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

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-top: 8px;
}

.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
}

.stats span {
  font-size: 15px;
}

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

.phone {
  flex: 0 1 230px;
  min-width: 0;
  border: 8px solid var(--frame);
  border-radius: 28px;
  background: var(--frame);
  overflow: hidden;
  line-height: 0;
}

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

.hero-phones .phone {
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  margin-bottom: -60px;
}

.hero-phones .phone img {
  border-radius: 20px 20px 0 0;
}

.hero-phones .phone + .phone {
  margin-bottom: -140px;
}

/* Cómo funciona */

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

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

.step {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  background: var(--mist);
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.note strong {
  font-size: 18px;
}

.note span {
  flex: 1 1 320px;
  min-width: 0;
}

/* Sorteos */

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  margin-top: 24px;
}

.tile {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--paper);
  border-radius: 2px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.tile strong {
  display: block;
  font-size: 22px;
}

.tile span {
  font-size: 15px;
}

.c-nacional { background: #2d649a; }
.c-primitiva { background: #046531; }
.c-bonoloto { background: #526012; }
.c-euromillon { background: #032c47; }
.c-gordo { background: #cc222b; }
.c-dreams { background: #412d60; }
.c-quiniela { background: #7c0709; }
.c-quinigol { background: #00695c; }

/* Botes */

.botes .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.botes-text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.botes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.bote {
  border-radius: 2px;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 24px;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.bote-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.bote-date {
  font-size: 15px;
}

.bote-amount {
  color: var(--bote);
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
}

.bote-amount b {
  font-size: 64px;
  font-weight: 500;
}

.botes .phone {
  flex: 0 1 280px;
  margin: 0 auto;
}

/* Opiniones */

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}

.reviews-head h2 {
  flex: 1 1 420px;
  min-width: 0;
}

.rating {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}

.rating strong {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: var(--blue);
}

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

.review {
  flex: 1 1 300px;
  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(--blue);
}

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

.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;
  justify-content: space-between;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 72px;
}

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

/* Pie */

.site-footer {
  background: var(--footer);
  color: var(--mist);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-about {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-about strong {
  font-family: var(--display);
  font-size: 18px;
}

.footer-about p {
  max-width: 640px;
}

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

.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(.cta) {
    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 .cta {
    padding: 12px 14px;
  }

  .stores img {
    height: 48px;
  }

  .stats {
    gap: 12px 20px;
  }

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

  .stats span {
    font-size: 14px;
  }

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

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

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

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

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

  .bote-amount b {
    font-size: 48px;
  }

  .bote-amount {
    font-size: 18px;
  }

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

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

/* Páginas de texto legal */

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

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

.page-hero-kicker {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

.legal-apps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legal-apps a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 500;
}
