/* =========================================================
   Arepa Mía — Estilos (Dark Luxury · Dark Glass)
   Paleta ESTRICTA (ver CLAUDE.md): negro, dorado, blanco/gris claro.
   ========================================================= */

/* Fuentes alojadas en el propio sitio (licencia SIL OFL), solo subconjunto latino
   (incluye ñ y tildes). Variables: un archivo cubre todos los pesos. */
@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/bodoni-moda-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
}
/* Respaldo con las métricas de Montserrat (igual que next/font): mientras carga la fuente, el texto ocupa el mismo
   espacio; al llegar Montserrat no cambia de tamaño (sin recálculo de diseño ni LCP tardío del primer párrafo). */
@font-face {
  font-family: "Montserrat Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 113.39%; ascent-override: 85.43%; descent-override: 22.15%; line-gap-override: 0%;
}

:root {
  --black: #0D0D0D;
  --black-soft: #121212;
  --gold: #D4AF37;
  --gold-muted: #C5A059;
  --white: #FFFFFF;
  --gray-light: #E5E5E5;

  --gold-line: rgba(212, 175, 55, .35);
  --gold-soft: rgba(212, 175, 55, .18);
  --gold-faint: rgba(212, 175, 55, .07);
  --line: rgba(229, 229, 229, .09);
  --text-dim: rgba(229, 229, 229, .7);
  --glass: rgba(18, 18, 18, .55);
  --glass-strong: rgba(13, 13, 13, .78);
  --gold-metal: linear-gradient(135deg, #F3DC8A 0%, #D4AF37 38%, #C5A059 62%, #E9CF7A 100%);

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 18px;
  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--gray-light);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

/* Grano sutil: textura premium sobre el negro */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--black); }

/* El atributo hidden siempre gana (tarjetas, botones y grupos que JS oculta) */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 300; padding: .8em 1.2em; background: var(--gold); color: var(--black); border-radius: 999px; font-weight: 600; font-size: .8rem; }
.skip-link:focus { top: 16px; color: var(--black); }

/* Transición entre páginas: solo el contenido central se desvanece y entra;
   encabezado y barra inferior quedan quietos (view-transition-name propio) */
@view-transition { navigation: auto; }
main { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(page) { animation: pageOut .18s ease-in both; }
::view-transition-new(page) { animation: pageIn .42s var(--ease) both; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } }
main h1:focus { outline: none; }

/* Barra dorada de carga mientras llega la otra página */
.route-progress {
  position: fixed; top: 0; left: 0; z-index: 400; height: 2px; width: 100%;
  background: var(--gold-metal); box-shadow: 0 0 12px rgba(212, 175, 55, .7);
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none;
}
.route-progress.is-loading { opacity: 1; transform: scaleX(.75); transition: transform 2.5s cubic-bezier(.1, .7, .2, 1); }
.route-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .35s .15s ease; }

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 5.3vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.4rem; }
h1 em, h2 em, .footer-cta-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .7rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.lead { font-size: 1.08rem; color: var(--text-dim); max-width: 60ch; }

.section-head { text-align: center; max-width: 860px; margin: 0 auto 3.5rem; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-sub { color: var(--text-dim); margin: 0; }

.glass-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55em 1.1em;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-line); border-radius: 999px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.9em;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: 999px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.2em 2.3em; font-size: .78rem; }
.btn-sm { padding: .75em 1.35em; font-size: .66rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-gold { background: var(--gold-metal); color: var(--black); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .55); }
.btn-gold:hover { color: var(--black); box-shadow: 0 16px 40px -10px rgba(212, 175, 55, .75); }
/* Brillo que cruza el botón */
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-gold:hover::after { left: 120%; }

.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }
.btn-glass {
  background: rgba(255, 255, 255, .04); color: var(--white);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: var(--gold); color: var(--gold); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 1px solid var(--gold-line); border-radius: 50%;
  color: var(--gold); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }

.link-btn {
  background: none; border: 0; padding: .4em 0; margin-top: .6rem;
  color: var(--text-dim); font: inherit; font-size: .8rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--gold); }
.text-link { font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Header (glass flotante) ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; transition: top .35s var(--ease); view-transition-name: site-header; }
.site-header.is-scrolled { top: 8px; }
.header-inner {
  position: relative;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 .75rem 0 1.1rem;
  border: 1px solid rgba(229, 229, 229, .1);
  border-radius: 999px;
  transition: height .35s var(--ease), border-color .35s var(--ease);
}
/* El blur vive en un pseudo-elemento para no crear un contenedor que atrape el menú móvil (position: fixed) */
.header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(13, 13, 13, .38);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: background .35s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 64px; border-color: var(--gold-line); }
.site-header.is-scrolled .header-inner::before { background: rgba(13, 13, 13, .72); }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); }
.brand-logo {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6));
  transition: width .35s var(--ease), height .35s var(--ease), transform .4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.04); }
.site-header.is-scrolled .brand-logo { width: 48px; height: 48px; }
/* Misma tipografía de la marca: AREPA en blanco, MÍA en dorado */
.brand-name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--white); white-space: nowrap;
}
.brand-name b { font-weight: 600; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 400px) { .brand-name { font-size: 1rem; letter-spacing: .08em; } }

.hero-logo {
  width: 128px; height: 128px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 32px rgba(212, 175, 55, .28)) drop-shadow(0 12px 24px rgba(0, 0, 0, .7));
  animation: rise .9s var(--ease) both;
}
@media (max-width: 640px) { .hero-logo { width: 104px; height: 104px; margin-bottom: 1.1rem; } }

