/*
 * casinosenlinea.com/mx — pagina unica de casinos en linea para Mexico.
 * Paleta tomada de la marca: ficha indigo con anillos y diamante dorados.
 */
:root {
  --noche: #07061a;
  --noche-2: #0d0b26;
  --indigo: #2a2d7c;
  --indigo-claro: #4a4fd1;
  --violeta: #7b3fe4;
  --oro: #ffc94a;
  --oro-2: #f2a51d;
  --oro-claro: #ffe29a;
  --rojo: #e3123a;
  --verde-pano: #0d7a4f;
  --texto: #f4f1ff;
  --texto-2: #b9b4d6;
  --borde: rgb(255 255 255 / 0.10);
  --borde-oro: rgb(255 201 74 / 0.35);
  --vidrio: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02));
  --sombra: 0 24px 60px -24px rgb(0 0 0 / 0.8);

  --f-titulo: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-texto: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radio: 20px;
  --radio-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 70px;
  --gutter: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font: 400 1rem/1.65 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fondo: resplandores de marca y un patron de palos de baraja muy tenue */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50rem 36rem at 15% -10%, rgb(74 79 209 / 0.40), transparent 60%),
    radial-gradient(40rem 30rem at 95% 10%, rgb(123 63 228 / 0.28), transparent 60%),
    radial-gradient(36rem 28rem at 50% 110%, rgb(255 201 74 / 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M30 18c-6 7-14 11-14 18a7 7 0 0 0 12 5l-2 7h8l-2-7a7 7 0 0 0 12-5c0-7-8-11-14-18z'/%3E%3Cpath d='M90 78l-10 12 10 12 10-12z'/%3E%3C/svg%3E"),
    var(--noche);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--f-titulo);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.salto {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--oro);
  color: var(--noche);
  font-weight: 800;
}

.salto:focus {
  top: 12px;
}

.dorado {
  background: linear-gradient(100deg, var(--oro-claro), var(--oro) 40%, var(--oro-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  background: linear-gradient(180deg, rgb(7 6 26 / 0.82), rgb(7 6 26 / 0.55));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--borde);
}

.header .contenedor {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: none;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo-texto {
  display: grid;
  line-height: 1;
  font-family: var(--f-titulo);
}

.logo-texto b {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-texto span {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--oro);
}

.menu {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--texto-2);
  transition: color 0.2s, background-color 0.2s;
}

.menu a:hover {
  color: var(--texto);
  background: rgb(255 255 255 / 0.07);
}

.menu-boton {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
  color: var(--texto);
  cursor: pointer;
}

.menu-boton span:not(.oculto) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-boton[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-boton[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-boton[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Botones ---------- */

.boton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 800 0.92rem/1 var(--f-texto);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s;
}

.boton:active {
  transform: scale(0.98);
}

.boton-oro {
  color: #2a1700;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 45%, var(--oro-2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 10px 30px -10px rgb(255 180 40 / 0.75);
}

/* Destello que recorre el boton */
.boton-oro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: destello 3.5s var(--ease) infinite;
}

@keyframes destello {
  0%,
  60% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.boton-oro:hover {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 14px 36px -10px rgb(255 190 50 / 0.9);
}

.boton-vidrio {
  color: var(--texto);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.04));
  border-color: rgb(255 255 255 / 0.2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.boton-vidrio:hover {
  border-color: var(--borde-oro);
}

.flecha {
  transition: transform 0.2s var(--ease);
}

.boton:hover .flecha {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

main {
  padding-top: var(--header);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84vh, 760px);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero .contenedor > div {
  max-width: 640px;
}

/* Video de fondo: la ruleta en primer plano, con un velo para que el texto se lea */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--noche) url(/assets/video/ruleta-poster.jpg) center / cover no-repeat;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 6 26 / 0.94) 0%, rgb(7 6 26 / 0.78) 38%, rgb(7 6 26 / 0.25) 75%, rgb(7 6 26 / 0.15) 100%),
    linear-gradient(180deg, rgb(7 6 26 / 0.5) 0%, transparent 25%, transparent 70%, var(--noche) 100%);
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--borde-oro);
  background: rgb(255 201 74 / 0.08);
  color: var(--oro-claro);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.etiqueta::before {
  content: "";
  width: 8px;
  height: 8px;
  rotate: 45deg;
  background: var(--oro);
  box-shadow: 0 0 12px var(--oro);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 800;
}

.hero-lead {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--texto-2);
}

.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

.confianza {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--texto-2);
}

.confianza li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.confianza li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307061a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--oro);
}

/* ---------- Secciones ---------- */

