/* =========================================================
   Ejemplo: Casa Nogal (restaurante)
   Papel crema, verde de olla y terracota. Serif con carácter
   para los títulos: la comida de casa no se anuncia con letra
   de aplicación.
   ========================================================= */
:root{
  --crema:      #FAF6EF;
  --papel:      #FFFDF9;
  --verde:      #2C4636;   /* 8.9:1 sobre crema */
  --verde-osc:  #1D2F24;
  --verde-claro:#E6EDE6;
  --terracota:  #B4502C;   /* 5.3:1 sobre crema */
  --tinta:      #241F1A;
  --tinta-2:    #5C534A;   /* 6.6:1 sobre crema */
  --linea:      rgba(36,31,26,.14);
  --f-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --f-texto:  "Inter", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px;
  --sombra: 0 18px 36px -22px rgba(36,31,26,.45);
  --max: 1150px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:80px; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }
body{ margin:0; background:var(--crema); color:var(--tinta-2);
  font-family:var(--f-texto); font-size:1.02rem; line-height:1.65; overflow-x:hidden;
  padding-bottom:0; }
img{ display:block; max-width:100%; height:auto; }
h1,h2,h3{ margin:0; font-family:var(--f-titulo); color:var(--tinta);
  font-weight:600; line-height:1.15; text-wrap:balance; }