.brand-footer .brand-logo { width: 120px; height: 120px; }

.main-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; }
.main-nav ul a {
  display: block; padding: .55em 1.1em; border-radius: 999px;
  color: var(--gray-light); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--gold); background: var(--gold-faint); }
.main-nav ul a, .nav-cta { white-space: nowrap; }
/* Seis enlaces + botón: entre 1101 y 1360 px se compactan para caber en una línea */
@media (min-width: 1101px) and (max-width: 1360px) {
  .main-nav { gap: 1rem; }
  .main-nav ul { gap: .1rem; }
  .main-nav ul a { padding: .55em .8em; letter-spacing: .12em; font-size: .68rem; }
}

.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--gold-line); border-radius: 50%;
  color: var(--gold); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cart-btn:hover { border-color: var(--gold); background: var(--gold-faint); }
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--black);
  border-radius: 999px; font-size: .64rem; font-weight: 600;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-badge.has-items { transform: scale(1); }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; margin: 5px 0; background: var(--gold); transition: transform .3s, opacity .3s; }

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .site-header { top: 10px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -2;
    flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
    background: rgba(13, 13, 13, .97);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: center; gap: .6rem; }
  .main-nav ul a { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--white); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Hero (full viewport) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 60px) 110px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg {
  position: absolute; top: -10%; left: 0;
  width: 100%; height: 120%;
  object-fit: cover; object-position: 50% 55%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  animation: heroZoom 2.4s var(--ease) both;
  will-change: transform;
}
@media (min-width: 961px) { .hero-media { left: 32%; } .hero-bg { object-position: 50% 50%; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--black) 0%, var(--black) 30%, rgba(13, 13, 13, .55) 55%, rgba(13, 13, 13, .15) 80%, rgba(13, 13, 13, .5) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, .55) 0%, transparent 22%, transparent 70%, var(--black) 100%);
}
@media (max-width: 960px) {
  .hero-shade { background: linear-gradient(180deg, rgba(13, 13, 13, .7) 0%, rgba(13, 13, 13, .82) 45%, var(--black) 100%); }
}
.hero-glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; left: -18vw; top: -10vw;
  background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 60%);
  filter: blur(20px); pointer-events: none;
}

.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 961px) { .hero-inner { grid-template-columns: 1.4fr .6fr; } .hero h1 .line { white-space: nowrap; } }

.hero-chip { margin-bottom: 1.75rem; animation: rise .9s .1s var(--ease) both; }
.hero h1 { margin-bottom: 1.5rem; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero h1 .line { display: block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; }
.hero h1 .line:nth-child(3) { animation-delay: .24s; }
/* 4.ª línea del H1 (cola larga): sello dorado, más pequeño que el titular */
.hero h1 .line-sub {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 1.1rem;
  font-family: var(--font-body); font-size: clamp(.78rem, 1.25vw, 1rem); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; line-height: 1.5;
  color: var(--gold); text-shadow: none;
  animation-delay: .32s;
}
.hero h1 .line-sub::before { content: ""; width: 34px; height: 1px; flex-shrink: 0; background: var(--gold); }
@media (max-width: 400px) { .hero h1 .line-sub { letter-spacing: .18em; gap: .6rem; } .hero h1 .line-sub::before { width: 22px; } }
.hero-slogan { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-dim); max-width: 46ch; margin-bottom: 2.25rem; animation: rise 1s .36s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; animation: rise 1s .48s var(--ease) both; }
.hero-status { margin-top: 1.5rem !important; }

/* Tarjetas flotantes */
.hero-floats { position: relative; min-height: 420px; }
.float-card {
  position: absolute;
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  translate: var(--fx, 0px) var(--fy, 0px);
  transition: translate .6s var(--ease);
}
.float-dish { right: 0; bottom: 10px; width: 300px; padding: 1.3rem 1.4rem; display: grid; gap: .3rem; animation: rise 1s .6s var(--ease) both, bob 7s 1.6s ease-in-out infinite; }
.float-label { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.float-title { font-family: var(--font-display); font-size: 1.45rem; color: var(--white); line-height: 1.15; }
.float-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.float-badge { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.15rem; font-size: .76rem; color: var(--text-dim); }
.float-badge svg { color: var(--gold); }
.float-badge strong { display: block; color: var(--white); font-weight: 500; font-size: .86rem; }
.float-a { top: 20px; right: 40px; animation: rise 1s .75s var(--ease) both, bob 6s 1.8s ease-in-out infinite; }
.float-b { top: 170px; left: 0; animation: rise 1s .9s var(--ease) both, bob 8s 2s ease-in-out infinite; }

@media (max-width: 960px) {
  .hero-floats { min-height: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
  .float-card { position: static; }
  .float-dish { order: -1; width: 100%; max-width: 360px; }
  .float-badge { flex: 1 1 200px; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid var(--gold-line); border-radius: 999px;
}
.scroll-cue span[aria-hidden] { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@media (max-width: 960px) { .scroll-cue { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { opacity: 0; scale: 1.15; } to { opacity: 1; scale: 1; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cinta animada ---------- */
.marquee { overflow: hidden; padding-block: 1.6rem; border-block: 1px solid var(--line); background: var(--black-soft); }
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  animation: marquee 45s linear infinite;
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.6rem); font-style: italic; line-height: 1;
  white-space: nowrap; color: var(--white);
}
.marquee-track .outline { color: transparent; -webkit-text-stroke: 1px var(--gold); }
.marquee-track i { font-style: normal; font-size: 1.2rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Diferencial (bento) ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); }
  .tile-photo { grid-column: 1 / 3; grid-row: 1 / 4; }
  .tile-intro { grid-column: 3 / 5; }
  .tile-place { grid-column: 3 / 5; }
  .tile-quote { grid-column: 1 / 3; }
}
.tile {
  position: relative; overflow: hidden; margin: 0;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .35s var(--ease);
}
.tile:hover { border-color: var(--gold-line); }
@media (min-width: 700px) { .tile-photo, .tile-intro, .tile-quote, .tile-place { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .tile-photo { grid-column: 1 / 3; } .tile-intro, .tile-place { grid-column: 3 / 5; } .tile-quote { grid-column: 1 / 3; }
}
.tile-photo { padding: 0; min-height: 420px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; transition: scale 1.2s var(--ease); }
.tile-photo:hover img { scale: 1.05; }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 13, 13, .85)); }
.tile-photo figcaption { position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 1; }
.tile-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.tile-intro .lead { margin: 0; }
.tile-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; background: radial-gradient(circle at 100% 0%, var(--gold-soft), transparent 60%), var(--black-soft); }
.stat-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); }
.tile-place { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.tile-place .eyebrow { margin-bottom: .5rem; }
.place-title { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); margin: 0; line-height: 1.2; }
.place-hours { color: var(--text-dim); margin: .25rem 0 0; font-size: .9rem; }
.tile-quote { display: flex; flex-direction: column; justify-content: center; }
.tile-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--white); }
.tile-quote cite { font-style: normal; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.tile-feature svg { color: var(--gold); margin-bottom: 1rem; }
.tile-feature h3 { font-size: 1.35rem; }
.tile-feature p { color: var(--text-dim); font-size: .88rem; margin: 0; }

/* ---------- Tarjetas (3D tilt + glow) ---------- */
.signature { background: radial-gradient(ellipse at 50% 0%, var(--gold-faint), transparent 60%), var(--black-soft); border-block: 1px solid var(--line); }

.card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); perspective: 1200px; }

