/* ─────────────────────────────────────────────────────────────
   Criminal Taquería · carta digital (demo)
   Hecha para el celular. Dos temas: oscuro (negro cálido) y claro
   (blanco, como el letrero de la sede, con toques de amarillo); cada
   grupo de la carta usa uno. En los dos, la calavera de la marca
   repetida de fondo y el rojo para lo que se toca.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Criminal Titulos";
  src: url("../fuentes/titulos.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../fuentes/source-code-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
/* El brillo de arriba cambia de color con el tema, sin saltos. */
@property --brillo {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

:root {
  --rojo: #ff0000;
  /* El rojo de los botones: casi el de la marca, con el contraste que pide el texto crema. */
  --rojo-boton: #e00000;
  --rojo-hondo: #c40000;
  --amarillo: #ffce00;
  --crema: #fff7d7;
  --titulos: "Criminal Titulos", Impact, "Arial Black", sans-serif;
  --texto: "Source Code Pro", ui-monospace, monospace;
  --pincel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C38 4.2 88 3 136 3.6c37 .5 70 2.3 101 4.1.9 1.6-.4 3-2 3.1-33-1.4-69-2.6-105-2.5C88 8.4 46 10.3 6 12.6 2.6 12.8.9 10.4 3 8.5Z' fill='%23ff0000'/%3E%3C/svg%3E");
  --suave: cubic-bezier(0.2, 0.8, 0.2, 1);
  --cambio: 450ms ease;

  /* Tema oscuro: negro cálido. */
  --fondo: #120707;
  --panel: #1e0b09;
  --escena: #170707;
  --tinta: #fff7d7;
  --tinta-suave: #cdbfb4;
  --titulo: #ffce00;
  --linea: rgb(255 247 215 / 0.16);
  --puntos: rgb(255 247 215 / 0.32);
  --menu-fondo: rgb(18 7 7 / 0.94);
  --menu-sombra: rgb(0 0 0 / 0.9);
  --pestana: #75645b;
  --pestana-encima: #a99a8f;
  --pildora: rgb(255 247 215 / 0.28);
  --pildora-activa: #fff7d7;
  --pildora-activa-tinta: #120707;
  --aro: #ffce00;
  --borde-boton: rgb(255 247 215 / 0.6);
  --icono-guia: #ffce00;
  --icono-fondo: rgb(255 0 0 / 0.13);
  --icono-borde: rgb(255 0 0 / 0.35);
  --resplandor: rgb(255 0 0 / 0.3);
  --patron: 0.2;
  --brillo: rgb(255 0 0 / 0.13);
}
/* Tema claro: blanco con negro, el rojo de la marca y el amarillo del letrero
   en el subrayado de los títulos, la píldora activa, los aros de las fotos y el brillo de arriba. */
[data-tema="claro"] {
  --fondo: #ffffff;
  --panel: #ffffff;
  --escena: #fbf6ee;
  --tinta: #1a0d0a;
  --tinta-suave: #5e4f48;
  --titulo: #1a0d0a;
  --linea: rgb(26 13 10 / 0.12);
  --puntos: rgb(26 13 10 / 0.3);
  --menu-fondo: rgb(255 255 255 / 0.97);
  --menu-sombra: rgb(60 20 10 / 0.3);
  --pestana: #8f827b;
  --pestana-encima: #5e4f48;
  --pildora: rgb(26 13 10 / 0.22);
  --pildora-activa: #ffce00;
  --pildora-activa-tinta: #1a0d0a;
  --aro: #ffce00;
  --borde-boton: rgb(26 13 10 / 0.5);
  --icono-guia: #e00000;
  --icono-fondo: rgb(255 206 0 / 0.3);
  --icono-borde: rgb(255 206 0 / 0.8);
  --resplandor: rgb(255 206 0 / 0.45);
  --patron: 0.11;
  --brillo: rgb(255 206 0 / 0.2);
  --pincel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C38 4.2 88 3 136 3.6c37 .5 70 2.3 101 4.1.9 1.6-.4 3-2 3.1-33-1.4-69-2.6-105-2.5C88 8.4 46 10.3 6 12.6 2.6 12.8.9 10.4 3 8.5Z' fill='%23ffce00'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
  background-color: var(--fondo);
  transition: background-color var(--cambio);
}
/* Con una hoja abierta, la carta de atrás no se mueve. */
html:has(dialog[open]) {
  overflow: hidden;
}
body {
  position: relative;
  margin: 0;
  font-family: var(--texto);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta);
  background: radial-gradient(90% 32rem at 50% -6rem, var(--brillo), transparent 70%) no-repeat;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition:
    color var(--cambio),
    --brillo var(--cambio);
}
/* La calavera de la marca, repetida de fondo como un papel tapiz.
   Arriba se desvanece, para que ninguna quede detrás del logo. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/patron.png") 0 0 / 420px repeat;
  opacity: var(--patron);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 250px, #000 400px);
  mask-image: linear-gradient(to bottom, transparent 0 250px, #000 400px);
  pointer-events: none;
  transition: opacity var(--cambio);
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
::selection {
  background: var(--amarillo);
  color: #120707;
}
:focus-visible {
  outline: 2px solid var(--amarillo);
  outline-offset: 3px;
}
[data-tema="claro"] :focus-visible {
  outline-color: var(--rojo-boton);
}
.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--tinta);
  color: var(--fondo);
  font-weight: 700;
}
.saltar:focus {
  top: 12px;
}

/* La hoja: una columna del ancho de un celular, también en pantallas grandes. */
.hoja {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 0 20px;
}

