/* =====================================================================
   EL POLLO · ESTILOS
   Orden: 1) fuentes  2) colores y medidas  3) base  4) botones
          5) secciones en el orden de la página  6) barra fija de celular
   ===================================================================== */

/* ---------- 1. FUENTES ----------
   Texas Tango Bold es la fuente de los títulos (la misma del logo).

   LICENCIA: el archivo incluido es la edición "PERSONAL USE". Para publicar el
   sitio hay que comprar la licencia comercial al autor (billyargel.com) y
   reemplazar assets/fonts/texas-tango-bold.woff2 por el archivo licenciado.
   Si el archivo nuevo viene en .otf, cámbialo así en la línea de "src":
       src: url("../assets/fonts/texas-tango-bold.otf") format("opentype");

   La edición "personal use" no trae números (salen como marca de agua), por eso
   "unicode-range" deja los números fuera y los dibuja la fuente Rye. Con el
   archivo licenciado puedes borrar la línea de unicode-range.

   PARA NO USAR TEXAS TANGO: en --fuente-titulos (más abajo) borra "Texas Tango",
   y los títulos saldrán en Rye, que es de uso libre. */
@font-face {
  font-family: "Texas Tango";
  src: url("../assets/fonts/texas-tango-bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20-2F, U+3A-17F, U+2010-2026, U+20AC;
}

@font-face {
  font-family: "Rye";
  src: url("../assets/fonts/rye-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. COLORES Y MEDIDAS ---------- */
:root {
  /* Colores oficiales de El Pollo */
  --tinta: #022c33;
  --rojo: #e6361b;
  --verde: #398a81;
  --crema: #fcfeee;

  /* Derivados */
  --rojo-sombra: #a62611;
  --tinta-clara: #0b3f48;
  --crema-sombra: #e3e6cf;
  --verde-claro: #6fc4b8;

  /* Colores oficiales de WhatsApp y Uber Eats: solo para sus botones */
  --whatsapp: #25d366;
  --whatsapp-negro: #111b21;
  --whatsapp-sombra: #128c4b;
  --ubereats: #06c167;

  --fuente-titulos: "Texas Tango", "Rye", Georgia, "Times New Roman", serif;
  --fuente-texto: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* El contenido crece con la ventana: 1180px en laptop y hasta 1560px en
     monitores grandes. Los márgenes laterales también crecen (20px a 64px). */
  --ancho: clamp(1180px, 88vw, 1560px);
  --margen: clamp(1.25rem, 4vw, 4rem);
  --alto-barra: 60px;
}

/* ---------- 3. BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

img { height: auto; }

h1,
h2,
h3,
p,
ul,
dl,
dd { margin: 0; }

ul { padding: 0; list-style: none; }

a { color: inherit; }

h1,
h2 {
  font-family: var(--fuente-titulos);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 8.6vw, 3.5rem);
  margin-bottom: 0.55em;
}

:focus-visible {
  outline: 3px solid var(--crema);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--tinta);
  border-radius: 6px;
}

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.seccion { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.seccion__intro {
  max-width: 34em;
  font-size: 1.125rem;
}

.icono {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

/* Logos oficiales (archivos de assets/) dentro de los botones */
.icono--marca {
  width: 1.35em;
  height: 1.35em;
}

.boton__logo {
  width: auto;
  height: 1.1em;
}

.oculto-total {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.saltar {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--crema);
  font-weight: 700;
}

.saltar:focus { top: 0.5rem; }

/* ---------- 4. BOTONES ----------
   El texto va en 19px y negritas a propósito: en ese tamaño el crema sobre el
   rojo oficial cumple contraste. No lo bajes de 1.1875rem. */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 54px;
  padding: 0.7em 1.35em;
  border: 0;
  border-radius: 999px;
  font-family: var(--fuente-texto);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.boton:active { transform: translateY(3px); }

.boton--rojo {
  background: var(--rojo);
  color: var(--crema);
  box-shadow: 0 4px 0 var(--rojo-sombra);
}

.boton--rojo:active { box-shadow: 0 1px 0 var(--rojo-sombra); }

.boton--claro {
  background: var(--crema);
  color: var(--tinta);
  box-shadow: 0 4px 0 var(--verde);
}

.boton--claro:active { box-shadow: 0 1px 0 var(--verde); }

/* Texto oscuro a propósito: el blanco sobre este verde no se alcanza a leer */
.boton--whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-negro);
  box-shadow: 0 4px 0 var(--whatsapp-sombra);
}

.boton--whatsapp:active { box-shadow: 0 1px 0 var(--whatsapp-sombra); }

/* Negro, blanco y verde: los tres colores de Uber Eats */
.boton--ubereats {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 0 var(--ubereats);
}

.boton--ubereats:active { box-shadow: 0 1px 0 var(--ubereats); }

.boton--tinta {
  background: var(--tinta);
  color: var(--crema);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.boton--tinta:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }

.boton--grande {
  min-height: 56px;
  padding-inline: 1.1em;
}

@media (min-width: 560px) {
  .boton--grande {
    min-height: 60px;
    padding-inline: 1.6em;
  }
}

.boton--chico {
  min-height: 48px;
  padding: 0.5em 1.1em;
}

@media (hover: hover) {
  .boton:hover { transform: translateY(-2px); }
}

/* ---------- 5.1 HEADER ---------- */
.cabecera {
  position: relative;
  z-index: 20;
  background: var(--crema);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.cabecera__logo { display: block; padding-block: 6px; }

.cabecera__logo img { width: 62px; }

.cabecera__menu-btn {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
}

.js .cabecera__menu-btn { display: block; }

.cabecera__menu-icono,
.cabecera__menu-icono::before,
.cabecera__menu-icono::after {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cabecera__menu-icono { top: 22px; }

.cabecera__menu-icono::before,
.cabecera__menu-icono::after { content: ""; left: 0; }

.cabecera__menu-icono::before { top: -8px; }
.cabecera__menu-icono::after { top: 8px; }

[aria-expanded="true"] > .cabecera__menu-icono { background: transparent; }
[aria-expanded="true"] > .cabecera__menu-icono::before { transform: translateY(8px) rotate(45deg); }
[aria-expanded="true"] > .cabecera__menu-icono::after { transform: translateY(-8px) rotate(-45deg); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
  padding-block: 0.5rem;
}

.nav__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.nav__lista a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 700;
  text-decoration: none;
}

.nav__lista a:hover {
  text-decoration: underline;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Navegación plegable en celular (solo si hay JavaScript) */
@media (max-width: 899px) {
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.5rem var(--margen) 1.5rem;
    background: var(--crema);
    box-shadow: 0 14px 24px -12px rgba(2, 44, 51, 0.45);
  }

  .js .nav--abierta { display: flex; }

  .js .nav__lista { flex-direction: column; gap: 0; }

  .js .nav__lista a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--crema-sombra);
    font-size: 1.1875rem;
  }
}