.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 60%), var(--black);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card.is-tilting { transition: transform .1s linear, border-color .35s var(--ease), box-shadow .35s var(--ease); }
/* Halo dorado que sigue al cursor */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 175, 55, .14), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
/* Borde que brilla cerca del cursor */
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--gold), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 50px -20px rgba(212, 175, 55, .35); }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-kicker { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); }
.card-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.price { color: var(--gold); font-weight: 600; font-size: .86rem; white-space: nowrap; letter-spacing: .03em; }
.card h3, .card h4 { margin-bottom: .45rem; transform: translateZ(30px); }
.card p { color: var(--text-dim); font-size: .88rem; margin-bottom: 1rem; }
.tags { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { padding: .25em .75em; font-size: .68rem; letter-spacing: .04em; color: var(--gray-light); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); transform: translateZ(20px); }

.badge { display: inline-block; white-space: nowrap; padding: .3em .85em; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; background: var(--gold-metal); color: var(--black); font-weight: 600; border-radius: 999px; }
.card-featured { border-color: var(--gold-line); background: radial-gradient(circle at 100% 0%, var(--gold-faint), transparent 55%), linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 60%), var(--black); }

.card-photo { padding: 0; overflow: hidden; }
.card-photo img { width: 100%; height: 220px; object-fit: cover; object-position: 45% 60%; transition: scale 1s var(--ease); }
.card-photo:hover img { scale: 1.06; }
.card-photo .card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem; }
@media (min-width: 900px) {
  .card-photo { grid-column: span 2; flex-direction: row; }
  .card-photo img { width: 46%; height: auto; min-height: 100%; }
}

.add-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold-metal); color: var(--black);
  border: 0; border-radius: 999px;
  padding: .7em 1.25em;
  font-family: var(--font-body); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(212, 175, 55, .7); }
.add-btn.is-added { background: var(--white); }
.wa-dish {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65em 1.05em; border: 1px solid var(--line); border-radius: 999px;
  color: var(--gray-light); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.wa-dish svg { color: var(--gold); }
.wa-dish:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Menú ---------- */
.menu-filters {
  position: sticky; top: calc(var(--header-h) + 26px); z-index: 20;
  display: flex; gap: .35rem; width: fit-content; max-width: 100%;
  margin: 0 auto 3.5rem; padding: .4rem;
  background: rgba(13, 13, 13, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-line); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.menu-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto;
  background: transparent; color: var(--gray-light);
  border: 0; border-radius: 999px;
  padding: .7em 1.3em;
  font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.filter-btn:hover { color: var(--gold); }
.filter-btn.is-active { background: var(--gold-metal); color: var(--black); font-weight: 600; }
@media (max-width: 640px) { .menu-filters { top: calc(var(--header-h) + 18px); } }

.menu-category { margin-bottom: 5rem; animation: fadeIn .5s var(--ease); }
.menu-category[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.category-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.category-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-style: italic; margin: 0; }
.category-desc { color: var(--text-dim); font-size: .88rem; margin: 0; max-width: 46ch; }
.category-sub { margin-top: 3.5rem; }

/* ---------- Pedidos ---------- */
.order { background: var(--black-soft); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Proceso con foto de apoyo: foto a la izquierda y pasos apilados a la derecha */
.process-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.process-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); max-height: 560px; }
.process-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) {
  .process-split { grid-template-columns: .85fr 1.15fr; }
  .process-split .steps { grid-template-columns: 1fr; }
}
@media (max-width: 899px) { .process-media { aspect-ratio: 4 / 3; } }
.step { padding: 2.25rem 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--black); }
.step-num { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; margin-bottom: 1.25rem; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--text-dim); font-size: .9rem; margin: 0; }
.order-cta {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0% 50%, var(--gold-soft), transparent 50%), var(--black);
}
.order-summary { display: grid; }
.order-summary-label { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.order-summary strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); font-weight: 500; }
.order-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(110px, 16vw, 200px); text-align: center; }
.cta-bg { position: absolute; top: -10%; left: 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; object-position: 50% 60%; transform: translate3d(0, var(--py, 0px), 0); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(13, 13, 13, .55), rgba(13, 13, 13, .92) 75%); }
.cta-inner { max-width: 900px; }
.cta-inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cta-inner h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); margin-bottom: 2.25rem; }

