/* ==========================================================
   PIZZERÍA CAMINITO · Hoja de estilos principal
   ========================================================== */

/* ----------------------------------------------------------
   1. Variables de diseño
   Colores, tipografías y medidas comunes a toda la web.
   ---------------------------------------------------------- */

:root {
  --red: #DD3744;
  --red-deep: #b92633;
  --gold: #FAC122;
  --ink: #363631;
  --muted: #7c7a74;
  --paper: #fbfaf7;
  --paper-2: #f1eee8;
  --slate: #1f1e1c;
  --slate-2: #2a2926;
  --on-dark: #ffffff;
  --on-dark-soft: #d9d6cf;
  --f-display: "Yanone Kaffeesatz", "Oswald", "Arial Narrow", sans-serif;
  --f-script: "Leckerli One", "Brush Script MT", cursive;
  --f-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ----------------------------------------------------------
   2. Base
   Reset mínimo y estilos de elementos HTML.
   ---------------------------------------------------------- */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   3. Utilidades de maquetación
   Contenedor, bandas de sección y alineación.
   ---------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: clamp(64px, 9vw, 120px);
}

.dark {
  background-color: var(--slate);
  color: var(--on-dark-soft);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .045), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(255, 255, 255, .035), transparent 50%);
}

.center {
  text-align: center;
}

/* ----------------------------------------------------------
   4. Tipografía
   Par de cada bloque: titular condensado + subtítulo manuscrito.
   ---------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

.title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  letter-spacing: .005em;
}

.dark .title,
.photo .title {
  color: var(--on-dark);
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--red);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  margin-top: .3em;
}

.dark .script,
.photo .script {
  color: var(--gold);
}

.lead {
  max-width: 62ch;
  margin: 1.4em auto 0;
}

/* ----------------------------------------------------------
   5. Botones
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 18px 44px;
  transition: background .2s, transform .2s, color .2s;
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
}

.btn.ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* ----------------------------------------------------------
   6. Cabecera y menú
   Cabecera transparente sobre el hero; hamburguesa en móvil.
   ---------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.logo {
  font-family: var(--f-script);
  color: #fff;
  font-size: 34px;
  text-decoration: none;
  line-height: 1;
}

.menu {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}

.menu a:hover::after,
.menu a.active::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform .25s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -8px;
}

.burger span::after {
  top: 8px;
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    background: var(--slate);
    border-radius: 14px;
    padding: 12px;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  }

  .menu[hidden] {
    display: none !important;
  }

  .menu a {
    display: block;
    padding: 12px 14px;
  }
}

/* ----------------------------------------------------------
   7. Hero (portada)
   ---------------------------------------------------------- */

.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: #111 url(../img/hero.jpg) center/cover no-repeat;
  padding-block: clamp(170px, 18vw, 240px) clamp(110px, 12vw, 170px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .65));
}

.hero > * {
  position: relative;
}

.hero .script {
  color: var(--gold);
  font-size: clamp(28px, 3.6vw, 46px);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(56px, 10vw, 120px);
  line-height: .95;
  color: #fff;
  margin-top: .1em;
}

.hero p {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 27px);
  color: #fff;
  max-width: 36ch;
  margin: 22px auto 0;
  line-height: 1.35;
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero .note {
  font-family: var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 17px;
  color: var(--gold);
  margin-top: 26px;
}

/* ----------------------------------------------------------
   8. Bienvenida
   ---------------------------------------------------------- */

.welcome {
  background: var(--paper);
  background-image: repeating-linear-gradient(90deg, rgba(54, 54, 49, .018) 0 2px, transparent 2px 9px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 56px auto 0;
}

.pillar {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.seal {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
  font-size: 15px;
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 7px rgba(255, 255, 255, .7);
}

.seal b {
  display: block;
  font-family: var(--f-script);
  text-transform: none;
  letter-spacing: 0;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 4px;
}

.pillar p {
  margin: 0;
  font-size: 17px;
  max-width: 26ch;
}

@media (max-width: 640px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   9. Accesos a categorías
   ---------------------------------------------------------- */

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cat {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  background: #222 center/cover no-repeat;
}

.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 38, 36, .55);
  transition: background .35s;
}

.cat:hover::before,
.cat:focus-visible::before {
  background: rgba(221, 55, 68, .72);
}

.cat span {
  position: relative;
  text-align: center;
}

.cat strong {
  display: block;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.1;
}

.cat em {
  display: block;
  font-style: normal;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 16px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat {
    aspect-ratio: 1;
  }
}

/* ----------------------------------------------------------
   10. Pizzas destacadas
   ---------------------------------------------------------- */

.featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 60px;
}

