/* Cafetería Popular · hoja de estilos pública
   Paleta: café tostado #1C120C · terracota · crema #FDFBF7 · dorado.
   Titulares: Playfair Display · acentos: Cormorant Garamond · texto: Plus Jakarta Sans. */

:root {
  --cafe-950: #120a06;
  --cafe-900: #1c120c;
  --cafe-800: #2a1a11;
  --cafe-700: #3d271a;
  --terracota: #b4512f;
  --terracota-claro: #d2745a;
  --terracota-oscuro: #8f3e22;
  --crema: #fdfbf7;
  --marfil: #f5eee1;
  --arena: #e8dcc8;
  --dorado: #b8935a;
  --dorado-claro: #d9bc84;
  --tinta: #2b1e16;
  --tinta-suave: #6a594d;
  --radio: 14px;
  --header-h: 72px;
  --announce-h: 0px;
  --f-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --f-accent: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sombra: 0 12px 32px -14px rgba(28, 18, 12, 0.28);
  --sombra-alta: 0 26px 50px -20px rgba(28, 18, 12, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--announce-h) + 72px);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.012em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prewrap { white-space: pre-line; }
.container { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.96rem; line-height: 1.2; text-decoration: none; overflow: hidden;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracota); color: var(--crema); box-shadow: 0 10px 24px -10px rgba(180, 81, 47, 0.7); }
.btn-primary:hover { background: var(--terracota-oscuro); }
.btn-ghost { border-color: rgba(217, 188, 132, 0.6); color: var(--dorado-claro); }
.btn-ghost:hover { background: rgba(217, 188, 132, 0.12); border-color: var(--dorado-claro); }
.btn-outline { border-color: var(--cafe-900); color: var(--cafe-900); }
.btn-outline:hover { background: var(--cafe-900); color: var(--crema); }
.btn-wa { background: #1f8f55; color: #fff; }
.btn-wa:hover { background: #17703f; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--crema);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(28, 18, 12, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
}
.notices:empty { display: none; }
.notice { padding: 0.45rem 1rem; font-size: 0.82rem; text-align: center; line-height: 1.35; }
.notice-draft { background: #5e2814; color: #ffe8dc; }
.notice-promo { background: var(--dorado); color: var(--cafe-900); font-weight: 600; }
.notice-promo a { text-underline-offset: 3px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--dorado-claro); flex: none; }
.brand-name { display: block; font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--f-accent); font-style: italic; font-size: 0.98rem; color: var(--dorado-claro); line-height: 1.1; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 11px; background: none; border: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--crema); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.site-nav {
  position: fixed; inset: calc(var(--header-h) + var(--announce-h)) 0 0 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: 2rem 1.5rem 6rem;
  background: var(--cafe-900); opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-open .site-nav { opacity: 1; pointer-events: auto; transform: none; }
.site-nav a { font-family: var(--f-display); font-size: 2rem; text-decoration: none; padding: 0.35rem 0; color: var(--crema); }
.site-nav a[aria-current='page'] { color: var(--dorado-claro); font-style: italic; }

/* ---------- Héroes ---------- */
.hero, .page-hero {
  position: relative; color: var(--crema); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(760px 460px at 82% 18%, rgba(180, 81, 47, 0.34), transparent 62%),
    radial-gradient(640px 420px at 8% 96%, rgba(184, 147, 90, 0.16), transparent 62%),
    linear-gradient(165deg, var(--cafe-900) 0%, var(--cafe-800) 100%);
}
.hero::before, .page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + var(--announce-h) + 2rem) 0 5.5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.etiqueta { font-family: var(--f-accent); font-style: italic; font-size: 1.3rem; color: var(--dorado-claro); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); font-weight: 700; margin-bottom: 1.3rem; text-wrap: balance; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(253, 251, 247, 0.82); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; color: rgba(253, 251, 247, 0.85); }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--terracota-claro); flex: none; }
.status.is-open::before { background: #5fd08a; box-shadow: 0 0 0 4px rgba(95, 208, 138, 0.22); }
.hero-visual { position: absolute; right: -90px; bottom: 40px; width: 380px; color: var(--dorado); opacity: 0.2; z-index: 0; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dibujar 2.2s var(--ease) forwards; }
.d2 { animation-delay: 0.25s; } .d3 { animation-delay: 0.5s; } .d4 { animation-delay: 0.8s; }
.steam { stroke-dasharray: 60 140; animation: vapor 5s ease-in-out infinite; }
.steam.s2 { animation-delay: 1.2s; } .steam.s3 { animation-delay: 2.4s; }
.hero-copy > * { animation: entrar 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; } .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; } .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: var(--dorado-claro); border: 1px solid rgba(217, 188, 132, 0.4); border-radius: 50%; transition: background-color 0.3s; }
.scroll-cue:hover { background: rgba(217, 188, 132, 0.14); }
.scroll-cue svg { width: 18px; height: 18px; }
.page-hero { padding: calc(var(--header-h) + var(--announce-h) + 3.2rem) 0 3.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 0.8rem; text-wrap: balance; }
.page-hero p { font-family: var(--f-accent); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--dorado-claro); max-width: 40ch; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--marfil); }
.section-dark { background: var(--cafe-900); color: var(--crema); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 0.7rem; text-wrap: balance; }
.section-head p { font-family: var(--f-accent); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--tinta-suave); }
.section-dark .section-head p { color: var(--dorado-claro); }
.section-foot { margin-top: 2.4rem; }
.strip { background: var(--cafe-950); color: var(--crema); padding: 1.3rem 0; border-top: 1px solid rgba(217, 188, 132, 0.2); }
.strip-list { display: grid; gap: 0.7rem; font-family: var(--f-accent); font-size: 1.28rem; font-style: italic; color: var(--dorado-claro); text-align: center; }

