/* =============================================================
   Casa Pizza — Editorial Dark Warm
   1. Tokens
   ============================================================= */
:root {
  --bg:       #0E0A07;   /* warm near-black, horno */
  --bg-2:     #15100B;
  --bg-3:     #1E1712;   /* card */
  --bg-4:     #271D15;
  --cream:    #F4ECDC;   /* text on dark */
  --cream-2:  #DFD2BA;
  --cream-3:  #9C8A70;   /* metadata */
  --accent:   #D1402A;   /* rojo cocido / terracota */
  --accent-2: #A82C1A;
  --ember:    #E8662F;   /* naranja brasa */
  --gold:     #E2A838;   /* dorado mostaza */
  --gold-2:   #C8912B;
  --line:     rgba(244,236,220,.12);
  --line-2:   rgba(244,236,220,.06);

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 18px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 400; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--cream); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.kicker.is-center::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }

.eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }

/* grain overlay (reusable) */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-family: var(--sans);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform; position: relative; overflow: hidden;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--accent); color: var(--cream); box-shadow: 0 10px 30px -10px rgba(209,64,42,.6); }
.btn-primary:hover { background: var(--ember); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(232,102,47,.7); }
.btn-gold { background: var(--gold); color: #2a1a06; box-shadow: 0 10px 30px -12px rgba(226,168,56,.6); }
.btn-gold:hover { background: #f2b84a; transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14,10,7,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: .75rem;
}
.nav-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
.nav-brand .mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(0,0,0,.6);
}
.brand-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.nav-links { display: none; gap: 2rem; align-items: center; font-family: var(--sans); font-size: .92rem; }
.nav-links a { position: relative; color: var(--cream-2); transition: color .3s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-items: center; text-align: center;
  transition: opacity .8s var(--ease-out), clip-path .9s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 1.1rem; overflow: hidden;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 18px 44px -16px rgba(0,0,0,.8);
  animation: emberPulse 1.8s var(--ease-soft) infinite;
}
.splash-mark .brand-img { width: 100%; height: 100%; object-fit: cover; }
.splash-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em; }
.splash-bar { width: 120px; height: 2px; background: var(--line); margin: 1rem auto 0; overflow: hidden; border-radius: 2px; }
.splash-bar span { display: block; height: 100%; width: 40%; background: var(--gold); animation: loadSlide 1.1s var(--ease-soft) infinite; }
@keyframes loadSlide { 0% { transform: translateX(-120%);} 100% { transform: translateX(320%);} }
@keyframes emberPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,102,47,.45);} 50% { box-shadow: 0 0 28px 6px rgba(232,102,47,.55);} }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .photo-fill { position: absolute; inset: -8% 0 0 0; height: 116%; }
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,10,7,.55) 0%, rgba(14,10,7,.35) 40%, rgba(14,10,7,.92) 100%),
    radial-gradient(120% 80% at 70% 20%, transparent 30%, rgba(14,10,7,.55) 100%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(38% 30% at 25% 30%, rgba(209,64,42,.45), transparent 70%),
    radial-gradient(34% 28% at 78% 62%, rgba(226,168,56,.32), transparent 70%),
    radial-gradient(30% 26% at 55% 85%, rgba(232,102,47,.3), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2%,-3%,0) scale(1.15); }
}
.hero-inner { position: relative; z-index: 4; padding-block: 9rem 7rem; max-width: 900px; }
.hero-meta { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--cream-2); margin-bottom: 1.4rem; font-family: var(--sans); letter-spacing: .04em; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #35d06a; box-shadow: 0 0 0 0 rgba(53,208,106,.6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(53,208,106,.55);} 70% { box-shadow: 0 0 0 9px rgba(53,208,106,0);} 100% { box-shadow: 0 0 0 0 rgba(53,208,106,0);} }
.hero-title { font-size: clamp(3rem, 11vw, 7.6rem); line-height: .94; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--cream-2); max-width: 34ch; margin-bottom: 2.2rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.6rem; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: .85rem; color: var(--cream-2);
  border-top: 1px solid var(--line); padding-top: 1.2rem;
}
.hero-foot .stars { color: var(--gold); letter-spacing: .1em; }
.scroll-cue { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); display: inline-block; animation: cueDrop 1.8s var(--ease-soft) infinite; transform-origin: top; }
@keyframes cueDrop { 0%,100% { transform: scaleY(.4); opacity:.4;} 50% { transform: scaleY(1); opacity:1;} }