h1{ font-size:clamp(2.2rem, 4.8vw, 3.4rem); }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.5rem); }
h3{ font-size:1.12rem; }
p{ margin:0 0 1rem; text-wrap:pretty; }
ul,ol{ margin:0; padding:0; list-style:none; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
:focus-visible{ outline:3px solid var(--terracota); outline-offset:2px; border-radius:6px; }
.wrap{ width:100%; max-width:var(--max); margin-inline:auto; padding-inline:var(--pad); }
.ico{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.mini{ font-size:.86rem; }

.sobre{ display:inline-flex; align-items:center; gap:.45rem; margin:0 0 .7rem;
  font-family:var(--f-texto); font-weight:600; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--terracota); }
.sobre .ico{ width:16px; height:16px; }
.sobre--claro{ color:#E3B59C; }
.seccion{ padding:clamp(3rem, 7vw, 5rem) 0; }
.seccion--verde{ background:var(--verde); color:#E7EDE7; }
.seccion--verde h2, .seccion--verde h3{ color:#fff; }
.sec-head{ max-width:620px; margin:0 auto clamp(1.8rem,4vw,2.6rem); text-align:center; }
.sec-head__txt{ margin:.8rem 0 0; }
.sec-head strong{ color:var(--tinta); }

/* ---------- Botones ---------- */
.btn{
  --bg:var(--verde); --fg:#fff; --bd:transparent; --bg-h:var(--verde-osc);
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-height:48px; padding:.8rem 1.4rem;
  background:var(--bg); color:var(--fg); border:2px solid var(--bd); border-radius:999px;
  font-family:var(--f-texto); font-weight:600; font-size:.95rem; text-decoration:none; cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ background:var(--bg-h); }
.btn--grande{ min-height:54px; padding:.95rem 1.7rem; font-size:1rem; }
.btn--linea{ --bg:transparent; --fg:var(--verde); --bd:var(--verde); --bg-h:var(--verde-claro); }
.btn--wa{ --bg:#128C4A; --fg:#fff; --bg-h:#0E7A3F; }
.btn--wa .ico{ fill:currentColor; stroke:none; }

/* ---------- Cabecera ---------- */
.cabecera{ position:sticky; top:0; z-index:100; background:rgba(250,246,239,.94);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--linea); }
.cabecera__inner{ display:flex; align-items:center; gap:1.2rem; min-height:74px; }
.marca{ display:flex; flex-direction:column; text-decoration:none; line-height:1.15; }
.marca__nombre{ font-family:var(--f-titulo); font-weight:700; font-size:1.4rem; color:var(--tinta); }
.marca__tag{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--tinta-2); }
.nav{ display:flex; align-items:center; gap:1.5rem; margin-left:auto; }
.nav a{ text-decoration:none; font-weight:500; font-size:.95rem; }
.nav a:not(.btn):hover{ color:var(--terracota); }
.nav a.nav__cta{ color:#fff; min-height:44px; padding:.6rem 1.2rem; font-size:.9rem; }
.nav-toggle{ display:none; margin-left:auto; width:44px; height:44px; padding:11px;
  background:transparent; border:1px solid var(--linea); border-radius:10px; cursor:pointer; }
.nav-toggle span{ display:block; height:2px; background:var(--tinta); border-radius:2px;
  transition:transform .25s ease, opacity .2s ease; }
.nav-toggle span + span{ margin-top:5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
@media (max-width:860px){
  .nav-toggle{ display:block; }
  .nav{ position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch; gap:0;
    background:var(--papel); border-bottom:1px solid var(--linea); padding:.4rem var(--pad) 1.1rem;
    max-height:0; overflow:hidden; visibility:hidden; transition:max-height .3s ease, visibility 0s linear .3s; }
  .nav.is-abierto{ max-height:75vh; visibility:visible; transition:max-height .35s ease, visibility 0s; }
  .nav a{ padding:.9rem 0; border-bottom:1px solid var(--linea); }
  .nav a.nav__cta{ margin-top:.9rem; border-bottom:0; }
}

/* ---------- Hero ---------- */
.hero{ padding:clamp(2.4rem,5vw,4rem) 0 clamp(2.4rem,5vw,3.4rem); }
.hero__inner{ display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(1.8rem,4vw,3rem); align-items:center; }
.hero .lede{ font-size:1.1rem; max-width:50ch; margin:1.1rem 0 1.8rem; }
.hero__acciones{ display:flex; flex-wrap:wrap; gap:.7rem; }
.sellos{ display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1.7rem; font-size:.93rem; }
.sellos li{ display:inline-flex; align-items:center; gap:.45rem; }
.sellos .ico{ width:18px; height:18px; color:var(--terracota); }
.hero__foto{ margin:0; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sombra); }
@media (max-width:860px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__acciones .btn{ width:100%; }
}

/* ---------- Menú ---------- */
.filtros{ display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin-bottom:1.8rem; }
.filtro{ min-height:44px; padding:.55rem 1.2rem; background:transparent; color:var(--tinta-2);
  border:1.5px solid var(--linea); border-radius:999px; cursor:pointer; font-weight:500; font-size:.92rem;
  transition:background .2s ease, color .2s ease, border-color .2s ease; }
.filtro:hover{ border-color:var(--verde); color:var(--verde); }
.filtro.is-activo{ background:var(--verde); border-color:var(--verde); color:#fff; }

.platillos{ display:grid; gap:clamp(.8rem,1.8vw,1.2rem);
  grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); }
.platillo{ display:flex; flex-direction:column; justify-content:space-between; gap:1rem;
  background:var(--papel); border:1px solid var(--linea); border-radius:var(--r-md); padding:1.3rem 1.3rem 1.1rem; }
.platillo.is-fuera{ display:none; }
.platillo p{ margin:.3rem 0 0; font-size:.95rem; }
.platillo__pie{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.platillo__precio{ font-family:var(--f-titulo); font-weight:700; font-size:1.3rem; color:var(--verde); }
.agregar{ min-height:44px; padding:.55rem 1.1rem; border:1.5px solid var(--verde); border-radius:999px;
  background:transparent; color:var(--verde); font-weight:600; font-size:.92rem; cursor:pointer;
  transition:background .2s ease, color .2s ease; }
.agregar:hover{ background:var(--verde); color:#fff; }
.platillo.is-elegido{ border-color:var(--verde); box-shadow:0 0 0 2px rgba(44,70,54,.12); }
.platillo.is-elegido .agregar{ background:var(--verde); color:#fff; }
.menu__nota{ margin:1.6rem 0 0; text-align:center; font-size:.9rem; }

/* ---------- Barra del pedido ---------- */
.pedido{ position:fixed; left:0; right:0; bottom:0; z-index:95;
  background:var(--verde-osc); color:#fff; box-shadow:0 -12px 30px -18px rgba(0,0,0,.6); }
.pedido__inner{ display:flex; align-items:center; gap:1rem; padding-block:.8rem; }
.pedido__detalle{ display:inline-flex; align-items:center; gap:.6rem; min-height:44px;
  background:transparent; border:0; color:#fff; font-weight:600; cursor:pointer; }
.pedido__cuenta{ display:grid; place-items:center; min-width:28px; height:28px; padding:0 .4rem;
  border-radius:999px; background:#fff; color:var(--verde-osc); font-size:.9rem; font-weight:700; }
.pedido__total{ margin:0 auto 0 0; font-size:.95rem; color:rgba(255,255,255,.8); }
.pedido__total strong{ display:block; font-family:var(--f-titulo); font-size:1.4rem; color:#fff; }
.pedido__lista{ max-height:44vh; overflow-y:auto; border-top:1px solid rgba(255,255,255,.15);
  padding:.6rem max(var(--pad), calc(50vw - var(--max)/2)) 1rem; display:grid; gap:.5rem; }
.pedido__fila{ display:flex; align-items:center; gap:.8rem; font-size:.95rem; }
.pedido__fila span:first-child{ flex:1; }
.pedido__cant{ display:inline-flex; align-items:center; gap:.5rem; }
.pedido__cant button{ display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.14); border:0; color:#fff; cursor:pointer; }
.pedido__cant button:hover{ background:rgba(255,255,255,.26); }
.pedido__cant .ico{ width:16px; height:16px; }
@media (max-width:560px){
  .pedido__inner{ flex-wrap:wrap; }
  .pedido__total{ order:1; }
  .pedido .btn{ order:2; flex:1; }
  .pedido__detalle{ order:0; width:100%; justify-content:flex-start; }
}

/* ---------- El lugar ---------- */
.ambiente{ display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(1.8rem,4vw,3rem); align-items:center; }
.ambiente__fotos{ display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.ambiente__fotos figure{ margin:0; border-radius:var(--r-md); overflow:hidden; }
.ambiente__fotos img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
@media (max-width:860px){ .ambiente{ grid-template-columns:1fr; } }

/* ---------- Tarjetas de visita ---------- */
.tarjetas{ display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); }
.tarjeta{ background:var(--papel); border:1px solid var(--linea); border-radius:var(--r-md); padding:1.5rem 1.4rem; }
.tarjeta__ico{ display:grid; place-items:center; width:46px; height:46px; margin-bottom:1rem;
  border-radius:14px; background:var(--verde-claro); color:var(--verde); }
.tarjeta h3{ margin-bottom:.4rem; }
.tarjeta p{ margin:0; }

/* ---------- Pie ---------- */
/* El aire de abajo lo pone el JavaScript solo cuando aparece la barra del
   pedido; dejarlo fijo aquí abría un hueco negro al final de la página. */
.pie{ background:var(--verde-osc); color:rgba(255,255,255,.8); padding:2.2rem 0 2.6rem; text-align:center; }
.pie__marca{ margin:0 0 .3rem; font-family:var(--f-titulo); font-weight:700; font-size:1.35rem; color:#fff; }