.seccion {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cabecera {
  max-width: 760px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.cabecera h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cabecera p {
  color: var(--texto-2);
  font-size: 1.04rem;
  margin: 0;
}

/* ---------- Ranking ---------- */

.ranking {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: puesto;
}

.casino {
  counter-increment: puesto;
  position: relative;
  display: grid;
  grid-template-columns: 56px 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background:
    radial-gradient(30rem circle at var(--mx, 0%) var(--my, 0%), rgb(255 255 255 / 0.07), transparent 40%),
    var(--vidrio),
    rgb(13 11 38 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), var(--sombra);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.casino:hover {
  transform: translateY(-3px);
  border-color: var(--borde-oro);
}

.casino::before {
  content: counter(puesto);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px dashed rgb(255 255 255 / 0.35);
  background: var(--indigo);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.15rem;
}

.casino:first-child {
  border-color: var(--borde-oro);
  background:
    radial-gradient(30rem circle at var(--mx, 0%) var(--my, 0%), rgb(255 255 255 / 0.08), transparent 40%),
    linear-gradient(110deg, rgb(255 201 74 / 0.12), transparent 45%),
    var(--vidrio),
    rgb(13 11 38 / 0.75);
}

.casino:first-child::before {
  background: linear-gradient(180deg, var(--oro-claro), var(--oro-2));
  color: #2a1700;
  border-color: rgb(255 255 255 / 0.7);
}

.destacado {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro-2));
  color: #2a1700;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.casino-logo {
  display: grid;
  place-items: center;
  height: 70px;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.4);
  border: 1px solid rgb(255 255 255 / 0.06);
}

.casino-logo img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.casino-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.estrellas {
  color: var(--oro);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.estrellas span {
  margin-left: 0.35rem;
  color: var(--texto);
  font-weight: 800;
  letter-spacing: 0;
}

.bono {
  display: inline-flex;
  flex-direction: column;
  margin-top: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px dashed var(--borde-oro);
  background: rgb(255 201 74 / 0.07);
}

.bono small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-2);
}

.bono strong {
  font-family: var(--f-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.aviso-bonos {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--texto-2);
}

/* ---------- Fichas de casino ---------- */

.fichas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ficha-casino {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: var(--radio-lg);
  border: 1px solid var(--borde);
  background: var(--vidrio), rgb(13 11 38 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), var(--sombra);
  scroll-margin-top: calc(var(--header) + 20px);
}

.ficha-casino:target {
  border-color: var(--oro);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 0 0 3px rgb(255 201 74 / 0.25), var(--sombra);
}

.ficha-cabeza {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ficha-cabeza .casino-logo {
  width: 140px;
  height: 60px;
  flex: none;
}

.ficha-cabeza h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ficha-casino p {
  margin: 0;
  color: var(--texto-2);
}

.ficha-casino ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--texto-2);
}

.ficha-casino li {
  margin-bottom: 0.3rem;
}

.ficha-casino li::marker {
  color: var(--oro);
}

.ficha-pie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

/* ---------- Juegos ---------- */

.juegos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.juego {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radio-lg);
  border: 1px solid var(--borde);
  background:
    radial-gradient(18rem circle at 100% 0%, var(--tinte, rgb(74 79 209 / 0.35)), transparent 60%),
    var(--vidrio),
    rgb(13 11 38 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), var(--sombra);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.juego:hover {
  transform: translateY(-3px);
  border-color: var(--borde-oro);
}

.juego-icono {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04));
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.juego-icono svg {
  width: 30px;
  height: 30px;
}

.juego h3 {
  font-size: 1.15rem;
}

.juego p {
  margin: 0;
  color: var(--texto-2);
  font-size: 0.95rem;
}

.juego .dato {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 201 74 / 0.1);
  border: 1px solid var(--borde-oro);
  color: var(--oro-claro);
  font-size: 0.75rem;
  font-weight: 800;
}

.juego--slots { --tinte: rgb(227 18 58 / 0.35); }
.juego--ruleta { --tinte: rgb(13 122 79 / 0.45); }
.juego--blackjack { --tinte: rgb(74 79 209 / 0.45); }
.juego--vivo { --tinte: rgb(123 63 228 / 0.45); }
.juego--bingo { --tinte: rgb(255 201 74 / 0.30); }
.juego--poker { --tinte: rgb(227 18 58 / 0.25); }

/* ---------- Guia ---------- */

.guia {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: paso;
}

.paso {
  counter-increment: paso;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background: var(--vidrio), rgb(13 11 38 / 0.6);
}

.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--oro);
}

.paso h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.paso p {
  margin: 0;
  color: var(--texto-2);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}

.faq details {
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background: var(--vidrio), rgb(13 11 38 / 0.6);
  transition: border-color 0.25s;
}

.faq details[open] {
  border-color: var(--borde-oro);
}

.faq summary {
  position: relative;
  padding: 1.1rem 3.5rem 1.1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  rotate: 45deg;
  border-radius: 6px;
  background:
    linear-gradient(#2a1700, #2a1700) center / 10px 2px no-repeat,
    linear-gradient(#2a1700, #2a1700) center / 2px 10px no-repeat,
    linear-gradient(180deg, var(--oro-claro), var(--oro-2));
  transition: rotate 0.3s var(--ease);
}

.faq details[open] summary::after {
  rotate: 90deg;
}

.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--texto-2);
}

/* ---------- Juego responsable ---------- */

