/* ===========================================================================
   «Simulacro» (noviembre 2026). Estilos del juego del mapa (public/simulacro.js).
   Todo va bajo sus propias clases (.sim, .sim-capa, .sim-elegir) para no pisar
   las de la plataforma: el prototipo usaba .panel, .btn, .escena y .aviso, que
   acá ya son otra cosa. Los botones .btn sí son los de la plataforma.
   =========================================================================== */

/* ---------- elegir personaje ---------- */
.sim-elegir { max-width: 520px; margin: 0 auto; display: grid; gap: .8rem; text-align: center; }
.sim-elegir h2 { margin: 0; }
.sim-ceja { margin: 0; font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--naranja); }
.sim-bajada { margin: 0; color: var(--tinta-2); }
.sim-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.sim-ficha {
  border: 2px solid var(--borde); background: var(--tarjeta); border-radius: 16px; padding: .6rem .3rem .5rem;
  display: grid; justify-items: center; gap: .2rem; font: inherit; font-weight: 800; color: inherit; cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}
.sim-ficha img { width: 64px; height: 88px; object-fit: contain; }
.sim-ficha:hover { transform: translateY(-2px); border-color: var(--borde-claro); }
.sim-ficha[aria-checked="true"] { border-color: var(--naranja); background: #2a1a0e; box-shadow: 0 0 0 3px #F9731633; }
.sim-ficha[aria-checked="true"] img { animation: sim-salta .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sim-salta { 40% { transform: translateY(-8px) } }
.sim-acciones { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }

/* ---------- la partida: el mapa ocupa toda la cancha ---------- */
.sim-marco .escena { padding: 0; display: block; }
/* En pantallas de computador el Simulacro usa más espacio (Gabriel, 12-nov: en
   1920×1080 se veía muy centrado y chico). No es zoom: el marco crece y el mapa
   muestra más oficina a la vez, porque la cámara tiene tope de 1,1 (ver cam.z en
   simulacro.js) y los personajes conservan su tamaño. Solo afecta a esta partida;
   los otros juegos siguen con su columna de 716 px. */
@media (min-width: 1100px) and (min-height: 700px) {
  .partida.sim-partida { grid-template-columns: minmax(0, min(1280px, 74vw)); }
  /* 252 px = marquesina, pie con «Abandonar partida» y márgenes: todo cabe sin desplazar */
  .sim-partida .escena { --alto-juego: clamp(400px, 100dvh - 252px, 860px); }
}
.sim { position: relative; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.sim-mapa { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 20px 20px; touch-action: none; outline: none; background: #1b2440; }
.sim-mapa canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sim-marco.sim-fundido .sim-mapa { opacity: 0; transition: opacity .45s ease-in; }
.sim-marco.sim-emergencia { border-color: var(--rojo); animation: sim-alarma-borde 1s ease-in-out infinite alternate; }
@keyframes sim-alarma-borde { to { box-shadow: 0 0 0 3px #E8483F55, 0 18px 50px #00000059; } }
.sim-marco.sim-emergencia .celda.avance .celda-val { color: var(--rojo); }

.sim-tareas { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(11, 18, 29, .86); border: 1px solid var(--borde); border-radius: 12px; padding: 8px 10px; font-size: 13px; max-width: 230px; }
.sim-tareas summary { font-weight: 800; cursor: pointer; list-style: none; color: #FFD43B; }
.sim-tareas summary::-webkit-details-marker { display: none; }
.sim-tareas ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.sim-tareas li { display: flex; gap: 6px; line-height: 1.3; }
.sim-tareas li::before { content: "☐"; color: #FFD43B; }
.sim-tareas li.hecha { color: var(--tinta-2); text-decoration: line-through; }
.sim-tareas li.hecha::before { content: "☑"; color: var(--verde); }
.sim-tareas li.salida { color: var(--rojo); font-weight: 800; }
.sim-tareas li.salida::before { content: "➜"; color: var(--rojo); }

.sim-usar { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 92px; height: 92px; border-radius: 50%; border: 3px solid #FFD43B; background: rgba(19, 28, 43, .92); font-family: var(--burbuja); font-weight: 800; font-size: 18px; color: #FFD43B; display: grid; place-items: center; line-height: 1; box-shadow: 0 5px 0 #070b12; cursor: pointer; }
.sim-usar span { font-size: 30px; display: block; }
.sim-usar:not([disabled]) { animation: sim-late 1s ease-in-out infinite; }
@keyframes sim-late { 50% { transform: scale(1.06); box-shadow: 0 5px 0 #070b12, 0 0 22px #FFD43B88; } }
.sim-usar[disabled] { opacity: .35; border-color: var(--borde); color: var(--tinta-2); cursor: default; animation: none; }
.sim-palanca { position: absolute; z-index: 2; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); pointer-events: none; }
.sim-palanca i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.sim-ayuda { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; margin: 0; font-size: 12px; color: var(--tinta-2); background: rgba(11, 18, 29, .8); border-radius: 999px; padding: 4px 12px; white-space: nowrap; pointer-events: none; }
.sim-brindis { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: min(92%, 420px); background: rgba(19, 28, 43, .96); border: 2px solid var(--rojo); border-radius: 14px; padding: 8px 12px; font-size: 14px; text-align: center; display: grid; gap: 2px; pointer-events: none; }
.sim-brindis.entra { animation: sim-brindis .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes sim-brindis { from { opacity: 0; transform: translate(-50%, -12px) scale(.9); } }
.sim-brindis b { font-family: var(--burbuja); color: var(--rojo); font-size: 16px; }
.sim-brindis.bien { border-color: var(--verde); }
.sim-brindis.bien b { color: var(--verde); }
.sim-brindis q { font-style: italic; quotes: "«" "»"; color: var(--tinta-2); font-size: 13px; }
/* en el teléfono el aviso tapaba media pantalla: más chico y, pasado un momento,
   queda solo el título (clase .corto, la pone avisar en simulacro.js) */
@media (max-width: 480px) {
  .sim-brindis { top: 48px; max-width: 80%; padding: 5px 10px; font-size: 12.5px; line-height: 1.3; background: rgba(19, 28, 43, .88); }
  .sim-brindis b { font-size: 14px; }
  .sim-brindis q { font-size: 11.5px; }
  .sim-brindis.corto span, .sim-brindis.corto q { display: none; }
}
@media (max-width: 480px) { .sim-usar { width: 80px; height: 80px; } .sim-ayuda { display: none; } }
@media (hover: none) { .sim-ayuda { display: none; } }

/* ---------- la capa de cada tarea: pantalla completa ---------- */
html.sim-tarea-abierta, html.sim-tarea-abierta body { overflow: hidden; }
.sim-capa {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  /* el panel se centra con margin: auto y no con place-items: si es más alto que
     la pantalla, parte desde arriba y se desplaza, en vez de cortarse por los dos lados */
  display: grid;
  background: radial-gradient(120% 90% at 50% 35%, #22314c 0%, #0b1220 60%, #05080e 100%);
}
.sim-capa[hidden] { display: none; }
.sim-panel { width: 100%; max-width: 560px; display: grid; gap: 14px; position: relative; margin: auto; }
.sim-panel.sim-mal { animation: sim-sacude-panel .4s ease-in-out; }
@keyframes sim-sacude-panel { 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(3px) } }
.sim-panel h3 { font-size: 26px; margin: 0; padding-right: 36px; }
.sim-panel-tit small { display: block; font-weight: 800; font-size: 12px; color: #FFD43B; letter-spacing: .08em; text-transform: uppercase; }
.sim-instr { color: var(--tinta-2); font-size: 16px; margin: -6px 0 0; }
.sim-cerrar { position: fixed; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: var(--noche-2); color: inherit; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.sim-fila { display: grid; gap: 8px; }
/* El veredicto de cada intento es la ventana de la plataforma (.velo .veredicto):
   va encima de la tarea, que es una capa a pantalla completa, sin alargar la escena. */
.velo.sim-velo { z-index: 120; }
/* Guía que no cuenta como error (por dónde partir el dibujo): aviso flotante corto. */
.sim-pista {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 110;
  width: max-content; max-width: min(92vw, 420px); display: grid; gap: 2px; text-align: center; pointer-events: none;
  background: rgba(19, 28, 43, .97); border: 2px solid var(--ambar); border-radius: 14px; padding: 8px 14px; font-size: 14px; box-shadow: 0 10px 30px #000a;
}
.sim-pista b { font-family: var(--burbuja); color: var(--ambar); font-size: 16px; }
.sim-pista.entra { animation: sim-pista .3s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes sim-pista { from { opacity: 0; transform: translate(-50%, 12px); } }
.sim-aviso { border-radius: 12px; padding: 9px 12px; font-size: 14px; display: grid; gap: 3px; animation: sim-brindis-capa .3s ease-out; }
@keyframes sim-brindis-capa { from { opacity: 0; transform: translateY(6px); } }
.sim-aviso b { font-family: var(--burbuja); font-size: 16px; }
.sim-aviso.bien { background: rgba(88, 200, 56, .14); border: 1px solid var(--verde-hondo); }
.sim-aviso.bien b { color: var(--verde); }
.sim-aviso.mal { background: rgba(232, 72, 63, .14); border: 1px solid #8f2a24; }
.sim-aviso.mal b { color: var(--rojo); }
.sim-aviso q { font-style: italic; quotes: "«" "»"; color: var(--tinta-2); }

/* piezas ilustradas de las tareas */
.sim-escena { position: relative; width: 100%; margin: 0 auto; }
.sim-escena img { -webkit-user-drag: none; user-select: none; }
.sim-escena > img.base { display: block; width: 100%; height: auto; pointer-events: none; }
.sim-escena .pz { position: absolute; }
.sim-escena button { font: inherit; color: inherit; cursor: pointer; }
.sim-escena.sacude { animation: sim-sacude .12s linear infinite; }
@keyframes sim-sacude { 0% { transform: translate(0, 0) } 25% { transform: translate(3px, -2px) } 50% { transform: translate(-3px, 1px) } 75% { transform: translate(2px, 2px) } }

/* la descarga */
.sim-escena.nb { width: min(100%, 52svh * 1.3); }
.nb .pantalla { left: 12.2%; top: 7.4%; width: 75.5%; height: 41.3%; display: grid; align-content: center; gap: 8px; padding: 0 7%; color: #1a2436; font-weight: 800; font-size: clamp(12px, 3.6vw, 17px); }
.nb .pantalla .barra { height: 14px; border-radius: 7px; background: #c5ccd8; overflow: hidden; }
.nb .pantalla .barra i { display: block; height: 100%; width: 0; background: #2f6fe0; }
.nb .pantalla .tiembla { color: #d42a20; font-family: var(--burbuja); font-size: 1.3em; animation: sim-parpadeo .5s steps(2) infinite; }
@keyframes sim-parpadeo { 50% { opacity: .35 } }

/* la agenda */
.agenda2 { display: grid; gap: 8px; justify-items: center; }
/* las letras de la libreta y del post-it se miden en cqw de este bloque: crecen y se achican con el dibujo */
.agenda2 .arriba { position: relative; width: min(100%, 330px); container-type: inline-size; }
.agenda2 .libreta2 { position: relative; width: 64%; margin: 0; }
.agenda2 .libreta2 .tit { left: 22%; right: 6%; top: 11%; height: 10%; display: flex; align-items: flex-end; font-family: var(--burbuja); font-weight: 800; font-size: 5.1cqw; color: #1a2436; line-height: 1; }
.agenda2 .libreta2 .renglon { left: 21%; right: 2%; height: 12.6%; display: grid; grid-template-columns: 1fr 3.1em .9em; align-items: end; gap: 2px; padding: 0 4px 2px; border: 0; background: none; border-radius: 6px; text-align: left; color: #1a2436; font-weight: 800; font-size: max(11px, 4.1cqw); line-height: 1.02; }
.agenda2 .libreta2 .renglon.activa { background: rgba(255, 212, 59, .45); }
.agenda2 .libreta2 .renglon .num { font-family: 'Comic Sans MS', 'Marker Felt', var(--burbuja); font-size: 1.45em; color: #1f4fbf; text-align: center; line-height: 1; }
.agenda2 .libreta2 .renglon .ok { color: #1e8a3c; font-size: 1.3em; line-height: 1; }
.agenda2 .libreta2 .renglon.hecha .num { color: #1e8a3c; }
.agenda2 .libreta2 .renglon.mal { animation: sim-sacude .12s linear 3; }
.agenda2 .lapiz { width: 22%; pointer-events: none; transition: top .25s ease; transform: translate(-30%, -88%); }
.agenda2 .postit2 { position: absolute; right: 0; top: 6%; width: 31%; transform: rotate(5deg); }
.agenda2 .postit2 img { display: block; width: 100%; height: auto; }
.agenda2 .postit2 .nums { position: absolute; left: 10%; right: 10%; top: 20%; bottom: 10%; display: grid; align-content: center; justify-items: center; gap: 1px; font-family: 'Comic Sans MS', 'Marker Felt', var(--burbuja); font-weight: 800; font-size: 5.4cqw; color: #3a2f05; line-height: 1.08; }
.agenda2 .fono2 { position: relative; width: min(100%, 290px, calc(36svh * 1.032)); container-type: inline-size; }
.agenda2 .fono2 .visor { left: 26.5%; top: 34.6%; width: 51.8%; height: 10.9%; display: grid; place-items: center; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 7.4cqw; letter-spacing: .14em; color: #1a2436; }
.agenda2 .fono2 .teclas { left: 25%; top: 53%; width: 54.6%; height: 39%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 4% 5%; }
.agenda2 .fono2 .tecla { position: relative; border: 0; padding: 0; background: none; font-family: var(--burbuja); font-weight: 800; font-size: max(13px, 6.4cqw); line-height: 1; min-height: 0; color: #1a2436; display: grid; place-items: center; }
.agenda2 .fono2 .tecla img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.agenda2 .fono2 .tecla span { position: relative; margin-top: -8%; }
.agenda2 .fono2 .tecla.pulsada { transform: scale(.94); }
.agenda2 .fono2 .tecla.anotar { font-size: max(10px, 5cqw); color: #0d2a06; }

/* asegura lo que se cae */
.estante2 { width: min(100%, calc(50svh / 1.508)); }
.estante2 .cosa2 { transform: translate(-50%, -100%); transform-origin: 50% 100%; border: 0; background: none; padding: 0; border-radius: 10px; }
.estante2 .cosa2 img { display: block; width: 100%; height: auto; pointer-events: none; transition: filter .2s; }
.estante2 .cosa2.asegurada img { filter: drop-shadow(3px 0 0 #3ee06a) drop-shadow(-3px 0 0 #3ee06a) drop-shadow(0 3px 0 #3ee06a) drop-shadow(0 -3px 0 #3ee06a) drop-shadow(0 0 6px rgba(62, 224, 106, .8)); }
.estante2 .cosa2.no { animation: sim-tambalea .5s ease-in-out 1; }
.estante2 .cosa2.no img { filter: drop-shadow(3px 0 0 #ff3b30) drop-shadow(-3px 0 0 #ff3b30) drop-shadow(0 3px 0 #ff3b30) drop-shadow(0 -3px 0 #ff3b30) drop-shadow(0 0 6px rgba(255, 59, 48, .8)); }
.estante2 .cosa2:focus-visible { outline: 3px solid var(--azul); }
@keyframes sim-tambalea { 0%, 100% { transform: translate(-50%, -100%) rotate(0) } 25% { transform: translate(-50%, -100%) rotate(-2.5deg) } 60% { transform: translate(-50%, -100%) rotate(2deg) } 85% { transform: translate(-50%, -100%) rotate(-.8deg) } }

/* elegir qué hacer (casa) */
.sim-escena.decide { width: min(70%, 30svh * 1.4); }
.decide > img.base { max-height: 30svh; width: auto; max-width: 100%; margin: 0 auto; }
.sim-opciones { display: grid; gap: 8px; }
.sim-opcion { text-align: left; border: 2px solid var(--borde); background: var(--tarjeta); color: inherit; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.25; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, transform .12s; }
.sim-opcion:hover:not(:disabled) { border-color: var(--borde-claro); transform: translateY(-1px); }
.sim-opcion:disabled { cursor: default; }
.sim-opcion.no2 { border-color: #ff3b30; color: #ffb3ad; animation: sim-tambalea2 .5s ease-in-out 1; }
.sim-opcion.si { border-color: #3ee06a; background: #143a22; }
@keyframes sim-tambalea2 { 25% { transform: rotate(-3deg) } 60% { transform: rotate(2.5deg) } 85% { transform: rotate(-1deg) } }

/* la zapatilla */
.zapa2 { width: min(100%, 50svh); container-type: inline-size; aspect-ratio: 1 / 1.1; margin: 0 auto; }
.zapa2 > img { position: absolute; pointer-events: none; }
.zapa2 .zap { left: 0; top: 3cqw; width: 100cqw; }
.zapa2 .pared { left: 27cqw; top: 58cqw; width: 46cqw; }
.zapa2 .luz2 { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; transform: translate(-50%, -50%); left: 94.9cqw; top: 13.9cqw; }
.zapa2 .luz2.roja { background: #ff3b30; box-shadow: 0 0 2cqw 1cqw rgba(255, 59, 48, .8); animation: sim-parpadeo .8s steps(2) infinite; }
.zapa2 .luz2.verde { background: #3ee06a; box-shadow: 0 0 2cqw 1cqw rgba(62, 224, 106, .8); }
.zapa2 .enchufe { position: absolute; transform: translate(-50%, -3.2cqw); border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: .4cqw; transition: left .28s cubic-bezier(.2,.9,.3,1.1), top .28s cubic-bezier(.2,.9,.3,1.1); cursor: pointer; }
.zapa2 .enchufe > img { height: 23cqw; width: auto; pointer-events: none; transition: filter .2s; }
.zapa2 .enchufe .eq { height: 8cqw; width: auto; pointer-events: none; }
.zapa2 .enchufe.baja span { margin-top: 3.4cqw; }
.zapa2 .enchufe span { font-size: max(12px, 3.3cqw); font-weight: 800; line-height: 1.1; color: #fff; white-space: nowrap; background: rgba(11, 18, 29, .82); border-radius: 999px; padding: 1px 6px; }
.zapa2 .enchufe:focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; border-radius: 8px; }
.zapa2 .enchufe:disabled { cursor: default; }
.zapa2 .enchufe.no > img { filter: drop-shadow(3px 0 0 #ff3b30) drop-shadow(-3px 0 0 #ff3b30) drop-shadow(0 3px 0 #ff3b30) drop-shadow(0 -3px 0 #ff3b30) drop-shadow(0 0 6px rgba(255, 59, 48, .8)); }

/* el botiquín */
.botiq2 { display: grid; gap: 10px; justify-items: center; }
.botiquin2 { width: min(62%, 36svh * .87); }
.botiquin2 .dentro { width: 15%; transform: translate(-50%, -100%); pointer-events: none; animation: sim-entra .3s cubic-bezier(.2,.9,.3,1.3); }
@keyframes sim-entra { from { transform: translate(-50%, -160%) scale(.6); opacity: 0 } }
.bandeja { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.cosa3 { border: 2px solid var(--borde); background: var(--tarjeta); border-radius: 12px; padding: 6px 2px 4px; display: grid; justify-items: center; gap: 2px; cursor: pointer; color: inherit; font: inherit; }
.cosa3 img { height: min(12vw, 7svh, 54px); width: 100%; object-fit: contain; pointer-events: none; }
.cosa3 span { font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; }
.cosa3.no { animation: sim-tambalea2 .5s ease-in-out 1; border-color: #ff3b30; }
.cosa3.puesto { visibility: hidden; }

/* dibuja la salida */
.plano2 { width: min(100%, 62svh * 1.475); }
.plano2 > img.base { position: relative; z-index: 1; }
.plano2 .mapa2 { left: 10.5%; top: 16.2%; width: 78.7%; height: 67.3%; touch-action: none; cursor: crosshair; z-index: 0; border-radius: 2px; }

/* repite la ruta */
.tablero { width: min(100%, calc(48svh / 1.171)); container-type: inline-size; }
.tablero .luzroja { left: 37.2%; top: 5.1%; width: 25.2%; height: 21.6%; border-radius: 50%; pointer-events: none; }
.tablero .luzroja.on { animation: sim-luz .5s ease-in-out infinite alternate; }
@keyframes sim-luz { from { box-shadow: 0 0 0 0 rgba(255, 60, 40, 0); } to { box-shadow: 0 0 34px 14px rgba(255, 60, 40, .75); background: rgba(255, 120, 100, .35); } }
.tablero .pad2 { border: 0; background: transparent; border-radius: 10%; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 3%; color: #1a2436; font-weight: 800; font-size: max(11px, 5.6cqw); line-height: 1.05; overflow: hidden; text-align: center; transition: background .12s, box-shadow .12s; }
.tablero .pad2 img { width: 56%; height: auto; pointer-events: none; }
.tablero .pad2.luz { background: rgba(255, 212, 59, .55); box-shadow: 0 0 0 4px #FFD43B, 0 0 22px 6px rgba(255, 212, 59, .7); }
.tablero .pad2.error { box-shadow: 0 0 0 4px var(--rojo); }
.sim-puntos { display: flex; justify-content: center; gap: 6px; }
.sim-puntos i { width: 12px; height: 12px; border-radius: 50%; background: var(--borde); transition: background .2s, transform .2s; }
.sim-puntos i.ok { background: var(--verde); transform: scale(1.2); }

/* fuego chico */
.fuego2 { width: min(100%, calc(46svh / 1.05)); aspect-ratio: 100 / 105; }
.fuego2 .ext { left: 1%; bottom: 0; height: 86%; pointer-events: none; }
.fuego2 .bote { right: 2%; bottom: 4%; width: 44%; pointer-events: none; }
.fuego2 .bote.llamas { transition: opacity .1s linear; animation: sim-llama .18s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes sim-llama { to { transform: scale(1.03, 1.06); } }
.fuego2 .chorro { left: 27%; top: 87%; width: 62%; transform-origin: 0 50%; transform: translateY(-50%) rotate(-38deg) scaleX(.3); opacity: 0; pointer-events: none; transition: opacity .12s, transform .18s; }
.fuego2.echa .chorro { opacity: .95; transform: translateY(-50%) rotate(-38deg) scaleX(1); animation: sim-chorro .12s linear infinite alternate; }
@keyframes sim-chorro { to { filter: brightness(1.12); margin-top: -1.5%; } }
.fuego2 .humito { right: 12%; bottom: 40%; width: 26%; opacity: 0; pointer-events: none; transition: opacity .6s; }
.fuego2.apagado .humito { opacity: .8; }
.sim-medidor { height: 12px; border-radius: 6px; background: var(--borde); overflow: hidden; }
.sim-medidor i { display: block; height: 100%; background: var(--rojo); }
.sim-mantener { touch-action: none; }

/* ---------- pantalla final: las estrellas ---------- */
.estrellas-sim { display: flex; justify-content: center; gap: .3rem; font-size: 2.6rem; line-height: 1; margin: -.2rem 0 .3rem; }
.estrellas-sim span { color: var(--borde-claro); }
.estrellas-sim span.llena { color: #FFD43B; text-shadow: 0 0 18px #FFD43B88; animation: sim-estrella .5s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i) * .25s + .5s); }
@keyframes sim-estrella { from { transform: scale(0) rotate(-40deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sim-escena.sacude, .fuego2.echa .chorro, .tablero .luzroja.on, .zapa2 .luz2.roja, .cosa3.no, .botiquin2 .dentro,
  .sim-usar:not([disabled]), .sim-brindis.entra, .sim-panel.sim-mal, .sim-marco.sim-emergencia, .fuego2 .bote.llamas,
  .estrellas-sim span.llena, .sim-ficha[aria-checked="true"] img, .nb .pantalla .tiembla { animation: none; }
  .zapa2 .enchufe { transition: none; }
}

/* ---------- el ambiente del mes (body.simulacro, ver ambientar en app.js) ----------
   Una cinta de seguridad amarilla y negra cruza arriba en la ficha, la partida y
   el final del reto, y la tarjeta de la galería lleva la insignia roja. */
body.simulacro #app::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 12px; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #FFD43B 0 16px, #161a22 16px 32px);
  box-shadow: 0 2px 8px #0009;
}
.carta-reto.simulacro.activo .cr-badge {
  background: linear-gradient(180deg, #F2554A, #D93025 65%);
  box-shadow: 0 3px 0 #8F1B12; text-shadow: 0 1px 0 #8F1B1266;
}

/* ---------- teléfonos y pantallas bajas: todo más compacto ----------
   Con las barras de Safari a un iPhone le quedan unos 660 px de alto: el título, la
   instrucción, la escena y la explicación tienen que caber sin bajar, y lo que se
   toca (el teclado del teléfono, los enchufes) nunca puede quedar bajo el borde. */
@media (max-height: 820px), (max-width: 480px) {
  .sim-panel { gap: 10px; }
  .sim-panel h3 { font-size: 21px; }
  .sim-panel-tit small { font-size: 11px; }
  .sim-instr { font-size: 14px; line-height: 1.35; margin-top: -4px; }
  .sim-cerrar { top: max(8px, env(safe-area-inset-top)); right: 8px; width: 40px; height: 40px; }
  .sim-aviso { padding: 7px 10px; font-size: 13px; line-height: 1.35; }
  .sim-aviso b { font-size: 15px; }
  .sim-escena.nb { width: min(100%, 38svh * 1.3); }
  .estante2 { width: min(100%, calc(40svh / 1.508)); }
  .botiquin2 { width: min(58%, 28svh * .87); }
  .cosa3 img { height: min(10vw, 5.5svh, 46px); }
  .zapa2 { width: min(100%, 46svh); }
  .tablero { width: min(100%, calc(44svh / 1.171)); }
  .fuego2 { width: min(100%, calc(34svh / 1.05)); }
  .plano2 { width: min(100%, 46svh * 1.475); }
  .decide > img.base { max-height: 24svh; }
  .sim-escena.decide { width: min(70%, 24svh * 1.4); }
  .sim-opcion { padding: 10px 12px; font-size: 14px; }
  .agenda2 { gap: 4px; }
  .agenda2 .arriba { width: min(100%, 320px, 40svh * 1.05); }
  .agenda2 .fono2 { width: min(100%, 270px, calc(32svh * 1.032)); }
}

/* El veredicto en el teléfono: la explicación y la cita no bajan de 14 px. */
@media (max-width: 480px) {
  .sim-velo .veredicto-frase { font-size: 15px; line-height: 1.35; }
  .sim-velo .cita p { font-size: 14px; line-height: 1.4; }
  .sim-tareas { font-size: 14px; }
}

/* La agenda en el teléfono (12-nov): las teclas medían 44×22 px y costaba marcar.
   La libreta y el post-it se achican, y del teléfono se muestra solo la cara con
   el visor y el teclado: el auricular y el cable quedan fuera con clip-path (el
   dibujo no se toca, solo se recorta al mostrarlo). Así el teléfono crece a casi
   el ancho de la pantalla. --f es el ancho del dibujo completo; lo visible va del
   16 % al 88 % de ancho y del 30 % hacia abajo, y los márgenes negativos centran
   esa parte y suben el teléfono para que no quede el hueco del auricular.
   En el computador el teléfono también se veía chico al lado de la libreta y
   costaba marcar (Gabriel, 12-nov): ahí va igual de recortado, con --f según el alto. */
@media (min-width: 481px) {
  .agenda2 .fono2 .tecla.anotar { font-size: 4.3cqw; }
  .agenda2 .fono2 {
    --f: min(560px, calc(40svh / .697));
    width: var(--f); justify-self: start;
    margin: calc(var(--f) * -.295) 0 0 calc(50% - var(--f) * .52);
    clip-path: inset(30.5% 12% 0 16% round 18px);
  }
}
@media (max-width: 480px) {
  .agenda2 .arriba { width: min(100%, 280px, 37svh * 1.05); }
  .agenda2 .fono2 .tecla.anotar { font-size: 4.3cqw; }
  .agenda2 .fono2 {
    --f: min(136%, calc(46svh / .697));
    width: var(--f); justify-self: start;
    margin: calc(var(--f) * -.295) 0 0 calc(50% - var(--f) * .52);
    clip-path: inset(30.5% 12% 0 16% round 18px);
  }
}

/* ---------- demostración en el hero de la ficha (ver demoSimulacro en app.js) ---------- */
.sim-demo-brillo {
  position: absolute; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFE45C88 0%, #FFE45C33 45%, transparent 70%);
  box-shadow: 0 0 0 3px #FFE45C;
  animation: sim-demo-latir .8s ease-in-out infinite alternate;
}
@keyframes sim-demo-latir { from { transform: translate(-50%, -50%) scale(.85); } to { transform: translate(-50%, -50%) scale(1.1); } }
.sim-demo-lienzo { position: absolute; pointer-events: none; }
.sim-demo-huella {
  position: absolute; width: 2.2%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0);
  border-radius: 50%; border: 2px solid #0B121D; pointer-events: none;
  animation: sim-demo-huella .25s ease-out forwards;
}
.sim-demo-huella.amarilla { background: #FFE45C; }
.sim-demo-huella.verde { background: #58C838; width: 2.6%; }
@keyframes sim-demo-huella { to { transform: translate(-50%, -50%) scale(1); } }
.sim-demo-usar {
  position: absolute; right: 4%; bottom: 7%; pointer-events: none;
  font-family: var(--burbuja); font-weight: 800; font-size: clamp(.8rem, 2.6vw, 1rem);
  color: #0B121D; background: #C8F03C; border: 3px solid #0B121D; border-radius: 999px;
  padding: .45em 1.1em; box-shadow: 0 4px 0 #0B121D; animation: pop .25s ease-out;
}
.sim-demo-usar.apretado { transform: translateY(3px); box-shadow: 0 1px 0 #0B121D; }
.sim-demo-alarma {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 40%, #E8483F99 100%);
  animation: sim-demo-alarma .5s ease-in-out infinite alternate;
}
@keyframes sim-demo-alarma { from { opacity: .25; } to { opacity: 1; } }
.sim-demo-aviso {
  position: absolute; left: 50%; top: 7%; transform: translateX(-50%); pointer-events: none;
  font-family: var(--burbuja); font-weight: 800; font-size: clamp(.9rem, 3vw, 1.2rem);
  color: #fff; background: #E8483F; border: 3px solid #0B121D; border-radius: 999px;
  padding: .3em 1em; white-space: nowrap; animation: pop .25s ease-out;
}

/* desglose de los puntos en la ventana de tarea lista (tarea · rapidez · racha) */
.sim-velo .sim-desglose { margin: -.2rem 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--tinta-2); }

/* ---------- escenas de entrada y salida (simulacro-escenas.js, 12-nov) ----------
   Verde de seguridad, blanco y azul noche: la idea de presentar al equipo viene
   del Comité Kombat, pero sin sus colores ni sus golpes. */
.simp { position: fixed; inset: 0; z-index: 200; background: #0e1a33; display: grid; place-items: center; overflow: hidden; touch-action: manipulation; }
.simp.solo-franja { background: transparent; pointer-events: none; }
.simp-escena { position: relative; width: min(100vw, 520px); height: 100%; overflow: hidden; font-family: var(--burbuja); color: #fff; }
.simp-fondo { position: absolute; inset: -12px; background: var(--fondo) 42% 20% / auto 190% no-repeat; filter: blur(3px) brightness(.38) saturate(.7); }
.simp-sombra { position: absolute; inset: 0; background: linear-gradient(180deg, #0e1a33cc, #0e1a3355 45%, #0e1a33ee 82%); }
.simp-tit { position: absolute; left: 0; right: 0; top: max(7%, env(safe-area-inset-top)); z-index: 3; display: grid; justify-items: center; text-align: center; padding: 0 16px; }
.simp-tit small { font-family: var(--cuerpo, system-ui); font-weight: 900; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8ee6a4; }
.simp-tit b { font-size: clamp(26px, 8vw, 36px); font-weight: 800; line-height: 1.05; }
.simp-tit i { display: block; height: 4px; width: 0; margin-top: 6px; border-radius: 2px; background: #2bbf55; }
.simp-pj { position: absolute; z-index: 2; transform: translate(-50%, -100%); transform-origin: 50% 100%; pointer-events: none; transition: filter .5s; }
.simp-pj.apagado { filter: brightness(0) opacity(.75); }
.simp-nombre { position: absolute; z-index: 3; translate: -50% 0; text-align: center; white-space: nowrap; font-family: var(--cuerpo, system-ui); font-weight: 900; font-size: clamp(10px, 2.9vw, 13px); }
.simp-tu { position: absolute; z-index: 3; translate: -50% 0; background: #2bbf55; padding: 1px 9px; border-radius: 99px; font-family: var(--cuerpo, system-ui); font-weight: 900; font-size: 12px; }
.simp-foco { position: absolute; z-index: 1; translate: -50% 0; pointer-events: none; background: linear-gradient(180deg, #fff6c400, #fff6c455 70%, #fff6c488); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.simp-foco-piso { position: absolute; z-index: 1; height: 26px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(ellipse, #fff6c4aa, #fff6c400 70%); pointer-events: none; }
.simp-aviso { position: absolute; left: 0; right: 0; margin-inline: auto; width: min(620px, calc(100% - 32px)); box-sizing: border-box; bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 4; background: #fff; color: #13203d; border-radius: 14px; border-left: 7px solid #2bbf55; padding: 10px 14px; text-align: center; font-family: var(--cuerpo, system-ui); font-weight: 800; font-size: 14px; line-height: 1.35; box-shadow: 0 8px 20px #0007; }
.simp-aviso b { display: block; font-family: var(--burbuja); font-size: 20px; color: #1e8a3c; }
/* en el computador la presentación usa más ancho, igual que la partida */
@media (min-width: 1100px) and (min-height: 700px) { .simp-escena { width: min(100vw, 1100px); } }
.simp-franja { position: absolute; inset: 0; z-index: 10; background-color: #1e8a3c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M20 14l18 18-18 18' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.simx { position: absolute; inset: 0; z-index: 30; overflow: hidden; font-family: var(--burbuja); color: #fff; }
.simx-hoja { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; background: linear-gradient(180deg, #2e9a46, #1e7a34); border: 3px solid #0d4a1c; }
.simx.mal .simx-hoja { background: linear-gradient(180deg, #c23b33, #8f2620); border-color: #5a1410; }
.simx-hoja.izq { left: 0; border-right-width: 2px; } .simx-hoja.der { right: 0; border-left-width: 2px; }
.simx-hoja::before { content: ''; position: absolute; top: 58%; height: 16px; width: 70%; background: linear-gradient(180deg, #e6e9ef, #9aa3b5); border-radius: 8px; box-shadow: 0 3px 0 #0005; }
.simx-hoja.izq::before { right: 10%; } .simx-hoja.der::before { left: 10%; }
.simx-hoja::after { content: ''; position: absolute; top: 14%; height: 30%; left: 18%; right: 18%; border: 3px solid #0006; border-radius: 6px; background: #ffffff14; }
.simx-letrero { position: absolute; left: 50%; top: 14px; z-index: 6; translate: -50% 0; padding: 3px 14px; border-radius: 6px; font-size: 20px; font-weight: 800; letter-spacing: .06em; background: #0c3a12; color: #4b6b4e; border: 2px solid #0a2a0d; transition: all .2s; }
.simx-letrero.on { background: #19b23a; color: #fff; box-shadow: 0 0 22px #19b23a; }
.simx.mal .simx-letrero.on { background: #e8483f; box-shadow: 0 0 22px #e8483f; }
.simx-reloj { position: absolute; left: 50%; top: 30%; z-index: 7; translate: 0 0; transform: translateX(-50%); background: #0b1020; border: 4px solid #fff; border-radius: 14px; padding: 2px 18px 0; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: clamp(40px, 13vw, 58px); color: #9cff7a; text-shadow: 0 0 14px #58c838; white-space: nowrap; }
.simx.mal .simx-reloj { color: #ff8a80; text-shadow: 0 0 14px #e8483f; }
.simx-reloj small { position: absolute; left: 0; right: 0; top: -24px; text-align: center; font-family: var(--cuerpo, system-ui); font-size: 11px; font-weight: 900; color: #fff; letter-spacing: .1em; text-shadow: 0 2px 0 #0008; }
.simx-baliza { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: conic-gradient(from 0deg at 50% 0%, #e8483f00 0 40%, #e8483f66 46% 54%, #e8483f00 60%); animation: simx-gira 1s linear infinite; mix-blend-mode: screen; }
@keyframes simx-gira { to { transform: rotate(360deg); } }
.simx-fuera { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #7fc3ef 0 55%, #a9d98a 55% 57%, #6fb84f 57% 100%); }
.simx-fuera.ilustrado { background: #c9e7f7; }
.simx-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.simx-edificio { position: absolute; left: -2%; top: 12%; width: 30%; height: 45%; background: #24325a; border: 4px solid #182241; border-radius: 6px 6px 0 0; }
.simx-edificio::before { content: ''; position: absolute; inset: 10% 12% 30%; background: repeating-linear-gradient(90deg, #ffe9a3 0 16px, transparent 16px 26px), repeating-linear-gradient(180deg, transparent 0 10px, #24325a 10px 26px); opacity: .85; }
.simx-puerta { position: absolute; left: 7%; top: calc(57% - 12%); width: 11%; height: 12%; background: #0f162b; border-radius: 4px 4px 0 0; box-shadow: inset 0 0 0 3px #2e9a46; }
.simx-vereda { position: absolute; left: 0; right: 0; top: 57%; height: 4%; background: #d9d2c3; border-top: 3px solid #b8af9c; }
.simx-zona { position: absolute; right: 4%; top: 22%; display: grid; justify-items: center; }
.simx-zona .placa { width: 92px; background: #2e8a1c; border: 3px solid #fff; border-radius: 6px; padding: 5px 4px 4px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 4px 10px #0004; }
.simx-zona svg { width: 60px; height: 60px; }
.simx-zona span { font-family: var(--cuerpo, system-ui); font-weight: 900; font-size: 9px; line-height: 1.1; text-align: center; }
.simx-zona .poste { width: 6px; height: 90px; background: #6b7280; }
.simx-tablero { position: absolute; left: 50%; top: 12px; z-index: 6; translate: -50% 0; background: #131c2ee6; border: 2px solid #58c838; border-radius: 99px; padding: 3px 16px; font-size: 18px; font-weight: 800; white-space: nowrap; }
.simx-tablero i { font-style: normal; color: #9cff7a; }
.simx-visto { position: absolute; z-index: 3; transform: translateX(-50%); font-family: var(--cuerpo, system-ui); font-weight: 900; font-size: 10px; background: #fff; color: #2e8a1c; padding: 1px 6px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 0 #0003; }
.simx-hueco { position: absolute; z-index: 2; translate: -50% -100%; border: 3px dashed #fff; border-radius: 26px 26px 8px 8px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: #ffffff22; }
.simx-banda { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 7; text-align: center; display: grid; gap: 2px; padding: 10px 14px; background: linear-gradient(90deg, transparent, #1d5c10f0 12% 88%, transparent); }
.simx.mal .simx-banda { background: linear-gradient(90deg, transparent, #6a1510f0 12% 88%, transparent); }
.simx-banda b { font-size: clamp(26px, 8vw, 34px); font-weight: 800; font-style: italic; line-height: 1; }
.simx-banda span { font-family: var(--cuerpo, system-ui); font-weight: 800; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .simx-baliza { animation: none; } }

/* ---------- primeros auxilios (12-nov): herida en la mano y quemadura ----------
   Escena cuadrada con capas del mismo tamaño (base y superposiciones del encargo
   19). Las piezas que aún no llegan se ven como figuras provisorias (.prov). */
.sim-escena.pa2 { width: min(100%, 40svh, 380px); aspect-ratio: 1; border-radius: 18px; background: radial-gradient(circle at 50% 45%, #fdf3e6, #e9d8c4 75%); box-shadow: inset 0 0 0 3px #00000014; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.sim-escena.pa2 .pz { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sim-escena.pa2 .prov { display: grid; place-items: center; font-size: clamp(40px, 18vw, 150px); line-height: 1; }
.sim-escena.pa2 .prov.base-pa { font-size: clamp(90px, 38vw, 260px); }
.sim-escena.pa2 .prov.sangre { inset: auto; left: 46%; top: 44%; width: 22%; height: 22%; font-size: clamp(26px, 9vw, 64px); }
.sim-escena.pa2 .prov.espuma { inset: auto; left: 30%; top: 30%; width: 44%; height: 40%; font-size: clamp(40px, 15vw, 110px); }
.sim-escena.pa2 .prov.gasa-puesta, .sim-escena.pa2 .prov.aposito { inset: auto; left: 38%; top: 38%; width: 28%; height: 28%; font-size: clamp(40px, 14vw, 100px); }
.sim-escena.pa2 .prov.quemadura { inset: auto; left: 36%; top: 36%; width: 30%; height: 30%; font-size: clamp(34px, 13vw, 96px); opacity: .55; }
.sim-escena.pa2 .prov.ampollas { inset: auto; left: 44%; top: 44%; width: 14%; height: 14%; font-size: clamp(14px, 4vw, 30px); }
.sim-escena.pa2 .mano-grupo { transform-origin: 0 100%; transform: translateX(8%) scale(.84); }
.sim-escena.pa2 .mano-grupo.completa { transform: none; }
.sim-escena.pa2 .agua-puesta { transition: opacity .2s; }
.sim-escena.pa2 .llave-tubo { clip-path: inset(3% 0 92% 0); transform-origin: 50% 8%; transform: scaleY(8); }
.sim-escena.pa2 img.pz { object-fit: fill; }
.sim-escena.pa2 .zona-pa { pointer-events: auto; cursor: pointer; border: 0; padding: 0; background: transparent; border-radius: 50%; }
.sim-escena.pa2 .zona-pa:disabled { cursor: default; }
.sim-escena.pa2 .zona-pa:focus-visible { outline: 3px solid var(--naranja); }
.sim-escena.pa2 .z-reloj { inset: auto; left: 24%; top: 57%; width: 27%; height: 24%; }
.sim-escena.pa2 .z-anillo { inset: auto; left: 64%; top: 30%; width: 17%; height: 16%; }
.sim-escena.pa2 .reloj { inset: auto; left: 26%; top: 57.5%; width: 26%; height: auto; aspect-ratio: 302 / 320; rotate: 40deg; }
.sim-escena.pa2 .anillo { inset: auto; left: 65.5%; top: 28.5%; width: 7%; height: auto; aspect-ratio: 128 / 112; }
.sim-escena.pa2 .prov.reloj, .sim-escena.pa2 .prov.anillo { font-size: clamp(24px, 8vw, 56px); height: 22%; }
.sim-escena.pa2 .llave { inset: auto; left: 30.5%; top: -1%; width: 28%; height: auto; aspect-ratio: 262 / 320; }
.sim-escena.pa2 .chorro { inset: auto; left: 50.75%; top: -2%; width: 9%; height: 68%; transition: opacity .15s; }
.sim-escena.pa2 .prov.llave, .sim-escena.pa2 .prov.chorro { font-size: clamp(30px, 10vw, 72px); }
.sim-escena.herida2.presiona { box-shadow: inset 0 0 0 4px #e8483f66; }
.sim-escena.herida2.presiona .base-pa { transform: scale(.98); }
.sim-escena.herida2.apunta { cursor: crosshair; box-shadow: inset 0 0 0 4px #58c83888; }
.sim-escena.quema2.mojando { box-shadow: inset 0 0 0 4px #4fb6ff88; }
.sim-medidor.frio i { background: linear-gradient(90deg, #4fb6ff, #9ee0ff); }
.pa-guia { margin: 0; text-align: center; font-weight: 800; font-size: 17px; color: var(--tinta); }
/* la mano de ayuda (ayudaGesto): la punta del dedo queda en el punto (0, 0) */
.manito { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform, opacity; }
.manito-dedo { position: absolute; left: -26px; top: -8px; font-size: 56px; line-height: 1; filter: drop-shadow(0 4px 6px #0008); }
.manito-onda { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #0004, inset 0 0 0 3px #0003; opacity: 0; }
/* el mensaje del paso (ayudaGesto con msg): reemplaza la bajada y la guía */
.sim-panel.con-globo > .sim-instr, .sim-panel.con-globo .pa-guia { display: none; }
.sim-globo { position: relative; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: 100%; padding: 11px 16px; border-radius: 16px; background: #FFD43B; color: #1a1f3a;
  font-weight: 800; font-size: 18px; line-height: 1.2; text-align: left; box-shadow: 0 6px 16px #0006; }
.sim-globo .g-ico { font-size: 28px; line-height: 1; flex: none; }
.sim-globo .g-cola { position: absolute; top: 100%; width: 0; height: 0; margin-left: -11px; border: 11px solid transparent; border-top-color: #FFD43B; border-bottom: 0; }
.sim-globo.g-b { border-radius: 12px; background: linear-gradient(#ffe26b, #FFD43B); }
.sim-globo.g-b .g-cola { display: none; }
@media (max-width: 480px) {
  .sim-globo { font-size: 16px; padding: 9px 12px; gap: 8px; border-radius: 14px; }
  .sim-globo .g-ico { font-size: 24px; }
}
.pa-bandeja.sim-late { border-radius: 18px; }
.sim-late { animation: sim-late 1.4s ease-in-out infinite; }
@keyframes sim-late { 0%, 100% { box-shadow: 0 0 0 0 #ffd43b00; } 50% { box-shadow: 0 0 0 5px #ffd43bcc, 0 0 22px 4px #ffd43b66; } }
.pa-agua { justify-self: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.pa-bandeja { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pa-cosa { display: grid; justify-items: center; gap: 2px; width: 84px; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--borde-claro, #2c3a5a); background: var(--tarjeta-2, #1b2a40); color: var(--tinta); font: inherit; font-weight: 800; font-size: 12px; cursor: pointer; }
.pa-cosa img { height: 44px; width: auto; object-fit: contain; pointer-events: none; }
.pa-cosa .prov-ico { font-size: 32px; line-height: 44px; }
.pa-cosa.elegido { border-color: var(--verde); box-shadow: 0 0 0 3px #58c83855; }
.pa-cosa.usado { opacity: .45; }
.pa-cosa:disabled { cursor: default; }