/* ---------- Ubicación ---------- */
.location-inner { display: grid; gap: 3rem; }
@media (min-width: 900px) { .location-inner { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.info-block { display: flex; gap: 1.1rem; margin-top: 1.75rem; }
.info-block > svg { color: var(--gold); margin-top: .25rem; }
.info-block h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.info-block p { color: var(--text-dim); margin: 0; }
.info-block address { font-style: normal; color: var(--text-dim); margin-bottom: .4rem; }
.social-pills { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social-pills a { display: inline-flex; align-items: center; gap: .55rem; padding: .7em 1.3em; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--gray-light); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.social-pills a:hover { border-color: var(--gold); color: var(--gold); }
.social-pills svg { color: var(--gold); }
/* Tarjeta del local: fachada arriba, mapa abajo (una sola pieza visual) */
.place-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--black-soft);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.place-photo { position: relative; margin: 0; aspect-ratio: 1200 / 901; overflow: hidden; background: var(--black-soft); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .place-card:hover .place-photo img { transform: scale(1.03); } }
/* Degradado inferior: legibilidad del texto sobre la foto y unión visual con el mapa */
.place-photo::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 13, .55) 45%, rgba(13, 13, 13, .92));
}
.place-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; justify-items: start; gap: .5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.place-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45em .95em; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--gold-line);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.place-hint { color: var(--gray-light); font-size: clamp(.86rem, 2.2vw, .95rem); line-height: 1.45; max-width: 46ch; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.place-hint strong { color: var(--white); font-weight: 600; }

.place-map { position: relative; flex: 1; display: flex; min-height: 280px; border-top: 1px solid var(--gold-line); }
.place-map iframe { width: 100%; min-height: 280px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.place-route {
  position: absolute; right: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7em 1.2em; border-radius: 999px;
  background: var(--gold); color: var(--black);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
}
.place-route:hover { background: var(--gold-muted); color: var(--black); }
@media (min-width: 900px) { .place-map, .place-map iframe { min-height: 320px; } }
/* Celular: la foto se ve completa y el texto pasa debajo (sobre la foto taparía la barra) */
@media (max-width: 599px) {
  .place-photo { aspect-ratio: auto; overflow: visible; }
  .place-photo img { aspect-ratio: 1200 / 901; height: auto; }
  .place-photo::after { display: none; }
  .place-photo figcaption { position: static; padding: 1rem 1.1rem 1.15rem; }
}

.open-status { display: inline-flex; align-items: center; gap: .55rem; margin-top: .5rem !important; font-size: .78rem; color: var(--text-dim) !important; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); flex-shrink: 0; }
.open-status.is-open { color: var(--gold) !important; }
.open-status.is-open::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); animation: pulse 2s ease-in-out infinite; }
.open-status[hidden] { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--black-soft); }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; transition: color .25s var(--ease); }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-line); border-radius: 50%;
  color: var(--gold); font-size: 1.1rem; line-height: 1;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.faq-item summary:hover h3 { color: var(--gold); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--black); }
.faq-item p { margin: 0; padding: 0 3.5rem 1.5rem 0; color: var(--text-dim); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--black-soft); border-top: 1px solid var(--gold-line); padding-top: 4.5rem; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-cta-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--white); line-height: 1.05; margin: 0; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: .88rem; margin: 1.25rem 0; max-width: 36ch; }
.footer-title { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .88rem; color: var(--text-dim); }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--gold); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold); transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.footer-wordmark {
  margin: 3rem 0 0; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; line-height: .85;
  font-size: clamp(4rem, 17vw, 15rem);
  color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 55, .35);
  user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--text-dim); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold); }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--gold); }

