/* Sección nativa: hereda el branding de sitio.css. Estructura con Flexbox. */
body[data-pagina="reglas"] .sitio-vista{display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}
body[data-pagina="reglas"] .encabezado{flex:none}
body[data-pagina="reglas"] #contenido{display:flex;flex:1;min-height:0;outline-offset:-3px}
body[data-pagina="reglas"] .pie{display:none}
.reglas{--rg-borde:#dfc28b35;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%;padding:0 clamp(16px,4vw,64px);background:radial-gradient(ellipse at 80% 40%,#61784d0b,transparent 60%),var(--fondo)}
.reglas button{border:0;color:inherit;background:transparent}
.reglas-superior{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:50px;border-bottom:1px solid var(--linea);gap:12px}
.reglas-volver{font-size:12px;color:var(--suave);display:flex;gap:10px;align-items:center}
.reglas-volver:hover{color:var(--acento)}
.reglas-herramientas{display:flex;align-items:center;gap:8px}
.reglas-herramientas button{min-width:40px;min-height:40px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:50%}
.reglas-herramientas button:first-child{font:18px var(--serif)}
.reglas-herramientas button[aria-pressed=true]{background:var(--acento);color:var(--profundo)}
.reglas-cuerpo{display:flex;flex:1;min-height:0;min-width:0;gap:clamp(30px,6vw,100px);max-width:1160px;width:100%;align-self:center}
.reglas-lateral{display:flex;flex-direction:column;justify-content:center;flex:0 0 250px;min-width:0;gap:20px}
.reglas-lateral .etiqueta{font-size:10px;margin:0}
.reglas-lateral h1{font-size:42px;line-height:1.05;letter-spacing:-.04em}
.reglas-lateral nav{display:flex;flex-direction:column;gap:2px}
.reglas-lateral nav button{display:flex;align-items:center;gap:13px;text-align:left;min-height:40px;font-size:12px;color:var(--suave);padding:4px 0}
.reglas-lateral nav span{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--linea);border-radius:50%;font-size:10px;flex:none}
.reglas-lateral nav button[aria-current]{color:var(--acento)}
.reglas-lateral nav button[aria-current] span{border-color:var(--acento);color:var(--acento)}
.reglas-edicion{font-size:10px;line-height:1.6}
.reglas-escenario{display:flex;flex:1;min-height:0;min-width:0;touch-action:pan-y pinch-zoom}
.reglas-vista{display:flex;flex:1;flex-direction:column;justify-content:flex-start;min-height:0;min-width:0;gap:22px;padding:28px 0;overflow-y:auto;overscroll-behavior:contain}
.reglas-titulo{flex:none;display:flex;flex-direction:column;gap:8px}
.reglas-titulo .etiqueta{font-size:10px;margin:0}
.reglas-titulo h2{font-size:clamp(27px,3vw,42px);letter-spacing:-.025em;line-height:1.1}
.reglas-bloques{display:flex;flex-direction:column;gap:12px;min-width:0;max-width:600px;font-size:14px;line-height:1.5}
.reglas-bloques p{color:var(--suave)}
.reglas-bloques strong{color:var(--texto);font-weight:600}
.reglas-bloques h3{font:400 21px/1.2 var(--serif);letter-spacing:0;color:var(--acento);margin-top:8px}
.reglas-bloques h3:first-child{margin-top:0}
.reglas-bloques .reglas-prioridad{font-size:25px;border-bottom:1px solid var(--rg-borde);padding-bottom:5px}
.reglas-bloques .reglas-destacado{color:var(--acento);font-size:16px;line-height:1.35}
.reglas-bloques .reglas-destacado strong{color:inherit}
.reglas-bloques .reglas-nota{font-size:11px;line-height:1.45;color:var(--suave)}
.reglas-bloques .reglas-aviso{padding:12px 14px;border-left:2px solid var(--acento);background:#dfc28b08;color:var(--acento);font-size:14px;line-height:1.45}
.reglas-portada{align-items:center;justify-content:center;gap:26px;overflow-x:clip}
.reglas-portada-texto{display:flex;flex-direction:column;gap:18px;align-items:flex-start;max-width:560px}
.reglas-portada-texto .etiqueta{margin:0;font-size:10px}
.reglas-portada-texto h2{font-size:clamp(30px,3.4vw,48px);line-height:1.08}
.reglas-portada-texto>p:not(.etiqueta){font-size:13px}
.reglas-portada .boton{border:1px solid var(--rg-borde);color:var(--acento);font-size:13px;min-height:44px;padding:10px 20px}
.reglas-portada-tablero{display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px;flex:none}
.reglas-portada .boton:hover,.reglas-portada .boton:focus-visible{background:var(--acento);color:var(--profundo)}
.reglas-portada-tablero>p{font-size:10px;letter-spacing:.04em;color:var(--acento)}
.rg-tablero{position:relative;display:flex;flex-direction:column;aspect-ratio:1;width:clamp(145px,25vh,250px);border:1px solid #dfc28b80;padding:8px;transform:rotate(-5deg);box-shadow:0 8px 50px #0004}
.rg-tablero-fila{display:flex;flex:1;min-height:0}
.rg-tablero-celda{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;font:7px var(--serif);color:#dddfd4}
.rg-tablero-celda.ocupada{border:.5px solid #a7b69d65}
.rg-tablero-celda.rg-dueno-A{background:#235d6c}.rg-tablero-celda.rg-dueno-B{background:#8e4034}.rg-tablero-celda.rg-dueno-C{background:#665144}.rg-tablero-celda.rg-dueno-D{background:#52683f}
.rg-tablero-marca{position:absolute;inset:35%;display:flex;align-items:center;justify-content:center;border:1px solid var(--rg-borde);border-radius:50%;font:10px var(--serif);color:var(--acento)}
.reglas-pasos{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 10px;border-top:1px solid var(--linea)}
.reglas-pasos>p{font-size:11px;line-height:1.5;display:flex;align-items:center;justify-content:center;gap:16px;color:var(--texto)}
.reglas-pasos>p span{font-size:10px;color:var(--acento);font-variant-numeric:tabular-nums}
.reglas-controles{display:flex;align-items:center;justify-content:center;gap:16px;max-width:100%}
.reglas-circulos{display:flex;align-items:center;justify-content:center;gap:2px}
.reglas-circulos button{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;padding:0}
.reglas-circulos span{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border:1px solid #dfc28b55;border-radius:50%;font:11px var(--serif);color:var(--acento)}
.reglas-circulos button[aria-current] span{background:var(--acento);border-color:var(--acento);color:var(--profundo);box-shadow:0 0 0 3px #dfc28b0c}
.reglas .reglas-flecha{border:1px solid var(--linea);display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--acento);font-size:16px}
.reglas-circulos button:hover span,.reglas .reglas-flecha:hover{border-color:var(--acento)}
.reglas-indice{background:var(--profundo);border:1px solid var(--rg-borde);border-radius:8px;width:min(430px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:22px;color:var(--texto)}
.reglas-indice-cabecera{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.reglas-indice h2{font-size:27px}
.reglas-indice nav{display:flex;flex-direction:column}
.reglas-indice nav button{display:flex;align-items:center;gap:15px;padding:10px 0;min-height:44px;text-align:left;font-size:13px;border-bottom:1px solid var(--linea)}
.reglas-indice nav span{color:var(--acento);font-size:10px}
.reglas-indice nav button:hover{color:var(--acento)}
.reglas [data-reglas-anuncio]{position:fixed;top:0;left:0;margin:0}
/* Dados, casillas, fichas y recorridos: elementos HTML, sin imágenes de página. */
.rg-dados,.rg-par,.rg-reparto,.rg-reparto>span{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.rg-dados{gap:12px}
.rg-par{gap:6px;flex-wrap:nowrap}
.rg-dado{width:38px;height:38px;flex:none;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #dfc28b90;border-radius:7px;padding:7px;background:#dfc28b09}
.rg-dado-fila{display:flex;justify-content:space-between}
.rg-punto{width:4px;height:4px;border-radius:50%;background:var(--acento);visibility:hidden}
.rg-punto.lleno{visibility:visible}
.rg-o,.rg-operador{font-size:12px;color:var(--acento)}
.rg-tirada{display:flex;flex-direction:column;gap:8px}
.rg-tirada .reglas-destacado{font-size:16px}
.rg-movimientos{display:flex;flex-direction:column;gap:12px;padding:12px 0}
.rg-reparto{font-size:12px;gap:18px}
.rg-flecha{color:var(--acento);font-size:22px}
.rg-orden{display:flex;gap:14px;align-items:flex-start;padding:7px 0;border-bottom:1px solid var(--linea)}
.rg-orden>span{font:27px/1 var(--serif);color:var(--acento);width:24px;flex:none}
.rg-orden>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.rg-orden h3{font:500 14px/1.3 var(--sans);letter-spacing:.04em;margin:0!important}
.rg-ficha{--ficha:#70cbd4;display:inline-flex;flex:none;align-items:center;justify-content:center;width:27px;height:27px;border:1.5px solid var(--ficha);border-radius:50%;background:color-mix(in srgb,var(--ficha) 14%,var(--profundo));box-shadow:0 2px 4px #0003}
.rg-fuego{--ficha:#eb806b}.rg-aire{--ficha:#a8c184}.rg-tierra{--ficha:#d1aa87}
.rg-ficha img{width:66%;height:66%;object-fit:contain;filter:brightness(0) invert(1)}
.rg-casilla{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:36px;min-height:36px;border:1px solid var(--rg-borde);color:var(--acento);font:18px/1.2 var(--serif);padding:4px;gap:4px;flex:none}
.rg-casilla:has(.rg-ficha){min-width:48px}.rg-casilla:has(.rg-ficha)>span{align-self:flex-start;font-size:13px}
.rg-seguros{display:flex;justify-content:space-between;gap:24px;max-width:330px;padding:6px 0}
.rg-seguros>div{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px}
.rg-seguros .rg-casilla{width:64px;height:64px;font-size:32px;border-color:#dfc28b75;background:#dfc28b05}
.rg-concepto{display:flex;align-items:center;gap:20px;padding:8px 0}
.rg-concepto>div:last-child{display:flex;flex-direction:column;gap:10px;min-width:0}
.rg-concepto h3{margin:0}
.rg-torre{display:flex;flex-direction:column;gap:5px;align-items:center;border:1px solid var(--rg-borde);padding:7px 12px;flex:none}
.rg-puente{display:flex;flex-direction:column;gap:7px;padding:14px 0;max-width:350px}
.rg-puente-superior,.rg-puente-medio,.rg-puente-inferior{display:flex;align-items:center;gap:7px}
.rg-puente .rg-casilla{width:40px;height:40px}
.rg-prision-puente{display:flex;align-items:center;justify-content:center;height:40px;width:181px;border:1px solid var(--rg-borde);font-size:11px;color:var(--suave)}
.rg-puente-inferior{margin-top:4px;font-size:12px}
.rg-meta{display:flex;flex-direction:column;gap:5px;flex:none}
.rg-meta-fila{display:flex;gap:5px}
.rg-meta .rg-casilla,.rg-hueco{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;display:flex;font-size:16px}
.rg-meta .rg-casilla{border-color:#a8c18480}
.rg-captura{display:flex;flex-direction:column;gap:13px;padding:8px 0}
.rg-captura-fila{display:flex;align-items:center;gap:12px;font-size:12px}
.rg-etiqueta{width:52px;flex:none;font-size:11px}
.rg-captura-fila>.rg-casilla{height:62px;min-width:45px}
.rg-carcel{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:58px;border:1px solid var(--rg-borde)}
.rg-barrotes{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent 11px,var(--acento) 11px,var(--acento) 12px);pointer-events:none}
.reglas-ampliadas .reglas-vista{justify-content:flex-start;overflow-y:auto}
.reglas-ampliadas .reglas-bloques{font-size:18px;line-height:1.6}
.reglas-ampliadas .reglas-bloques .reglas-nota{font-size:14px}
@media(min-width:1200px) and (min-height:780px){.reglas-portada{flex-direction:row;gap:36px}.reglas-portada-texto{flex:1}.rg-tablero{width:260px}.reglas-portada-tablero{flex:none}.reglas-portada-texto h2{font-size:42px}}
@media(max-width:850px){.reglas{padding-inline:22px}.reglas-lateral{display:none}.reglas-cuerpo{max-width:560px}.reglas-superior{min-height:44px}.reglas-vista{padding:20px 0;gap:18px}.reglas-titulo h2{font-size:31px}.reglas-bloques{font-size:14px;gap:12px;line-height:1.5}.reglas-portada{gap:22px}.reglas-portada-texto{align-items:center;text-align:center;gap:14px}.reglas-portada-texto h2{font-size:34px}.reglas-portada .rg-tablero{width:clamp(145px,24vh,220px)}.reglas-pasos{padding-bottom:8px}.reglas-controles{gap:12px}}
@media(max-width:380px){.reglas{padding-inline:16px}.reglas-controles{gap:7px}.reglas-circulos{gap:0}.reglas-circulos button{width:34px}.reglas-bloques{font-size:13px}.reglas-titulo h2{font-size:28px}.rg-dados{gap:8px}.rg-dado{width:31px;height:31px;padding:5px}.rg-par{gap:4px}.rg-captura-fila{gap:8px}.rg-casilla{min-width:32px}.rg-meta-concepto{gap:14px}}
@media(max-height:750px){.reglas-vista{padding-block:14px;gap:14px}.reglas-titulo h2{font-size:28px}.reglas-bloques{gap:9px;font-size:13px;line-height:1.45}.reglas-bloques h3{font-size:19px;margin-top:5px}.reglas-bloques .reglas-prioridad{font-size:22px}.reglas-bloques .reglas-destacado{font-size:15px}.rg-tirada{gap:6px}.rg-dado{width:30px;height:30px;padding:5px}.reglas-portada{gap:15px}.reglas-portada-texto h2{font-size:30px}.reglas-portada-texto{gap:10px}.reglas-portada .rg-tablero{width:155px}.reglas-portada-tablero{gap:8px}.reglas-lateral{gap:12px}.reglas-lateral h1{font-size:33px}.reglas-lateral nav button{min-height:34px}}
@media(max-height:650px){.reglas-vista{justify-content:flex-start;padding-block:10px;gap:10px}.reglas-superior{min-height:36px}.reglas-herramientas button{min-height:34px}.reglas-bloques{gap:8px;font-size:12px;line-height:1.4}.reglas-titulo{gap:5px}.reglas-titulo h2{font-size:25px}.reglas-bloques h3{font-size:17px;margin-top:3px}.reglas-bloques .reglas-nota{font-size:10px}.reglas-bloques .reglas-destacado{font-size:14px}.reglas-bloques .reglas-aviso{font-size:12px;padding:9px}.reglas-bloques .reglas-prioridad{font-size:20px}.reglas-tirada-titulo{font-size:16px!important}.rg-tirada{gap:4px}.rg-dado{width:25px;height:25px;padding:4px;border-radius:5px}.rg-punto{width:3px;height:3px}.reglas-portada{flex-direction:row;align-items:center;gap:16px}.reglas-portada-texto{flex:1;align-items:flex-start;text-align:left}.reglas-portada-texto h2{font-size:25px}.reglas-portada-texto>p:not(.etiqueta){font-size:11px}.reglas-portada .rg-tablero{width:125px}.reglas-portada-tablero>p{display:none}.rg-tablero-celda{font-size:5px}.rg-tablero-marca{font-size:7px}.rg-seguros .rg-casilla{width:48px;height:48px;font-size:25px}.rg-concepto{padding:4px 0}.rg-captura{gap:8px;padding:4px 0}.rg-captura-fila>.rg-casilla{height:53px}.reglas-pasos{padding-block:5px}.reglas-lateral h1{font-size:27px}.reglas-edicion{display:none}}
@media(max-width:360px) and (max-height:650px){.reglas-portada .rg-tablero{width:105px}.reglas-portada-texto h2{font-size:23px}.reglas-portada .boton{font-size:11px;padding-inline:13px}}
@media(max-width:850px){.rg-tirada .rg-dado{width:31px;height:31px;padding:5px}.rg-tirada .rg-dados{gap:8px}.rg-tirada .rg-par{gap:4px}}
@media(max-height:650px){.reglas-bloques{gap:6px}.rg-orden{padding:4px 0;gap:10px}.rg-orden>div{gap:3px}.rg-orden>span{font-size:23px}.rg-orden h3{font-size:12px}.rg-puente{padding:6px 0;gap:5px}.rg-puente .rg-casilla,.rg-prision-puente{height:32px;min-height:32px}.rg-puente .rg-casilla{width:32px;min-width:32px}.rg-prision-puente{width:149px}.rg-meta .rg-casilla,.rg-hueco{width:24px;height:24px;min-width:24px;min-height:24px;font-size:14px}.rg-meta,.rg-meta-fila{gap:4px}.rg-tirada .rg-dado{width:25px;height:25px;padding:4px}}
@media(min-height:780px) and (min-width:851px){.reglas-vista{justify-content:center}.reglas-ampliadas .reglas-vista{justify-content:flex-start}}
@media(max-height:600px) and (max-width:850px){.reglas-titulo .etiqueta{display:none}.reglas-vista{padding-block:7px;gap:8px}}
@media(prefers-reduced-motion:no-preference){.reglas-vista:not([hidden]){animation:reglas-aparecer .2s ease-out}@keyframes reglas-aparecer{from{opacity:.35}to{opacity:1}}}
