/* Aires Criollos — concepto "Filete y brasa": fileteado porteño que se traza a mano
   sobre el carbón de la parrilla, con chispas que suben. */

@font-face {
  font-family: "Abril Fatface";
  src: url("fonts/abril-fatface-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* Marca */
  --carbon: #1b1410;
  --carbon-2: #2a1f18;
  --brasa: #b3391a;          /* botones: 5:1 con crema */
  --brasa-viva: #e8622c;     /* solo decorativo */
  --verde-filete: #2e5b47;
  --mostaza: #e0a93b;        /* acento sobre carbón: 8.5:1 */
  /* Neutros */
  --crema: #f4e9d4;
  --crema-2: #eadbbf;
  --texto-suave: #cdbfa6;
  --tinta: #24190f;

  --display: "Abril Fatface", "Bodoni 72", Didot, Georgia, serif;
  --texto: "Figtree", system-ui, sans-serif;

  --franja-alto: 2.5rem;
  --radio: 1.25rem;
  --pad-seccion: clamp(4.5rem, 10vw, 9rem);
  --ease-asentar: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--franja-alto) + 4.5rem); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
p { margin: 0 0 1rem; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--mostaza);
  outline-offset: 3px;
}

/* Franja de aviso */
.franja {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  margin: 0;
  min-height: var(--franja-alto);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  background: var(--mostaza);
  color: var(--tinta);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* Cabecera */
.cabecera {
  position: sticky;
  top: var(--franja-alto);
  z-index: 40;
  margin-top: var(--franja-alto);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(27, 20, 16, 0.92);
  border-bottom: 1px solid rgba(224, 169, 59, 0.25);
}
@supports (backdrop-filter: blur(12px)) {
  .cabecera { background: rgba(27, 20, 16, 0.75); backdrop-filter: blur(12px); }
}
.marca { text-decoration: none; display: flex; flex-direction: column; min-height: 44px; justify-content: center; }
.marca__nombre { font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--crema); }
.marca__bajada { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mostaza); }

.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--mostaza); }
.nav li:not(:last-child) { display: none; }
.nav__cta { background: var(--brasa); color: var(--crema); }
.nav__cta:hover { background: var(--crema); color: var(--tinta) !important; }
@media (min-width: 760px) { .nav li:not(:last-child) { display: list-item; } }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem; border-radius: 999px;
  font-family: var(--texto); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.boton--brasa { background: var(--brasa); color: var(--crema); box-shadow: 0 0 0 0 rgba(232, 98, 44, 0.5); }