.responsable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radio-lg);
  border: 1px solid rgb(227 18 58 / 0.4);
  background: linear-gradient(120deg, rgb(227 18 58 / 0.14), transparent 60%), rgb(13 11 38 / 0.6);
}

.sello18 {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--rojo);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.3rem;
}

.responsable h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.responsable p {
  margin: 0 0 0.6rem;
  color: var(--texto-2);
}

.responsable p:last-child {
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--borde);
  background: rgb(4 3 16 / 0.85);
  color: var(--texto-2);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer h2 {
  font-family: var(--f-texto);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto);
}

.footer ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borde);
  font-size: 0.8rem;
}

.footer-legal p {
  margin: 0 0 0.5rem;
}

/* ---------- Entrada al hacer scroll ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .revelar {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    @keyframes revelar {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
    }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-video::after {
    background:
      linear-gradient(180deg, rgb(7 6 26 / 0.55) 0%, rgb(7 6 26 / 0.8) 45%, rgb(7 6 26 / 0.92) 75%, var(--noche) 100%);
  }

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

  .casino {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.9rem 1rem;
  }

  .casino .casino-logo {
    grid-column: 2;
    justify-self: start;
    width: 160px;
  }

  .casino-info,
  .casino-accion {
    grid-column: 1 / -1;
  }

  .casino-accion .boton {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .menu-boton {
    display: block;
  }

  .menu {
    display: none;
  }

  .header.abierto .menu {
    position: fixed;
    top: var(--header);
    inset-inline: 0;
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: rgb(10 8 32 / 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--borde);
  }

  .header.abierto .menu a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: var(--texto);
  }

  .header .boton-oro {
    display: none;
  }

  .fichas,
  .guia {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --header: 62px;
  }

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

  .ficha-cabeza {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .hero-acciones .boton {
    flex: 1;
  }
}

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

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

/* ---------- Noticias (tarjetas en /mx) ---------- */

.noticias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.noticia {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radio-lg);
  border: 1px solid var(--borde);
  background: var(--vidrio), rgb(13 11 38 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), var(--sombra);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.noticia:hover {
  transform: translateY(-3px);
  border-color: var(--borde-oro);
}

.noticia-foto {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.noticia-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.noticia:hover .noticia-foto img {
  transform: scale(1.05);
}

.noticia-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(7 6 26 / 0.8));
}

.noticia-cuerpo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.noticia-meta {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oro);
}

.noticia h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.noticia h3 a {
  text-decoration: none;
}

/* El enlace del titulo cubre toda la tarjeta */
.noticia h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.noticia p {
  margin: 0;
  color: var(--texto-2);
  font-size: 0.95rem;
}

/* ---------- Pagina de articulo ---------- */

.articulo {
  padding: calc(var(--header) + 2rem) 0 3rem;
}

.contenedor-texto {
  max-width: 780px;
}

.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--texto-2);
}

.migas a {
  text-decoration: none;
}

.migas a:hover {
  color: var(--texto);
}

.articulo h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
}

.articulo-bajada {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--texto-2);
}

.articulo-meta {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  color: var(--texto-2);
}

.articulo-meta strong {
  color: var(--texto);
}

.articulo-foto {
  max-width: 1040px;
  margin: 2rem auto;
}

.articulo-foto img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.articulo-foto figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--texto-2);
}

.articulo-cuerpo {
  font-size: 1.07rem;
  line-height: 1.8;
}

.articulo-cuerpo p,
.articulo-cuerpo li {
  color: rgb(244 241 255 / 0.88);
}

.articulo-cuerpo h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-top: 2.25rem;
}

.articulo-cuerpo ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25em;
}

.articulo-cuerpo li {
  margin-bottom: 0.45rem;
}

.articulo-cuerpo li::marker {
  color: var(--oro);
}

.articulo-cuerpo strong {
  color: var(--texto);
}

.articulo-cuerpo a {
  color: var(--oro-claro);
  text-underline-offset: 3px;
}

.cifras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cifra {
  padding: 1rem;
  border-radius: var(--radio);
  border: 1px solid var(--borde-oro);
  background: rgb(255 201 74 / 0.06);
  text-align: center;
}

.cifra strong {
  display: block;
  font-family: var(--f-titulo);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.1;
}

.cifra span {
  font-size: 0.82rem;
  color: var(--texto-2);
}

.fuentes {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background: var(--vidrio), rgb(13 11 38 / 0.6);
  font-size: 0.9rem;
}

.fuentes h2 {
  font-family: var(--f-texto);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-2);
  margin-bottom: 0.75rem;
}

.fuentes ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.fuentes li {
  margin-bottom: 0.35rem;
}

.fuentes p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--texto-2);
}

.aviso-18 {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--rojo);
  border-radius: 10px;
  background: rgb(227 18 58 / 0.08);
  font-size: 0.86rem;
  color: var(--texto-2);
}

@media (max-width: 860px) {
  .noticias {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .cifras {
    grid-template-columns: minmax(0, 1fr);
  }
}
