/* =========================================================================
 * Susuerte · Landing de MiLoto
 * ====================================================================== */

/* Montserrat variable: un solo archivo para 400 y 700 */
@font-face {
  font-family: 'Montserrat';
  src: url('fuentes/montserrat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta oficial de Susuerte */
  --azul_oficial: #003296;
  --amarillo_oficial: #ffff00;
  --cian_claro: #00bef0;
  --azul_noche: #001e6e;
  --degradado_corporativo: linear-gradient(90deg, #003296 0%, #00a0ff 100%);

  /* Colores de MiLoto (logo) y de sus piezas de campaña (rosa) */
  --azul_miloto: #009fe3;
  --azul_miloto_oscuro: #213a8f;
  --rosa_miloto: #e9a0db;
  --rosa_claro: #fbeaf7;

  /* Fondo de la portada, igual al del arte */
  --noche_portada: #010b2a;

  /* Neutros */
  --blanco: #ffffff;
  --texto-1: #1a1a1a;
  --texto-2: #606060;
  --gris: #dbdbdb;
  --superficie: #f2f2f2;

  --sombra: 0 1px 2px rgba(0, 50, 150, 0.08), 0 6px 16px rgba(0, 50, 150, 0.1),
    0 18px 40px rgba(0, 50, 150, 0.14), 0 40px 90px rgba(0, 50, 150, 0.16);
  --sombra-suave: 0 1px 2px rgba(0, 50, 150, 0.06), 0 8px 24px rgba(0, 50, 150, 0.08);

  --fuente: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =======================================================================
 * 1. BASE
 * ==================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Fondo de MiLoto: el patrón se repite en vertical */
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto-1);
  background: var(--blanco) url('img/fondo-miloto.webp') top center / 100% auto repeat-y;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Iconos de trazo */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
strong {
  font-weight: 700;
}

a:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--azul_miloto_oscuro);
  outline-offset: 2px;
}

/* Sobre la portada oscura el foco va en cian */
.portada :focus-visible {
  outline-color: var(--cian_claro);
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Enlace para saltar la cabecera con el teclado */
.saltar {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--amarillo_oficial);
  color: var(--azul_noche);
  font-weight: 700;
  text-decoration: none;
}

.saltar:focus {
  top: 12px;
}

/* =======================================================================
 * 2. BOTONES
 * ==================================================================== */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background-color: var(--azul_miloto);
  color: var(--azul_noche);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
}

.boton:hover {
  transform: scale(1.06);
  background-color: var(--cian_claro);
  box-shadow: 0 8px 22px rgba(0, 120, 200, 0.3);
}

.boton:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* Contorno blanco, para la portada oscura */
.boton--claro {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--blanco);
}

.boton--claro:hover {
  background-color: var(--rosa_miloto);
  border-color: var(--rosa_miloto);
  color: var(--texto-1);
  box-shadow: none;
}

/* Contorno azul, para las tarjetas blancas */
.boton--contorno {
  background-color: transparent;
  border-color: var(--azul_miloto_oscuro);
  color: var(--azul_miloto_oscuro);
}

.boton--contorno:hover {
  background-color: var(--azul_miloto_oscuro);
  color: var(--blanco);
  box-shadow: 0 8px 22px rgba(33, 58, 143, 0.25);
}

/* =======================================================================
 * 3. CABECERA: en /recursos-compartidos/barra-landings.css, compartida con las demás landings
 * ==================================================================== */

/* =======================================================================
 * 4. PORTADA (celular: arte arriba y texto debajo; escritorio: texto sobre el arte)
 * ==================================================================== */
.portada {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  background-color: var(--noche_portada);
  color: var(--blanco);
}