@media (min-width: 900px) {
  .cabecera { position: sticky; top: 0; }
  .cabecera__fila { min-height: 88px; }
  .cabecera__logo img { width: 76px; }
  .js .cabecera__menu-btn { display: none; }
  html { scroll-padding-top: 104px; }
}

/* ---------- 5.2 HERO ---------- */
.hero {
  overflow: hidden;
  background: var(--tinta);
  color: var(--crema);
}

.hero__rejilla {
  display: grid;
  gap: 0.5rem;
  padding-block: 0.5rem 2rem;
}

.hero h1 { font-size: clamp(2rem, 10.6vw, 3.6rem); }

.hero h1 span { display: block; }

.hero__sub {
  max-width: 24em;
  margin-top: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

/* En celular: "Cómo llegar" a todo lo ancho; WhatsApp y Llamar comparten renglón */
.hero__botones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero__botones > :first-child { grid-column: 1 / -1; }

.hero__botones > :not(:first-child) { padding-inline: 0.4em; }

@media (max-width: 374px) {
  .hero__botones { grid-template-columns: minmax(0, 1fr); }
}

.hero__foto {
  position: relative;
  order: -1;
  width: min(58vw, 290px);
  aspect-ratio: 600 / 520;
  margin-inline: auto;
}

.hero__rayos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 58.65%;
}

.hero__foto img {
  position: absolute;
  left: 15.83%;
  top: 19.23%;
  width: 68.34%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--crema);
}

/* Los rayos del logo "se abren" una sola vez al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero__rayos { animation: rayos 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }

  @keyframes rayos {
    from { opacity: 0; transform: scale(0.8) rotate(-8deg); }
    to { opacity: 1; transform: none; }
  }
}

/* Aviso "ABIERTO AHORA" / "CERRADO AHORA" (el texto lo pone js/main.js) */
.estado {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-top: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
}

.estado__punto {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: currentColor;
}

.estado__etiqueta {
  display: block;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}

.estado__etiqueta[hidden] { display: none; }

.estado--abierto .estado__punto { background: var(--verde-claro); }
.estado--cerrado .estado__punto { background: var(--rojo); }

/* El punto parpadea (verde abierto, rojo cerrado) para llamar la atención.
   Se apaga si la persona pidió "reducir movimiento" en su dispositivo. */
@media (prefers-reduced-motion: no-preference) {
  .estado--abierto .estado__punto,
  .estado--cerrado .estado__punto { animation: parpadeo 1.3s ease-in-out infinite; }

  .estado--abierto .estado__punto::after,
  .estado--cerrado .estado__punto::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: onda 1.3s ease-out infinite;
  }

  @keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  @keyframes onda {
    from { opacity: 0.75; transform: scale(1); }
    to { opacity: 0; transform: scale(3); }
  }
}

