@font-face { font-family: 'Anton'; src: url('fonts/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Mont'; src: url('fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --amarillo: #ffd23f; --rojo: #e5533d; --tinta: #141414; --cielo1: #4fb2ff; --cielo2: #e6f6ff; --papel: #fffaf0; --verde: #2e9b3d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Mont', system-ui, sans-serif; color: var(--tinta); background: var(--papel); line-height: 1.5; font-size: 17px; }
a { color: #b5361f; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 40px; line-height: 1.05; margin: 0 0 16px; letter-spacing: .5px; }

.cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: var(--tinta); }
.logo { font-family: 'Anton', Impact, sans-serif; font-size: 30px; text-decoration: none; letter-spacing: 1px; line-height: 1; }
.logo .l1 { color: var(--amarillo); } .logo .l2 { color: #ff6a55; }
.estado { margin: 0; background: var(--amarillo); color: var(--tinta); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }

.mapa-seccion { position: relative; background: linear-gradient(180deg, var(--cielo1), var(--cielo2)); padding: 12px 12px 10px; }
.buscador { position: relative; max-width: 560px; margin: 0 auto 10px; z-index: 5; }
.buscador input { width: 100%; font: 700 19px 'Mont', sans-serif; padding: 14px 18px; border: 4px solid var(--tinta); border-radius: 16px; box-shadow: 0 5px 0 var(--tinta); background: #fff; color: var(--tinta); }
.buscador input:focus { outline: 4px solid var(--amarillo); outline-offset: 2px; }
.sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 3px solid var(--tinta); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.sugerencias button { width: 100%; text-align: left; font: 700 17px 'Mont', sans-serif; padding: 12px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--tinta); }
.sugerencias button:hover, .sugerencias button:focus { background: #fff3c4; }
.sugerencias .nada { padding: 12px; color: #555; }
.mapa-caja { position: relative; height: min(68vh, 720px); min-height: 380px; max-width: 1200px; margin: 0 auto; border-radius: 18px; overflow: hidden; }
#mapa { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.sin3d-aviso { display: none; }
.sin-3d #mapa { display: none; } .sin-3d .sin3d-aviso { display: block; padding: 40px 20px; text-align: center; font-weight: 700; }
.ver-todo { position: absolute; top: 10px; right: 10px; font: 800 14px 'Mont', sans-serif; padding: 10px 14px; border: 3px solid var(--tinta); border-radius: 999px; background: #fff; color: var(--tinta); cursor: pointer; min-height: 44px; }
.mapa-pie { text-align: center; margin: 10px auto 0; font-size: 14px; max-width: 640px; }

.ficha { position: absolute; left: 10px; right: 10px; bottom: 10px; max-width: 420px; background: #fff; border: 4px solid var(--tinta); border-radius: 20px; box-shadow: 0 8px 0 var(--tinta); padding: 14px 16px 16px; }
.ficha .cerrar { position: absolute; top: 4px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; cursor: pointer; color: var(--tinta); }
.ficha-nombre { font-family: 'Anton', Impact, sans-serif; font-size: 38px; line-height: 1; margin: 0 40px 6px 0; }
.ficha-dato { margin: 2px 0; font-size: 15px; }
.ficha-estado { display: inline-block; margin: 8px 0 10px; font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.ficha-estado.bien { background: #dff5e3; color: #1d6b2a; } .ficha-estado.mal { background: #eee; color: #444; }
.ficha-epitafio { font-style: italic; margin: 0 0 10px; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font: 800 17px 'Mont', sans-serif; padding: 12px 22px; border: 4px solid var(--tinta); border-radius: 16px; background: var(--tinta); color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #000; }
.boton-amarillo { background: var(--amarillo); color: var(--tinta); }
.boton-grande { width: 100%; max-width: 520px; font-size: 19px; background: var(--rojo); }
.boton:disabled { background: #bbb; color: #333; cursor: not-allowed; box-shadow: none; }
.enlace { border: 0; background: none; color: #b5361f; text-decoration: underline; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; }

.bloque { max-width: 860px; margin: 0 auto; padding: 40px 18px 10px; }
.pasos { padding-left: 22px; margin: 0 0 16px; } .pasos li { margin-bottom: 10px; }
.reglas p { background: #fff; border: 3px solid var(--tinta); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; }

.buscador-tienda { margin: 0 0 14px; max-width: none; }
.buscador-tienda label { display: block; font-weight: 800; margin-bottom: 6px; }
.tienda-cuerpo { display: grid; gap: 16px; }
.previa { margin: 0; background: linear-gradient(180deg, var(--cielo1), var(--cielo2)); border: 4px solid var(--tinta); border-radius: 20px; overflow: hidden; position: relative; }
#miniatura { display: block; width: 100%; height: 250px; }
.previa figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-weight: 800; font-size: 15px; text-shadow: 0 1px 0 #fff, 0 0 8px #fff; padding: 0 10px; }
.productos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.producto { position: relative; text-align: left; font: inherit; color: var(--tinta); background: #fff; border: 4px solid var(--tinta); border-radius: 16px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 0 var(--tinta); min-height: 44px; }
.producto .precio { font-family: 'Anton', Impact, sans-serif; font-size: 26px; line-height: 1; color: var(--rojo); }
.producto .titulo { font-weight: 800; font-size: 15px; line-height: 1.25; }
.producto-txt { margin: 0 0 12px; font-size: 15px; background: #fff3c4; border-radius: 12px; padding: 10px 12px; }
.producto.activo { background: #fff3c4; outline: 4px solid var(--amarillo); outline-offset: 3px; }
.producto:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.tuneos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .tuneos .ayuda { width: 100%; margin: 0; }
.chip { font: 700 15px 'Mont', sans-serif; padding: 10px 14px; min-height: 44px; border: 3px solid var(--tinta); border-radius: 999px; background: #fff; color: var(--tinta); cursor: pointer; }
.chip.activo { background: var(--tinta); color: #fff; }
.ayuda { font-size: 15px; color: #333; }
.letra { font-size: 13px; color: #555; }

.top { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.top button { width: 100%; display: flex; align-items: center; gap: 12px; font: inherit; color: var(--tinta); background: #fff; border: 3px solid var(--tinta); border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: left; min-height: 48px; }
.top .pos { font-family: 'Anton', Impact, sans-serif; font-size: 24px; width: 28px; color: var(--rojo); }
.top .nom { font-weight: 800; flex: 1; } .top .vez { font-size: 14px; color: #555; }

details { background: #fff; border: 3px solid var(--tinta); border-radius: 14px; padding: 0 14px; margin-bottom: 10px; }
summary { font-weight: 800; cursor: pointer; padding: 14px 0; min-height: 44px; }
details p { margin: 0 0 14px; }

.pie { margin-top: 40px; background: var(--tinta); color: #eee; padding: 24px 18px; text-align: center; font-size: 15px; }
.pie a { color: var(--amarillo); } .pie .letra { color: #bbb; }

.legal { max-width: 760px; margin: 0 auto; padding: 30px 18px 40px; }
.legal h1 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 40px; margin: 0 0 16px; }
.legal h2 { font-size: 26px; margin-top: 28px; }

@media (min-width: 800px) {
  .tienda-cuerpo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .previa { position: sticky; top: 16px; } #miniatura { height: 380px; }
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cabecera { padding: 14px 28px; } .logo { font-size: 36px; }
  h2 { font-size: 48px; }
  .ficha { left: 16px; bottom: 16px; }
}