/* ---------- Platos ---------- */
.grid { display: grid; gap: 1.4rem; }
.dish {
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid rgba(184, 147, 90, 0.32); border-radius: var(--radio);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.dish:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); border-color: var(--dorado); }
.dish-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--marfil); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dish:hover .dish-media img { transform: scale(1.05); }
.dish-art { display: grid; place-items: center; color: var(--dorado); background: radial-gradient(circle at 30% 20%, #fff 0%, var(--marfil) 60%, var(--arena) 140%); }
.dish-art svg { width: 76px; height: 76px; transition: transform 0.5s var(--ease); }
.dish:hover .dish-art svg { transform: scale(1.1) rotate(-4deg); }
.dish-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.3rem 1.4rem 1.4rem; flex: 1; }
.dish-head { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-name { font-size: 1.22rem; }
.dish-leader { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--dorado); transform: translateY(-5px); }
.dish-price { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--terracota-oscuro); white-space: nowrap; }
.dish-desc { color: var(--tinta-suave); font-size: 0.97rem; }
.dish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; }
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-star { background: rgba(184, 147, 90, 0.2); color: #6e5126; }
.badge-soldout { background: var(--terracota); color: var(--crema); }
.chip { display: inline-block; padding: 0.1rem 0.6rem; border: 1px solid var(--arena); border-radius: 999px; font-size: 0.78rem; color: var(--tinta-suave); background: var(--crema); }
.alergia-nota { font-size: 0.8rem; color: var(--tinta-suave); font-style: italic; }
/* Carta: tarjeta compacta (foto pequeña al lado) para que platos con y sin foto queden alineados */
.dish-list { flex-direction: row; align-items: stretch; }
.dish-list:hover { transform: translateY(-3px); }
.dish-list .dish-media { flex: 0 0 140px; aspect-ratio: auto; min-height: 140px; }
.dish-list .dish-body { padding: 1.1rem 1.25rem; min-width: 0; }
.dish-list .dish-name { font-size: 1.15rem; }
@media (max-width: 560px) {
  .dish-list .dish-media { flex-basis: 108px; min-height: 108px; }
  .dish-list .dish-body { padding: 0.95rem 1rem; }
  .dish-list .dish-name { font-size: 1.05rem; }
}
.dish.is-soldout { opacity: 0.62; }
.dish.is-soldout .dish-name { text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Promociones ---------- */
.promo { padding: 1.7rem; border-radius: var(--radio); background: var(--cafe-900); color: var(--crema); border: 1px solid var(--dorado); position: relative; overflow: hidden; }
.promo::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(217, 188, 132, 0.35); }
.promo h3 { font-size: 1.45rem; margin: 0.4rem 0 0.5rem; }
.promo p { color: rgba(253, 251, 247, 0.8); }
.promo-tag { font-family: var(--f-accent); font-style: italic; font-size: 1.15rem; color: var(--dorado-claro); }
.promo-price { margin-top: 0.8rem; font-family: var(--f-display); font-size: 1.8rem; color: var(--dorado-claro) !important; }
.promo-until { margin-top: 0.4rem; font-size: 0.85rem; }

/* ---------- Origen ---------- */
.origen { display: grid; gap: 2.4rem; }
.origen-texto h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; text-wrap: balance; }
.origen-texto p { color: rgba(253, 251, 247, 0.8); font-size: 1.06rem; max-width: 46ch; }
.ing-lista { display: grid; gap: 0; }
.ing { padding: 1.4rem 0; border-top: 1px solid rgba(217, 188, 132, 0.28); }
.ing:last-child { border-bottom: 1px solid rgba(217, 188, 132, 0.28); }
.ing h3 { font-size: 1.35rem; color: var(--dorado-claro); margin-bottom: 0.3rem; }
.ing p { color: rgba(253, 251, 247, 0.78); }