/* ---------- Carrito: panel lateral ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer-overlay.is-visible { opacity: 1; }
.drawer-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: rgba(13, 13, 13, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--gold-line);
  box-shadow: -30px 0 60px rgba(0, 0, 0, .6);
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .45s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gold-line); }
.drawer-title { margin: 0; font-family: var(--font-display); font-size: 1.9rem; color: var(--white); font-style: italic; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem 1.5rem; overscroll-behavior: contain; }
.drawer-foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--gold-line); background: var(--black-soft); text-align: center; }
.drawer-foot .open-status:not([hidden]) { display: flex; margin: 0 0 .5rem !important; text-align: left; font-size: .74rem; }
.drawer-note { font-size: .74rem; color: var(--text-dim); margin: 0 0 1rem; text-align: left; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); line-height: 1.2; }
.line-opts { display: block; font-size: .76rem; color: var(--gold-muted); margin-top: .2rem; }
.line-unit { display: block; font-size: .72rem; color: var(--text-dim); }
.line-price { color: var(--gold); white-space: nowrap; font-weight: 500; text-align: right; }
.line-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gold-line); border-radius: 999px; }
.qty button { width: 34px; height: 32px; background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.qty button:hover { color: var(--white); }
.qty output { min-width: 26px; text-align: center; font-size: .9rem; color: var(--white); }
.line-remove { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; color: var(--text-dim); cursor: pointer; font: inherit; font-size: .74rem; }
.line-remove:hover { color: var(--gold); }

.cart-empty-state { display: grid; justify-items: center; gap: .75rem; padding: 3rem 1rem; text-align: center; color: var(--text-dim); }
.cart-empty-state svg { color: var(--gold); }
.cart-empty-state[hidden] { display: none; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.cart-total span { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.cart-total strong { color: var(--gold); font-size: 1.7rem; font-family: var(--font-display); font-weight: 500; }

.sent-note { padding: 1rem 1.1rem; margin: .5rem 0 1rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold-faint); font-size: .86rem; }
.sent-note[hidden] { display: none; }
.sent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Pedido compartido y "repetir mi último pedido" */
.shared-items { list-style: none; margin: .6rem 0 .9rem; padding: 0; display: grid; gap: .3rem; font-size: .8rem; color: var(--gray-light); text-align: left; }
.shared-items li { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .3rem; border-bottom: 1px dashed var(--line); }
.shared-items li span:last-child { color: var(--gold); white-space: nowrap; }
.reorder { width: 100%; margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-faint); }
.reorder[hidden] { display: none; }
.reorder-title { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: left; }
.reorder-title span { color: var(--text-dim); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.drawer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.1rem; }

.order-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.order-form[hidden] { display: none; }
.form-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); margin: 0; }
.order-form label { display: grid; gap: .35rem; font-size: .78rem; letter-spacing: .05em; color: var(--gray-light); }
.order-form label[hidden] { display: none; }
.order-form input[type="text"], .order-form input[type="time"], .order-form textarea {
  width: 100%; padding: .85em 1em;
  background: rgba(255, 255, 255, .03); color: var(--white);
  border: 1px solid rgba(229, 229, 229, .15); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color-scheme: dark;
}
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--gold); }
.order-form .is-invalid { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold-soft); }
.field-error { font-size: .74rem; color: var(--gold); }
.field-error:empty { display: none; }
.choice-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-group legend { font-size: .78rem; margin-bottom: .45rem; padding: 0; }
.choice-group label { display: inline-flex; align-items: center; gap: .45rem; padding: .55em 1em; font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.choice-group label:has(input:checked) { border-color: var(--gold); color: var(--gold); }
.choice-group input { accent-color: var(--gold); margin: 0; }

/* ---------- Modal de opciones ---------- */
.options-modal {
  width: min(480px, calc(100vw - 32px)); padding: 0;
  background: rgba(13, 13, 13, .94); color: var(--gray-light);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .7);
}
.options-modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(5px); }
.options-modal[open] { animation: rise .35s var(--ease); }
.modal-inner { padding: 1.9rem; }
.modal-inner .eyebrow { margin-bottom: .4rem; }
.modal-title { font-family: var(--font-display); font-size: 2rem; color: var(--white); line-height: 1.1; margin-bottom: .4rem; }
.modal-hint { font-size: .82rem; color: var(--text-dim); }
.opt-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; margin: 1.25rem 0 .75rem; }
.opt-choices label { display: flex; align-items: center; gap: .5rem; padding: .65em .85em; font-size: .85rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.opt-choices label:has(input:checked) { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.opt-choices label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.opt-choices input { accent-color: var(--gold); margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110;
  display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 32px);
  padding: .85rem 1rem .85rem 1.25rem;
  background: rgba(18, 18, 18, .85); backdrop-filter: blur(14px);
  border: 1px solid var(--gold-line); border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6); font-size: .84rem;
  transform: translate(-50%, 20px); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast[hidden] { display: none; }
.toast-link { background: none; border: 0; color: var(--gold); font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }

/* ---------- Barra inferior (móvil): accesos rápidos tipo app ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(13, 13, 13, .9); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--gold-line);
    view-transition-name: tabbar;
  }
  .tabbar a, .tabbar button {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    padding: .45rem 0; background: none; border: 0; border-radius: 12px;
    color: var(--text-dim); font-family: var(--font-body); font-size: .58rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  }
  .tabbar svg { color: var(--gold); opacity: .75; }
  .tabbar [aria-current="page"] { color: var(--gold); background: var(--gold-faint); }
  .tabbar [aria-current="page"] svg { opacity: 1; }
  .tabbar .cart-badge { top: 2px; right: calc(50% - 24px); }
  .tabbar .bump { animation: bump .45s var(--ease); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.nav-open .tabbar { visibility: hidden; }
}

/* =========================================================
   SITIO MULTIPÁGINA: componentes de las páginas internas
   ========================================================= */

/* ---------- Cabecera de página interna ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + 72px) clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, .14), transparent 55%), var(--black);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 16ch; margin-bottom: 1.25rem; animation: rise .9s var(--ease) both; }
.page-hero .eyebrow { animation: rise .9s var(--ease) both; }
.page-hero .lead { margin-bottom: 2rem; animation: rise .9s .12s var(--ease) both; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; animation: rise .9s .24s var(--ease) both; }
.page-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1.75rem; }
.page-hero-meta .open-status { margin: 0 !important; }

.page-hero-photo { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero-media img { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; object-fit: cover; object-position: 50% 55%; transform: translate3d(0, var(--py, 0px), 0); }
.page-hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--black) 0%, rgba(13, 13, 13, .85) 40%, rgba(13, 13, 13, .3) 100%), linear-gradient(0deg, var(--black) 0%, transparent 40%);
}
@media (min-width: 961px) { .page-hero-media { left: 35%; } }
@media (max-width: 960px) { .page-hero-photo::before { background: linear-gradient(180deg, rgba(13, 13, 13, .55) 0%, rgba(13, 13, 13, .85) 55%, var(--black) 100%); } }

.page-404 { min-height: 70svh; text-align: center; }
.page-404 h1, .page-404 .lead { margin-inline: auto; }
.page-404 .page-hero-actions { justify-content: center; }
.page-404 .hero-logo { margin-inline: auto; }

/* ---------- Migas de pan ---------- */
.breadcrumbs { margin-bottom: 1.75rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gold-line); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- Tarjetas de categoría ---------- */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
  min-height: 260px; padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, var(--gold-faint), transparent 60%), linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01) 60%), var(--black-soft);
  color: var(--gray-light);
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .35s var(--ease);
}
.cat-tile:hover { color: var(--gray-light); border-color: var(--gold-line); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 50px -25px rgba(212, 175, 55, .4); }
/* Categoría con foto: la imagen llena la tarjeta y un degradado negro asegura la lectura del texto */
.cat-tile-photo { min-height: 340px; border-color: var(--gold-line); }
.cat-tile-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transition: transform 1.2s var(--ease);
}
.cat-tile-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 13, 13, .3) 0%, rgba(13, 13, 13, .05) 28%, rgba(13, 13, 13, .7) 60%, rgba(13, 13, 13, .95) 100%);
}
.cat-tile-photo .cat-desc { color: var(--gray-light); }
.cat-tile-photo .cat-count { padding: .35em .8em; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--gold-line); top: 1.25rem; left: 1.25rem; }
@media (hover: hover) and (pointer: fine) { .cat-tile-photo:hover .cat-tile-img { transform: scale(1.05); } }

