/* ---------- Tipografias self-hosted (CSP font-src 'self') ---------- */
@font-face {
  font-family: 'Oswald';
  src: url('/fonts/oswald-latin-var.woff2') format('woff2-variations');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --negro: #0b0b0b;
  --negro-2: #141312;
  --negro-3: #1d1b19;
  --crema: #f2e7d3;
  --crema-2: rgba(242, 231, 211, 0.62);
  --linea: rgba(242, 231, 211, 0.14);
  --rojo: #c8102e;
  --rojo-claro: #e5203f;
  --display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ancho: 1180px;
  --borde: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--texto);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--crema);
  color: var(--negro);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.saltar:focus { left: 0; }

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

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.boton--rojo {
  background: var(--rojo);
  color: #fff;
}
.boton--rojo:hover { background: var(--rojo-claro); transform: translateY(-2px); }

.boton--grande {
  padding: 1.15rem 2.6rem;
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 4.5rem;
  position: relative;
  gap: 0.4rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--linea);
}

/* Acceso al sistema de pedidos para empresas cliente. */
.hero__ingresar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: var(--crema);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.hero__ingresar:hover { border-color: var(--crema-2); color: #fff; }
.hero__ingresar[hidden] { display: none; }

.hero__logo {
  width: min(62vw, 260px);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(1.5rem, 5vw, 2.75rem);
}

.hero__titulo {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-size: clamp(2.35rem, 9.5vw, 5rem);
}

.hero__bajada {
  margin: 1rem auto 2.1rem;
  max-width: 34ch;
  color: var(--crema-2);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
}

.hero__abajo {
  margin-top: 2.2rem;
  color: var(--crema-2);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__abajo::after { content: ' ↓'; }
.hero__abajo:hover { color: var(--crema); }

/* ---------- Secciones ---------- */
.seccion {
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem;
}
.seccion--alt { background: var(--negro-2); }

.seccion__titulo {
  max-width: var(--ancho);
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: clamp(1.9rem, 6.5vw, 3.1rem);
}

.seccion__titulo::after {
  content: '';
  display: block;
  width: 62px;
  height: 4px;
  background: var(--rojo);
  margin-top: 1rem;
}

.seccion__bajada {
  max-width: var(--ancho);
  margin: 1.1rem auto 0;
  color: var(--crema-2);
  font-size: 1rem;
}
.seccion__bajada strong { color: var(--crema); font-weight: 500; }

/* ---------- Grilla de platos ---------- */
.grilla {
  list-style: none;
  max-width: var(--ancho);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 2.6vw, 1.75rem);
  grid-template-columns: 1fr;
}

.tarjeta {
  background: var(--negro-3);
  border: 1px solid var(--linea);
  border-radius: var(--borde);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tarjeta__foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--negro-2);
}

.tarjeta__cuerpo {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.tarjeta__nombre {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.12;
  font-size: 1.32rem;
}

.tarjeta__nota {
  margin: 0;
  color: var(--crema-2);
  font-size: 0.86rem;
}

.tarjeta__precio {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--rojo-claro);
  line-height: 1;
}

.grilla--chica .tarjeta__nombre { font-size: 1.12rem; }
.grilla--chica .tarjeta__foto { aspect-ratio: 5 / 4; }

/* ---------- Listas (combos y bebidas) ---------- */
/* Mismo contenedor que los titulos, para que la fila arranque alineada con el
 * borde izquierdo de "COMBOS" / "BEBIDAS" y no flotando en el medio. */
.lista {
  list-style: none;
  max-width: var(--ancho);
  margin: clamp(1.8rem, 4vw, 2.5rem) auto 0;
  padding: 0;
}

.lista .fila { max-width: 780px; }

.fila {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--linea);
}
.fila:last-child { border-bottom: 0; }

.fila__nombre {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
}

.fila__puntos {
  flex: 1;
  border-bottom: 1px dotted var(--linea);
  transform: translateY(-0.28rem);
  min-width: 1.5rem;
}

.fila__precio {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--rojo-claro);
  white-space: nowrap;
}

/* ---------- Como funciona ---------- */
.pasos {
  list-style: none;
  max-width: var(--ancho);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: paso;
}

.paso {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--borde);
  background: var(--negro-2);
}

.paso__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 0.85;
  color: var(--rojo);
  flex: none;
}

.paso__txt {
  margin: 0;
  font-size: 1.05rem;
  align-self: center;
}

/* ---------- Contacto ---------- */
.seccion--contacto {
  text-align: center;
  border-top: 1px solid var(--linea);
}
.seccion--contacto .seccion__titulo::after { margin-inline: auto; }

.contacto__txt {
  margin: 1.1rem auto 2rem;
  color: var(--crema-2);
  max-width: 32ch;
}

.contacto__tel {
  display: block;
  margin-top: 1.75rem;
  color: var(--crema);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.contacto__tel:hover { color: var(--rojo-claro); }

/* ---------- Pie ---------- */
.pie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2.5rem 1.25rem 6.5rem;
  border-top: 1px solid var(--linea);
  background: var(--negro-2);
}
.pie__marca { width: 34px; height: 34px; }
.pie__txt {
  margin: 0;
  color: var(--crema-2);
  font-size: 0.86rem;
}

/* ---------- Boton flotante ---------- */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--rojo);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.18s ease;
}
.flotante:hover { background: var(--rojo-claro); }
.flotante__ico { flex: none; }

/* Oculto solo mientras el hero (que ya tiene su propio CTA) esta a la vista. */
.flotante[data-oculto] {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* ---------- Scroll reveal ----------
 * El estado oculto se aplica solo con la clase .js (la pone main.js). Si el JS
 * no corre, nada queda invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .grilla { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .paso { flex-direction: column; gap: 0.75rem; }
  .paso__txt { align-self: flex-start; }
  .seccion { padding-inline: 2rem; }
}

@media (min-width: 1000px) {
  .hero__logo { width: 300px; }
  .hero__ingresar { top: 1.5rem; right: 2.5rem; }
  .grilla { grid-template-columns: repeat(3, 1fr); }
  .grilla--chica { grid-template-columns: repeat(4, 1fr); }
  .seccion { padding-inline: 2.5rem; }
  .flotante { right: 1.75rem; bottom: 1.75rem; }
}

/* ---------- Accesibilidad de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