/* ---------- Reseñas ---------- */
.resena { padding: 1.7rem; background: #fff; border: 1px solid var(--arena); border-radius: var(--radio); }
.estrellas { color: var(--dorado); letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.resena blockquote { font-family: var(--f-accent); font-size: 1.3rem; line-height: 1.4; margin-bottom: 1rem; }
.resena figcaption { font-size: 0.9rem; color: var(--tinta-suave); }
.resenas-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.6rem; border: 1px dashed var(--dorado); border-radius: var(--radio); background: var(--crema); }
.resenas-cta p { font-family: var(--f-accent); font-size: 1.35rem; font-style: italic; flex: 1 1 260px; }

/* ---------- Visítanos ---------- */
.visita { display: grid; gap: 2rem; align-items: start; }
.visita h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; text-wrap: balance; }
.dato { margin-bottom: 1.1rem; }
.dato dt { font-family: var(--f-accent); font-style: italic; font-size: 1.15rem; color: var(--terracota-oscuro); }
.dato dd { margin: 0; font-size: 1.05rem; }
.dato a { text-decoration: none; border-bottom: 1px solid var(--dorado); }
.dato a:hover { color: var(--terracota-oscuro); }
.horas-resumen li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--dorado); padding: 0.35rem 0; }

/* ---------- Carta ---------- */
.aviso { padding: 0.9rem 1.1rem; margin-bottom: 1.6rem; border-left: 3px solid var(--terracota); background: rgba(180, 81, 47, 0.08); font-size: 0.95rem; }
.carta-bar {
  position: sticky; top: calc(var(--header-h) + var(--announce-h)); z-index: 20; padding: 0.7rem 0;
  background: rgba(253, 251, 247, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--arena);
}
.carta-bar-inner { display: grid; gap: 0.7rem; }
.tablist { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.15rem 0; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 0.6rem 1.1rem; border: 1px solid var(--arena); border-radius: 999px; background: #fff;
  font-size: 0.93rem; font-weight: 600; white-space: nowrap; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.tab:hover { border-color: var(--dorado); }
.tab[aria-selected='true'] { background: var(--cafe-900); color: var(--crema); border-color: var(--cafe-900); }
.buscar { width: 100%; padding: 0.7rem 1.1rem; border: 1px solid var(--arena); border-radius: 999px; background: #fff; }
.buscar:focus { outline: 2px solid var(--dorado); outline-offset: 2px; }
.carta-cuerpo { padding: 2.4rem 0 3rem; min-height: 50vh; }
.cat-head { margin-bottom: 1.4rem; }
.cat-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cat-head p { font-family: var(--f-accent); font-style: italic; font-size: 1.3rem; color: var(--tinta-suave); }
.cat-bloque + .cat-bloque { margin-top: 2.8rem; }
.cat-bloque { scroll-margin-top: 6rem; }
.cat-bloque + .cat-bloque { padding-top: 2.4rem; border-top: 1px solid var(--arena); }
.estrella { margin-bottom: 3rem; padding: 1.6rem clamp(1rem, 3vw, 1.8rem) 1.8rem; border: 1px solid var(--dorado); border-radius: calc(var(--radio) + 6px); background: linear-gradient(180deg, #fff 0%, var(--crema) 100%); box-shadow: var(--sombra); }
.estrella .cat-head h2::before { content: '★ '; color: var(--dorado); }
.tab-todo { border-color: var(--dorado); }
.vacio { padding: 2.4rem 1rem; text-align: center; font-family: var(--f-accent); font-style: italic; font-size: 1.4rem; color: var(--tinta-suave); }
.alergenos-info { margin-top: 2.6rem; border: 1px solid var(--arena); border-radius: var(--radio); background: #fff; }
.alergenos-info summary { padding: 1rem 1.3rem; font-weight: 600; cursor: pointer; }
.alergenos-info div { padding: 0 1.3rem 1.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.alergenos-info p { width: 100%; font-size: 0.92rem; color: var(--tinta-suave); margin-bottom: 0.4rem; }
#alergenos-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---------- Nosotros ---------- */
.historia p + p { margin-top: 1.2rem; }
.historia p { font-size: 1.12rem; }
.historia p:first-child::first-line { font-family: var(--f-display); font-weight: 600; }
.cita { margin: 2.4rem 0; padding-left: 1.4rem; border-left: 3px solid var(--dorado); font-family: var(--f-accent); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.firma { margin-top: 1.6rem; font-family: var(--f-accent); font-style: italic; font-size: 1.6rem; color: var(--terracota-oscuro); }
.valores { display: grid; gap: 1.2rem; }
.valor { padding: 1.6rem; border-top: 2px solid var(--dorado); }
.valor h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.valor p { color: var(--tinta-suave); }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; gap: 1.6rem; }
.panel { padding: 1.7rem; background: #fff; border: 1px solid var(--arena); border-radius: var(--radio); }
.panel h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.tabla-horas { width: 100%; border-collapse: collapse; }
.tabla-horas th, .tabla-horas td { padding: 0.55rem 0; text-align: left; border-bottom: 1px dotted var(--dorado); font-weight: 500; }
.tabla-horas td { text-align: right; }
.tabla-horas tr.hoy th, .tabla-horas tr.hoy td { color: var(--terracota-oscuro); font-weight: 700; }
.tel-lista { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.tel-lista a { font-family: var(--f-display); font-size: 1.5rem; text-decoration: none; }
.tel-lista a:hover { color: var(--terracota-oscuro); }
.mapa { overflow: hidden; border-radius: var(--radio); border: 1px solid var(--arena); aspect-ratio: 4 / 3; background: var(--marfil); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--arena); border-radius: 10px; background: var(--crema); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--dorado); outline-offset: 1px; }
.form-nota { font-size: 0.86rem; color: var(--tinta-suave); }
.form-estado { min-height: 1.3em; font-size: 0.92rem; color: var(--terracota-oscuro); }

/* ---------- Pie ---------- */
.site-footer { background: var(--cafe-950); color: rgba(253, 251, 247, 0.78); padding: 3.4rem 0 6rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.site-footer h2 { font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--dorado-claro); margin-bottom: 0.7rem; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(217, 188, 132, 0.4); }
.site-footer a:hover { color: var(--dorado-claro); }
.site-footer li { margin-bottom: 0.3rem; }
.footer-brand { font-family: var(--f-display); font-size: 1.5rem; color: var(--crema); margin-bottom: 0.6rem; }
.legal { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(217, 188, 132, 0.2); font-size: 0.85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.2rem; border-radius: 999px;
  background: #1f8f55; color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.wa-float:hover { transform: translateY(-3px); background: #17703f; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float span { display: none; }

/* ---------- Animaciones ---------- */
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes vapor { 0% { stroke-dashoffset: 200; opacity: 0; } 25% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 640px) {
  .wa-float span { display: inline; }
  .strip-list { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .valores { grid-template-columns: repeat(3, 1fr); }
  .carta-bar-inner { grid-template-columns: 1fr minmax(200px, 280px); align-items: center; }
}
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { position: relative; font-family: var(--f-body); font-size: 0.95rem; font-weight: 500; padding: 0.3rem 0; }
  .site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--dorado-claro); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
  .site-nav a[aria-current='page'] { font-style: normal; color: var(--crema); }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { position: relative; right: auto; bottom: auto; width: 100%; max-width: 480px; justify-self: end; opacity: 0.9; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .origen { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .visita { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .contacto-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 4rem; }
}

/* =====================================================================
   Capa premium: tema editable, fotos, galería, aparición suave
   ===================================================================== */
:root { --on-acento: #fdfbf7; --hero-overlay: 0.55; }
::selection { background: var(--terracota); color: var(--on-acento); }
html { scrollbar-color: var(--dorado) var(--cafe-950); }
p { text-wrap: pretty; }
h1, h2 { font-feature-settings: 'kern', 'liga'; }
.hero h1 { letter-spacing: -0.022em; }
.btn-primary { color: var(--on-acento); }
.btn-primary:hover { color: var(--on-acento); }

/* Marca / logo */
.brand-logo { width: auto; max-width: 220px; object-fit: contain; }
.footer-logo { height: 52px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 0.9rem; }

/* Hero con foto */
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo img { width: 100%; height: 112%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.5) 100%); }
.hero.has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cafe-950); opacity: var(--hero-overlay); }
.hero.has-photo .hero-visual { display: none; }
.hero.has-photo .hero-inner { grid-template-columns: 1fr; }
.hero.has-photo h1, .hero.has-photo .hero-lead { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }

/* Detalles de sección */
.section-head h2::before { content: ''; display: block; width: 48px; height: 2px; margin-bottom: 1.1rem; background: linear-gradient(90deg, var(--dorado), transparent); }
.section-dark { background: radial-gradient(820px 420px at 92% 0%, rgba(180, 81, 47, 0.2), transparent 62%), var(--cafe-900); }
.strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0; }
.strip-list li { display: inline-flex; align-items: center; }
.strip-list li + li::before { content: '✦'; margin: 0 1.3rem; font-style: normal; font-size: 0.75rem; color: var(--dorado); }

/* Fotos con marco dorado */
.foto { position: relative; margin: 0; overflow: hidden; border-radius: var(--radio); box-shadow: var(--sombra-alta); background: var(--marfil); }
.foto img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.foto:hover img { transform: scale(1.045); }
.foto::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(217, 188, 132, 0.6); border-radius: calc(var(--radio) - 4px); pointer-events: none; }
.foto-origen { grid-column: 1 / -1; }
.foto-origen img { aspect-ratio: 16 / 9; }
.foto-visita { margin-bottom: 1.6rem; }
.nos-layout { display: grid; gap: 2rem; }
.nos-layout:not(.has-foto) { width: min(100% - 2.5rem, 760px); }
.foto-nosotros img { aspect-ratio: 4 / 5; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; grid-auto-flow: dense; }
.galeria-item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--radio); background: var(--marfil); aspect-ratio: 1; cursor: zoom-in; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.galeria-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28, 18, 12, 0.4)); opacity: 0; transition: opacity 0.4s; }
.galeria-item:hover img { transform: scale(1.07); }
.galeria-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(18, 10, 6, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: center; }
.lightbox figure { display: grid; gap: 0.9rem; justify-items: center; max-width: 100%; }
.lightbox img { max-width: min(88vw, 1200px); max-height: 80vh; border-radius: 8px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8); }
.lightbox-cap { font-family: var(--f-accent); font-style: italic; font-size: 1.25rem; color: var(--dorado-claro); text-align: center; min-height: 1.4em; }
.lightbox-nav, .lightbox-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(217, 188, 132, 0.5); background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 1.8rem; line-height: 1; transition: background-color 0.3s; }
.lightbox-nav:hover, .lightbox-x:hover { background: rgba(217, 188, 132, 0.25); }
.lightbox-x { position: absolute; top: 1rem; right: 1rem; }
.lightbox-prev { margin-left: 0.8rem; }
.lightbox-next { margin-right: 0.8rem; }