/* ── El logo: como el letrero de la sede ───────────────────── */

.logo {
  display: grid;
  justify-items: center;
  padding: 40px 0 28px;
}
.logo__letrero {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__calavera {
  width: clamp(60px, 17vw, 82px);
  height: auto;
  rotate: -8deg;
}
.logo__texto {
  display: grid;
  gap: 6px;
  width: clamp(150px, 56vw, 248px);
}
/* Est. y 2016 arriba, y Chelas, Tacos, Tequilas abajo, repartidos de punta a punta como en el letrero. */
.logo__est,
.logo__lema {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.logo__lema {
  letter-spacing: 0.06em;
}
.logo__nombre img {
  width: 100%;
  height: auto;
}
.logo__escudo {
  display: none;
  width: clamp(140px, 42vw, 180px);
  height: auto;
}
[data-logo="escudo"] .logo__letrero {
  display: none;
}
[data-logo="escudo"] .logo__escudo {
  display: block;
}

/* ── Comida / Bebidas y sus categorías ─────────────────────── */

/* Marca dónde empieza el menú: cuando sale por arriba, el menú queda fijo. */
.centinela {
  display: block;
  height: 1px;
  margin-bottom: -1px;
}
.menu {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-inline: -20px;
  padding: 12px 20px;
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.menu.pegado {
  background: var(--menu-fondo);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--linea);
  box-shadow: 0 14px 30px -18px var(--menu-sombra);
}
.menu__fila {
  display: flex;
  align-items: center;
}
/* La calavera en pequeño: aparece a la izquierda cuando el menú queda fijo. */
.menu__marca {
  flex: none;
  width: 0;
  margin-right: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    width 320ms var(--suave),
    margin 320ms var(--suave),
    opacity 220ms ease,
    visibility 320ms;
}
.menu__marca img {
  width: 40px;
  height: 40px;
  max-width: none;
  rotate: -8deg;
}
.menu.pegado .menu__marca {
  width: 40px;
  margin-right: 14px;
  opacity: 1;
  visibility: visible;
}
.menu__grupos {
  display: flex;
  gap: 22px;
  min-width: 0;
}
.menu__grupos button {
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  font-family: var(--titulos);
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pestana);
  transition: color var(--cambio);
}
.menu__grupos button:hover {
  color: var(--pestana-encima);
}
.menu__grupos button[aria-selected="true"] {
  color: var(--tinta);
  border-bottom-color: var(--rojo);
}
.menu__categorias {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu__categorias::-webkit-scrollbar {
  display: none;
}
.menu__categorias a {
  flex: none;
  padding: 7px 14px;
  border: 1.5px solid var(--pildora);
  border-radius: 999px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.menu__categorias a:hover {
  border-color: var(--puntos);
}
.menu__categorias a[aria-current] {
  border-color: var(--pildora-activa);
  background: var(--pildora-activa);
  color: var(--pildora-activa-tinta);
}

/* Al cambiar entre comida y bebidas, la carta entra suave. */
.panel {
  animation: entrar 420ms var(--suave);
}
@keyframes entrar {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* Un halo del color del fondo despega el texto de las calaveras. */
.categoria {
  padding-top: 38px;
  text-shadow:
    0 0 4px var(--fondo),
    0 0 12px var(--fondo);
}
.categoria__cabeza {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.categoria__titulo {
  padding-bottom: 14px;
  font-family: var(--titulos);
  font-weight: 400;
  font-size: clamp(1.3rem, 12vw, 3.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--titulo);
  background: var(--pincel) left bottom / min(100%, 220px) 12px no-repeat;
}
.categoria__foto {
  flex: none;
  width: 66px;
  height: 66px;
  margin-bottom: 8px;
  border: 2px solid var(--aro);
  border-radius: 50%;
  object-fit: cover;
}
.filas {
  display: grid;
  gap: 18px;
}
.fila__linea {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.fila__nombre {
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.fila__guia {
  flex: 1 1 18px;
  min-width: 18px;
  border-bottom: 2px dotted var(--puntos);
  translate: 0 -4px;
}
.fila__precio {
  font-family: var(--titulos);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.fila__desc {
  max-width: 40ch;
  margin-top: 5px;
  color: var(--tinta-suave);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ── El plato con 3D, dentro de su categoría ──────────────── */

.fila--tresd {
  margin-bottom: 10px;
}
.fila__foto {
  position: relative;
  margin-bottom: 14px;
  padding: 4px;
  border: 2px solid var(--rojo);
  border-radius: 22px;
  background: var(--fondo);
  box-shadow: 0 18px 36px -20px rgb(0 0 0 / 0.6);
}
.fila__foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 74%;
  border-radius: 16px;
}
.fila__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.fila__acciones .boton {
  flex: 1 1 auto;
}
.fila__nota {
  margin-top: 10px;
  color: var(--tinta-suave);
  font-size: 0.8125rem;
}
.fila__nota:empty {
  display: none;
}

.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: center;
  text-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
}
.boton:active {
  transform: translateY(1px);
}
.boton__icono {
  flex: none;
  width: 20px;
  height: 20px;
}
.boton--linea {
  border-color: var(--borde-boton);
  color: var(--tinta);
}
.boton--linea:hover {
  border-color: var(--tinta);
}
.boton--rojo {
  background: var(--rojo-boton);
  color: var(--crema);
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.5);
}
.boton--rojo:hover {
  background: var(--rojo-hondo);
}

/* ── Pie ───────────────────────────────────────────────────── */

.pie {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 56px;
  padding: 40px 0 72px;
  border-top: 1px solid var(--linea);
  color: var(--tinta-suave);
  font-size: 0.75rem;
  text-align: center;
}
.pie__escudo {
  width: 96px;
  height: 96px;
}

/* ── Volver arriba ─────────────────────────────────────────── */

.subir {
  position: fixed;
  right: max(16px, calc(50% - 244px));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--fondo);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.4);
  opacity: 0;
  translate: 0 12px;
  visibility: hidden;
  transition:
    opacity 240ms ease,
    translate 240ms var(--suave),
    visibility 240ms,
    background-color var(--cambio),
    color var(--cambio);
}
.subir.visible {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
}
.subir svg {
  width: 20px;
  height: 20px;
}

/* ── El plato en 3D: hoja que sube desde abajo ─────────────── */

.visor3d {
  width: min(100%, 520px);
  max-width: 100%;
  max-height: 94dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: transparent;
  color: var(--tinta);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -20px 60px rgb(0 0 0 / 0.6);
  translate: 0 100%;
  transition:
    translate 420ms var(--suave),
    overlay 420ms allow-discrete,
    display 420ms allow-discrete;
}
.visor3d[open] {
  translate: 0 0;
}
@starting-style {
  .visor3d[open] {
    translate: 0 100%;
  }
}
.visor3d::backdrop,
.guia::backdrop {
  background: rgb(8 3 3 / 0);
  transition:
    background-color 420ms ease,
    backdrop-filter 420ms ease,
    overlay 420ms allow-discrete,
    display 420ms allow-discrete;
}
.visor3d[open]::backdrop,
.guia[open]::backdrop {
  background: rgb(8 3 3 / 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@starting-style {
  .visor3d[open]::backdrop,
  .guia[open]::backdrop {
    background: rgb(8 3 3 / 0);
    backdrop-filter: blur(0);
  }
}
.visor3d__caja {
  position: relative;
  background: var(--panel);
}
.visor3d__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(18 7 7 / 0.72);
  color: var(--crema);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.visor3d__cerrar svg {
  width: 20px;
  height: 20px;
}
.visor3d__escena {
  position: relative;
  aspect-ratio: 1;
  max-height: 54dvh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(58% 48% at 50% 62%, var(--resplandor), transparent 72%),
    var(--escena);
}
.visor3d__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 74%;
  transition: opacity 500ms ease;
}
.visor3d__modelo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}
.visor3d__escena[data-estado="tresd"] .visor3d__foto {
  opacity: 0;
}
.visor3d__datos {
  display: grid;
  gap: 10px;
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
}
.visor3d__linea {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.visor3d__nombre {
  font-family: var(--titulos);
  font-weight: 400;
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--titulo);
}
.visor3d__precio {
  font-family: var(--titulos);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}
.visor3d__nota {
  min-height: 3em;
  color: var(--tinta-suave);
  font-size: 0.8125rem;
}
.visor3d__mesa {
  min-height: 52px;
  font-size: 0.9375rem;
}
.visor3d__aviso {
  color: var(--tinta-suave);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ── ¿Cómo funciona?: antes de abrir la cámara ─────────────── */

.guia {
  width: min(92vw, 26rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tinta);
  overflow: visible;
  opacity: 0;
  scale: 0.96;
  transition:
    opacity 260ms ease,
    scale 320ms var(--suave),
    overlay 320ms allow-discrete,
    display 320ms allow-discrete;
}
.guia[open] {
  opacity: 1;
  scale: 1;
}
@starting-style {
  .guia[open] {
    opacity: 0;
    scale: 0.96;
  }
}
.guia__caja {
  max-height: 92dvh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 26px;
  background: var(--panel);
  box-shadow:
    0 0 0 1.5px var(--linea),
    0 30px 60px -20px rgb(0 0 0 / 0.7);
}
.guia__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linea);
}
.guia__titulo {
  font-family: var(--titulos);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--titulo);
}
.guia__cerrar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--linea);
}
.guia__cerrar svg {
  width: 20px;
  height: 20px;
}
.guia__pasos {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.guia__paso {
  display: flex;
  gap: 16px;
}
.guia__icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 2px;
  border-radius: 13px;
  background: var(--icono-fondo);
  box-shadow: inset 0 0 0 1px var(--icono-borde);
  color: var(--icono-guia);
}
.guia__icono svg {
  width: 22px;
  height: 22px;
}
.guia__nombre {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.guia__texto {
  margin-top: 3px;
  color: var(--tinta-suave);
  font-size: 0.84rem;
  line-height: 1.5;
}
.guia__abrir {
  width: 100%;
  min-height: 56px;
  margin-top: 26px;
  border-radius: 16px;
  font-size: 0.9375rem;
}
.guia__abrir svg {
  width: 20px;
  height: 20px;
}

/* ── Movimiento reducido ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after,
  .visor3d::backdrop,
  .guia::backdrop {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ── Pantallas pequeñas ────────────────────────────────────── */

@media (max-width: 360px) {
  .hoja {
    padding: 0 14px;
  }
  .menu {
    margin-inline: -14px;
    padding-inline: 14px;
  }
  .menu__grupos button {
    font-size: 1.7rem;
  }
  .menu.pegado .menu__marca {
    width: 34px;
    margin-right: 10px;
  }
  .menu__marca img {
    width: 34px;
    height: 34px;
  }
  .boton {
    padding-inline: 10px;
  }
  .visor3d__nombre,
  .visor3d__precio {
    font-size: 1.6rem;
  }
  .guia__caja {
    padding: 20px 18px;
  }
  .guia__titulo {
    font-size: 1.8rem;
  }
}
@media (max-width: 260px) {
  .hoja {
    padding: 0 10px;
  }
  .menu {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .menu__marca {
    display: none;
  }
  .logo__letrero {
    flex-direction: column;
  }
  .logo__calavera {
    width: 40px;
  }
  .logo__texto {
    width: min(100%, 150px);
  }
  .logo__est,
  .logo__lema {
    letter-spacing: 0.04em;
  }
  .logo__lema {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 6px;
    letter-spacing: 0;
  }
  .menu__grupos {
    gap: 12px;
  }
  /* Con la letra tan chica, la pestaña inactiva necesita más contraste. */
  .menu__grupos button {
    font-size: 1.15rem;
    color: var(--pestana-encima);
  }
  .categoria__foto {
    display: none;
  }
  .fila__precio {
    font-size: 1.1rem;
  }
  .fila__linea,
  .visor3d__linea {
    flex-wrap: wrap;
  }
  .fila__guia {
    display: none;
  }
  .fila__foto {
    padding: 3px;
    border-radius: 14px;
  }
  .fila__foto img {
    border-radius: 10px;
  }
  .fila__acciones .boton {
    flex-basis: 100%;
  }
  .boton {
    min-height: 40px;
    font-size: 0.7rem;
  }
  .boton__icono {
    width: 16px;
    height: 16px;
  }
  .visor3d__datos {
    padding: 14px 10px 18px;
  }
  .visor3d__nombre,
  .visor3d__precio {
    font-size: 1.15rem;
  }
  .visor3d__cerrar {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
  .guia {
    width: calc(100vw - 12px);
  }
  .guia__caja {
    padding: 14px 10px;
    border-radius: 16px;
  }
  .guia__cabeza {
    gap: 8px;
    padding-bottom: 10px;
  }
  .guia__titulo {
    font-size: 1.1rem;
  }
  .guia__cerrar {
    width: 32px;
    height: 32px;
  }
  .guia__paso {
    gap: 8px;
  }
  .guia__icono {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .guia__icono svg {
    width: 16px;
    height: 16px;
  }
  .guia__nombre {
    font-size: 0.75rem;
  }
  .guia__texto {
    font-size: 0.75rem;
  }
  .guia__abrir {
    min-height: 44px;
    margin-top: 16px;
    font-size: 0.7rem;
  }
  .subir {
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 130px) {
  .menu__grupos {
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .menu__grupos button {
    font-size: 0.95rem;
  }
  .fila__nombre,
  .fila__desc,
  .boton,
  .guia__nombre,
  .guia__texto {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .fila__nombre {
    font-size: 0.75rem;
  }
  .fila__desc {
    font-size: 0.6875rem;
  }
  .boton {
    padding-inline: 6px;
    font-size: 0.6875rem;
  }
  .boton__icono,
  .guia__icono {
    display: none;
  }
}