.datos-rapidos {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.1rem 1.4rem;
  border-top: 1px solid rgba(252, 254, 238, 0.22);
  font-size: 1rem;
}

.datos-rapidos li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.datos-rapidos .icono {
  margin-top: 0.2em;
  color: var(--verde-claro);
}

.datos-rapidos a {
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (min-width: 560px) {
  .hero__botones {
    display: flex;
    flex-wrap: wrap;
  }

  .hero__botones > :not(:first-child) { padding-inline: 1.6em; }

  /* Tablet: la foto crece con la pantalla */
  .hero__foto { width: min(48vw, 400px); }
}

@media (min-width: 900px) {
  .hero__rejilla {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem;
    padding-block: 3rem 3.5rem;
  }

  .hero h1 { font-size: clamp(3rem, 5.6vw, 6.25rem); }

  .hero__sub {
    margin-top: 1.25rem;
    font-size: 1.3125rem;
  }

  .hero__botones { margin-top: 1.75rem; }

  .hero__foto {
    order: 0;
    width: 100%;
    max-width: 680px;
  }

  .hero__foto img { box-shadow: 0 0 0 7px var(--crema); }

  .datos-rapidos {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 2rem;
  }
}

/* ---------- 5.3 MENÚ ----------
   Cada grupo (Pollos, Complementos, Antojitos y bebidas) es un renglón de 3 fotos */
.grupo { margin-top: 2.25rem; }

.grupo__titulo {
  padding-bottom: 0.45em;
  border-bottom: 3px solid var(--tinta);
  font-family: var(--fuente-titulos);
  font-size: 1.45rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
}

.menu__fotos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.plato__foto { position: relative; }

.plato__foto img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--tinta);
}

.plato__nombre {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.plato__desc {
  margin-top: 0.2rem;
  font-size: 0.975rem;
}

/* Lista para productos sin foto (hoy no hay ninguno) */
.menu__carta {
  display: grid;
  max-width: 34rem;
  margin-top: 2.75rem;
  border-top: 3px solid var(--tinta);
}

.renglon {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--crema-sombra);
}

.renglon__nombre {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.2;
}

.renglon__categoria,
.renglon__desc { font-size: 0.975rem; }

.menu__respaldo {
  max-width: 34em;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.menu__nota {
  max-width: 40em;
  margin-top: 2.25rem;
  font-size: 1rem;
}

.menu__nota a,
.menu__respaldo a {
  font-weight: 800;
  white-space: nowrap;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 700px) {
  .grupo { margin-top: 3rem; }

  .grupo__titulo { font-size: 1.75rem; }

  .menu__fotos {
    gap: 1.5rem;
    margin-top: 1.25rem;
  }

  .plato__foto img { border-radius: 18px; }

  .plato__nombre {
    margin-top: 0.7rem;
    font-size: 1.1875rem;
  }
}

@media (min-width: 1000px) {
  .menu__carta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
    max-width: none;
  }
}

/* ---------- EVENTOS ---------- */
.eventos {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--tinta);
  color: var(--crema);
}

.eventos__caja {
  display: grid;
  gap: 1.5rem;
}

.eventos h2 { margin-bottom: 0.4em; }

.eventos__texto {
  max-width: 32em;
  font-size: 1.125rem;
}

.eventos__botones { display: grid; }

@media (min-width: 560px) {
  .eventos__botones { justify-content: start; }
}

@media (min-width: 1000px) {
  .eventos__caja {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }

  .eventos h2 { margin-bottom: 0.3em; }
}

/* ---------- 5.4 PEDIDOS ---------- */
.pedidos {
  position: relative;
  background: var(--rojo);
  color: var(--crema);
  text-align: center;
}

/* Franja de cuadros, como el papel donde servimos */
.pedidos::before,
.pedidos::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: conic-gradient(var(--crema) 25%, transparent 0 50%, var(--crema) 0 75%, transparent 0) 0 0 / 20px 20px;
}

.pedidos::before { top: 0; }
.pedidos::after { bottom: 0; }

.pedidos h2 { margin-bottom: 0.4em; }

