/* Bier Karten · carta pública. Una columna de celular (máx. 480 px).
   Arriba la vidriera (Gabinete de Mefisto), después la carta por familias, al final las cervezas que el bar no tiene.
   Noche por defecto; el modo lo elige el botón sol/luna, no el tema del celular. */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Grenze Gotisch'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/grenze-gotisch-latin-700-normal.woff2') format('woff2'); }

:root {
  /* NOCHE (por defecto) */
  --fondo: #120E0B;
  --banda-txt: #EDE4D3;
  --banda-txt-2: #A89A88;
  --carta: #1E1713;
  --carta-borde: #6B5A44;
  --filete: #3D3229;
  --texto: #EDE4D3;
  --texto-2: #B8AA96;
  --acento: #E3B25A;
  --sobre-acento: #1E1713;
  --foto-a: #A8957A;
  --foto-b: #6E5E4C;
  --foto-bar-a: #9A9690;
  --foto-bar-b: #66625C;
  --punteado: #D8CBB6;
  --rayado: rgba(237, 228, 211, 0.05);
  --pill-bg: #EDE4D3;
  --pill-txt: #1E1713;
  --chip: #33291F;
  --ficha: #241C17;
  --caja: #2C231C;
  --propia-bg: #EDE4D3;
  --propia-txt: #1E1713;
  --propia-txt-2: #5C5148;
  --otras-bg: #2B221B;
  --otras-borde: #6B5A44;
  --boton-bg: #EDE4D3;
  --boton-txt: #1E1713;
  --cerrar-bg: #33291F;
  --logo: #8E1B1B;
  --oro: #E3B25A;
  color-scheme: dark;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-gotica: 'Grenze Gotisch', 'Old English Text MT', Georgia, serif;
}
:root[data-modo="dia"] {
  --fondo: #17120F;
  --banda-txt: #F3ECDF;
  --banda-txt-2: #B5A898;
  --carta: #F3ECDF;
  --carta-borde: #CDB89C;
  --filete: #CDB89C;
  --texto: #1C1714;
  --texto-2: #5C5148;
  --acento: #8E1B1B;
  --sobre-acento: #FFFFFF;
  --foto-a: #EADFCB;
  --foto-b: #EADFCB;
  --foto-bar-a: #DCD6CC;
  --foto-bar-b: #DCD6CC;
  --punteado: #8C7F72;
  --rayado: rgba(140, 127, 114, 0.07);
  --pill-bg: #1C1714;
  --pill-txt: #F3ECDF;
  --chip: #EADFCB;
  --ficha: #F3ECDF;
  --caja: #EADFCB;
  --propia-bg: #1C1714;
  --propia-txt: #F3ECDF;
  --propia-txt-2: #B5A898;
  --otras-bg: #17120F;
  --otras-borde: #17120F;
  --boton-bg: #F3ECDF;
  --boton-txt: #1C1714;
  --cerrar-bg: #EADFCB;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); }
body { color: var(--texto); font-family: var(--f-body); font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--fondo); }
[hidden] { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }
.app { max-width: 480px; margin: 0 auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 8px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--boton-bg); color: var(--boton-txt); font-weight: 700; text-decoration: none; }
.saltar:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* Banda del bar */
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; color: var(--banda-txt); }
.bar-logo { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--logo); display: grid; place-items: center; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: #FFFFFF; }
.bar-logo:empty { display: none; }
.bar-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bar-logo.con-foto { background: #FFFFFF; }
.bar-nombre { flex-grow: 1; min-width: 0; font-family: var(--f-display); font-size: 18px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.modo { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1.5px solid var(--banda-txt-2); background: transparent; color: var(--banda-txt); display: grid; place-items: center; cursor: pointer; }
.idioma { display: flex; flex-shrink: 0; border: 1.5px solid var(--banda-txt-2); border-radius: 999px; overflow: hidden; }
.idioma button { width: 46px; height: 44px; border: 0; margin: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; opacity: 0.55; }
.idioma button[aria-pressed="true"] { background: var(--banda-txt); opacity: 1; }
.idioma .bandera { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }

/* Estados (portada, carta inexistente, bar inactivo, sin conexión) */
.estado { padding: 12vh 24px 48px; text-align: center; color: var(--banda-txt); }
.estado-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gotica-grande { margin: 0; font-family: var(--f-gotica); font-weight: 700; font-size: 56px; line-height: 1; color: var(--oro); }
.estado-by { margin: -2px 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.28em; color: var(--banda-txt-2); }
.estado-t { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.estado-s { margin: 0; font-size: 16px; line-height: 1.45; color: var(--banda-txt-2); max-width: 34ch; }
.estado-s:empty { display: none; }
.boton { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--boton-bg); color: var(--boton-txt); font: 700 16px var(--f-body); text-decoration: none; cursor: pointer; }
.boton-2 { margin-top: 0; background: transparent; color: var(--banda-txt); border: 1.5px solid var(--banda-txt-2); }

/* Vidriera: el Gabinete de Mefisto. Foto del mueble (con transparencia, 941 x 1520) sobre un fondo que sube por
   detrás del encabezado. El cartel, las botellas, las puertas de vidrio y la placa van encima, ubicados en % de la
   foto. Acá va la estructura; lo decorativo (fondo, halo, color de la luz, madera de las puertas, adornos) lo pone
   cada tema en assets/temas/<tema>/tema.css, que también puede corregir posiciones si su foto lo necesita.
   El mueble ocupa hasta el 89% del ancho y se achica lo justo para que entren en la primera pantalla el encabezado, el mueble y el texto de abajo (la barra de familias queda apenas abajo).
   Cerrada: adentro a oscuras. Al abrir: las luces se prenden con un parpadeo corto. */
.vidriera { position: relative; padding-top: 10px; overflow-x: clip; }
.escena-fondo { position: absolute; left: 0; right: 0; top: -170px; bottom: 0; pointer-events: none; background: linear-gradient(180deg, #1A1410, #0E0B09); }
.escena-deco { position: absolute; left: 0; right: 0; top: -170px; bottom: 0; pointer-events: none; }
.escena-fondo::before, .escena-fondo::after { content: ""; position: absolute; inset: 0; }
.escena-fondo::before { opacity: 0.5; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.escena-fondo::after {
  background:
    linear-gradient(180deg, rgba(11, 9, 7, 0) calc(100% - 130px), var(--fondo) calc(100% - 2px)),
    linear-gradient(180deg, rgba(11, 9, 7, 0.95) 0, rgba(11, 9, 7, 0.75) 110px, rgba(11, 9, 7, 0.15) 200px, rgba(11, 9, 7, 0) 240px),
    radial-gradient(ellipse 80% 58% at 50% 56%, rgba(11, 9, 7, 0) 50%, rgba(11, 9, 7, 0.9) 100%);
}
.gab {
  position: relative; z-index: 1; margin: 0 auto;
  width: min(89vw, 428px, calc((100vh - 128px) * 0.619));
  width: min(89vw, 428px, calc((100svh - 128px) * 0.619));
  min-width: 240px;
  aspect-ratio: 941 / 1520;
  container-type: size;
}
.gab-mueble { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gab-halo { position: absolute; left: -40%; right: -40%; top: -12%; bottom: -6%; pointer-events: none; }
.gab-piso { position: absolute; left: -40%; right: -40%; top: 96.4%; height: 9%; pointer-events: none; background: radial-gradient(ellipse 27% 22% at 50% 20%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 75%); }
.gab-deco { position: absolute; inset: 0; pointer-events: none; }
.cartel { position: absolute; left: 15%; width: 70%; top: 11.6%; height: 10.4%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cartel-t { font: 700 13cqw/1 var(--f-gotica); background: linear-gradient(180deg, #FBE7A1 0%, #E3B25A 48%, #9A7428 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0.3cqw 0.2cqw rgba(0, 0, 0, 0.7)); }
.cartel-by { margin-top: 1.4cqw; color: #E8CF95; font: 700 2.9cqw/1 var(--f-body); letter-spacing: 0.32em; display: flex; align-items: center; gap: 2cqw; }
.cartel-by::before, .cartel-by::after { content: ""; width: 7cqw; height: 1px; background: #B8913E; }
.estantes { position: absolute; inset: 0; pointer-events: none; }
/* Cada estante tiene lugar para 7; las botellas van juntas al centro, como en una vidriera de verdad */
.estante { position: absolute; left: 15.73%; width: 68.54%; display: flex; justify-content: center; align-items: stretch; pointer-events: auto; }
.e1 { top: 27.6%; height: 20.3%; }  /* apoya en y 723 de la foto */
.e2 { top: 47.6%; height: 20.5%; }  /* apoya en y 1030 */
.e3 { top: 67.9%; height: 20.6%; }  /* apoya en y 1340 */
.botella { flex: 0 0 14.28%; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; margin: 0; border: 0; background: transparent; line-height: 0; cursor: pointer; border-radius: 6px; }
.botella svg { display: block; width: auto; max-width: 100%; filter: drop-shadow(0 -0.3cqh 0.8cqh rgba(0, 0, 0, 0.5)); }
.botella:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.botella:active svg { transform: translateY(-2px); }
.v-belga svg, .v-lambica svg { height: 11.6cqh; }
.v-champ svg { height: 14.6cqh; }
.v-alta svg { height: 13.2cqh; }
.v-chica svg { height: 10.2cqh; }
.v-lata473 svg { height: 8.6cqh; }
.v-lata500 svg { height: 9.2cqh; }
.v-lata330 svg { height: 7.4cqh; }
.luz-gab { position: absolute; left: 15.73%; width: 68.54%; top: 25.3%; height: 66.2%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 60% 14% at 50% 5.5%, #FFC870, rgba(255, 200, 112, 0) 70%), radial-gradient(ellipse 60% 14% at 50% 37.5%, #FFC870, rgba(255, 200, 112, 0) 70%), radial-gradient(ellipse 60% 14% at 50% 69.4%, #FFC870, rgba(255, 200, 112, 0) 70%); }
.velo-gab { position: absolute; left: 12.8%; width: 74.4%; top: 25.3%; height: 66.2%; pointer-events: none; opacity: 0.9; background: radial-gradient(ellipse 70% 40% at 50% 0%, #0D0805, #030201 70%); }
.puertas { position: absolute; left: 12.6%; width: 74.6%; top: 25.3%; height: 66.2%; perspective: 1600px; pointer-events: none; }
.puerta {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: linear-gradient(104deg, rgba(225, 238, 242, 0.07) 0%, rgba(225, 238, 242, 0.02) 28%, rgba(255, 255, 255, 0.16) 44%, rgba(255, 255, 255, 0.03) 52%, rgba(225, 238, 242, 0.02) 70%, rgba(225, 238, 242, 0.09) 100%);
  box-shadow: inset 0 0 0 2.6cqw #2A170C, inset 0 0 0 2.95cqw #C9A24E, inset 0 0 0 3.3cqw rgba(0, 0, 0, 0.35), 0 0 2.4cqw rgba(0, 0, 0, 0.55);
}
.puerta::before {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7);
  background: linear-gradient(#3B2416, #3B2416) top / 100% 2.6cqw no-repeat, linear-gradient(#3B2416, #3B2416) bottom / 100% 2.6cqw no-repeat,
              linear-gradient(#3B2416, #3B2416) left / 2.6cqw 100% no-repeat, linear-gradient(#3B2416, #3B2416) right / 2.6cqw 100% no-repeat;
}
.puerta::after { content: ""; position: absolute; top: 50%; width: 2.4cqw; height: 2.4cqw; margin-top: -1.2cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FBE7A1, #C9A24E 45%, #6E4E18); box-shadow: 0 0.3cqw 0.6cqw rgba(0, 0, 0, 0.6); }
.puerta-izq { left: 0; transform-origin: left center; }
.puerta-izq::after { right: 1.2cqw; }
.puerta-der { left: 50%; transform-origin: right center; }
.puerta-der::after { left: 1.2cqw; }
.gab.abierta .velo-gab { opacity: 0; }
.gab.abierta .puerta-izq { transform: rotateY(-100deg); }
.gab.abierta .puerta-der { transform: rotateY(100deg); }
.gab.cargando .estantes { visibility: hidden; }
.vidriera.preparando .escena-fondo, .vidriera.preparando .escena-deco, .vidriera.preparando .gab { opacity: 0; }
.placa {
  position: absolute; z-index: 2; left: 17%; width: 66%; top: 91.3%; height: 6.4%; padding: 0 3.6cqw; margin: 0;
  border: 1px solid #5E4214; border-radius: 1cqw; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; gap: 3cqw; color: #2A1A0E; text-align: left; font-family: var(--f-body);
  background: linear-gradient(180deg, #F6DE9A 0%, #D9B260 38%, #B58A36 62%, #8A6522 100%);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.75), inset 0 -1px 0 rgba(60, 36, 8, 0.5), 0 0.5cqw 0 #3B260C, 0 1.4cqw 2.6cqw rgba(0, 0, 0, 0.75);
}
.placa::before { content: ""; position: absolute; inset: 0.9cqw; border: 1px solid rgba(70, 44, 10, 0.45); border-radius: 0.6cqw; pointer-events: none; }
.placa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 250, 230, 0) 30%, rgba(255, 250, 230, 0.7) 50%, rgba(255, 250, 230, 0) 70%); transform: translateX(-120%); pointer-events: none; }
.placa-n { font: 700 7.6cqw/1 var(--f-display); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.65); }
.placa-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1cqw; border-left: 1px solid rgba(70, 44, 10, 0.45); padding-left: 3cqw; }
.placa-t { font: 700 4.1cqw/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6); }
.placa-s { font: 600 3.1cqw/1 var(--f-body); white-space: nowrap; color: #4A3010; }
.placa-fl { font: 700 6cqw/1 var(--f-body); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6); }
.placa:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vid-pie { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; max-width: 480px; margin: 0 auto; }
.vid-pie p { margin: 0; flex-grow: 1; min-width: 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: #CDBFA9; }
/* Botón para bajar a la carta: rojo Mefisto con filete dorado y un halo que «respira», el único rojo de la
   primera pantalla para que el ojo vaya ahí (en la escena todo es dorado y madera) */
.ver-carta {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 22px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #D4313B, #A81E27 60%, #8E1B1B); color: #FFF4E0; font: 700 16px var(--f-body); white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 200, 190, 0.5), 0 0 0 1.5px #E3B25A, 0 0 0 7px rgba(212, 49, 59, 0.28), 0 0 26px 6px rgba(212, 49, 59, 0.45);
}
.ver-carta:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.ver-carta:active { transform: translateY(1px); }
@media (max-width: 359px) {
  .vid-pie { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .vid-pie p { font-size: 12.5px; }
  .ver-carta { padding: 0 14px 0 16px; font-size: 15px; }
}
.repetir { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1.5px solid var(--oro); background: transparent; color: var(--oro); display: grid; place-items: center; cursor: pointer; }
@keyframes bk-prender { 0% { opacity: 0.9; } 10% { opacity: 0.28; } 17% { opacity: 0.82; } 27% { opacity: 0.12; } 36% { opacity: 0.5; } 52%, 100% { opacity: 0; } }
@keyframes bk-destello { 0%, 45% { opacity: 0; } 62% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes bk-apagar { 0%, 80% { opacity: 0; } 100% { opacity: 0.9; } }
@keyframes bk-respira {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 200, 190, 0.5), 0 0 0 1.5px #E3B25A, 0 0 0 4px rgba(212, 49, 59, 0.16), 0 0 14px 2px rgba(212, 49, 59, 0.28); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 200, 190, 0.5), 0 0 0 1.5px #E3B25A, 0 0 0 9px rgba(212, 49, 59, 0.3), 0 0 32px 9px rgba(212, 49, 59, 0.55); }
}
@keyframes bk-brillo { 0%, 82% { transform: translateX(-120%); } 96%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: no-preference) {
  .escena-fondo, .escena-deco, .gab { transition: opacity 0.5s ease; }
  .gab.anima .puerta { transition: transform 1.7s cubic-bezier(.2, .7, .2, 1); }
  .gab.anima.abierta .velo-gab { animation: bk-prender 1s linear 0.12s both; }
  .gab.anima.abierta .luz-gab { animation: bk-destello 1.6s ease-out 0.12s both; }
  .gab.cerrando .velo-gab { animation: bk-apagar 1.5s linear both; }
  .gab.abierta .placa::after { animation: bk-brillo 7s ease-in-out 1.6s infinite; }
  .ver-carta { animation: bk-respira 2.8s ease-in-out 2.5s infinite; }
}

/* Barra de familias fija */
.familias { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--fondo); }
.familias-in { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.familias-in::-webkit-scrollbar { display: none; }
.chip-fam { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--carta-borde); background: transparent; color: var(--banda-txt); font: 600 14px var(--f-body); white-space: nowrap; cursor: pointer; }
.chip-fam[aria-current="true"] { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); font-weight: 700; }

/* Carta */
.carta { margin: 0 8px; padding: 6px; border-radius: 18px; background: var(--carta); outline: none; }
.carta-in { position: relative; border: 1px solid var(--carta-borde); border-radius: 13px; padding: 10px 12px 44px; }
.firma { display: flex; align-items: baseline; justify-content: center; gap: 8px; color: var(--acento); }
.firma .gotica { font-family: var(--f-gotica); font-weight: 700; font-size: 24px; line-height: 1; }
.firma .by { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--texto-2); }
.hint, .moneda { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--texto-2); }
.vacia { margin: 22px 4px 8px; text-align: center; font-size: 16px; line-height: 1.45; color: var(--texto-2); }
.esq { position: absolute; bottom: 8px; right: 12px; transform: rotate(180deg); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--acento); }
.esq span { font-family: var(--f-gotica); font-weight: 700; font-size: 24px; line-height: 1; }

.fam { margin-top: 16px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 64px); }
.fam:first-of-type { margin-top: 10px; }
.fam-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 2px; color: var(--acento); }
.fam-h h2 { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.fam-h::after { content: ""; flex-grow: 1; height: 1px; background: var(--carta-borde); }
.fam-h svg { flex-shrink: 0; }

.fila { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; border-bottom: 1px dotted var(--filete); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.fila:last-child { border-bottom: 0; }
.fila:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
.fila.es-propia { background: repeating-linear-gradient(135deg, transparent 0 10px, var(--rayado) 10px 20px); }
.foto { position: relative; flex-shrink: 0; width: 60px; height: 78px; border-radius: 10px; background: radial-gradient(ellipse at 50% 40%, var(--foto-a), var(--foto-b)); display: grid; place-items: center; color: var(--punteado); }
.foto.bar-foto { background: radial-gradient(ellipse at 50% 40%, var(--foto-bar-a), var(--foto-bar-b)); }
.foto.propia { border: 2px dashed var(--punteado); }
.foto svg { display: block; }
.foto img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 9px; }
.foto.con-foto { background: #FFFFFF; }
.flag { position: absolute; top: -5px; left: -6px; line-height: 0; border-radius: 3px; box-shadow: 0 0 0 2px #FFFFFF, 0 1px 4px rgba(0, 0, 0, 0.35); }
.flag .bandera { display: block; border-radius: 3px; }
.fila-txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.fila-n { font-family: var(--f-display); font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--texto); overflow-wrap: anywhere; }
.fila-o .fila-n { font-size: 17px; }
.fila-m { margin-top: 2px; font-size: 14.5px; line-height: 1.3; color: var(--texto-2); }
.ast { color: var(--acento); font-weight: 700; }
.marca { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 23px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid var(--acento); color: var(--acento); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.del-bar { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 23px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-txt); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.precio { flex-shrink: 0; text-align: right; font-size: 17px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--texto); }
.precio-ef { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; text-align: right; color: var(--texto-2); }
.efectivo-aviso { margin: 8px auto 0; width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--carta-borde); text-align: center; font-size: 14px; font-weight: 600; color: var(--texto); }
.ficha .pp.pp-ef { margin-top: 8px; padding-top: 8px; }
.ficha .pp.pp-ef .pp-v { font-size: 20px; }

.nota { margin: 14px 2px 0; font-size: 13.5px; line-height: 1.4; color: var(--texto-2); }
.otras { margin: 18px 2px 0; padding: 14px; border-radius: 12px; background: var(--otras-bg); border: 1px solid var(--otras-borde); color: #F3ECDF; display: flex; flex-direction: column; gap: 10px; }
.otras p { margin: 0; font-size: 15px; line-height: 1.4; }
.otras button { align-self: flex-start; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--boton-bg); color: var(--boton-txt); font: 700 15px var(--f-body); cursor: pointer; }

.pie { padding: 20px 16px 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pie p { margin: 0; }
.pie .legal { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--banda-txt-2); }
.pie .privacidad a { font-size: 12.5px; color: var(--banda-txt-2); }
.pie .marca-pie { font-size: 12px; letter-spacing: 0.12em; color: var(--banda-txt-2); }
.redes { display: flex; justify-content: center; gap: 10px; }
.redes:empty { display: none; }
.redes a { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--banda-txt-2); color: var(--banda-txt); display: grid; place-items: center; }
.redes a:focus-visible, .pie a:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* Ficha: todo en una pantalla, sin bajar. Arriba foto y datos lado a lado; abajo precio y navegación. */
.velo { position: fixed; inset: 0; background: rgba(5, 4, 3, 0.75); z-index: 20; }
.ficha { position: fixed; left: 0; right: 0; bottom: 0; max-height: calc(100vh - env(safe-area-inset-top, 0px) - 6px); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 6px); z-index: 21; max-width: 480px; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: var(--ficha); color: var(--texto); touch-action: pan-y; }
.tirador { flex-shrink: 0; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 3px; background: var(--carta-borde); }
.ficha-in { flex: 0 0 auto; border: 1px solid var(--carta-borde); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.f-propia { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--propia-bg); color: var(--propia-txt); font-size: 13.5px; line-height: 1.3; }
.f-propia svg { flex-shrink: 0; margin-top: 1px; }
.f-propia span { color: var(--propia-txt-2); }
.f-propia b { color: var(--propia-txt); }
.f-cab { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.f-foto { position: relative; flex-shrink: 0; width: clamp(80px, 17vh, 132px); aspect-ratio: 104 / 142; border-radius: 14px; background: radial-gradient(ellipse at 50% 40%, var(--foto-a), var(--foto-b)); display: grid; place-items: center; overflow: hidden; color: var(--punteado); }
.f-foto.bar-foto { background: radial-gradient(ellipse at 50% 40%, var(--foto-bar-a), var(--foto-bar-b)); }
.f-foto.con-foto { background: #FFFFFF; }
.f-foto svg { height: 86%; width: auto; display: block; }
.f-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.f-foto .sello { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 7px; border-radius: 999px; background: rgba(28, 23, 20, 0.8); color: #FFFFFF; font-size: 11px; font-weight: 600; }
.f-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-right: 44px; }
.f-datos h3 { margin: 0; font-family: var(--f-display); font-size: 23px; font-weight: 700; line-height: 1.12; overflow-wrap: anywhere; }
.f-origen { margin: 0; font-size: 14.5px; line-height: 1.3; color: var(--texto-2); }
.f-origen .bandera { display: inline-block; vertical-align: -2px; margin-right: 5px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.nw { white-space: nowrap; }
.f-meta { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.f-datos .marcas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.f-datos .marca { margin-top: 0; }
.f-cab .cerrar { position: absolute; top: -4px; right: -6px; }
.cerrar { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--cerrar-bg); color: var(--texto); display: grid; place-items: center; cursor: pointer; }
.cerrar:focus-visible, .idioma button:focus-visible, .otras button:focus-visible, .modo:focus-visible, .chip-fam:focus-visible, .nav-f button:focus-visible, .repetir:focus-visible, .boton:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.sabor { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--acento); }
.ficha .desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--texto); overflow-wrap: anywhere; }
.servir { padding: 10px 12px; border-radius: 12px; background: var(--caja); display: flex; align-items: center; gap: 12px; }
.servir svg { flex-shrink: 0; color: var(--acento); }
.servir-t { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2); }
.servir-v { display: block; margin-top: 1px; font-size: 15.5px; font-weight: 600; }
.copa-orig { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--acento); }
.f-pie { margin-top: 2px; display: flex; flex-direction: column; gap: 10px; }
.ficha .pp { padding-top: 12px; border-top: 1px solid var(--carta-borde); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-t { display: block; font-size: 15px; color: var(--texto-2); }
.pp-v { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-f button { height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--chip); color: var(--texto); font: 600 14.5px var(--f-body); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-f span { font-size: 13.5px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
@media (max-height: 720px) {
  .ficha-in { gap: 10px; padding: 10px 12px; }
  .f-datos h3 { font-size: 21px; }
  .ficha .desc { font-size: 15px; line-height: 1.45; }
}
@media (max-height: 620px) {
  .ficha-in { gap: 8px; }
  .f-datos h3 { font-size: 19.5px; }
  .f-origen, .f-meta { font-size: 13.5px; }
  .ficha .desc { font-size: 14.5px; line-height: 1.4; }
  .servir { padding: 8px 10px; }
  .servir-v { font-size: 14.5px; }
  .pp-v { font-size: 22px; }
  .nav-f button { height: 40px; }
}

/* Otras cervezas (lo que el bar no tiene) */
.otras-v { margin: 0 8px; padding: 6px; border-radius: 18px; background: var(--carta); }
.otras-in { border: 1px solid var(--carta-borde); border-radius: 13px; padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.volver { align-self: flex-start; height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: 10px; background: var(--chip); color: var(--texto); font: 600 15px var(--f-body); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.otras-in h2 { margin: 0; font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.otras-in .intro { margin: -4px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--texto-2); }
.otras-in .intro b { color: var(--texto); }
.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 44px; border: 1.5px solid var(--texto); border-radius: 999px; overflow: hidden; }
.toggle button { border: 0; background: transparent; color: var(--texto); font: 700 15px var(--f-body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--texto); color: var(--carta); }
.acord { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--filete); background: transparent; color: var(--acento); font: 700 14px var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; text-align: left; cursor: pointer; }
.acord span { flex-grow: 1; }
.acord svg { transition: transform 0.2s; }
.acord[aria-expanded="true"] svg { transform: rotate(180deg); }
.fila-o { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dotted var(--filete); }
.fila-o .abre { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fila-o .foto { width: 50px; height: 66px; }
.quiero { flex-shrink: 0; height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--acento); background: transparent; color: var(--acento); font: 700 14px var(--f-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.quiero[aria-pressed="true"] { background: var(--acento); color: var(--sobre-acento); cursor: default; }
.quiero[disabled] { opacity: 0.6; }
.quiero:focus-visible, .volver:focus-visible, .acord:focus-visible, .toggle button:focus-visible, .fila-o .abre:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.cargando-txt { margin: 12px 2px; font-size: 15px; color: var(--texto-2); }
.no-esta { padding: 12px; border-radius: 12px; background: var(--caja); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.no-esta p { margin: 0; font-size: 15px; font-weight: 600; }
.no-esta .chico { margin-top: 2px; font-size: 12.5px; font-weight: 400; line-height: 1.3; color: var(--texto-2); }
.no-esta .quiero { height: 44px; padding: 0 16px; font-size: 15px; }

/* Página de privacidad */
.pagina-legal { margin-top: 12px; }
.pagina-legal h1 { margin: 18px 0 8px; font-family: var(--f-display); font-size: 26px; line-height: 1.15; }
.pagina-legal h2 { margin: 18px 0 6px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acento); }
.pagina-legal p, .pagina-legal li { font-size: 16px; line-height: 1.55; }
.pagina-legal p { margin: 0 0 8px; }
.pagina-legal ul { margin: 0 0 8px; padding-left: 20px; }
.pagina-legal a { color: var(--acento); }
.pagina-legal hr { margin: 26px 0 8px; border: 0; border-top: 1px solid var(--carta-borde); }
.pagina-legal .actualizado { font-size: 13.5px; color: var(--texto-2); }

/* Aviso flotante */
.aviso { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--boton-bg); color: var(--boton-txt); font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .ficha { animation: sube 0.22s ease-out; }
  .ficha-in.pasa-izq { animation: izq 0.2s ease-out; }
  .ficha-in.pasa-der { animation: der 0.2s ease-out; }
  @keyframes sube { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
  @keyframes izq { from { transform: translateX(28px); opacity: 0.3; } to { transform: none; opacity: 1; } }
  @keyframes der { from { transform: translateX(-28px); opacity: 0.3; } to { transform: none; opacity: 1; } }
  body, .carta, .ficha { transition: background-color 0.25s ease; }
}