.portada__foto {
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

/* El piso del arte se funde con el fondo */
.portada__arte {
  --fundido-x: linear-gradient(#000, #000);
  --fundido-y: linear-gradient(180deg, #000 78%, transparent);
  width: 100%;
  -webkit-mask-image: var(--fundido-x), var(--fundido-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fundido-x), var(--fundido-y);
  mask-composite: intersect;
}

/* Si el arte no llena el ancho, también se funden los lados */
@media (min-width: 600px) {
  .portada__arte {
    --fundido-x: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
}

.portada__in {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: -72px auto 0;
  padding: 0 20px;
}

.portada__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portada__titulo {
  margin: 18px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.portada__titulo span {
  display: block;
  color: var(--cian_claro);
}

.portada__sub {
  max-width: 44ch;
  margin: 14px 0 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.portada__puntos {
  margin: 18px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.portada__puntos--app {
  margin-top: 6px;
}

/* El enlace no se parte en dos líneas */
.portada__puntos a {
  color: var(--cian_claro);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.portada__puntos a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Logo de MiLoto (recortado del arte de la campaña) */
.marca-miloto {
  width: 240px;
  margin: 0;
}

.marca-miloto img {
  width: 100%;
}

/* =======================================================================
 * 5. PIEZAS COMUNES: tarjeta, cabecera de sección y rejillas
 * ==================================================================== */
.tarjeta {
  background-color: var(--blanco);
  border: 1px solid var(--gris);
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
}

.seccion {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 0;
}

.seccion--angosta {
  max-width: 860px;
}

.cabeza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.filete {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background-color: var(--rosa_miloto);
}

.h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--azul_miloto_oscuro);
}

.cabeza__sub {
  margin: 0;
  font-size: 16px;
  color: var(--texto-2);
}

/* Aviso de resultados no disponibles (resultados.js) */
.cabeza__sub .es-aviso {
  font-weight: 700;
  color: var(--texto-1);
}

.rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

/* =======================================================================
 * 6. BALOTAS (dibujadas en CSS como las del arte: cian con la cara blanca;
 *    el diámetro sale de --bola)
 * ==================================================================== */
.balota {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--bola, 52px);
  height: var(--bola, 52px);
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #ffffff 0 60%, #c3ccd8 62% 68%, transparent 70%),
    radial-gradient(circle at 34% 30%, #e3f6ff 0%, #5ccbf7 16%, var(--azul_miloto) 50%, #0a6cb0 86%, #07528c 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 30, 110, 0.18);
  color: var(--azul_miloto_oscuro);
  font-size: calc(var(--bola, 52px) * 0.34);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Mientras no llega el dato, el guion va tenue */
.balota__num:not([data-lleno]) {
  opacity: 0.5;
}

/* =======================================================================
 * 7. RESULTADOS
 * ==================================================================== */
.resultados {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 16px;
  scroll-margin-top: 80px;
}

.resultados__tarjeta {
  padding: 32px 20px 24px;
  box-shadow: var(--sombra);
}

/* Fecha del sorteo: en su propia línea en móvil */
.cabeza__sub time {
  display: block;
}

.balotas {
  --bola: min(56px, 15vw);
  display: flex;
  justify-content: center;
  gap: calc(var(--bola) * 0.16);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Acumulado y próximo sorteo (resultados.js) */
.acumulado {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 14px 24px;
  border-radius: 16px;
  background-color: var(--rosa_claro);
  text-align: center;
}

.acumulado[hidden],
.acumulado__dato[hidden] {
  display: none;
}

.acumulado__dato {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.acumulado__etiqueta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-2);
}

.acumulado__valor {
  font-size: 26px;
  line-height: 1.2;
  color: var(--azul_miloto_oscuro);
}

.acumulado__fecha {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: auto;
}

.resultados__pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gris);
  text-align: center;
}

/* Los dos botones del mismo ancho, el del texto más largo: uno sobre otro y, desde 900 px, lado a lado */
.resultados__botones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .resultados__botones {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* =======================================================================
 * 8. QUÉ ES MILOTO
 * ==================================================================== */

/* Tarjetas con franja azul arriba */
.juego {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 28px 24px;
}

.juego__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: -28px -24px 0;
  padding: 18px 24px;
  background-color: var(--azul_miloto_oscuro);
}

.juego__titulo {
  margin: 0;
  font-size: 22px;
  color: var(--blanco);
}

.juego__precio {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--blanco);
}

.juego__precio small {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.juego__texto {
  margin: 0;
  color: var(--texto-2);
}

.juego__texto strong {
  color: var(--texto-1);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rosa_miloto) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213a8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Semana con los días de sorteo resaltados */
.semana {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.semana__dia {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 12px;
  background-color: var(--superficie);
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
}

.semana__dia.es-sorteo {
  background-color: var(--rosa_miloto);
  color: var(--azul_noche);
}

/* Hora y canal: quedan siempre al fondo */
.datos {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: var(--superficie);
  font-size: 15px;
  list-style: none;
}

.datos li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* La hora no se parte: "10:15" y "p.m." van juntos */
.datos strong {
  white-space: nowrap;
}

.datos svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--texto-2);
}

/* =======================================================================
 * 9. CÓMO JUGAR
 * ==================================================================== */
.pasos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paso {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 24px;
  text-align: center;
}

.paso__num {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--rosa_miloto);
  color: var(--texto-1);
  font-size: 15px;
  font-weight: 700;
}

.paso__arte {
  --bola: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 72px;
}

.paso__arte--fila {
  --bola: 50px;
  gap: 6px;
}

.paso__al {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--texto-1);
}

.paso__precio {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--azul_miloto_oscuro);
}

/* El título se centra en el espacio libre: los dibujos quedan alineados */
.paso__titulo {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  text-wrap: balance;
  color: var(--texto-1);
}

/* =======================================================================
 * 10. FORMAS DE JUGAR Y BANNER BRE-B
 * ==================================================================== */
.modo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  text-align: center;
}