/* =============================================================
   8. Sections generic
   ============================================================= */
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-top: 1rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-lead { margin-top: 1.1rem; color: var(--cream-2); font-size: 1.05rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =============================================================
   9. Photo placeholder system (robust — upgrades when real photo exists)
   ============================================================= */
.photo {
  position: relative; overflow: hidden; background: #7c5033; /* color plano (placeholder demo) */
}
/* DEMO: huecos de foto = bloques de color planos y distintos. Sin contenido.
   Cuando se añade una foto real, la imagen la cubre automáticamente. */
.photo .ph-glyph, .about-figure .ph-glyph { display: none !important; }

/* Paleta de colores variados para los huecos */
.hero .photo { background: #6d4326; }
.about-figure { background: #8a4b2f; }

.pizza-grid .pizza-card:nth-child(1) .photo { background: #a23b28; }
.pizza-grid .pizza-card:nth-child(2) .photo { background: #7d5a2e; }
.pizza-grid .pizza-card:nth-child(3) .photo { background: #4f5d38; }
.pizza-grid .pizza-card:nth-child(4) .photo { background: #b07a2b; }
.pizza-grid .pizza-card:nth-child(5) .photo { background: #3f6b5a; }
.pizza-grid .pizza-card:nth-child(6) .photo { background: #8c3f52; }

.gallery-grid .photo:nth-child(1) { background: #6d4326; }
.gallery-grid .photo:nth-child(2) { background: #a23b28; }
.gallery-grid .photo:nth-child(3) { background: #4f5d38; }
.gallery-grid .photo:nth-child(4) { background: #7d5a2e; }
.gallery-grid .photo:nth-child(5) { background: #3f6b5a; }
.gallery-grid .photo:nth-child(6) { background: #b07a2b; }
.gallery-grid .photo:nth-child(7) { background: #8c3f52; }
.photo img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.photo img.is-loaded { opacity: 1; }
.photo.no-img .ph-glyph { display: grid; }
.photo:not(.no-img) .ph-glyph { } /* glyph stays under img until loaded */

.photo-fill { width: 100%; height: 100%; }

/* =============================================================
   10. About
   ============================================================= */
.about { position: relative; }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.about-figure { position: relative; border-radius: var(--radius); aspect-ratio: 4/5; overflow: hidden; }
.about-figure.is-wide { aspect-ratio: 16/11; }
.about-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; z-index: 5; bottom: -18px; left: -18px;
  background: var(--gold); color: #2a1a06; border-radius: 14px; padding: .9rem 1.1rem;
  font-family: var(--serif); line-height: 1; box-shadow: 0 16px 40px -14px rgba(0,0,0,.7);
  transform: rotate(-4deg);
}
.about-badge b { display: block; font-size: 1.7rem; }
.about-badge span { font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.about-copy p { color: var(--cream-2); font-size: 1.08rem; margin-bottom: 1.1rem; }
.about-copy p.lead { font-family: var(--serif); font-size: clamp(1.3rem,2.6vw,1.7rem); color: var(--cream); line-height: 1.35; }
.about-stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.about-stats .stat b { font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; }
.about-stats .stat span { font-size: .82rem; color: var(--cream-3); letter-spacing: .04em; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* =============================================================
   11. Reviews / social proof
   ============================================================= */
.reviews { background: var(--bg-2); }
.rating-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem; margin-bottom: 2.6rem; }
.rating-score { font-family: var(--serif); font-size: clamp(3.4rem,9vw,5rem); line-height: 1; color: var(--gold); }
.rating-meta .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .15em; }
.rating-meta .src { font-size: .9rem; color: var(--cream-2); margin-top: .3rem; }
.rating-google { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.reviews-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.review-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(226,168,56,.4); }
.review-card .stars { color: var(--gold); letter-spacing: .12em; font-size: .9rem; margin-bottom: .7rem; }
.review-card p { color: var(--cream-2); font-size: .98rem; }
.review-card .who { margin-top: 1rem; font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--cream); }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .reviews-grid { grid-template-columns: repeat(4,1fr); } }

/* =============================================================
   12. Featured pizzas
   ============================================================= */
.pizzas-note {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  background: rgba(226,168,56,.12); color: var(--gold); border: 1px solid rgba(226,168,56,.3);
  padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.pizza-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.pizza-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-3);
  border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.pizza-card:hover { border-color: rgba(226,168,56,.4); box-shadow: 0 28px 60px -26px rgba(0,0,0,.8); }
.pizza-card .photo { aspect-ratio: 3/2; }
.pizza-card .photo img { transition: transform .8s var(--ease-out), opacity .8s var(--ease-out); }
.pizza-card:hover .photo img.is-loaded { transform: scale(1.07); }
.pizza-tier {
  position: absolute; top: .9rem; left: .9rem; z-index: 4; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(14,10,7,.7); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--gold);
  padding: .35rem .7rem; border-radius: 999px; font-weight: 600;
}
.pizza-body { padding: 1.3rem 1.3rem 1.5rem; }
.pizza-body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pizza-body h3 { font-size: 1.5rem; }
.pizza-body .price { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); white-space: nowrap; }
.pizza-body .ing { color: var(--cream-3); font-size: .92rem; margin-top: .5rem; }
@media (min-width: 620px) { .pizza-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .pizza-grid { grid-template-columns: repeat(3,1fr); } }

/* =============================================================
   13. Gallery
   ============================================================= */
.gallery { background: var(--bg-2); }
.gallery-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
.gallery-grid .photo { border-radius: 14px; }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .photo img { transition: transform .9s var(--ease-out), opacity .8s var(--ease-out); }
.gallery-grid .photo:hover img.is-loaded { transform: scale(1.08); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4,1fr); grid-auto-rows: 190px; } }

/* =============================================================
   14. Location / hours / map
   ============================================================= */
.location-grid { display: grid; gap: 2rem; }
.info-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.info-card h3 .ico { color: var(--gold); }
.hours-list li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.closed { color: var(--accent); font-weight: 600; }
.hours-list li .day { color: var(--cream-2); }
.closed-banner {
  margin-top: 1.1rem; background: rgba(209,64,42,.14); border: 1px solid rgba(209,64,42,.4);
  color: #f0a99c; border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
}
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.3) contrast(1.05); }
.addr-line { color: var(--cream-2); font-size: .98rem; margin-bottom: .6rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1fr 1.1fr; } }

/* =============================================================
   15. CTA / reservas
   ============================================================= */
.cta { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; z-index: 2; border-radius: 26px; padding: clamp(2.4rem,6vw,4.5rem);
  background: linear-gradient(150deg, var(--bg-4), var(--bg-3));
  border: 1px solid var(--line); text-align: center;
}
.cta-inner .halo {
  position: absolute; inset: -40% -10% -20% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 45% at 50% 35%, rgba(232,102,47,.4), transparent 70%);
  filter: blur(90px);
}
.cta-title { font-size: clamp(2rem,6vw,3.8rem); }
.cta-title em { font-style: italic; color: var(--gold); }
.cta-sub { color: var(--cream-2); max-width: 46ch; margin: 1rem auto 2.2rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-phone { margin-top: 1.6rem; font-size: .92rem; color: var(--cream-3); }
.cta-phone a { color: var(--gold); font-weight: 600; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.4rem 2rem; }
.footer-brand .nav-brand { font-size: 1.5rem; margin-bottom: .8rem; }
.footer-brand p { color: var(--cream-3); font-size: .92rem; max-width: 30ch; }
.footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; }
.footer a.link { color: var(--cream-2); display: block; padding: .3rem 0; font-size: .95rem; transition: color .3s var(--ease-out); }
.footer a.link:hover { color: var(--gold); }
.footer .socials { display: flex; gap: .7rem; margin-top: .4rem; }
.footer .socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s var(--ease-out); }
.footer .socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line-2); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .82rem; color: var(--cream-3); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* =============================================================
   17. Mobile sticky action bar
   ============================================================= */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(14,10,7,.9); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform .5s var(--ease-out);
}
.mobile-bar.is-shown { transform: none; }
.mobile-bar .btn { padding: .85rem 1rem; font-size: .9rem; }
@media (min-width: 960px) { .mobile-bar { display: none !important; } }
body { padding-bottom: 0; }
@media (max-width: 959px) { body.has-bar { padding-bottom: 74px; } }

/* =============================================================
   18. Botón de llamada flotante (página de carta)
   ============================================================= */
@keyframes floatBob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-5px);} }