/* 20px en negritas: necesario para el contraste sobre rojo */
.pedidos__texto {
  max-width: 26em;
  margin-inline: auto;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.pedidos__botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ---------- 5.5 UBICACIÓN ---------- */
.ubicacion__rejilla {
  display: grid;
  gap: 2.25rem;
}

.ficha {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.ficha__nombre {
  display: block;
  margin-bottom: 0.15em;
  font-family: var(--fuente-titulos);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
}

.ficha__extra {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.ficha__extra .icono {
  margin-top: 0.2em;
  color: var(--verde);
}

.horario {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.horario dt {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tinta);
}

.horario__estado {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.horario__estado[hidden] { display: none; }

.horario__estado.estado--abierto .estado__punto { background: var(--verde); }

.enlace-fuerte {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.ubicacion .boton { margin-top: 1.75rem; }

.mapa {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--tinta);
  border-radius: 22px;
  background: var(--crema-sombra);
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .ubicacion__rejilla {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 3.5rem;
  }

  .mapa {
    aspect-ratio: auto;
    height: 100%;
    min-height: 480px;
  }
}

/* ---------- 5.6 RESEÑAS ---------- */
.resenas {
  background: var(--tinta);
  color: var(--crema);
  text-align: center;
}

.resenas__caja::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  margin-bottom: 0.1em;
  color: var(--rojo);
  font-family: var(--fuente-titulos);
  font-size: 7rem;
  line-height: 1;
}

.resenas__texto {
  margin-bottom: 1.75rem;
  font-size: 1.3125rem;
}

/* Lo de abajo solo se usa cuando las reseñas reales estén activas */
.resenas__reales { margin-bottom: 2rem; }

.resenas__resumen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  font-size: 1.125rem;
}

.resenas__numero {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.estrellas {
  position: relative;
  display: inline-block;
  color: rgba(252, 254, 238, 0.3);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

/* Parte rellena: su ancho es la calificación (4.6 de 5 = 92%) */
.estrellas__llenas {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--rojo);
}

.resenas__lista {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

.resena {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: var(--tinta-clara);
}

.resena__texto {
  margin: 0.6rem 0 0.9rem;
  font-size: 1.0625rem;
}

.resena__autor { font-weight: 700; }

.resenas__fuente {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .resenas__lista { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 5.7 CONTACTO ---------- */
.contacto__lista {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.contacto__lista li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
}

.contacto__lista .icono {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--crema);
}

.contacto__lista .icono--whatsapp {
  padding: 13px;
  background: var(--whatsapp);
}

.contacto__lista h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.contacto__lista a {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (min-width: 700px) {
  .contacto__lista {
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 2.25rem 2.5rem;
    align-items: start;
  }
}

/* ---------- 5.8 FOOTER ---------- */
.pie {
  padding-block: 3rem 2rem;
  background: var(--tinta);
  color: var(--crema);
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  line-height: 1.4;
}

.pie__marca strong {
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* El logo va sobre un círculo crema para que su contorno oscuro se vea */
.pie__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--crema);
}

.pie__logo img { width: 82px; }

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.pie__enlaces a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 700;
  text-underline-offset: 4px;
}

.pie__legal p {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(252, 254, 238, 0.22);
  font-size: 0.95rem;
}

/* ---------- 6. BARRA FIJA EN CELULAR ---------- */
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--tinta);
  color: var(--crema);
  box-shadow: 0 -1px 0 rgba(252, 254, 238, 0.25), 0 -10px 24px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, visibility 0s;
}

.barra--oculta {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s 0.25s;
}

.barra a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--alto-barra);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.barra .icono {
  width: 22px;
  height: 22px;
}

.barra__pedir {
  background: var(--crema);
  color: var(--tinta);
}

.barra__pedir .icono { color: var(--rojo); }


.barra a:focus-visible {
  outline-offset: -4px;
  box-shadow: none;
}

@media (max-width: 767px) {
  /* Deja libre el espacio que tapa la barra al final de la página */
  .pie { padding-bottom: calc(2rem + var(--alto-barra) + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .barra { display: none; }
}

/* ---------- 7. PANTALLAS GRANDES ----------
   Títulos, textos, fotos y separaciones crecen junto con el ancho disponible */
@media (min-width: 1400px) {
  body { font-size: 1.125rem; }

  h2 { font-size: clamp(3.5rem, 3.3vw, 4.25rem); }

  .seccion__intro,
  .eventos__texto { font-size: 1.25rem; }

  .hero__rejilla {
    gap: 3rem;
    padding-block: 4rem 4.5rem;
  }

  .hero__sub { font-size: 1.5rem; }

  .grupo { margin-top: 3.5rem; }

  .grupo__titulo { font-size: 2rem; }

  .menu__fotos { gap: 2rem; }

  .plato__foto img { border-radius: 22px; }

  .plato__nombre { font-size: 1.3125rem; }

  .ubicacion__rejilla { gap: 5rem; }

  .mapa { min-height: 560px; }
}

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

  .boton,
  .barra,
  .barra--oculta,
  .cabecera__menu-icono,
  .cabecera__menu-icono::before,
  .cabecera__menu-icono::after { transition: none; }
}

@media print {
  .barra,
  .cabecera__menu-btn,
  .mapa { display: none; }
}