.dish {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 18px;
  padding-block: 8px;
}

.plate {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 10px #5b3a22, 0 0 0 13px #3b2415, 0 24px 40px rgba(0, 0, 0, .55);
  margin-bottom: 28px;
  transition: transform .5s;
}

.dish:hover .plate {
  transform: rotate(-8deg) scale(1.03);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish h3 {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  font-size: 28px;
  letter-spacing: .02em;
}

.dish .ing {
  font-family: var(--f-script);
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  max-width: 24ch;
}

.price {
  font-family: var(--f-script);
  color: var(--gold);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.dish:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}

.featured-cta {
  margin-top: 56px;
}

@media (max-width: 760px) {
  .featured {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   11. Carta con pestañas
   ---------------------------------------------------------- */

.carta {
  background: var(--paper);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 44px auto 0;
  max-width: 900px;
}

.tab {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #d8d4cc;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: .2s;
}

.tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.tab[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.panel-head {
  text-align: center;
  margin-top: 48px;
}

.panel-head .script {
  margin: 0;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 22px;
  margin-top: 34px;
  list-style: none;
  padding: 0;
}

.item {
  min-width: 0;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.row .n {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: .02em;
}

.row i {
  flex: 1;
  border-bottom: 2px dotted #cfcac0;
  transform: translateY(-6px);
  min-width: 20px;
}

.row .p {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--red);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item .d {
  display: block;
  margin: 2px 0 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
}

.extras {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 22px 28px;
  border: 1px dashed #cfcac0;
  border-radius: 14px;
  text-align: center;
  font-size: 17px;
}

.extras strong {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  font-weight: 600;
}

.item-btn {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: calc(100% + 24px);
  cursor: pointer;
  padding: 8px 12px;
  margin: -8px -12px;
  border-radius: 10px;
  transition: background .2s;
}

.item-btn:hover {
  background: var(--paper-2);
}

.item-btn:hover .n {
  color: var(--red);
}

.item-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .items {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   12. Nuestra historia
   ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--paper-2);
}

.split .copy {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.split .copy p {
  max-width: 52ch;
  margin: 1.1em 0 0;
}

.split .copy .btn {
  margin-top: 34px;
}

.split .media {
  min-height: 420px;
  background: #222 center/cover no-repeat;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split .media {
    min-height: 300px;
  }
}

/* ----------------------------------------------------------
   13. Horario
   ---------------------------------------------------------- */

.photo {
  position: relative;
  background: #111 center/cover no-repeat;
  color: var(--on-dark-soft);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, .74);
}

.photo > * {
  position: relative;
}

.hours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.day {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  background: rgba(0, 0, 0, .25);
}

.day h3 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .08em;
  font-size: 22px;
}

.day p {
  margin: .5em 0 0;
  font-family: var(--f-display);
  font-size: 24px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.day.closed p {
  font-family: var(--f-script);
  color: var(--gold);
}

.day small {
  display: block;
  font-family: var(--f-script);
  color: var(--gold);
  font-size: 17px;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hours {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   14. Contacto
   ---------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact .media {
  min-height: 460px;
  background: #222 center/cover no-repeat;
}

.contact .info {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
}

.info .blk span {
  display: block;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  font-size: 17px;
}

.info .blk p {
  margin: .2em 0 0;
  font-family: var(--f-script);
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
}

.info .blk p a {
  text-decoration: none;
}

.copybtn {
  margin-left: 8px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  vertical-align: middle;
}

.copybtn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: -14px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .2s;
}

.socials a:hover {
  background: var(--red-deep);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact .media {
    min-height: 280px;
  }
}

/* ----------------------------------------------------------
   15. Pie de página y botón volver arriba
   ---------------------------------------------------------- */

footer {
  background: #121110;
  color: #b7b3ab;
  text-align: center;
  padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}

.totop {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.totop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------------------------------------
   16. Visor de producto
   Ventana que se abre al tocar un producto.
   ---------------------------------------------------------- */

.visor {
  /* Escritorio: 2/3 del ancho anterior (60vw → 40vw), con un mínimo para pantallas pequeñas */
  width: clamp(560px, 40vw, 733px);
  max-width: 94vw;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  color: var(--muted);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  max-height: 94vh;
}

.visor::backdrop {
  background: rgba(15, 14, 13, .78);
  backdrop-filter: blur(3px);
}

.visor[open] {
  animation: visorIn .28s ease-out;
}

@keyframes visorIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.visor-inner {
  display: flex;
  flex-direction: column;
  max-height: 94vh;
}

/* La foto se ajusta al alto del marco y nunca se recorta: si es más estrecha, se ve la encimera a los lados */
.visor-foto {
  position: relative;
  flex: 0 0 auto;
  height: clamp(220px, 46vh, 520px);
  padding: clamp(5px, .67vw, 8px) clamp(14px, 2vw, 24px);
  /* Fondo común a todos los productos: encimera clásica antigua */
  background: #2b1d14 url(../img/encimera.jpg) center 70% / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visor-foto img {
  display: block;
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.visor-foto .nota {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(12px, 1.4vw, 18px);
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  padding: 4px 10px;
  border-radius: 999px;
}

.visor-cerrar,
.visor-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 50%;
  transition: background .2s;
}

.visor-cerrar:hover,
.visor-nav:hover {
  background: var(--red);
}

.visor-cerrar {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
}

.visor-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
}

.visor-nav.prev {
  left: 14px;
}

.visor-nav.next {
  right: 14px;
}

.visor-cuerpo {
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 28px;
  align-items: end;
  overflow: auto;
}

.visor-cat {
  grid-column: 1/-1;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 16px;
  color: var(--red);
}

.visor-nombre {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  margin: 0;
}

.visor-precio {
  font-family: var(--f-script);
  color: var(--red);
  font-size: clamp(30px, 2.8vw, 40px);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.visor-desc {
  grid-column: 1/-1;
  margin: 4px 0 0;
  font-size: clamp(18px, 1.3vw, 21px);
  max-width: 60ch;
}

.visor-acciones {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 14px;
}

.visor-acciones small {
  font-size: 15px;
  font-style: italic;
}

@media (max-width: 900px) {
  .visor {
    width: 94vw;
  }

  .visor-foto {
    height: clamp(200px, 38vh, 420px);
  }
}

@media (max-width: 520px) {
  .visor-cuerpo {
    grid-template-columns: 1fr;
  }

  .visor-precio {
    justify-self: start;
  }

  .visor-acciones .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   17. Accesibilidad
   Sin animaciones para quien lo pide en su sistema.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ----------------------------------------------------------
   Producto agotado y alérgenos (web y tienda)
   ---------------------------------------------------------- */

.etq-agotado {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.item-agotado .n,
.item-agotado .p,
.item-agotado .d {
  opacity: .55;
}

.add:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #fff;
  color: var(--muted);
  border-color: var(--muted);
}

.btn:disabled,
.btn.desactivado {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.visor-alerg {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

/* ----------------------------------------------------------
   Selector de idioma (banderas), lo pone js/i18n.js en la cabecera
   ---------------------------------------------------------- */

.idiomas {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3;
}

.idiomas button,
.globo-idiomas .globo-fila button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.bandera {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  opacity: .6;
  transition: opacity .15s, transform .15s, border-color .15s;
}

.bandera svg {
  display: block;
  width: 100%;
  height: 100%;
  
}

.idiomas button:hover .bandera {
  opacity: 1;
  transform: scale(1.08);
}

.idiomas button[aria-pressed="true"] .bandera {
  opacity: 1;
  border-color: var(--gold);
}

.idiomas button:focus-visible .bandera,
.globo-idiomas button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .idiomas {
    order: 0;
    margin-left: auto;
    gap: 6px;
  }

  .burger {
    margin-left: -12px;
  }
}

/* Globo que invita a elegir idioma (solo al entrar directo a #carta) */

.globo-idiomas {
  position: fixed;
  z-index: 60;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  max-width: calc(100vw - 28px);
  padding: 14px 40px 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  animation: globo-entra .35s ease-out;
  transition: opacity .35s, transform .35s;
}

.globo-idiomas::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 30px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
}

.globo-idiomas.oculto {
  opacity: 0;
  transform: translateY(-8px);
}

.globo-idiomas p {
  margin: 0 0 10px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.globo-fila {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.globo-fila button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

.globo-idiomas .bandera {
  width: 34px;
  height: 34px;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  opacity: 1;
}

.globo-fila button:hover .bandera {
  transform: scale(1.08);
}

.globo-cerrar {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@keyframes globo-entra {
  from { opacity: 0; transform: translateY(-10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .globo-idiomas { animation: none; transition: none; }
}