.call-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 170;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(209,64,42,.7);
  transition: transform .4s var(--ease-out); animation: floatBob 3s var(--ease-soft) infinite;
}
.call-float:hover { transform: scale(1.08); background: var(--ember); }
.call-float svg { width: 28px; height: 28px; }

/* =============================================================
   19. Carta page
   ============================================================= */
.menu-hero { padding-block: 8rem 3rem; position: relative; text-align: center; overflow: hidden; }
.menu-hero .hero-mesh { opacity: .4; }
.menu-hero .container { position: relative; z-index: 2; }
.menu-title { font-size: clamp(2.6rem,9vw,6rem); }
.menu-title em { font-style: italic; color: var(--gold); }
.menu-hero p { color: var(--cream-2); margin-top: 1rem; }

.menu-tabs {
  position: sticky; top: 0; z-index: 150; background: rgba(14,10,7,.92);
  backdrop-filter: blur(14px); border-block: 1px solid var(--line);
}
.menu-tabs .track { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem var(--gutter); scrollbar-width: none; }
.menu-tabs .track::-webkit-scrollbar { display: none; }
.menu-tab {
  white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; font-family: var(--sans); font-size: .88rem;
  color: var(--cream-2); border: 1px solid var(--line); transition: all .3s var(--ease-out); flex: 0 0 auto;
}
.menu-tab:hover { color: var(--cream); border-color: var(--cream-3); }
.menu-tab.is-active { background: var(--accent); color: var(--cream); border-color: var(--accent); }