/* Aparición suave al hacer scroll (solo si hay JS y no se piden menos animaciones) */
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js-reveal .reveal:not(.in) { opacity: 0; }
.js-reveal .reveal.in { opacity: 1; animation: subir 0.95s var(--ease) backwards; }

/* Modo edición (vista previa del panel) */
.is-preview [data-edit] { cursor: pointer; }
.is-preview [data-edit]:hover { outline: 2px dashed var(--terracota-claro); outline-offset: 4px; }
.is-preview .hero-copy > *, .is-preview .reveal { animation: none; }

@media (min-width: 640px) {
  .galeria { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .galeria { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .galeria-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .nos-layout.has-foto { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
  .nos-layout.has-foto .foto { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal:not(.in) { opacity: 1; }
  .hero-photo img { transform: none !important; }
}

/* =====================================================================
   Ajustes nov 2026: portada más compacta, avisos discretos y más movimiento
   ===================================================================== */

/* Avisos de la cabecera: una línea fina; el de «web en pruebas» se pliega al bajar */
.notice { padding: 0.32rem 0.9rem; font-size: 0.76rem; letter-spacing: 0.01em; }
.site-header.is-scrolled .notice-draft { display: none; }
.notice-promo a { display: inline-block; animation: latido 3.2s ease-in-out 1.2s infinite; }

/* Portada: ya no ocupa toda la pantalla */
.hero { min-height: 0; padding: calc(var(--header-h) + var(--announce-h) + 1.6rem) 0 2.6rem; }
.hero .etiqueta { font-size: 1.08rem; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2rem, 8.6vw, 4.2rem); margin-bottom: 0.9rem; }
.hero-lead { font-size: clamp(0.98rem, 1.5vw, 1.15rem); margin-bottom: 1.4rem; }
.hero-actions { gap: 0.6rem; margin-bottom: 1.1rem; }
.hero-actions .btn { padding: 0.8rem 1.35rem; }
.scroll-cue { display: none; }
.hero-visual { width: 240px; right: -70px; bottom: -10px; animation: flotar 7s ease-in-out infinite; }
/* Brillo cálido que respira detrás del texto */
.hero::after {
  content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 116, 90, 0.32), transparent 65%); filter: blur(10px);
  animation: respirar 9s ease-in-out infinite; pointer-events: none;
}
.hero.has-photo::after { width: auto; height: auto; inset: 0; right: 0; top: 0; border-radius: 0; filter: none; animation: none; }
/* Subrayado dorado que se dibuja bajo el titular */
.hero h1::after {
  content: ''; display: block; width: 72px; height: 3px; margin-top: 0.9rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--dorado-claro), var(--terracota-claro));
  transform-origin: left; animation: trazo 1.1s var(--ease) 0.5s both;
}
.page-hero { padding: calc(var(--header-h) + var(--announce-h) + 1.8rem) 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); animation: entrar 0.8s var(--ease) both; }
.page-hero p { font-size: clamp(1.12rem, 2.2vw, 1.45rem); animation: entrar 0.8s var(--ease) 0.1s both; }