.cat-count { position: absolute; top: 1.5rem; left: 1.75rem; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.cat-title { font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; color: var(--white); }
.cat-desc { font-size: .86rem; color: var(--text-dim); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.cat-foot svg { color: var(--gold); transition: transform .35s var(--ease); }
.cat-tile:hover .cat-foot svg { transform: translateX(6px); }
.cat-tile-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; transition: scale 1.2s var(--ease); }
.cat-tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 13, .35) 0%, rgba(13, 13, 13, .92) 70%); }
.cat-tile-photo:hover img { scale: 1.06; }

.section-more { text-align: center; margin: 2.75rem 0 0; }
.tile-link { display: inline-block; margin-top: 1.25rem; }

/* ---------- Menú: búsqueda y estado vacío ---------- */
html:has(.page-menu) { scroll-padding-top: 170px; }
.menu-search { max-width: 560px; margin: 0 auto 1.25rem; }
.search-field {
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.25rem; border: 1px solid var(--gold-line); border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search-field svg { color: var(--gold); }
.search-field input {
  flex: 1; min-width: 0; padding: 1em 0; background: none; border: 0; outline: none;
  color: var(--white); font-family: var(--font-body); font-size: .95rem; color-scheme: dark;
}
.search-field input::placeholder { color: var(--text-dim); }
.menu-empty { text-align: center; color: var(--text-dim); padding: 2rem 1rem 4rem; }
.menu-empty .link-btn { margin: 0; font-size: inherit; color: var(--gold); }
a.filter-btn { display: inline-block; }
a.filter-btn.is-active { color: var(--black); }
.category-link { white-space: nowrap; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.menu-group + .menu-group { margin-top: 0; }

/* ---------- Tarjeta: cantidad en el pedido ---------- */
.card.is-in-cart { border-color: var(--gold-line); }
.card-qty { background: var(--gold-faint); }
.card-qty button { height: 34px; }
.card-qty output { font-weight: 600; color: var(--gold); }
.in-cart { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Bloques informativos ---------- */
.visit-grid { display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.visit-grid .info-block { margin-top: 0; }
.visit .visit-grid { padding: 2rem; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: radial-gradient(circle at 0% 0%, var(--gold-soft), transparent 45%), var(--black-soft); }
.location-info .visit-grid { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; }

.location-intro, .location-social { color: var(--text-dim); max-width: 52ch; }
.location-social { margin: 2rem 0 0; font-size: .9rem; }
.location-social + .social-pills { margin-top: 1rem; }
.hours-list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; max-width: 320px; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .3rem; border-bottom: 1px dashed var(--line); font-size: .88rem; color: var(--text-dim); }
.hours-list li span:first-child { color: var(--gray-light); }

.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; } }
.split-media { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.prose p { color: var(--text-dim); font-size: 1.02rem; max-width: 62ch; }
.pull-quote { margin: 2rem 0 0; padding: 1.5rem 0 0 1.5rem; border-left: 1px solid var(--gold); }
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--white); }
.pull-quote cite { font-style: normal; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* ---------- Inicio: franja de experiencia (resumen que lleva a Nosotros) ---------- */
.intro-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1024px) { .intro-strip { grid-template-columns: 2.2fr 1fr 1fr 1fr; } }
.intro-copy { grid-column: 1 / -1; }
@media (min-width: 1024px) { .intro-copy { grid-column: auto; } }
.intro-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.intro-copy p:not(.eyebrow) { color: var(--text-dim); max-width: 52ch; }
.intro-strip .tile-stat { min-height: 180px; }
/* En la franja de 4 columnas las tarjetas son angostas: el número se ajusta al ancho para no cortarse ("100%") */
@media (min-width: 1024px) { .intro-strip .stat-num { font-size: clamp(2.6rem, 3.6vw, 3.6rem); white-space: nowrap; } }