.menu-cat { scroll-margin-top: 80px; padding-block: clamp(2.4rem,5vw,3.6rem); border-bottom: 1px solid var(--line-2); }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.menu-cat-head h2 { font-size: clamp(1.8rem,5vw,2.8rem); }
.menu-cat-head .note {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--gold);
  background: rgba(226,168,56,.12); border: 1px solid rgba(226,168,56,.3); padding: .4rem .8rem; border-radius: 999px;
}
.menu-list { display: grid; gap: .2rem; grid-template-columns: 1fr; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px dashed var(--line-2);
}
.menu-item .mi-name { font-family: var(--serif); font-size: 1.18rem; color: var(--cream); }
.menu-item .mi-price { font-family: var(--serif); font-size: 1.18rem; color: var(--gold); white-space: nowrap; }
.menu-item .mi-desc { grid-column: 1 / -1; color: var(--cream-3); font-size: .9rem; margin-top: .15rem; }
.menu-cat.plain .menu-item { grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .menu-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .menu-cat.single .menu-list { grid-template-columns: 1fr; }
}

.menu-extra {
  background: rgba(209,64,42,.1); border: 1px solid rgba(209,64,42,.3); color: #f0b3a7;
  border-radius: 14px; padding: .9rem 1.1rem; font-size: .92rem; margin-bottom: 1.6rem;
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600;
}

/* Fichas de plato con foto (pizzas) */
.dish-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }
.dish {
  display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.dish:hover { transform: translateY(-4px); border-color: rgba(226,168,56,.4); box-shadow: 0 24px 50px -26px rgba(0,0,0,.8); }
.dish .photo { aspect-ratio: 4/3; width: 100%; }
.dish .photo img { transition: transform .7s var(--ease-out), opacity .8s var(--ease-out); }
.dish:hover .photo img.is-loaded { transform: scale(1.06); }
.dish .photo.no-photo { background: #000; }
.dish .photo.no-photo::after { content: none; }
.dish-body { padding: .9rem 1rem 1.15rem; }
.dish-body h3 { font-size: 1.18rem; }
.dish-body .d { color: var(--cream-3); font-size: .86rem; margin-top: .35rem; line-height: 1.45; }
.dish-body .drow { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.dish-body .dprice { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); white-space: nowrap; }

/* =============================================================
   20. Custom cursor (desktop fine pointer only)
   ============================================================= */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s var(--ease-out); mix-blend-mode: difference; }
.cursor { width: 7px; height: 7px; background: var(--cream); margin: -3.5px 0 0 -3.5px; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--cream); margin: -19px 0 0 -19px; transition: opacity .3s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out); }
.cursor.is-ready, .cursor-ring.is-ready { opacity: .9; }
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none !important; } }

/* =============================================================
   21. View transitions (multi-page)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   22. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .splash-mark, .splash-bar span, .hero-meta .dot, .call-float, .scroll-cue .line { animation: none !important; }
}