@media (min-width: 900px) {
  .hero { min-height: min(68vh, 640px); display: flex; align-items: center; padding: calc(var(--header-h) + var(--announce-h) + 2.4rem) 0 3.2rem; }
  .hero-visual { width: 100%; max-width: 360px; right: auto; bottom: auto; }
  .hero .etiqueta { font-size: 1.25rem; }
  .page-hero { padding: calc(var(--header-h) + var(--announce-h) + 2.6rem) 0 2.6rem; }
}

/* Cinta de frases en movimiento continuo */
.strip { overflow: hidden; padding: 0.95rem 0; }
.strip .container { width: 100%; }
.strip-list.is-marquee { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: cinta var(--marquee-s, 30s) linear infinite; }
.strip-list.is-marquee li { white-space: nowrap; }
.strip-list.is-marquee li + li::before { content: none; }
.strip-list.is-marquee li::after { content: '✦'; margin: 0 1.4rem; font-style: normal; font-size: 0.75rem; color: var(--dorado); }
.strip:hover .strip-list.is-marquee { animation-play-state: paused; }

/* Aparición al hacer scroll: sube, enfoca y crece un poco */
@keyframes subir { from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Tarjetas: brillo que cruza la foto y precio que destaca */
.dish-media { position: relative; }
.dish-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
}
.dish:hover .dish-media::after { transform: translateX(110%); transition: transform 0.9s var(--ease); }
.dish-price { transition: transform 0.35s var(--ease), color 0.35s; }
.dish:hover .dish-price { transform: scale(1.08); color: var(--terracota); }
.dish:active { transform: scale(0.99); }
.badge-star { position: relative; overflow: hidden; }
.badge-star::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%); animation: destello 4s ease-in-out 1.5s infinite; }