/* ---------- Enlaces compactos a otras categorías ---------- */
.cat-links { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cat-links a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--black-soft); color: var(--gray-light);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.cat-links a:hover { border-color: var(--gold-line); color: var(--gray-light); transform: translateY(-2px); }
.cat-links-title { flex: 1; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--white); }
.cat-links svg { color: var(--gold); transition: transform .3s var(--ease); }
.cat-links a:hover svg { transform: translateX(4px); }

/* ---------- Llamado final sin foto ---------- */
.cta-plain { text-align: center; background: radial-gradient(ellipse at 50% 100%, var(--gold-soft), transparent 60%), var(--black); border-top: 1px solid var(--line); }
.cta-plain .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cta-plain h2 { max-width: 18ch; margin: 0 auto 2.25rem; }

/* ---------- Preguntas: índice hacia las páginas de cada tema ---------- */
.faq-index { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); max-width: 1000px; margin: 0 auto; }
.faq-topic {
  display: flex; flex-direction: column; gap: .4rem; min-height: 170px; justify-content: flex-end;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, var(--gold-faint), transparent 60%), var(--black-soft); color: var(--gray-light);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.faq-topic:hover { border-color: var(--gold-line); color: var(--gray-light); transform: translateY(-3px); }
.faq-topic-title { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--white); }
.faq-topic-count { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.faq-topic-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Preguntas: índice por temas ---------- */
.faq-more { text-align: center; margin: 2.25rem 0 0; }
.faq-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 860px; margin: 0 auto 3.5rem; }
.faq-topics .filter-btn { border: 1px solid var(--gold-line); }
.faq-topics .filter-btn:hover { border-color: var(--gold); }
.faq-group { max-width: 860px; margin: 0 auto 4rem; }
.faq-group .category-head { align-items: center; margin-bottom: 0; }
.faq-group .faq-list { border-top: 0; }

/* ---------- Arma tu arepa (/arma-tu-arepa/) ----------
   Arepa ABIERTA por capas, como una arepa rellena vista de frente (de atrás hacia adelante):
   interior del bolsillo · rellenos principales (franjas dentro de la abertura) · pared delantera de la base ·
   acompañantes que desbordan · tapa. --lift = cuánto sube la tapa, en % del escenario (lo calcula main.js:
   crece con cada ingrediente; al entrar uno se abre un poco más y luego baja sobre el relleno).
   Geometría compartida con main.js (GEO): las capas miden 76% × 38,2% y empiezan en top 45%. */
.card-link { margin-right: auto; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card-link:hover { color: var(--white); }

.builder { padding-top: 1rem; }
.builder-grid { display: grid; gap: 1.75rem; align-items: start; }
.builder-stage-wrap { position: sticky; top: calc(var(--header-h) + 12px); z-index: 6; margin: 0 -16px; padding: 0 16px .75rem; background: linear-gradient(var(--black) 82%, rgba(13, 13, 13, 0)); }
.builder-stage {
  --lift: 0;
  position: relative; width: min(100%, 36vh); aspect-ratio: 1; margin-inline: auto; overflow: hidden;
  border: 1px solid var(--gold-line); border-radius: 26px;
  background:
    radial-gradient(ellipse 62% 48% at 50% 66%, rgba(212, 175, 55, .10), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, #1d1a16 0%, #131110 58%, #0a0908 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.builder-stage > * { position: absolute; pointer-events: none; }
.bs-glow { inset: 14% 10% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, .14), transparent); filter: blur(6px); }
.bs-shadow { left: 16%; right: 16%; top: 79%; height: 13%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }
.bs-ar { left: 12%; top: 45%; width: 76%; height: 38.2%; object-fit: fill; }
.bs-pocket { z-index: 1; }
.bs-fill, .bs-front { inset: 0; }
.bs-fill { z-index: 2; }
.bs-base { z-index: 3; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.bs-front { z-index: 4; }
.bs-lid {
  z-index: 5; transform-origin: 50% 0;
  transform: translateY(calc(var(--lift) / 38.2 * -100%)) rotate(calc(var(--lift) * -.05deg));
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6));
  transition: transform .55s cubic-bezier(.34, 1.45, .64, 1);
}
/* Cada relleno: caja anclada abajo (en la línea de corte) con la foto recortada a lo ancho de la abertura */
.bs-pile {
  position: absolute; transform: translate(-50%, -100%); transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45));
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.bs-pile img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
/* Lo que va adelante (acompañantes, queso, tomate, cebolla) se ve entero: silueta natural, sin recorte */
.bs-pile.is-over img { object-fit: contain; object-position: 50% 100%; -webkit-mask-image: none; mask-image: none; }
.builder-note { margin: .45rem auto 0; max-width: 46ch; text-align: center; font-size: .64rem; color: var(--text-dim); }
/* En celular la arepa queda fija arriba: la nota va debajo del resumen para no taparse con las tarjetas */
.builder-note-d { display: none; }
.builder-note-m { margin: -.5rem 0 1rem; text-align: left; }

.builder-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.builder-head h2 { margin: 0; }
.builder-head .eyebrow { margin-bottom: .4rem; }
.builder-count { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); }
.builder-count span { font-size: 2.6rem; }
.ing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.ing {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .45rem;
  padding: .75rem .35rem .7rem; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  color: var(--gray-light); font: inherit; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.ing img { width: 100%; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .55)); transition: transform .35s var(--ease); }