.modo__titulo {
  margin: 4px 0 0;
  font-size: clamp(28px, 2.6vw, 34px);
  color: var(--texto-1);
}

/* Las dos píldoras del mismo ancho */
.modo__lema {
  min-width: 280px;
  max-width: 100%;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--rosa_miloto);
  color: var(--texto-1);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.modo__texto {
  max-width: 34ch;
  margin: 0;
  color: var(--texto-2);
}

.banner-breb {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
}

.banner-breb img {
  width: 100%;
}

/* =======================================================================
 * 11. PREGUNTAS FRECUENTES
 * ==================================================================== */
.preguntas {
  padding: 4px 24px;
}

.preguntas details + details {
  border-top: 1px solid var(--gris);
}

.preguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--azul_miloto_oscuro);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.preguntas summary::-webkit-details-marker {
  display: none;
}

/* Flecha que gira al abrir */
.preguntas summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0 4px 4px 0;
  border-right: 2.5px solid var(--azul_miloto_oscuro);
  border-bottom: 2.5px solid var(--azul_miloto_oscuro);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.preguntas details[open] summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.preguntas p {
  margin: 0 0 18px;
  color: var(--texto-2);
}

.preguntas a {
  color: var(--azul_miloto_oscuro);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* =======================================================================
 * 12. BANNER DE LEGALES
 * ==================================================================== */
.legales {
  margin-top: 64px;
  padding: 24px 16px;
  border-top: 1px solid var(--gris);
  background-color: var(--blanco);
}

/* Móvil: +18 y su texto arriba; debajo los dos logos y "Colaborador autorizado" */
.legales__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.legales__responsable {
  order: -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-basis: 100%;
  justify-content: center;
}

.legales__edad {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.legales__texto {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.legales__texto span {
  display: block;
}

.legales__supersalud img {
  width: auto;
  height: 38px;
}

.legales__coljuegos img {
  width: auto;
  height: 34px;
}

.legales__colaborador {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  color: var(--texto-1);
}

.legales__colaborador span {
  display: block;
}

.legales__supersalud,
.legales__coljuegos {
  transition: transform 0.2s ease;
}

.legales__supersalud:hover,
.legales__coljuegos:hover {
  transform: scale(1.05);
}

/* =======================================================================
 * 13. PIE (estilos-footer.css de servicios, sin cambios; aquí sus ajustes)
 * ==================================================================== */

/* Usa la Montserrat de la landing */
.su-footer,
.su-footer strong,
.su-footer__titulo {
  font-family: var(--fuente);
}

.su-footer strong {
  font-weight: 700;
}

/* Iconos rellenos: le ganan a la regla general de svg */
.su-footer svg[fill="currentColor"],
.su-footer svg [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

/* =======================================================================
 * 14. BALOTAS DECORATIVAS (main recorta lo que sale de la pantalla)
 * ==================================================================== */

/* 50cqw: media pantalla sin la barra de desplazamiento */
main {
  overflow-x: hidden;
  overflow-x: clip;
  container-type: inline-size;
}

.seccion,
.resultados {
  position: relative;
  isolation: isolate;
  --borde: max(calc(50% - 50vw), calc(50% - 720px));
}

.deco {
  --flote: -8px;
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  animation: flotar 5s ease-in-out infinite;
}

/* Todas vienen cortadas por un lado: flotan sin girar, o se vería el corte */
@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--flote));
  }
}

/* Pegadas al borde de la pantalla por el lado del corte */
.deco--m {
  width: 96px;
  left: calc(50% - 50vw - 56px);
  left: calc(50% - 50cqw - 56px);
  bottom: -48px;
  animation-duration: 6s;
  animation-delay: -2s;
}

.deco--28 {
  width: 70px;
  right: calc(50% - 50vw);
  right: calc(50% - 50cqw);
  bottom: -50px;
  animation-duration: 5.4s;
  animation-delay: -4s;
}