/* Pestañas de la carta */
.tab { transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease); }
.tab:active { transform: scale(0.95); }
.tab[aria-selected='true'] { box-shadow: 0 8px 18px -10px rgba(28, 18, 12, 0.7); }
.tablist { scroll-padding-inline: 1rem; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.cat-head h2 { position: relative; }
#carta-cuerpo > .cat-head, #carta-cuerpo > .estrella, #carta-cuerpo > .cat-bloque:first-of-type { animation: entrar 0.6s var(--ease) both; }

/* Botón de WhatsApp: onda suave para que se note sin molestar */
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1f8f55; animation: onda 2.8s ease-out 2s infinite; pointer-events: none; }

/* Barra de progreso de lectura (solo navegadores que lo admiten, sin JS) */
@supports (animation-timeline: scroll()) {
  body::after {
    content: ''; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
    background: linear-gradient(90deg, var(--dorado-claro), var(--terracota-claro));
    transform-origin: left; transform: scaleX(0);
    animation: progreso linear both; animation-timeline: scroll(root);
  }
}

@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes respirar { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.15) translate(-20px, 20px); opacity: 1; } }
@keyframes trazo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes destello { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes onda { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.35, 1.6); opacity: 0; } }
@keyframes latido { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
@keyframes progreso { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero h1::after { transform: none; }
  body::after { display: none; }
}
@media (max-width: 639px) {
  .notice { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .notice-promo a { display: inline; animation: none; }
}
/* Promociones en móvil: carrusel horizontal en vez de una columna larga */
@media (max-width: 639px) {
  #promos.section { padding: 2.2rem 0 2.4rem; }
  #promos .section-head { margin-bottom: 1.2rem; }
  #promos-grid {
    display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1.25rem; padding: 0.2rem 1.25rem 0.6rem; scroll-padding-inline: 1.25rem;
  }
  #promos-grid::-webkit-scrollbar { display: none; }
  #promos-grid > .promo { flex: 0 0 84%; scroll-snap-align: start; padding: 1.3rem; }
  #promos-grid .promo h3 { font-size: 1.22rem; }
  #promos-grid .promo p { font-size: 0.92rem; }
}
@media (min-width: 900px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + var(--announce-h) + 2.6rem) 0 3rem; }
  .hero-inner { grid-template-columns: 1.5fr 0.5fr; }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
  .hero-visual { max-width: 280px; }
}
@media (min-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 240px; }
  .hero-copy { max-width: 900px; }
  .hero h1 { font-size: 3.3rem; text-wrap: wrap; }
}