.ing-name { font-size: .7rem; line-height: 1.25; text-align: center; }
.ing-check {
  position: absolute; top: .4rem; right: .4rem; width: 1.3rem; height: 1.3rem; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: .64rem; font-weight: 700; color: var(--black);
}
.ing:hover:not(:disabled) { border-color: var(--gold-line); transform: translateY(-2px); }
.ing:hover:not(:disabled) img { transform: translateY(-3px) scale(1.05); }
.ing[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(212, 175, 55, .14), rgba(212, 175, 55, .04)); }
.ing[aria-pressed="true"] .ing-check { border-color: transparent; background: var(--gold-metal); }
.ing:disabled { opacity: .32; cursor: not-allowed; }
.ing:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.builder-summary { min-height: 2.8em; margin: 1rem 0; font-size: .86rem; color: var(--text-dim); }
.builder-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.builder-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.builder-tools { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .4rem; }
.builder-tools .link-btn[disabled] { opacity: .4; cursor: not-allowed; }

.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.idea {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02);
  color: var(--gray-light); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.idea:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.idea-imgs { display: flex; height: 56px; }
.idea-imgs img { width: 70px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .5)); }
.idea-imgs img + img { margin-left: -18px; }
.idea-label { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; color: var(--white); }
.idea-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.pantry { display: grid; gap: .7rem; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.pantry-row { padding: 1rem 1.1rem .2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015); }
.pantry dt { margin-bottom: .55rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.pantry dd { margin: 0; }
.pantry .tags { margin-bottom: .8rem; }
.pantry-only { margin: 0 0 .9rem; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

@media (min-width: 600px) { .ing-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .builder-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .builder-stage-wrap { top: calc(var(--header-h) + 36px); margin: 0; padding: 0; background: none; }
  .builder-stage { width: 100%; max-width: 580px; }
  .builder-note-d { display: block; }
  .builder-note-m { display: none; }
  .ing-grid { grid-template-columns: repeat(3, 1fr); }
  .ing img { height: 70px; }
}

/* ---------- Blog: artículo (/blog/<tema>/) ---------- */
.page-post .page-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 4.8vw, 4rem); }
.page-post .page-hero h1 em { display: block; margin-top: .3em; font-size: .6em; }
.post-byline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-light); }

.post-section { padding-top: clamp(48px, 7vw, 88px); }
.post-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 230px minmax(0, 720px); justify-content: center; align-items: start; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .post-aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.post-toc { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); }
.post-toc-title { margin: 0 0 .8rem; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.post-toc ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.1rem; font-size: .86rem; line-height: 1.4; }
.post-toc li::marker { color: var(--gold-muted); }
.post-toc a { color: var(--text-dim); }
.post-toc a:hover { color: var(--gold); }

.post { min-width: 0; }
.post > h2 { margin: 3.2rem 0 1.1rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); scroll-margin-top: 110px; }
.post > p { color: var(--text-dim); font-size: 1.04rem; line-height: 1.85; }
.post > p a, .post-updated a { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.cite { margin-left: .15em; font-size: .64em; line-height: 0; color: var(--gold-muted); }
.cite a { font-weight: 600; text-decoration: none !important; }

/* "En pocas palabras": lo que leen primero las personas y los motores de respuesta */
.post-answer { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: radial-gradient(circle at 100% 0%, var(--gold-soft), transparent 55%), var(--black-soft); }
.post-answer .eyebrow { margin-bottom: .8rem; }
.post-answer > p:not(.eyebrow) { margin: 0; color: var(--gray-light); font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.6; }

.post-quote { margin: 2.2rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 2px solid var(--gold); }
.post-quote p { margin-bottom: .6rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.35; color: var(--white); }
.post-quote cite { font-style: normal; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 1px solid var(--gold-line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--black); }
.tl-date { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.timeline p { margin: .25rem 0 0; color: var(--text-dim); font-size: .98rem; }

.post-dishes { margin: 1.6rem 0; }

.sources { display: grid; gap: 1rem; margin: 1.2rem 0 0; padding-left: 1.4rem; font-size: .9rem; }
.sources li { padding: .3rem .5rem; border-radius: 8px; scroll-margin-top: 120px; transition: background .4s var(--ease); }
.sources li::marker { color: var(--gold); font-weight: 600; }
.sources li:target { background: var(--gold-faint); }
.source-head { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.sources a { display: inline-block; margin: .2rem 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }
.source-note { display: block; color: var(--text-dim); font-size: .85rem; }
.post-updated { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .85rem; }

/* ---------- Blog: índice (/blog/) ---------- */
.post-cards { display: grid; gap: 1.25rem; max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.post-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--black-soft); transition: border-color .35s var(--ease); }
.post-card:hover { border-color: var(--gold-line); }
@media (min-width: 900px) { .post-card:only-child { grid-column: 1 / -1; grid-template-columns: 1fr 1.1fr; } }
.post-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: scale 1.2s var(--ease); }
.post-card:hover .post-card-media img { scale: 1.04; }
.post-card-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); }
.post-card-meta { margin-bottom: .8rem; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-card h3 a { color: var(--white); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p:not(.post-card-meta) { color: var(--text-dim); }

/* ---------- Rendimiento: cada sección se calcula y se pinta solo cuando se acerca a la pantalla ----------
   Al llegar las fuentes, el diseño se recalculaba completo (tareas de 400–550 ms en un celular promedio).
   El contenido sigue entero en el HTML (Google y los lectores de pantalla lo leen igual). La primera sección
   (portada o cabecera) siempre se dibuja; "auto" recuerda el alto real una vez vista. */
main > section ~ section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.js .card.is-visible.is-tilting, .card.is-tilting { transition: transform .1s linear, border-color .35s var(--ease), box-shadow .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