.deco--m-borde {
  width: 54px;
  left: calc(50% - 50vw);
  left: calc(50% - 50cqw);
  top: 52%;
  animation-duration: 6.6s;
  animation-delay: -1s;
}

.deco--12 {
  width: 44px;
  right: calc(50% - 50vw);
  right: calc(50% - 50cqw);
  top: 40%;
  animation-duration: 4.6s;
  animation-delay: -3s;
}

/* =======================================================================
 * 15. PANTALLAS MEDIANAS Y GRANDES
 * ==================================================================== */

/* Celular pequeño: botones de la barra más chicos */
@media (max-width: 399px) {

  .paso__arte--fila {
    --bola: 44px;
  }
}

/* Celulares angostos: botones de la portada y de resultados a lo ancho */
@media (max-width: 480px) {
  .portada__acciones {
    flex-direction: column;
    width: 100%;
  }

  .portada__acciones .boton,
  .resultados__botones {
    width: 100%;
  }

  /* "¿Cómo reclamar tu premio?" no cabe en una línea */
  .boton {
    padding: 0 20px;
  }
}

@media (min-width: 640px) {
  .resultados__tarjeta {
    padding: 40px 36px 24px;
  }

  .cabeza__sub time {
    display: inline;
  }

  .cabeza__sub time:not(:empty)::before {
    content: " · ";
  }

  .acumulado__dato {
    align-items: flex-start;
    text-align: left;
  }

  .acumulado__dato + .acumulado__dato {
    padding-left: 32px;
    border-left: 1px solid rgba(33, 58, 143, 0.18);
  }
}

@media (min-width: 760px) {
  .rejilla--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balotas {
    --bola: 64px;
  }

  .legales {
    padding: 28px 20px;
  }

  .legales__edad {
    width: 50px;
    height: 50px;
  }

  .legales__texto {
    font-size: 13px;
  }

  .legales__supersalud img {
    height: 46px;
  }

  .legales__coljuegos img {
    height: 40px;
  }

  .legales__colaborador {
    font-size: 17px;
  }
}

@media (min-width: 900px) {
  .portada__texto {
    align-items: flex-start;
    text-align: left;
  }

  .portada__acciones {
    justify-content: flex-start;
  }

  .marca-miloto {
    width: 340px;
  }

  .rejilla--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Balotas decorativas en escritorio: más grandes y detrás del contenido */
  .deco {
    --flote: -16px;
    z-index: -1;
  }

  .deco--m {
    width: 220px;
    left: calc(50% - 50vw);
    left: calc(50% - 50cqw);
    top: 10px;
    bottom: auto;
  }

  .deco--28 {
    width: 170px;
    bottom: -150px;
  }

  .deco--m-borde {
    width: 113px;
    top: 44%;
  }

  .deco--12 {
    width: 76px;
    top: 50%;
  }
}

/* Portada en dos columnas: texto y el arte del celular */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .portada {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px 40px 40px;
  }

  /* Más ancho que su columna: los bordes del arte son fondo fundido */
  .portada__foto {
    grid-area: 1 / 2;
    width: 135%;
    max-width: none;
    margin: -48px -20% -48px -15%;
  }

  .portada__arte {
    --fundido-x: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    --fundido-y: linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
  }

  .portada__in {
    grid-area: 1 / 1;
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* Portada: el arte de escritorio llena el fondo y el texto va a la izquierda */
@media (min-width: 1280px) {
  .portada {
    display: flex;
    align-items: center;
    min-height: clamp(540px, 40.6vw, 780px);
    padding: 56px 0;
  }

  .portada__foto {
    position: absolute;
    inset: 0;
    max-width: none;
  }

  .portada__arte {
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Oscurece la izquierda por si el arte queda bajo el texto */
  .portada::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 6, 27, 0.85) 0%, rgba(2, 6, 27, 0.6) 35%, rgba(2, 6, 27, 0) 55%);
  }

  .portada__in {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .portada__texto {
    max-width: 620px;
  }
}

@media (min-width: 1100px) {
  .balotas {
    --bola: 72px;
  }

  /* Escritorio: todo en una fila, en el orden del banner original */
  .legales__in {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
  }

  .legales__responsable {
    order: 0;
    flex-basis: auto;
  }

  .legales__edad {
    width: 56px;
    height: 56px;
  }

  .legales__texto {
    font-size: 13px;
    text-align: center;
  }

  .legales__supersalud img {
    height: 56px;
  }

  .legales__coljuegos img {
    height: 48px;
  }

  .legales__colaborador {
    font-size: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .deco {
    animation: none;
  }
}