/* =====================================================================
   Versión final (nov 2026): más movimiento, mapa con consentimiento, legal
   ===================================================================== */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Transición suave entre páginas (navegadores compatibles; el resto navega normal) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: cabecera; }
.wa-float { view-transition-name: whatsapp; }
::view-transition-old(root) { animation: vt-salir 0.22s ease both; }
::view-transition-new(root) { animation: vt-entrar 0.4s var(--ease) both; }
@keyframes vt-salir { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-entrar { from { opacity: 0; transform: translateY(12px); } }

/* Portada: granos de café flotando y etiqueta con brillo */
.beans { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bean { position: absolute; left: var(--x); bottom: -60px; width: calc(26px * var(--s, 1)); height: auto; color: var(--dorado-claro); opacity: 0; animation: grano var(--d, 16s) linear var(--delay, 0s) infinite; }
@keyframes grano {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.32; }
  85% { opacity: 0.18; }
  100% { transform: translateY(-760px) rotate(220deg); opacity: 0; }
}
.hero .etiqueta {
  background: linear-gradient(90deg, var(--dorado-claro) 0%, #fff1d2 45%, var(--dorado-claro) 60%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: entrar 0.9s var(--ease) both, brillo-texto 6s ease-in-out 1.5s infinite;
}
@keyframes brillo-texto { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.status.is-open::before { animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 208, 138, 0); } }
.btn:active { transform: scale(0.97); }

/* Al aparecer: la línea dorada de cada título se dibuja y las fotos se acercan */
.section-head h2::before { transform-origin: left; }
.js-reveal .section-head.reveal:not(.in) h2::before { transform: scaleX(0); }
.section-head.reveal.in h2::before { animation: trazo 0.9s var(--ease) 0.25s both; }
.dish.reveal.in .dish-media img, .galeria-item.reveal.in img { animation: acercar 1.3s var(--ease) backwards; }
@keyframes acercar { from { transform: scale(1.14); filter: saturate(0.6); } }

/* Tarjetas: inclinación 3D suave y reflejo que sigue al ratón */
.dish, .promo { transform-style: preserve-3d; }
.dish.is-tilting, .promo.is-tilting { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-5px); transition: transform 0.12s linear, box-shadow 0.35s var(--ease); }
.dish::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 45%); }
.dish.is-tilting::after { opacity: 1; }
.foto-orientativa { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 0.12rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; background: rgba(28, 18, 12, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dish-list .foto-orientativa { left: 5px; bottom: 5px; font-size: 0.6rem; padding: 0.1rem 0.4rem; }
.alergia-lbl { font-size: 0.78rem; font-weight: 600; color: var(--tinta-suave); margin-right: 0.1rem; }

/* Promociones con borde dorado que gira */
.promo { isolation: isolate; }
.promo::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--dorado-claro) 80%, var(--terracota-claro) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: girar 7s linear infinite;
}
@keyframes girar { to { --ang: 360deg; } }

