/* Pizzería Nápoli — hoja de estilos del sitio público (paleta "forno": brasa, tomate, albahaca, crema) */

@font-face { font-family: 'Playfair'; src: url('/assets/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/assets/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --cream: #fbf6ee;
  --paper: #f3e9da;
  --ink: #1e1813;
  --ink-soft: #5a4f45;
  --line: rgb(30 24 19 / 0.12);
  --green: #356f35;
  --green-deep: #24521f;
  --red: #c2361b;
  --red-deep: #9f2a13;
  --gold: #e8913f;
  --night: #17110d;
  --night-2: #251a13;
  --on-dark: #f8efe3;
  --on-dark-soft: #d6c6b3;

  --serif: 'Playfair', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --arch: 999px 999px 16px 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
mark { background: #fff1c2; padding: 0 4px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

/* ---------- tipografía de sección ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66%); box-shadow: 0 0 0 1px var(--line); }
.eyebrow--light { color: var(--on-dark-soft); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 3.75rem); letter-spacing: -0.015em; }
.section-title em { font-style: italic; color: var(--red); }
.section-title--light { color: var(--on-dark); }
.section-title--light em { color: var(--gold); }
.section-lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 2rem 0 0.6rem; font-family: var(--serif); font-size: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin: 1rem 0; }
.prose li + li { margin-top: 0.3rem; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px; padding: 0 1.4rem; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; }
.btn--ghost { border-color: rgb(34 34 34 / 0.22); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--whatsapp { background: #128c4a; color: #fff; }
.btn--whatsapp:hover { background: #0e7a40; }

/* ---------- cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--on-dark); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.site-header.is-solid { background: rgb(23 17 13 / 0.92); color: var(--on-dark); box-shadow: 0 1px 0 rgb(255 255 255 / 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); }
.brand__flag i { flex: 1; }
.brand__flag i:nth-child(1) { background: var(--green); }
.brand__flag i:nth-child(2) { background: #fff; }
.brand__flag i:nth-child(3) { background: var(--red); }
.brand__name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; }
.brand--light { color: var(--on-dark); }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.92rem; font-weight: 500; text-decoration: none; border-radius: 999px; opacity: 0.9; }
.nav__list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; }
.nav__toggle .icon { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .nav { order: 3; }
  .nav__toggle { display: inline-flex; }
  .nav__list { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--night); color: var(--on-dark); box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.6); transform-origin: top; transform: scaleY(0.96); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list a { width: 100%; min-height: 52px; font-size: 1.1rem; font-family: var(--serif); border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 380px) { .site-header__cta .icon { display: none; } .brand__name { font-size: 1.4rem; } }

/* ---------- portada ---------- */
.hero { position: relative; min-height: 100svh; color: var(--on-dark); background: var(--night); overflow: hidden; isolation: isolate; }
.hero__inner { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(5rem, 12vh, 7rem); }
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__title { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(4.2rem, 17vw, 9.5rem); line-height: 0.92; letter-spacing: -0.03em; }
.hero__title span { display: inline-block; background: linear-gradient(180deg, #fff 30%, #f1e2c4); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero__subtitle { margin-top: 18px; max-width: 40ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--on-dark-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; min-height: 44px; font-size: 0.92rem; color: var(--on-dark-soft); text-decoration: none; }
.hero__rating strong { color: var(--on-dark); font-size: 1.05rem; }
.hero__rating:hover { color: var(--on-dark); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* vídeo: en móvil ocupa toda la pantalla (es vertical); en escritorio va en una ventana con forma de arco */
.hero__window { position: absolute; inset: 0; z-index: 0; }
.hero__frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--night-2); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 0.8s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 12 8 / 0.6) 0%, rgb(18 12 8 / 0.35) 22%, rgb(18 12 8 / 0.78) 48%, rgb(18 12 8 / 0.96) 100%); }

.hero__scroll { position: absolute; left: 50%; bottom: 18px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 999px; color: var(--on-dark); border: 1px solid rgb(255 255 255 / 0.3); }
.hero__scroll .icon { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

@media (min-width: 961px) {
  .hero { background: radial-gradient(70% 90% at 75% 45%, #4a2414 0%, var(--night) 62%); }
  .hero__inner { align-items: center; justify-content: space-between; gap: 48px; padding-bottom: 6rem; }
  .hero__window { position: relative; inset: auto; flex: none; height: min(76svh, 760px); aspect-ratio: 9 / 16; }
  .hero__window::after { display: none; }
  .hero__frame { border-radius: var(--arch); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
  .hero__window::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgb(232 145 63 / 0.5); border-radius: 999px 999px 24px 24px; pointer-events: none; }
  .hero__content { padding-bottom: 2rem; }
}

.rise { animation: rise 0.9s var(--ease) both; }
.hero__content .rise:nth-child(2) { animation-delay: 0.08s; }
.hero__content .rise:nth-child(3) { animation-delay: 0.18s; }
.hero__content .rise:nth-child(4) { animation-delay: 0.28s; }
.hero__content .rise:nth-child(5) { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- especialidades ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px) clamp(12px, 2vw, 24px); }
@media (min-width: 700px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dish-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dish-card__media { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 14px 14px; overflow: hidden; background: var(--paper); }
.dish-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dish-card:hover .dish-card__img { transform: scale(1.05); }
.dish-card__price { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--red); font-family: var(--serif); font-weight: 700; font-size: 1rem; box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.5); }
.dish-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-conic-gradient(var(--paper) 0 25%, #ebe2d3 0 50%) 0 0 / 36px 36px; }
.dish-card__ph span { font-family: var(--serif); font-style: italic; font-size: 4.5rem; color: var(--green); }
.dish-card__body { padding: 14px 4px 0; }
.dish-card__name { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }
.dish-card__desc { margin-top: 6px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish-card__stock { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 6px 3px; border-radius: 6px; background: rgb(0 0 0 / 0.45); color: #fff; font-size: 0.62rem; letter-spacing: 0.04em; }
.js .dish-card[data-more] { display: none; }
.dish-card:focus { outline: none; }
.featured__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(2.5rem, 6vw, 4rem); }
.featured__count { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- carta ---------- */
.carta { background: var(--paper); }
.section-lead a { color: var(--green-deep); font-weight: 600; }
.menu-notes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.menu-notes li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 0.88rem; }
.menu-notes li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px; scrollbar-width: thin; }
.tab { flex: none; min-height: 46px; padding: 0 20px; border: 1.5px solid rgb(34 34 34 / 0.18); border-radius: 999px; background: transparent; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected='true'] { background: var(--green); border-color: var(--green); color: #fff; }
.js .tab-panel[data-inactive] { display: none; }
.tab-panel__title { margin: 20px 0 6px; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.tab-panel__title span { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); vertical-align: middle; }
.js .tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-list { display: grid; grid-template-columns: 1fr; column-gap: 64px; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-item__thumb { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--cream); }
.menu-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item__text { flex: 1; min-width: 0; }
.menu-item__row { display: flex; align-items: baseline; gap: 10px; }
.menu-item__name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.menu-item__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgb(34 34 34 / 0.25); transform: translateY(-4px); }
.menu-item__price { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--red); white-space: nowrap; }
.menu-item__desc { margin-top: 4px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.allergens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.allergen { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.62rem; font-weight: 700; color: #fff; background: #6d5f50; }
.allergen--gluten { background: #a8761f; } .allergen--lactosa { background: #4f7fb0; } .allergen--crustaceos { background: #c8553d; }
.allergen--pescado { background: #2f6c8f; } .allergen--moluscos { background: #5a6b8c; } .allergen--frutos-cascara { background: #8a5a35; }
.allergen--mostaza { background: #8f7d12; } .allergen--huevos { background: #b07a10; } .allergen--soja { background: #4c7a3a; }
.allergen--apio { background: #3f8a52; } .allergen--altramuces { background: #8c6d1f; } .allergen--cacahuetes { background: #8f4b2b; }
.allergen-legend { margin-top: 32px; font-size: 0.9rem; color: var(--ink-soft); }
.allergen-legend ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.allergen-legend li { display: inline-flex; align-items: center; gap: 8px; }
.carta__page-link { margin-top: 28px; }
.carta__page-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--green-deep); }
.carta--page { padding-top: calc(var(--header-h) + 3rem); }
.carta__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- nosotros + galería ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 60vw, 620px); }
.about__p { overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.about__p img { width: 100%; height: 100%; object-fit: cover; }
.about__p--1 { grid-row: span 2; border-radius: var(--arch); }
.about__text .prose { margin-top: 22px; font-size: 1.06rem; color: var(--ink-soft); max-width: 52ch; }
.about__sign { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--green); }
.gallery__title { margin: clamp(4rem, 8vw, 6rem) 0 20px; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.gallery__item { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--paper); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }

/* ---------- reseñas ---------- */
.reviews { background: var(--night); color: var(--on-dark); background-image: radial-gradient(60% 80% at 50% 0%, #3d2012 0%, transparent 70%); }
.review-list { display: grid; gap: 18px; margin-bottom: 40px; }
@media (min-width: 800px) { .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.review__by { margin-top: auto; font-size: 0.9rem; color: var(--on-dark-soft); }
.reviews__google { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.reviews__score { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--on-dark-soft); }
.reviews__score strong { font-family: var(--serif); font-size: clamp(4rem, 12vw, 6rem); line-height: 1; color: var(--on-dark); font-weight: 500; }
.reviews__score .stars .icon { width: 22px; height: 22px; }

/* ---------- restaurantes ---------- */
.loc-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .loc-grid--single { grid-template-columns: 1fr; }
  .loc-grid--single .loc { flex-direction: row; }
  .loc-grid--single .loc__map { flex: 1.15; aspect-ratio: auto; min-height: 460px; }
  .loc-grid--single .loc__body { flex: 1; }
}
.loc { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgb(0 0 0 / 0.45); }
.loc__map { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 9; background: repeating-conic-gradient(#efe7da 0 25%, #f8f4ed 0 50%) 0 0 / 44px 44px; }
.loc__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc__map-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.6); }
.loc__map-btn:hover { background: #000; }
.loc__map-note { font-size: 0.78rem; color: var(--ink-soft); background: rgb(250 247 242 / 0.85); padding: 2px 8px; border-radius: 6px; }
.loc__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 34px); flex: 1; }
.loc__name { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; }
.loc__addr { display: flex; gap: 10px; color: var(--ink-soft); }
.loc__addr .icon { margin-top: 4px; color: var(--red); }
.loc__hours h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.loc__hours-pending { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 0.94rem; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- pie ---------- */
.site-footer { background: var(--night); color: var(--on-dark-soft); font-size: 0.94rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.site-footer a { color: var(--on-dark); }
.site-footer__grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.site-footer__tag { margin-top: 10px; }
.site-footer__h { margin-bottom: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--on-dark); }
.site-footer__grid p + p { margin-top: 8px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.2); }
.social a:hover { background: rgb(255 255 255 / 0.08); }
.site-footer__credits { padding-bottom: 20px; font-size: 0.8rem; }
.site-footer__credits summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.site-footer__credits ul { margin-top: 8px; display: grid; gap: 4px; }
.site-footer__credits a { word-break: break-word; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.85rem; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- diálogo de reservas ---------- */
.reserve { width: min(92vw, 460px); max-height: 90svh; padding: 34px 28px 28px; border: 0; border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6); }
.reserve::backdrop { background: rgb(18 12 8 / 0.65); backdrop-filter: blur(4px); }
.reserve[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.reserve__close-form { position: absolute; top: 12px; right: 12px; }
.reserve__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.reserve__close:hover { background: var(--paper); }
.reserve__title { margin: 10px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.reserve__lead { margin-bottom: 22px; color: var(--ink-soft); }
.reserve__list { display: grid; gap: 18px; margin-top: 24px; }
.reserve__loc-name { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.reserve__loc-name .icon { color: var(--red); }
.reserve__phones { display: grid; gap: 8px; }

/* ---------- música ---------- */
.music { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; min-width: 52px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 999px; background: rgb(22 35 27 / 0.92); color: var(--on-dark); cursor: pointer; box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.2s var(--ease), background-color 0.2s; }
.music[hidden] { display: none; }
.music:hover { background: var(--night); }
.music:active { transform: scale(0.95); }
.music .icon { width: 22px; height: 22px; }
.music__on, .music__bars { display: none; }
.music__label { font-size: 0.85rem; font-weight: 600; }
.music[aria-pressed='true'] .music__label { display: none; }
.music[aria-pressed='true'] .music__on, .music[aria-pressed='true'] .music__bars { display: inline-flex; }
.music[aria-pressed='true'] .music__off { display: none; }
.music__bars { align-items: flex-end; gap: 2px; height: 14px; }
.music__bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold); animation: eq 0.9s ease-in-out infinite; transform-origin: bottom; }
.music__bars i:nth-child(2) { animation-delay: -0.3s; }
.music__bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* ---------- animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- páginas legales ---------- */
.legal { padding-top: calc(var(--header-h) + 3rem); }
.legal .section-title { margin-bottom: 1.5rem; }

/* =====================================================================
   Nápoli: componentes nuevos respecto a la base de Cosa Mia
   ===================================================================== */

/* logotipo (caligrafía blanca sobre arco de horno) */
.brand__logo { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5)); }
.brand__logo--footer { height: 58px; }
@media (max-width: 380px) { .brand__logo { height: 38px; } }
.hero__title { margin-top: 10px; }
.hero__logo { width: min(100%, 520px); height: auto; filter: drop-shadow(0 10px 30px rgb(0 0 0 / 0.6)); }

/* brasa del horno detrás del contenido */
.hero__ember { position: absolute; inset: auto -10% -30% -10%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgb(232 145 63 / 0.35), rgb(194 54 27 / 0.15) 45%, transparent 70%);
  animation: ember 6s ease-in-out infinite alternate; }
@keyframes ember { from { opacity: 0.7; } to { opacity: 1; } }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) { .hero__poster { animation: kenburns 24s ease-in-out infinite alternate; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }
.hero__meta .hero__rating { margin-top: 0; }

/* botones nuevos */
.btn--ghost-light { border-color: rgb(255 255 255 / 0.35); color: var(--on-dark); background: transparent; }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgb(255 255 255 / 0.06); }
.btn--order { background: var(--ink); color: #fff; }
.btn--order:hover { background: #000; }
.site-header__order { margin-left: 4px; }
@media (max-width: 560px) { .site-header__order { display: none; } }
.link { padding: 0; border: 0; background: none; color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* «Abierto ahora / Cerrado» */
.open-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; background: rgb(255 255 255 / 0.08); color: var(--on-dark); border: 1px solid rgb(255 255 255 / 0.14); }
.open-badge[hidden] { display: none; }
.open-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: #9a8f84; }
.open-badge.is-open .open-badge__dot { background: #4cc46a; box-shadow: 0 0 0 4px rgb(76 196 106 / 0.2); }
.open-badge.is-closed .open-badge__dot { background: #e0574a; }
.open-badge--dark { background: var(--paper); color: var(--ink); border-color: var(--line); margin: 0 0 4px; align-self: flex-start; }
.reserve .open-badge { margin-bottom: 18px; }
.reserve__alt { margin-top: 20px; font-size: 0.92rem; color: var(--ink-soft); }
.reserve__alt a { color: var(--red); font-weight: 600; }

/* filtro de pizzas */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid rgb(30 24 19 / 0.18); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filter span { font-size: 0.78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter[aria-pressed='true'] span { background: var(--red); color: #fff; }
.js .dish-card[data-hidden] { display: none; }

/* precios por tamaño */
.dish-card__price small { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); margin-right: 2px; }
.dish-card__fav { color: var(--gold); font-size: 0.85em; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.sizes li { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 8px; background: var(--paper); font-family: var(--serif); font-weight: 700; font-size: 0.9rem; line-height: 1.2; color: var(--red); white-space: nowrap; }
.sizes abbr { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }
.sizes--inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sizes--inline li { flex-direction: row; gap: 6px; align-items: baseline; padding: 3px 9px; }
.sizes--inline li { background: var(--cream); }
.featured__note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.hours tr.is-closed td { color: var(--red); font-weight: 600; }

/* barra de acciones en el móvil */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; border-radius: 18px; background: rgb(23 17 13 / 0.94); box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(140%); transition: transform 0.35s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: 0; border-radius: 13px; background: transparent; color: var(--on-dark); font-size: 0.75rem; font-weight: 600; text-decoration: none; cursor: pointer; }
  .mobile-bar a:first-child { background: var(--red); color: #fff; }
  .mobile-bar .icon { width: 20px; height: 20px; }
}

/* mapa: foto de la sala detrás del botón (el mapa real solo se carga al pulsar) */
.loc__map[style] { background-size: cover; background-position: center; }
.loc__map[style] .loc__map-note { background: rgb(23 17 13 / 0.7); color: var(--on-dark); }

/* revisión de pautas de interfaz (web-design-guidelines) */
.reserve { overscroll-behavior: contain; }
.btn, .filter, .tab, .mobile-bar a, .mobile-bar button, .music, .nav__toggle { touch-action: manipulation; }
.dish-card__price, .menu-item__price, .sizes li, .hours td, .featured__count, .open-badge { font-variant-numeric: tabular-nums; }

/* carta de abajo: todas las categorías a la vista */
.carta-group + .carta-group { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.carta-group__title { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.carta-group__title span { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* fotos en grande */
.zoom-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; overflow: hidden; }
.dish-card__media .dish-card__price, .dish-card__media .dish-card__stock { pointer-events: none; }
.menu-item__thumb.zoom-btn { width: 60px; height: 60px; border-radius: 50%; }
.gallery__item .zoom-btn img { width: 100%; height: 100%; object-fit: cover; }
.zoom { width: min(94vw, 980px); max-height: 94svh; padding: 0; border: 0; border-radius: 22px; background: var(--night); color: var(--on-dark); overflow: hidden; overscroll-behavior: contain; box-shadow: 0 40px 100px -30px #000; }
.zoom::backdrop { background: rgb(10 7 5 / 0.85); backdrop-filter: blur(6px); }
.zoom[open] { animation: pop 0.3s var(--ease); }
.zoom__figure { margin: 0; display: flex; flex-direction: column; max-height: 94svh; }
.zoom__frame { position: relative; flex: 1; min-height: 0; background: #0d0907; display: grid; place-items: center; }
.zoom__frame img { width: 100%; height: auto; max-height: min(72svh, 760px); object-fit: contain; }
.zoom__stock { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.6); font-size: 0.75rem; }
.zoom__caption { padding: 16px 22px 20px; }
.zoom__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.zoom__head strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.zoom__price { font-family: var(--serif); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.zoom__desc { margin-top: 6px; color: var(--on-dark-soft); font-size: 0.95rem; }
.zoom__close, .zoom__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; cursor: pointer; touch-action: manipulation; }
.zoom__close:hover, .zoom__nav:hover { background: rgb(0 0 0 / 0.8); }
.zoom__close { top: 12px; right: 12px; }
.zoom__nav { top: calc(min(72svh, 760px) / 2 - 23px); }
.zoom__nav[hidden] { display: none; }
.zoom__nav--prev { left: 12px; }
.zoom__nav--next { right: 12px; }
.icon--flip { transform: scaleX(-1); }