.boton--brasa:hover { box-shadow: 0 10px 40px -8px rgba(232, 98, 44, 0.7); background: #9f3015; }
.boton--brasa:active { background: #862811; }
.boton--linea { border-color: var(--mostaza); color: var(--crema); background: transparent; }
.boton--linea:hover { background: var(--mostaza); color: var(--tinta); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--franja-alto) - 4.25rem);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) 6rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(232, 98, 44, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(224, 169, 59, 0.35), transparent 70%),
    var(--carbon);
}
.hero__antetitulo {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mostaza); margin-bottom: 1.25rem;
}
.hero__titulo {
  font-size: clamp(3.6rem, 15vw, 9.5rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
  perspective: 800px;
  color: var(--crema);
  text-shadow: 0 6px 40px rgba(232, 98, 44, 0.25);
}
.hero__linea { display: inline-block; }
.hero__linea--b { color: var(--mostaza); font-style: italic; }
.hero__titulo .palabra { display: inline-block; white-space: nowrap; perspective: 600px; }
.hero__titulo .char { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero__bajada { max-width: 38rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--texto-suave); margin-bottom: 2rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.filete { display: block; fill: none; stroke: var(--mostaza); stroke-linecap: round; stroke-width: 3; }
.filete--hero { width: min(26rem, 80vw); margin-bottom: 1.5rem; }
.trazo--fino { stroke-width: 2; stroke: var(--brasa-viva); }

.parrilla {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3.5rem;
  z-index: -1; opacity: 0.55;
}
.parrilla__hierros line { stroke: #4a3628; stroke-width: 5; }

/* Chispas */
.hero__brasas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chispa {
  position: absolute; bottom: 2rem; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brasa-viva); box-shadow: 0 0 12px 3px rgba(232, 98, 44, 0.7);
  opacity: 0;
  animation: subir 6s linear infinite;
}
.chispa:nth-child(1) { left: 12%; animation-delay: 0s; }
.chispa:nth-child(2) { left: 24%; animation-delay: 2.1s; animation-duration: 7s; }
.chispa:nth-child(3) { left: 38%; animation-delay: 4s; width: 4px; height: 4px; }
.chispa:nth-child(4) { left: 51%; animation-delay: 1.2s; animation-duration: 8s; }
.chispa:nth-child(5) { left: 63%; animation-delay: 3.3s; background: var(--mostaza); }
.chispa:nth-child(6) { left: 74%; animation-delay: 0.7s; width: 4px; height: 4px; }
.chispa:nth-child(7) { left: 86%; animation-delay: 2.8s; animation-duration: 6.5s; }
.chispa:nth-child(8) { left: 93%; animation-delay: 5s; background: var(--mostaza); }
@keyframes subir {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  10%  { opacity: 1; }
  50%  { transform: translate(18px, -40vh) scale(0.8); }
  100% { opacity: 0; transform: translate(-12px, -80vh) scale(0.2); }
}

/* Secciones */
.rotulo {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--verde-filete); margin-bottom: 1rem;
  padding-bottom: 0.35rem; border-bottom: 2px solid currentColor;
}
.rotulo--claro { color: var(--mostaza); }
.seccion__cabeza { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }

/* La casa (fondo crema) */
.casa {
  background: var(--crema); color: var(--tinta);
  padding: var(--pad-seccion) clamp(1.25rem, 6vw, 6rem);
  display: grid; gap: 3rem; align-items: center;
}
.casa h2 { color: var(--verde-filete); }
.casa__texto { max-width: 40rem; }
.casa__firma { font-family: var(--display); font-size: 1.5rem; color: var(--brasa); margin-top: 1.5rem; }
.casa__sello { position: relative; margin: 0 auto; width: min(16rem, 70vw); aspect-ratio: 1; }
.casa__sello svg { width: 100%; height: 100%; animation: girar 40s linear infinite; }
.sello__aro { fill: none; stroke: var(--verde-filete); stroke-width: 3; }
.sello__aro--fino { stroke: var(--brasa); stroke-width: 1.5; stroke-dasharray: 4 6; }
.sello__flor { fill: rgba(46, 91, 71, 0.12); stroke: var(--verde-filete); stroke-width: 2.5; }
.sello__centro { fill: var(--brasa); }
.sello__texto {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--tinta);
  text-shadow: 0 0 10px var(--crema), 0 0 4px var(--crema);
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (min-width: 860px) { .casa { grid-template-columns: 1.4fr 1fr; } }

/* Carta */
.carta { padding: var(--pad-seccion) clamp(1.25rem, 5vw, 5rem); background: var(--carbon); }
.carta .seccion__cabeza p:last-child { color: var(--texto-suave); }
.carta__grilla {
  list-style: none; margin: 0 auto; padding: 0; max-width: 72rem;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .carta__grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .carta__grilla { grid-template-columns: repeat(3, 1fr); }
  .plato--destacado { grid-row: span 2; }
}
.plato {
  position: relative; overflow: hidden;
  padding: 2rem 1.75rem 2.5rem;
  background: var(--carbon-2);
  border: 1px solid rgba(224, 169, 59, 0.22);
  border-radius: var(--radio);
  transition: transform 0.35s var(--ease-asentar), border-color 0.3s;
  transform-style: preserve-3d;
}
.plato:hover { border-color: var(--mostaza); }
.plato h3 { color: var(--mostaza); }
.plato p { color: var(--texto-suave); margin: 0; position: relative; }
.plato__num {
  position: absolute; right: 1rem; bottom: -1.5rem;
  font-family: var(--display); font-size: 6rem; line-height: 1;
  color: rgba(224, 169, 59, 0.08); pointer-events: none;
}
.plato--destacado {
  background:
    radial-gradient(circle at 80% 100%, rgba(232, 98, 44, 0.35), transparent 60%),
    var(--carbon-2);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem;
}
.plato--destacado h3 { font-size: clamp(2rem, 4vw, 3rem); }
.plato--postre { background: linear-gradient(160deg, #3a1f1a, var(--carbon-2) 70%); }
.carta__promo {
  max-width: 72rem; margin: 2rem auto 0; padding: 1.25rem 1.5rem;
  border: 2px dashed rgba(224, 169, 59, 0.5); border-radius: var(--radio);
  text-align: center; color: var(--crema);
}
.carta__promo strong { color: var(--mostaza); }

/* Motivos (fondo verde fileteado) */
.motivos {
  padding: var(--pad-seccion) clamp(1.25rem, 5vw, 5rem);
  background: var(--crema-2); color: var(--tinta);
}
.motivos h2 { color: var(--verde-filete); }
.motivos__lista {
  list-style: none; margin: 0 auto; padding: 0; max-width: 68rem;
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .motivos__lista { grid-template-columns: repeat(3, 1fr); }
  .motivo:nth-child(2) { translate: 0 2.5rem; }
}
.motivo { padding-top: 1.5rem; border-top: 3px solid var(--verde-filete); }
.motivo h3 { color: var(--tinta); }
.icono {
  width: 4rem; height: 4rem; margin-bottom: 1rem;
  fill: none; stroke: var(--verde-filete); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.icono__llama { stroke: var(--brasa); }

/* Pedidos */
.pedidos {
  padding: var(--pad-seccion) clamp(1.25rem, 6vw, 6rem);
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(46, 91, 71, 0.55), transparent 70%),
    var(--carbon);
  display: grid; gap: 2.5rem; align-items: center;
}
.pedidos__texto p { color: var(--texto-suave); max-width: 34rem; margin-bottom: 1.75rem; }
.pedidos__pagos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pedidos__pagos li {
  padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 600;
  border: 1px solid rgba(244, 233, 212, 0.35); color: var(--crema);
}
@media (min-width: 860px) { .pedidos { grid-template-columns: 1.3fr 1fr; } }

/* Contacto */
.contacto {
  background: var(--crema); color: var(--tinta);
  padding: var(--pad-seccion) clamp(1.25rem, 6vw, 6rem);
  display: grid; gap: 3rem;
}
@media (min-width: 900px) { .contacto { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contacto h2 { color: var(--verde-filete); }
.datos { margin: 0; display: grid; gap: 1rem; }
.datos div { display: grid; gap: 0.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(36, 25, 15, 0.15); }
.datos dt { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brasa); }
.datos dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.datos a { display: inline-block; min-height: 44px; line-height: 44px; text-decoration-color: var(--brasa); text-underline-offset: 4px; }
.datos a:hover { color: var(--brasa); }

.reserva {
  position: relative; display: grid; gap: 1.1rem;
  padding: 2rem clamp(1.25rem, 4vw, 2.25rem);
  background: var(--carbon); color: var(--crema); border-radius: var(--radio);
}
.reserva__aviso {
  justify-self: start; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--mostaza); color: var(--tinta); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.campo { display: grid; gap: 0.35rem; }
.campo--doble { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.campo--doble > div { display: grid; gap: 0.35rem; }
.reserva label { font-weight: 600; font-size: 0.95rem; }
.reserva input {
  width: 100%; min-height: 48px; padding: 0 0.9rem;
  font: inherit; font-size: 1rem; color: var(--crema);
  background: var(--carbon-2); border: 1px solid rgba(244, 233, 212, 0.35); border-radius: 0.6rem;
  color-scheme: dark;
}
.reserva input:hover { border-color: var(--mostaza); }
.reserva .boton { justify-self: start; }
.reserva__estado { margin: 0; min-height: 1.5rem; color: var(--mostaza); font-weight: 600; }

/* Pie */
.pie { padding: 3.5rem 1.25rem 2.5rem; text-align: center; color: var(--texto-suave); font-size: 0.95rem; }
.pie a { text-underline-offset: 3px; }
.pie a:hover { color: var(--mostaza); }
.filete--pie { width: min(20rem, 70vw); margin: 0 auto 1.5rem; }
.pie__nombre { font-family: var(--display); font-size: 2rem; color: var(--crema); margin-bottom: 0.5rem; }
.pie__firma { margin-top: 1.5rem; font-weight: 600; color: var(--mostaza); }

/* Scroll reveal: solo con soporte; sin soporte, todo visible */
@supports (animation-timeline: view()) {
  .revelar {
    animation: asentar linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  .motivo .icono path {
    stroke-dasharray: 1;
    animation: trazar linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
  }
}
@keyframes asentar {
  from { opacity: 0; translate: 0 48px; filter: blur(4px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  :root { --franja-alto: 3.25rem; }
}
@media (max-width: 380px) {
  :root { --franja-alto: 4rem; }
  .franja { font-size: 0.75rem; }
  .campo--doble { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .chispa { display: none; }
  .revelar, .motivo .icono path { animation: none !important; }
}
