/* Guía de juego online · Buenos Aires — diseño con barra lateral */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("tipografias/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("tipografias/merriweather-latin.woff2") format("woff2"); }

:root {
  --pizarra: #0F2942;
  --pizarra-oscura: #0A1D30;
  --celeste: #8CC4EE;
  --celeste-claro: #E3EFF9;
  --terracota: #EA580C;
  --terracota-fuerte: #C2410C;
  --fondo: #F3F6F9;
  --blanco: #FFFFFF;
  --tinta: #14233A;
  --gris: #4F5E77;
  --borde: #D3DCE7;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --serif: "Merriweather", Georgia, serif;
  --lateral: 290px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--sans); font-size: 1.02rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.25; margin: 0 0 .6rem; color: var(--pizarra); }
p { margin: 0 0 1rem; }
a { color: var(--terracota-fuerte); text-underline-offset: 3px; }
a:hover { color: var(--pizarra); }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 2px; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.simbolos { position: absolute; width: 0; height: 0; overflow: hidden; }
.saltar { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--terracota-fuerte); color: #FFFFFF; padding: .6rem 1rem; font-weight: 700; }
.saltar:focus { left: 0; }

/* Aviso superior */
.aviso-superior { background: var(--pizarra-oscura); color: #FFFFFF; text-align: center; font-size: .82rem; font-weight: 700; padding: .5rem 1rem; border-bottom: 3px solid var(--terracota); }
.aviso-superior p { margin: 0; }
.aviso-superior span { color: var(--terracota); margin-inline: .35rem; }
.aviso-superior a { color: #FFFFFF; }

/* Marco general */
.marco { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); align-items: start; }
.lateral { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--pizarra); color: #D7E3F0; padding: 1.8rem 1.4rem; display: flex; flex-direction: column; gap: 1.3rem; }
.lateral__marca { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; line-height: 1.25; color: #FFFFFF; text-decoration: none; }
.lateral__marca:hover { color: var(--celeste); }
.lateral__lema { margin: -.8rem 0 0; font-size: .86rem; color: var(--celeste); }
.lateral__boton { display: none; }
.lateral__nav ul { list-style: none; margin: 0; padding: 0; }
.lateral__nav a { display: block; padding: .6rem .8rem; margin-bottom: .15rem; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: #D7E3F0; text-decoration: none; font-weight: 500; }
.lateral__nav a:hover, .lateral__nav a[aria-current="page"] { background: rgba(140, 196, 238, .12); border-left-color: var(--terracota); color: #FFFFFF; }
.lateral__ayuda { margin-top: auto; background: var(--pizarra-oscura); border-radius: 10px; padding: 1rem; font-size: .84rem; }
.lateral__ayuda strong { display: block; color: #FFFFFF; margin-bottom: .3rem; }
.lateral__ayuda a { display: block; color: var(--celeste); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.lateral__ayuda small { display: block; color: #AFC2D6; margin-bottom: .5rem; }
.lateral__sello { margin: 0; font-size: .78rem; color: #AFC2D6; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 1rem; }
.lateral__sello time { display: block; color: #FFFFFF; font-weight: 700; font-size: .92rem; }

.principal { min-width: 0; }
.panel { padding: clamp(2rem, 4.5vw, 3.2rem) clamp(1.1rem, 4vw, 3rem); border-bottom: 1px solid var(--borde); }
.panel--blanco { background: var(--blanco); }
.panel__interior { max-width: 920px; }
.sobretitulo { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--terracota-fuerte); margin-bottom: .7rem; }
.panel h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
.panel__bajada { color: var(--gris); max-width: 44rem; margin-bottom: 1.6rem; }

/* Apertura */
.apertura h1 { font-size: clamp(1.9rem, 4.3vw, 2.9rem); max-width: 20ch; }
.apertura__texto { font-size: 1.12rem; color: var(--gris); max-width: 42rem; }
.cifras { list-style: none; padding: 0; margin: 1.6rem 0 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cifras li { background: var(--blanco); border: 1px solid var(--borde); border-top: 4px solid var(--terracota); border-radius: 8px; padding: .9rem 1rem; font-size: .88rem; color: var(--gris); }
.cifras b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--pizarra); }
.apertura__firma { font-size: .84rem; color: var(--gris); margin: 0; }
.fecha { display: inline-flex; align-items: center; gap: .6rem; background: var(--celeste-claro); border: 1px solid #B9D6EE; border-radius: 999px; padding: .45rem 1rem .45rem .5rem; margin: 0 0 1rem; font-size: .86rem; color: var(--pizarra); }
.fecha svg { flex: none; }
.fecha time { font-weight: 800; }

/* Fichas de operadores */
.fichas { display: grid; gap: 1.3rem; }
.ficha { background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.ficha__cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; padding: 1rem 1.3rem; background: var(--celeste-claro); border-bottom: 1px solid var(--borde); }
.insignia { display: block; width: 136px; height: 40px; border-radius: 6px; flex: none; }
.ficha__cabeza h3 { margin: 0; font-size: 1.25rem; flex: 1 1 8rem; }
.jurisdicciones { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.jurisdicciones li { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--pizarra); color: #FFFFFF; }
.jurisdicciones li.no { background: transparent; color: var(--gris); border: 1px dashed #9AA9BD; }
.puntaje { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.3rem; border-bottom: 1px solid var(--borde); font-size: .84rem; color: var(--gris); }
.puntaje b { font-family: var(--serif); font-size: 1.5rem; color: var(--pizarra); }
.puntaje__barra { flex: 1; height: 8px; border-radius: 999px; background: #E4EAF1; overflow: hidden; }
.puntaje__barra i { display: block; height: 100%; background: var(--terracota); border-radius: 999px; }
.ficha__cuerpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; padding: 1.3rem; }
.claves { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.claves li { position: relative; padding: .3rem 0 .3rem 1.5rem; }
.claves li::before { content: ""; position: absolute; left: 0; top: .75rem; width: .6rem; height: .6rem; border-radius: 2px; background: var(--terracota); }
.habilitacion { margin: 0 0 1rem; font-size: .9rem; }
.habilitacion div { padding: .55rem 0; border-bottom: 1px solid var(--borde); }
.habilitacion div:first-child { padding-top: 0; }
.habilitacion dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.habilitacion dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.habilitacion dd a { font-weight: 600; }
.ir { display: block; background: var(--terracota-fuerte); color: #FFFFFF; font-weight: 800; text-align: center; text-decoration: none; padding: .8rem 1rem; border-radius: 8px; }
.ir:hover { background: var(--pizarra); color: #FFFFFF; }
.pie-boton { display: block; margin-top: .5rem; font-size: .72rem; line-height: 1.4; color: var(--gris); text-align: center; }

/* Tabla */
.filtros { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.filtros__grupo { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtros__titulo { width: 100%; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 .1rem; }
.filtros button { font: inherit; font-size: .9rem; font-weight: 700; padding: .5rem .9rem; border: 1px solid var(--pizarra); border-radius: 999px; background: var(--blanco); color: var(--pizarra); cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--pizarra); color: #FFFFFF; }
.filtros label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: .2rem; }
.filtros select { font: inherit; padding: .5rem .7rem; border: 1px solid var(--pizarra); border-radius: 8px; background: var(--blanco); color: var(--tinta); }
.conteo { font-size: .88rem; color: var(--gris); }
.pista { display: none; font-size: .82rem; font-weight: 700; color: var(--terracota-fuerte); margin-bottom: .6rem; }
.envoltura { position: relative; overflow-x: auto; background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; }
.comparador { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9rem; }
.comparador th, .comparador td { padding: .85rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--borde); }
.comparador thead th { background: var(--pizarra); color: #FFFFFF; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.comparador tbody tr:last-child td { border-bottom: 0; }
.comparador tr[hidden] { display: none; }
.comparador .insignia { width: 112px; height: 33px; margin-bottom: .3rem; }
.comparador .ir { padding: .55rem .8rem; font-size: .86rem; white-space: nowrap; }
.comparador .pie-boton { min-width: 10.5rem; max-width: 13rem; text-align: left; }
.comparador td:nth-child(2) { white-space: nowrap; }
.si { font-weight: 700; color: var(--pizarra); }
.no-figura { color: var(--gris); }
.sin-datos { margin: 0; padding: 1.2rem; text-align: center; color: var(--gris); }

/* Verificación */
.etapas { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: etapa; }
.etapas li { counter-increment: etapa; position: relative; padding: 0 0 1.3rem 3.4rem; border-left: 2px solid var(--borde); margin-left: 1.1rem; }
.etapas li:last-child { padding-bottom: 0; border-left-color: transparent; }
.etapas li::before { content: counter(etapa); position: absolute; left: -1.15rem; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--terracota-fuerte); color: #FFFFFF; font-weight: 800; display: grid; place-content: center; }
.etapas h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.etapas p { margin: 0; color: var(--gris); }

/* Saber jugar */
.mayores { display: flex; gap: 1rem; align-items: center; background: var(--pizarra); color: #FFFFFF; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.3rem; }
.mayores b { flex: none; display: grid; place-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--terracota); color: #FFFFFF; font-weight: 800; }
.mayores p { margin: 0; }
.lineas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.3rem; }
.lineas > div { background: var(--fondo); border: 1px solid var(--borde); border-radius: 12px; padding: 1.2rem; }
.lineas h3 { font-size: 1.05rem; }
.lineas p { font-size: .94rem; color: var(--gris); }
.lineas p:last-child { margin-bottom: 0; }
.numero { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.6rem; color: var(--terracota-fuerte); text-decoration: none; margin-bottom: .4rem; }

/* Preguntas */
.dudas details { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; margin-bottom: .6rem; }
.dudas summary { cursor: pointer; list-style: none; padding: .95rem 2.6rem .95rem 1.1rem; position: relative; font-weight: 700; color: var(--pizarra); }
.dudas summary::-webkit-details-marker { display: none; }
.dudas summary::after { content: "+"; position: absolute; right: 1rem; top: .7rem; font-size: 1.3rem; color: var(--terracota-fuerte); }
.dudas details[open] summary::after { content: "–"; }
.dudas details p { padding: 0 1.1rem; color: var(--gris); }

/* Datos del responsable */
.responsable { margin: 0 0 1.3rem; background: var(--blanco); border: 1px solid var(--borde); border-left: 4px solid var(--terracota); border-radius: 0 10px 10px 0; padding: .4rem 1.2rem; }
.responsable div { padding: .6rem 0; border-bottom: 1px solid var(--borde); display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .2rem 1rem; }
.responsable div:last-child { border-bottom: 0; }
.responsable dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding-top: .15rem; }
.responsable dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Páginas legales */
.documento { padding: clamp(2rem, 4.5vw, 3.2rem) clamp(1.1rem, 4vw, 3rem); background: var(--blanco); }
.documento > * { max-width: 780px; }
.documento h1 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
.documento__bajada { font-size: 1.08rem; color: var(--gris); }
.documento__fecha { font-size: .84rem; color: var(--gris); padding-bottom: 1.2rem; border-bottom: 2px solid var(--pizarra); margin-bottom: 1.6rem; }
.documento h2 { font-size: 1.22rem; margin-top: 1.9rem; }
.documento li { margin-bottom: .35rem; }
.documento table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.2rem; }
.documento th, .documento td { text-align: left; vertical-align: top; padding: .6rem .7rem; border: 1px solid var(--borde); }
.documento th { background: var(--celeste-claro); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.documento__tabla { overflow-x: auto; }
.nota-clave { background: var(--celeste-claro); border-left: 4px solid var(--terracota); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 0 0 1.3rem; }
.nota-clave p:last-child { margin-bottom: 0; }

/* Cierre */
.cierre { background: var(--pizarra-oscura); color: #C9D6E4; padding: 2.2rem clamp(1.1rem, 4vw, 3rem) 1.5rem; font-size: .9rem; }
.cierre a { color: var(--celeste); }
.cierre__leyenda { background: var(--terracota-fuerte); color: #FFFFFF; font-weight: 800; text-align: center; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1.6rem; }
.cierre__leyenda a { color: #FFFFFF; }
.cierre__columnas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.cierre h2 { font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #FFFFFF; margin-bottom: .7rem; }
.cierre address { font-style: normal; line-height: 1.8; }
.cierre ul { list-style: none; padding: 0; margin: 0; }
.cierre li { margin-bottom: .4rem; }
.cierre__nota { font-size: .8rem; margin: 0; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); }

@media (max-width: 980px) {
  .marco { grid-template-columns: 1fr; }
  .lateral { position: static; height: auto; overflow: visible; padding: 1rem 1.1rem; gap: .5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .lateral__lema { grid-column: 1 / -1; margin: 0; order: 3; }
  .lateral__boton { display: block; font: inherit; font-weight: 800; background: var(--terracota-fuerte); color: #FFFFFF; border: 0; border-radius: 6px; padding: .5rem .9rem; cursor: pointer; }
  .lateral__nav { display: none; grid-column: 1 / -1; order: 4; }
  .lateral__nav--visible { display: block; }
  .lateral__ayuda, .lateral__sello { display: none; }
  .pista { display: block; }
}
@media (max-width: 680px) {
  .cifras, .ficha__cuerpo, .lineas, .cierre__columnas { grid-template-columns: 1fr; }
  .ficha__cuerpo { gap: 1.1rem; }
  .responsable div { grid-template-columns: 1fr; }
  .aviso-superior span { margin-inline: .15rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
