/* Espansino.com: estilos */
:root {
  --rojo: #c60b1e;
  --rojo-hondo: #930915;
  --gualda: #ffc400;
  --gualda-hover: #ffd23f;
  --tinta: #1f1b1c;
  --gris: #5d5557;
  --linea: #e7dfd3;
  --papel: #fbf8f2;
  --blanco: #fff;
  --noche: #1b1517;
  --noche-2: #261d20;
  --noche-linea: #3a2d31;
  --crema: #f6efe3;
  --radio: 14px;
  --ancho: 1120px;
  --texto: 760px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --titular: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--tinta);
  background: var(--papel);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo-hondo); text-underline-offset: 2px; }
a:hover { color: var(--rojo); }
:focus-visible { outline: 3px solid var(--gualda); outline-offset: 2px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gualda); color: var(--tinta); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: 8px; }

/* Cabecera */
.cabecera {
  background: var(--rojo);
  color: var(--blanco);
  border-bottom: 4px solid var(--gualda);
  position: sticky; top: 0; z-index: 30;
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--blanco); text-decoration: none; font: 800 22px/1 var(--titular); letter-spacing: .2px; }
.marca:hover { color: var(--blanco); }
.marca img { height: 48px; width: auto; display: block; }
.marca--pie img { height: 56px; }
.conmutador {
  display: none; background: transparent; border: 2px solid rgba(255,255,255,.55); color: var(--blanco);
  border-radius: 10px; width: 46px; height: 42px; padding: 0; cursor: pointer;
}
.conmutador svg { width: 24px; height: 24px; margin: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu a {
  display: block; padding: 10px 12px; color: var(--blanco); text-decoration: none;
  font-weight: 600; font-size: 15px; border-radius: 8px; line-height: 1.25;
}
.menu a:hover { background: var(--rojo-hondo); color: var(--blanco); }
.menu a[aria-current="page"] { background: var(--rojo-hondo); box-shadow: inset 0 -3px 0 var(--gualda); }

/* Portada de cada página */
.portada { background: linear-gradient(180deg, #fff 0%, var(--papel) 100%); border-bottom: 1px solid var(--linea); padding: 34px 0 26px; }
.portada h1 { font: 800 clamp(28px, 5vw, 44px)/1.12 var(--titular); margin: 0 0 14px; letter-spacing: -.3px; }
.h1-sello { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; font-size: .5em; font-weight: 700; color: var(--gris); white-space: nowrap; padding: 4px 10px 4px 6px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; letter-spacing: 0; }
.h1-sello svg { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.entradilla { font-size: 18px; max-width: var(--texto); margin: 0 0 14px; }
.firma { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--gris); margin: 0; }
.firma span { display: inline-flex; align-items: center; gap: 6px; }
.firma svg { width: 16px; height: 16px; color: var(--rojo); }

/* Ranking */
.ranking { padding: 30px 0 10px; }
.ranking > .contenedor > h2 { font: 800 clamp(24px, 3.6vw, 32px)/1.2 var(--titular); margin: 0 0 6px; }
.ranking__nota { color: var(--gris); font-size: 14px; margin: 0 0 18px; }
.lista-casas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* Ficha de casino */
.fc { position: relative; display: flex; min-width: 0; margin: 0; padding: 0; background: #fff; border: 1px solid #e3dbd0; border-radius: 4px; box-shadow: 0 14px 16px -14px rgba(60, 20, 20, .28); font-size: 14px; line-height: 20px; color: var(--tinta); }
.fc.es-top { border: 2px solid var(--rojo); }
.fc ul { list-style: none; margin: 0; padding: 0; }
.fc li { margin: 0; padding: 0; }
.fc button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.fc svg { flex: none; display: block; }

.fc-lado { position: relative; flex: 0 0 188px; width: 188px; display: flex; margin: 5px 0 5px 5px; background: transparent; border: 2px solid var(--rojo); border-radius: 4px; }
.fc-pos { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border: 1.5px solid var(--rojo); border-radius: 4px; background: transparent; color: var(--rojo); font: 800 14px/1 var(--titular); }
.fc-logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 44px 12px 14px; line-height: 0; }
.fc-logo img { width: 100%; max-width: 160px; max-height: 92px; height: auto; object-fit: contain; }

.fc-cuerpo { flex: 1; min-width: 0; display: flex; padding: 22px 0; }
.fc-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 22px; }
.fc-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; }
.fc-nombre { margin: 0; font: 800 24px/1.2 var(--titular); color: var(--tinta); }
.fc-titulo small { font-size: 12px; line-height: 22px; color: var(--gris); }
.fc-nuevo { font: 800 11px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; background: var(--rojo); color: #fff; padding: 5px 8px; border-radius: 3px; }
.fc-valor { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.fc-nota { display: grid; place-items: center; width: 54px; height: 34px; border-radius: 4px; background: #1f8a3c; color: #fff; font: 800 19px/1 var(--titular); }
.fc-valor__txt { display: flex; flex-direction: column; }
.fc-valor__txt small { font-size: 12px; line-height: 16px; color: var(--gris); }
.fc-valor__txt b { font: 700 16px/18px var(--titular); }

.fc-ventajas { padding: 14px 0; border-top: 1px solid #ece4d8; }
.fc-item { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; line-height: 18px; }
.fc-item::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #1f8a3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2 7 10.4l4.4-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.fc-item--dato::before { background: #8d8077 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7.4v4M8 4.6v.1' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.fc-item span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fc-extra[hidden] { display: none; }
.fc-extra .fc-item { align-items: flex-start; }
.fc-extra .fc-item::before { margin-top: 1px; }
.fc-extra .fc-item span { -webkit-line-clamp: unset; display: block; }
.fc .fc-mas { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; line-height: 16px; color: var(--rojo-hondo); }
.fc-mas svg { width: 16px; height: 16px; transition: transform .2s; }
.fc-mas[aria-expanded="true"] svg { transform: rotate(180deg); }
.fc-mas:hover span { text-decoration: underline; }

.fc-fila { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid #ece4d8; }
.fc-dato { position: relative; display: flex; align-items: center; gap: 6px; line-height: 18px; }
.fc-dato > svg { width: 18px; height: 18px; color: var(--rojo); }
.fc .fc-enlace { text-decoration: underline; text-underline-offset: 3px; line-height: 18px; }
.fc .fc-enlace:hover { color: var(--rojo); }
.fc-punto { width: 6px; height: 6px; border-radius: 50%; background: #cdbfae; }

.fc-juegos { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.fc-tipos { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #d8ccbc transparent; }
.fc-tipo { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #e3dbd0; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.fc-tipo svg { width: 16px; height: 16px; color: var(--rojo); }
.fc .fc-cuenta { flex: none; display: flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 12px; border: 1px solid var(--tinta); border-radius: 4px; background: #fff; font-weight: 700; box-shadow: -10px 0 4px 4px rgba(255,255,255,.85); }
.fc .fc-cuenta[aria-expanded="true"] { background: var(--tinta); color: #fff; }

.fc-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 16px; background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 34px rgba(40, 20, 20, .25); text-align: left; font-size: 14px; line-height: 20px; color: var(--tinta); }
.fc-pop[hidden] { display: none; }
.fc-pop__cab { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; font: 700 16px/22px var(--titular); }
.fc .fc-cerrar { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; }
.fc-cerrar svg { width: 20px; height: 20px; }
.fc-pop--arriba { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.fc-pop--der { left: auto; right: 0; }
.fc-pop p { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--gris); }
.fc-iconos { display: grid; grid-template-columns: repeat(5, 62px); gap: 5px; }
.fc-icono { display: flex; align-items: center; justify-content: center; gap: 4px; width: 62px; height: 34px; padding: 4px 5px; border: 1px solid #e3dbd0; border-radius: 4px; background: #fff; overflow: hidden; font: 700 9.5px/1 var(--sans); white-space: nowrap; }
.fc-icono img { display: block; max-width: 100%; max-height: 22px; width: auto; height: auto; }
.fc-icono--cripto img { width: 15px; height: 15px; }
.fc-provs { display: grid; grid-template-columns: repeat(3, 100px); gap: 5px; }
.fc-prov { display: flex; align-items: center; justify-content: center; width: 100px; height: 38px; padding: 4px 8px; border: 1px solid #e3dbd0; border-radius: 4px; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.1; }
.fc-prov img { display: block; max-width: 100%; max-height: 24px; width: auto; height: auto; }
.fc-lic { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e3dbd0; border-radius: 4px; }
.fc-lic b { display: block; font: 700 16px/20px var(--titular); }
.fc-lic small { font-size: 13px; color: var(--gris); }
.fc-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 4px; background: #e3f4e7; color: #1f7a36; font-weight: 700; white-space: nowrap; }
.fc-ok svg { width: 14px; height: 14px; }
.fc-lista-tipos { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 26px; }
.fc-lista-tipos li { display: flex; align-items: center; gap: 8px; line-height: 18px; }
.fc-lista-tipos svg { width: 20px; height: 20px; color: var(--rojo); }
.fc-lista-tipos .no { color: #a1958c; text-decoration: line-through; }
.fc-lista-tipos .no svg { color: #cdbfae; }
.fc-cond { margin: 0; min-width: 270px; display: grid; gap: 6px; }
.fc-cond div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; font-size: 13.5px; }
.fc-cond dt { color: var(--gris); }
.fc-cond dd { margin: 0; font-weight: 600; }

.fc-lateral { flex: 0 0 330px; display: flex; flex-direction: column; gap: 14px; padding: 0 22px; }
.fc-bono { position: relative; padding: 12px 12px 10px; background: #fff6da; border: 1px dashed #efc13a; border-radius: 4px; text-align: center; }
.fc-etq { display: inline-flex; margin-bottom: 7px; padding: 4px 11px; border-radius: 3px; background: var(--tinta); color: #fff; font: 700 11.5px/12px var(--sans); text-transform: uppercase; letter-spacing: .5px; }
.fc-oferta { display: block; color: var(--tinta); text-decoration: none; font: 400 15px/21px var(--titular); }
.fc-oferta:hover { color: var(--tinta); }
.fc-oferta b { display: block; font: 800 18px/22px var(--titular); color: var(--rojo); }
.fc .fc-tyc { margin-top: 6px; font-size: 12px; line-height: 14px; text-decoration: underline; text-underline-offset: 2px; color: var(--gris); }
.fc-accion { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.fc-jugar { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 8px; border-radius: 4px; background: var(--gualda); color: var(--tinta); font: 800 17px/22px var(--titular); text-decoration: none; box-shadow: 0 3px 0 #c99a00; transition: background .15s, transform .12s; }
.fc-jugar:hover { background: var(--gualda-hover); color: var(--tinta); transform: translateY(-1px); }
.fc-jugar svg { width: 20px; height: 20px; }
.fc-acepta { display: inline-flex; align-items: center; gap: 8px; line-height: 20px; font-size: 13.5px; }
.fc-acepta > svg:first-child { width: 18px; height: 18px; color: #1f8a3c; }
.fc-acepta .bandera { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

@media (max-width: 900px) {
  .fc { flex-direction: column; }
  .fc-lado { flex: none; width: auto; height: 120px; margin: 5px 5px 0; }
  .fc-logo { padding: 10px 48px; }
  .fc-logo img { width: auto; max-width: 100%; max-height: 92px; }
  .fc-cuerpo { flex-direction: column; padding: 16px 0 18px; }
  .fc-datos { padding: 0 16px; }
  .fc-dato { position: static; }
  .fc-pop, .fc-pop--arriba, .fc-pop--der { left: 0; right: 0; width: auto; max-width: none; }
  .fc-iconos { grid-template-columns: repeat(auto-fill, 62px); }
  .fc-provs { grid-template-columns: repeat(auto-fill, 100px); }
  .fc-lista-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .fc-cond { min-width: 0; }
  .fc-lateral { flex: none; padding: 0 16px; gap: 0; margin-top: 6px; }
  .fc-accion { margin-top: 14px; gap: 12px; }
}

/* Texto */
.articulo { padding: 34px 0 20px; }
.prosa { max-width: var(--texto); }
.prosa h2 { font: 800 clamp(23px, 3.2vw, 29px)/1.25 var(--titular); margin: 38px 0 12px; scroll-margin-top: 90px; }
.prosa h3 { font: 700 20px/1.3 var(--titular); margin: 26px 0 8px; }
.prosa p, .prosa ul, .prosa ol { margin: 0 0 16px; }
.prosa li { margin-bottom: 6px; }
.prosa ul li::marker { color: var(--rojo); }
.prosa strong { color: #000; }
.aviso {
  border-left: 5px solid var(--gualda); background: #fff7dc; padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 0 0 18px;
}
.tabla-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.tabla-scroll table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tabla-scroll th, .tabla-scroll td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-scroll th { background: var(--rojo); color: #fff; font-weight: 700; }
.tabla-scroll tr:last-child td { border-bottom: 0; }

.preguntas { padding: 6px 0 40px; }
.preguntas h2 { font: 800 clamp(23px, 3.2vw, 29px)/1.25 var(--titular); margin: 0 0 14px; }
.preguntas details { background: #fff; border: 1px solid var(--linea); border-radius: 12px; margin-bottom: 10px; max-width: var(--texto); }
.preguntas summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--rojo); font-weight: 400; }
.preguntas details[open] summary::after { content: "\2212"; }
.preguntas details > div { padding: 0 18px 16px; }
.preguntas details p { margin: 0; }

/* Pie */
.pie { background: var(--noche); color: #d9cfc4; padding: 34px 0 26px; margin-top: 20px; border-top: 4px solid var(--rojo); font-size: 15px; }
.pie a { color: #f3e9dc; }
.pie a:hover { color: var(--gualda); }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.pie h3 { font: 700 14px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .8px; color: var(--gualda); margin: 0 0 12px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie p { margin: 0 0 10px; }
.mas18 { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rojo); color: #fff; font-weight: 800; font-size: 14px; margin-right: 10px; vertical-align: middle; }
.pie__legal { border-top: 1px solid var(--noche-linea); margin-top: 24px; padding-top: 18px; font-size: 13px; color: #a89990; }

/* Páginas legales */
.legal { padding: 30px 0 40px; }
.legal h1 { font: 800 clamp(28px, 4.4vw, 38px)/1.15 var(--titular); margin: 0 0 8px; }

@media (max-width: 1000px) {
}

@media (max-width: 860px) {
  .conmutador { display: grid; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rojo); border-bottom: 4px solid var(--gualda); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .menu.abierto { display: block; }
  .menu ul { flex-direction: column; padding: 8px 16px 14px; gap: 2px; }
  .menu a { padding: 13px 12px; font-size: 16px; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__rejilla > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .portada { padding: 24px 0 20px; }
  .h1-sello { display: flex; width: max-content; margin-top: 10px; font-size: 15px; }
  .entradilla { font-size: 17px; }
  .pie__rejilla { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