/* Carta: aviso de alérgenos y barra que gana sombra al quedarse fija */
.nota-alergenos { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; align-items: baseline; padding: 0.85rem 1.05rem; margin-bottom: 1.6rem; border: 1px solid rgba(184, 147, 90, 0.45); border-radius: var(--radio); background: #fffaf0; font-size: 0.92rem; color: var(--tinta); }
.nota-alergenos span { color: var(--terracota); }
.nota-alergenos a { color: var(--terracota-oscuro); font-weight: 600; text-underline-offset: 3px; }
.carta-bar { transition: box-shadow 0.3s var(--ease), background-color 0.3s; }
.carta-bar.is-stuck { box-shadow: 0 12px 24px -16px rgba(28, 18, 12, 0.45); background: rgba(253, 251, 247, 0.98); }

/* Botón para volver arriba */
.to-top {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 44;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(217, 188, 132, 0.55);
  background: rgba(28, 18, 12, 0.88); color: var(--dorado-claro); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terracota); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* Mapa: aviso antes de cargar Google Maps */
.mapa { position: relative; }
.mapa-aviso {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.7rem; padding: 1.2rem; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.85), rgba(245, 238, 225, 0.92) 60%),
    repeating-linear-gradient(45deg, rgba(184, 147, 90, 0.12) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(184, 147, 90, 0.1) 0 2px, transparent 2px 30px),
    var(--marfil);
}
.mapa-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--terracota); transform: rotate(-45deg); box-shadow: 0 8px 16px -6px rgba(143, 62, 34, 0.7); animation: rebote 2.4s var(--ease) infinite; }
.mapa-pin::after { content: ''; display: block; width: 12px; height: 12px; margin: 11px; border-radius: 50%; background: var(--crema); }
@keyframes rebote { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.mapa-dir { font-family: var(--f-display); font-size: 1.15rem; }
.mapa-link { font-size: 0.9rem; font-weight: 600; color: var(--terracota-oscuro); text-underline-offset: 3px; }
.mapa-nota { max-width: 34ch; font-size: 0.78rem; color: var(--tinta-suave); }

/* Página legal */
.legal-doc h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin: 2.8rem 0 0.9rem; scroll-margin-top: calc(var(--header-h) + var(--announce-h) + 1rem); }
.legal-doc h2:first-of-type { margin-top: 1.6rem; }
.legal-doc p + p { margin-top: 0.8rem; }
.legal-doc a { color: var(--terracota-oscuro); text-underline-offset: 3px; }
.legal-indice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.legal-indice a { padding: 0.45rem 0.95rem; border: 1px solid var(--arena); border-radius: 999px; background: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--tinta); transition: border-color 0.25s, background-color 0.25s; }
.legal-indice a:hover { border-color: var(--dorado); background: var(--marfil); }
.legal-datos { display: grid; gap: 0.35rem; margin: 1rem 0 1.2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--arena); border-radius: var(--radio); background: #fff; }
.legal-datos > div { display: grid; grid-template-columns: minmax(5.2rem, 7.5rem) 1fr; gap: 0.6rem; }
.legal-datos dt { font-weight: 600; color: var(--tinta-suave); }
.legal-datos dd { margin: 0; }
.creditos { display: grid; gap: 0.55rem; margin-top: 1rem; font-size: 0.86rem; color: var(--tinta-suave); }
.creditos li { padding-left: 1rem; border-left: 2px solid var(--arena); }
.creditos strong { color: var(--tinta); }
.creditos-nota { margin-top: 1.2rem; font-size: 0.86rem; color: var(--tinta-suave); }

/* Pie con onda y enlaces legales */
.site-footer { position: relative; }
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -27px; height: 28px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'><path d='M0 28V14C150 0 300 0 450 10S750 26 900 14 1100 2 1200 10V28Z' fill='%23120a06'/></svg>") center / 100% 100% no-repeat;
}
.legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* 404 */
.hero-404 { min-height: 72vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero .etiqueta { color: var(--dorado-claro); background: none; }
  .js-reveal .section-head.reveal:not(.in) h2::before { transform: none; }
}
