/* =========================================================
   Pizzeria Italia No.1 — estilos
   La web es el folleto de reparto del barrio: papel crema, tinta negra,
   rojo de toldo y verde albahaca. Esquinas rectas, sin sombras ni degradados.
   ========================================================= */

/* Fraunces servida desde la propia web (fonts/). Licencia SIL OFL 1.1: fonts/OFL.txt */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Fuente provisional con medidas parecidas a Fraunces, para que el texto no salte al cargar */
@font-face { font-family: "Fraunces fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 102%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  /* Colores de la marca */
  --red: #C8102E;
  --red-deep: #A00D25;
  --green: #2E7D32;
  --green-deep: #1F5C23;
  --paper: #FFF8EE;
  --paper-2: #F5EAD8;
  --paper-3: #EBDCC4;
  --ink: #1E1E1E;
  --ink-soft: #4A433C;
  --white: #FFFFFF;
  --focus: #E8A317;

  /* Tipografía: una sola familia */
  --font: "Fraunces", "Fraunces fallback", Georgia, serif;
  --step-small: 0.875rem;                                 /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17–19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);   /* 20–26px */
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);          /* 32–64px */
  --step-display: clamp(2.6rem, 1rem + 6.4vw, 7rem);       /* 42–112px */

  /* Medidas */
  --wrap: 1240px;
  --margin: 16px;
  --header-h: 64px;
  --mobile-bar-h: 64px;
  --section: clamp(88px, 12vw, 176px);

  /* Franja del toldo: barras rojas y crema */
  --stripe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='8' viewBox='0 0 56 8' preserveAspectRatio='none'%3E%3Crect width='28' height='8' fill='%23C8102E'/%3E%3Crect x='28' width='28' height='8' fill='%23FFF8EE'/%3E%3C/svg%3E");
  /* Bordes de papel: festón (semicírculos) y diente de sierra */
  --scallop-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16A16 16 0 0 1 32 16Z' fill='%23FFF8EE'/%3E%3C/svg%3E");
  --scallop-paper-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 0A16 16 0 0 0 32 0Z' fill='%23FFF8EE'/%3E%3C/svg%3E");
  --zigzag-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 8L8 0L16 8Z' fill='%23FFF8EE'/%3E%3C/svg%3E");
  --zigzag-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 0L8 8L16 0Z' fill='%23FFF8EE'/%3E%3C/svg%3E");

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  font-optical-sizing: auto;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--mobile-bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--red); }
h1, h2, h3 { font-weight: 500; line-height: 1; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--margin); }
.small { font-size: var(--step-small); }
.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-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 12px; color: var(--paper); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.tnum { font-variant-numeric: tabular-nums; }

/* Franja del toldo */
.stripe { height: 56px; background: var(--stripe) left top / 56px 100% repeat-x; }
.stripe--thin { height: 10px; }

/* ---------- Botones: rectángulos planos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: 0;
  font-weight: 600; font-size: var(--step-body); line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-plain { background: var(--paper-2); color: var(--ink); }
.btn-plain:hover { background: var(--paper-3); color: var(--ink); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--paper); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call { display: none; min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.lang-toggle { min-width: 48px; height: 44px; border: 0; background: var(--paper-2); font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease); }
.lang-toggle:hover { background: var(--paper-3); }
.nav-toggle { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2.5px; background: var(--ink); transition: transform .2s var(--ease), background-color .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { padding: 8px var(--margin) 20px; }
.main-nav a { display: block; padding: 14px 0; font-size: var(--step-lead); text-decoration: none; }

/* ---------- 1. Portada ---------- */
.hero { background: var(--red); padding: 12px; display: grid; gap: 0; }
.hero-photo { position: relative; height: 48svh; min-height: 300px; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 7s linear; }
.hero-slide.is-on img { transform: scale(1.08); }
.hero-photo-label { position: absolute; left: 0; bottom: 0; margin: 0; max-width: 34ch; padding: 10px 14px; background: var(--paper); font-size: var(--step-small); }
.hero-card { position: relative; z-index: 1; margin: -24px 12px 0; background: var(--paper); text-align: center; }
.hero-card .stripe { height: 40px; }
.hero-card-body { padding: 28px 20px 28px; display: flex; flex-direction: column; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 1rem; font-weight: 600; min-height: 1.5em; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open .status-dot { background: var(--green); animation: pulse 2.2s infinite; }
.status.is-closed .status-dot { background: var(--red); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.hero-name { font-size: var(--step-display); line-height: .95; letter-spacing: -0.035em; max-width: 9ch; }
.hero-sub { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; margin: 18px 0 26px; }
.hero-phone {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; max-width: 420px;
  padding: 16px 20px 18px; background: var(--red); color: var(--white); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.hero-phone:hover { background: var(--red-deep); color: var(--white); transform: translateY(-2px); }
.hero-phone-label { font-size: var(--step-body); font-weight: 600; }
.hero-phone-number { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-services { margin: 6px 0 16px; font-size: var(--step-small); color: var(--ink-soft); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: var(--step-body); }
.hero-links a { text-decoration: underline; }

/* ---------- 2. Pizza de barrio ---------- */
.intro { padding-block: var(--section) calc(var(--section) * .8); }
.intro-top { display: grid; gap: 24px; }
.intro-title { font-size: var(--step-display); }
.intro-note { font-size: var(--step-body); max-width: 34ch; margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-top: 72px; }
.fact { display: block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--red); }
.fact-note { display: block; margin-top: 10px; font-size: 1rem; max-width: 24ch; }

/* ---------- 3. La carta: hoja impresa sobre verde ---------- */
.menu { background: var(--green-deep); color: var(--paper); padding-block: var(--section); }
.menu-head { display: grid; gap: 16px; margin-bottom: 40px; }
.menu-head h2 { font-size: var(--step-display); }
.menu-head-note { max-width: 36ch; margin: 0; }
.menu-head-note a { color: var(--paper); font-weight: 600; }
.menu-head-note a:hover { color: var(--white); }
.menu-tools { background: var(--green-deep); padding: 12px 0 14px; margin-bottom: 36px; display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); padding: 0 16px; }
.search .icon { color: var(--ink-soft); }
.search input { border: 0; background: transparent; height: 50px; width: 100%; font-size: var(--step-body); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; border: 0; background: var(--green); color: var(--paper);
  padding: 10px 16px; font-size: var(--step-body); font-weight: 500; cursor: pointer; white-space: nowrap; min-height: 46px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { background: #3A8E3F; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }

.sheet { position: relative; max-width: 760px; margin: 16px auto 16px; background: var(--paper); color: var(--ink); padding: 56px 24px 40px; }
.sheet::before, .sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background-repeat: repeat-x; background-size: 32px 16px; }
.sheet::before { top: -15px; background-image: var(--scallop-paper); }
.sheet::after { bottom: -15px; background-image: var(--scallop-paper-down); }
.menu-panel[hidden] { display: none; }
.menu-panel-head { text-align: center; margin-bottom: 28px; }
.menu-panel-title { font-size: var(--step-head); }
.menu-list { max-width: 580px; margin: 0 auto; display: grid; gap: 22px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; }
.dish-name { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; letter-spacing: -0.01em; }
.dish-price { font-size: var(--step-lead); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.dish-desc { grid-column: 1 / -1; margin: 2px 0 0; font-size: 1rem; color: var(--ink-soft); max-width: 52ch; }
.dish-allergens { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.dish--featured { background: var(--paper-2); padding: 18px 18px 16px; margin-inline: -18px; }
.dish--featured .dish-name { color: var(--red); }
.dish--featured.dish--has-img { grid-template-columns: 96px 1fr auto; }
.dish--featured .dish-img { grid-row: 1 / span 3; width: 96px; height: 96px; object-fit: cover; }
.dish--has-img .dish-desc, .dish--has-img .dish-allergens { grid-column: 2 / -1; }
.dish-thumb { width: 52px; height: 52px; object-fit: cover; grid-row: 1 / span 2; }
.dish--with-thumb { grid-template-columns: 52px 1fr auto; }
.dish--with-thumb .dish-desc, .dish--with-thumb .dish-allergens { grid-column: 2 / -1; }
.menu-group-title { font-size: var(--step-lead); text-align: center; margin: 36px 0 18px; color: var(--green-deep); }
.menu-group-title:first-child { margin-top: 0; }
.menu-empty, .menu-loading { text-align: center; color: var(--ink-soft); padding: 24px 0; margin: 0; }

.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 2px 8px; line-height: 1.4; letter-spacing: 0; }
.tag--favorita { background: var(--red); color: var(--white); }
.tag--vegetariana { background: #DCEBDD; color: var(--green-deep); }
.tag--picante { background: #FBDCD3; color: #8A2400; }
.tag--nuevo { background: var(--ink); color: var(--paper); }
.tag--verificar { background: #FFE9A8; color: #5A3E00; }
.tag--hoy { background: var(--focus); color: var(--ink); }

/* Ofertas: cupones recortables (misma paleta del folleto) */
.tab[data-cat="ofertas"] { background: var(--red); color: var(--white); }
.tab[data-cat="ofertas"]:hover { background: var(--red-deep); }
.tab[data-cat="ofertas"][aria-selected="true"] { background: var(--paper); color: var(--red); }
.deals { max-width: 680px; grid-template-columns: 1fr; gap: 14px; }
.deal { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--paper-2); border: 2px dashed var(--red); padding: 20px 26px 18px; }
.deal::before, .deal::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
.deal::before { left: -12px; }
.deal::after { right: -12px; }
.deal-price { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums; }
.deal-name { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; letter-spacing: -0.01em; }
.deal .dish-desc { margin: 0; }
.deal .dish-allergens { margin-top: auto; padding-top: 6px; }
.deal--main { background: var(--red); color: var(--white); border: 0; outline: 2px dashed rgba(255, 248, 238, .75); outline-offset: -10px; padding: 30px 30px 26px; }
.deal--main .deal-price { color: var(--white); font-size: var(--step-display); }
.deal--main .dish-desc { color: var(--white); opacity: .92; }
@media (min-width: 620px) {
  .deals { grid-template-columns: 1fr 1fr; }
  .deal--main { grid-column: 1 / -1; }
}

.allergen { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--white); }
.allergen svg { width: 16px; height: 16px; }
.allergen--gluten { background: #8A5E0F; }
.allergen--lacteos { background: #2F6DA8; }
.allergen--huevo { background: #A0661A; }
.allergen--pescado { background: #1F6F8B; }
.allergen--crustaceos { background: #B03224; }
.allergen--moluscos { background: #6D4C9F; }
.allergen--frutos_secos { background: #6E4426; }

.sheet-foot { max-width: 580px; margin: 48px auto 0; padding-top: 28px; text-align: center; background: var(--paper); }
.allergen-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: var(--step-small); }
.allergen-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sheet-hours { margin: 22px auto 0; font-size: 1rem; max-width: 40ch; }

/* ---------- 4. Monta tu pizza: cupón recortable ---------- */
.builder-wrap { padding-block: var(--section); }
.coupon { position: relative; display: grid; background: var(--red); color: var(--white); }
.coupon::before, .coupon::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); }
.coupon-left { padding: 32px 24px 28px; }
.coupon-left h2 { font-size: var(--step-head); margin-bottom: 14px; }
.coupon-left p { margin-bottom: 0; max-width: 30ch; }
.coupon-total { margin-top: 22px !important; }
.coupon-total strong { display: block; font-size: var(--step-display); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coupon-total small { font-size: var(--step-small); }
.builder-tip { margin-top: 16px !important; padding: 10px 14px; background: var(--paper); color: var(--ink); font-size: var(--step-small); }
.coupon-right { padding: 28px 24px 32px; border-top: 5px dotted var(--paper); }
/* muescas del cupón (móvil: a los lados de la perforación) */
.coupon::before { left: -14px; top: var(--perf, 50%); transform: translateY(-50%); }
.coupon::after { right: -14px; top: var(--perf, 50%); transform: translateY(-50%); }
.builder-options { border: 0; padding: 0; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; cursor: pointer;
  background: var(--red-deep); color: var(--white); font-size: var(--step-small); font-weight: 500;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.chip span:hover { background: #8A0B20; transform: translateY(-1px); }
.chip input:checked + span { background: var(--paper); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon .btn-plain { background: var(--red-deep); color: var(--white); }
.coupon .btn-plain:hover { background: #8A0B20; color: var(--white); }

/* ---------- 5. A domicilio ---------- */
.delivery { background: var(--paper-2); padding-block: var(--section); }
.delivery-grid { display: grid; gap: 48px; }
.delivery-codes h2 { margin-bottom: 32px; }
.cp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.cp-list li { font-size: var(--step-display); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .3s var(--ease), transform .3s var(--ease); }
.cp-list li.is-match { color: var(--red); transform: translateX(6px); }
.delivery-side { display: grid; gap: 32px; align-content: start; }
.cp-check label { display: block; font-size: var(--step-lead); line-height: 1.25; margin-bottom: 14px; max-width: 24ch; }
.cp-check-row { display: flex; gap: 0; }
.cp-check input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 0; background: var(--white);
  font-size: var(--step-lead); font-variant-numeric: tabular-nums;
}
.cp-check input::placeholder { color: #8C8378; }
.cp-check input:focus { outline: 3px solid var(--focus); outline-offset: 0; }
.cp-check .btn { min-height: 56px; }
.cp-result { margin: 12px 0 0; min-height: 1.5em; }
.cp-result.is-ok, .cp-result.is-no { padding: 12px 16px; }
.cp-result.is-ok { background: var(--green-deep); color: var(--paper); }
.cp-result.is-no { background: var(--paper-3); color: var(--ink); }
.cp-result a { color: inherit; font-weight: 600; }
.delivery-hours h3 { margin-bottom: 10px; }
.delivery-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.delivery .btn-plain { background: var(--paper-3); }
.delivery .btn-plain:hover { background: #E0CDAF; }

/* Tablas de horario (tabla real) */
.hours-table { width: 100%; max-width: 460px; border-collapse: collapse; font-size: var(--step-body); }
.hours-table th, .hours-table td { padding: 9px 12px; text-align: left; font-weight: 400; vertical-align: top; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr:nth-child(odd) { background: rgba(30, 30, 30, .04); }
.hours-table tr.is-today { background: var(--ink); color: var(--paper); }
.hours-table tr.is-today th { font-weight: 600; }
.hours-table tr.is-today th::after { content: attr(data-today); margin-left: 10px; font-size: 0.8125rem; font-weight: 600; background: var(--red); color: var(--white); padding: 2px 8px; }
.hours-table .closed { opacity: .7; }

/* ---------- 6. Opiniones: tiques sobre la bahía ---------- */
.reviews { padding-top: var(--section); background: var(--paper); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.reviews-head h2 { max-width: 14ch; }
.rating { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: var(--step-body); }
.rating strong { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.rating:hover { color: var(--red); }
.stars { display: inline-flex; gap: 2px; color: var(--red); }
.stars svg { width: 18px; height: 18px; }
.reviews-stage { position: relative; overflow: hidden; padding: 72px 0 88px; background: var(--ink); }
.reviews-stage picture, .reviews-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.reviews-photo { object-fit: cover; }
.reviews-grid { position: relative; display: grid; gap: 28px; }
.review {
  position: relative; margin: 0; background: var(--paper); padding: 26px 22px 22px; width: 86%;
  transform: rotate(var(--rot, -2deg)); transition: transform .4s var(--ease);
}
.review::before, .review::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background-size: 16px 8px; background-repeat: repeat-x; }
.review::before { top: -7px; background-image: var(--zigzag-up); }
.review::after { bottom: -7px; background-image: var(--zigzag-down); }
.review:nth-child(1) { --rot: -2.5deg; }
.review:nth-child(2) { --rot: 2deg; justify-self: end; }
.review:nth-child(3) { --rot: -1.5deg; }
.review:nth-child(4) { --rot: 3deg; justify-self: end; }
.review:hover { transform: rotate(0deg) translateY(-4px); }
.review blockquote { margin: 14px 0 18px; font-size: var(--step-lead); line-height: 1.3; }
.review blockquote p { margin: 0; }
.review figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: var(--step-small); }
.review figcaption strong { font-weight: 600; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 32px var(--section); }

/* ---------- Galería (oculta hasta tener fotos reales) ---------- */
.gallery[hidden] { display: none; }
.gallery { padding-block: var(--section); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 32px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1000px); max-height: 90vh; }
.lightbox::backdrop { background: rgba(10, 6, 4, .9); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; }
.lightbox-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; background: var(--paper); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- 7. Dónde estamos ---------- */
.location { padding-block: 0 var(--section); }
.location-grid { display: grid; gap: 40px; }
.location-text h2 { margin-bottom: 24px; }
.nap { font-size: var(--step-lead); line-height: 1.45; margin-bottom: 28px; }
.nap a { text-decoration: underline; }
.location-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.hours-title { margin-bottom: 12px; }
.map { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.map.is-loaded { min-height: 360px; }
.map-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 8s linear; }
.map:hover .map-poster { transform: scale(1.04); }
.map-consent { position: absolute; left: 0; bottom: 0; max-width: 360px; background: var(--paper); padding: 20px 22px 22px; }
.map-consent p { font-size: var(--step-small); margin-bottom: 14px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 8. Pie: el reverso de la tarjeta ---------- */
.site-footer { background: var(--green-deep); color: var(--ink); padding-bottom: 40px; }
.site-footer .wrap { padding-top: 64px; }
.card-back { position: relative; background: var(--paper); padding: 40px 24px 28px; display: grid; gap: 36px; }
.card-back::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: var(--scallop-paper) left top / 32px 16px repeat-x; }
.card-back-title { font-size: var(--step-head); letter-spacing: -0.025em; line-height: 1; margin-bottom: 16px; }
.card-back-msg p:last-child { max-width: 40ch; margin: 0; }
.card-back-addr { position: relative; padding-right: 84px; }
.stamp { position: absolute; top: 0; right: 0; width: 64px; height: auto; padding: 5px; background: var(--paper-2); transform: rotate(4deg); }
.addr { display: grid; gap: 10px; font-size: var(--step-body); }
.addr a { text-decoration: underline; word-break: break-word; }
.imprint { text-align: center; font-size: var(--step-small); color: var(--ink-soft); }
.imprint p { margin: 0 0 6px; }
.imprint a { color: var(--ink); }
.credits { max-width: 70ch; margin-inline: auto !important; }

/* ---------- Barra fija móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--mobile-bar-h);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--paper); transform: translateY(110%); transition: transform .35s var(--ease);
}
.show-bar .mobile-bar { transform: none; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: var(--step-body); }
.mobile-bar-call { background: var(--red); color: var(--white); }
.mobile-bar-call:hover { color: var(--white); background: var(--red-deep); }
.mobile-bar-order { background: var(--ink); color: var(--paper); }
.mobile-bar-order:hover { color: var(--paper); }

/* ---------- Comprobador de CP / asistente ---------- */
.chat-fab {
  position: fixed; right: 12px; bottom: 12px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0;
  background: var(--green-deep); color: var(--paper); font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.chat-fab svg { width: 22px; height: 22px; }
.show-bar .chat-fab { bottom: calc(var(--mobile-bar-h) + 12px); }
.chat-fab { transition: background-color .2s var(--ease), transform .2s var(--ease), bottom .35s var(--ease); }
.chat-fab:hover { background: var(--green); transform: translateY(-2px); }
.chat.is-open .chat-fab { display: none; }
.chat-panel {
  position: fixed; z-index: 80; left: 8px; right: 8px; bottom: calc(var(--mobile-bar-h) + 8px);
  max-height: min(84svh, 640px); display: flex; flex-direction: column; background: var(--paper); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); /* taste-skill-ignore: panel flotante (diálogo) */
}
.chat-panel[hidden] { display: none; }
.chat-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--green-deep); color: var(--paper); }
.chat-head h2 { font-size: 1.35rem; }
.chat-sub { margin: 4px 0 0; font-size: var(--step-small); }
.chat-close { width: 40px; height: 40px; flex: none; border: 0; background: var(--green); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); }
.chat-msg { max-width: 88%; padding: 10px 14px; font-size: 1rem; line-height: 1.45; }
.chat-msg--bot { background: var(--paper); align-self: flex-start; }
.chat-msg--user { background: var(--ink); color: var(--paper); align-self: flex-end; }
.chat-msg a { font-weight: 600; }
.chat-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 2px; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; border: 0; background: var(--paper-2); padding: 8px 12px; min-height: 38px; font-size: var(--step-small); line-height: 1.3; cursor: pointer; text-align: left; transition: background-color .15s; }
.chat-chips button:hover { background: var(--paper-3); }
.chat-form { flex: none; display: flex; gap: 6px; padding: 10px 12px 12px; }
.chat-form input { flex: 1; min-width: 0; height: 46px; border: 0; background: var(--paper-2); padding: 0 14px; font-size: var(--step-body); }
.chat-form input:focus { outline: 3px solid var(--focus); outline-offset: 0; }
.chat-send { width: 46px; height: 46px; flex: none; border: 0; background: var(--red); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; }

/* ---------- Aparición de las secciones ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .review.reveal.is-visible { transform: rotate(var(--rot, -2deg)); }
.js .review.reveal.is-visible:hover { transform: rotate(0deg) translateY(-4px); }

/* Rendimiento: no calcular lo que aún no está en pantalla */
.intro, .menu, .builder-wrap, .delivery, .reviews, .location, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Modo revisión (?revision=1) */
.revision-banner { position: fixed; bottom: var(--mobile-bar-h); left: 0; right: 0; z-index: 200; background: #FFE9A8; color: #5A3E00; text-align: center; font-size: var(--step-small); font-weight: 600; padding: 6px; }

/* =========================================================
   ≥ 600px
   ========================================================= */
@media (min-width: 600px) {
  :root { --margin: 24px; }
  .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { padding: 64px 56px 48px; }
  .cp-list { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 40px; }
}

/* =========================================================
   ≥ 900px
   ========================================================= */
@media (min-width: 900px) {
  :root { --margin: 32px; --header-h: 72px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }
  .header-call { display: inline-flex; }
  .wordmark { font-size: 1.375rem; }
  .main-nav { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .main-nav ul { display: flex; gap: 28px; padding: 0; }
  .main-nav a { padding: 6px 0; font-size: var(--step-body); text-decoration: underline; text-decoration-color: transparent; }
  .main-nav a:hover { text-decoration-color: currentColor; color: var(--ink); }

  .hero { grid-template-columns: 1fr 1fr; gap: 12px; min-height: calc(100svh - var(--header-h)); }
  .hero-photo { order: 2; height: auto; min-height: 0; }
  .hero-card { margin: 0; display: flex; flex-direction: column; }
  .hero-card .stripe { height: 56px; }
  .hero-card-body { flex: 1; justify-content: center; padding: 48px 40px 40px; }
  .hero-sub { margin: 24px 0 32px; }

  .intro-top { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .intro-title { grid-column: 1 / 8; }
  .intro-note { grid-column: 9 / 13; }
  .facts { margin-top: 120px; }

  .menu-head { grid-template-columns: 1fr auto; align-items: end; }
  .menu-tools { position: sticky; top: var(--header-h); z-index: 10; grid-template-columns: 300px 1fr; align-items: center; }

  .coupon { grid-template-columns: 5fr 7fr; --perf: auto; }
  .coupon-left { padding: 48px 48px 44px; display: flex; flex-direction: column; }
  .coupon-total { margin-top: auto !important; padding-top: 28px; }
  .coupon-right { padding: 48px 48px 44px; border-top: 0; border-left: 5px dotted var(--paper); }
  .coupon::before, .coupon::after { left: calc(41.666% - 16px); right: auto; transform: none; }
  .coupon::before { top: -14px; }
  .coupon::after { top: auto; bottom: -14px; }

  .delivery-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .cp-list { grid-template-columns: repeat(2, auto); gap: 0 48px; }

  .reviews-stage { padding: 120px 0 140px; }
  .reviews-grid { grid-template-columns: repeat(4, 1fr); gap: 0; align-items: start; }
  .review { width: auto; margin-inline: -10px; }
  .review:nth-child(2) { margin-top: 64px; }
  .review:nth-child(3) { margin-top: 24px; }
  .review:nth-child(4) { margin-top: 88px; }

  .location-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
  .map.is-loaded { min-height: 600px; }

  .card-back { grid-template-columns: 1fr 1fr; padding: 64px 56px 32px; column-gap: 64px; }
  .card-back::before { top: -15px; }
  .card-back-addr { padding-right: 120px; padding-top: 6px; }
  .stamp { width: 96px; }
  .imprint { grid-column: 1 / -1; padding-top: 24px; }

  .chat-fab { bottom: 20px; right: 20px; }
  .chat-panel { left: auto; right: 20px; bottom: 20px; width: 380px; }
}

@media (min-width: 1280px) {
  .hero-card-body { padding-inline: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .review.reveal { transform: rotate(var(--rot, -2deg)); }
  .hero-slide img, .hero-slide.is-on img { transform: none; transition: none; }
  .status.is-open .status-dot { animation: none; }
  .btn:hover, .hero-phone:hover, .chip span:hover, .review:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Páginas legales ---------- */
.legal { padding-block: 48px 96px; max-width: 760px; }
.legal h1 { font-size: var(--step-head); margin-bottom: 24px; }
.legal h2 { font-size: var(--step-lead); margin: 1.8em 0 .5em; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .placeholder { background: #FFE9A8; padding: 0 4px; }
.legal-foot { background: var(--paper-2); padding-block: 28px; font-size: var(--step-small); }
.legal-foot p { margin: 0; }

/* Ajustes tras la revisión */
.delivery-grid, .location-grid, .intro-top, .menu-head, .card-back { grid-template-columns: minmax(0, 1fr); }
.cp-check-row .btn { flex: none; padding-inline: 18px; }
.hero-photo-label { top: 0; bottom: auto; }
.chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
.chat-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .hero-photo-label { top: auto; bottom: 0; }
  .chat-fab { width: auto; height: 52px; padding: 0 18px 0 14px; }
  .chat-fab-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .delivery-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .location-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .intro-top { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .menu-head { grid-template-columns: minmax(0, 1fr) auto; }
  .card-back { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Móvil: la cabecera se esconde al bajar y vuelve al subir */
@media (max-width: 899px) {
  .site-header { transition: transform .3s var(--ease); }
  .header-hidden .site-header { transform: translateY(-100%); }
}
.delivery-side, .location-text { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hours-table { table-layout: fixed; }
.hours-table th { width: 50%; }
/* El buscador y las pestañas van alineados con la hoja de la carta */
.menu-tools { max-width: 760px; margin-inline: auto; }
@media (min-width: 900px) {
  .menu-tools { grid-template-columns: 1fr; }
  .menu-head { max-width: 760px; margin-inline: auto; }
}
/* Pie sin texto de despedida: los datos de contacto ocupan todo el ancho */
.card-back-addr { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .addr { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 56px; font-size: var(--step-lead); }
}
.main-nav a, .header-call, .wordmark { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1180px) {
  .main-nav ul { gap: 18px; }
  .header-call span { display: none; }
  .header-call { padding-inline: 14px; }
  .addr { font-size: var(--step-body); }
}

/* Botón único del mapa: sin fondo ni recuadro */
.map-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 4px; border: 0; background: none; cursor: pointer;
  font-size: var(--step-lead); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: color .2s var(--ease);
}
.map-btn .icon { color: var(--red); width: 1.2em; height: 1.2em; }
.map-btn:hover { color: var(--red); }
.map-note { margin: 0; max-width: 34ch; font-size: var(--step-small); color: var(--ink-soft); }
.map-note a { color: inherit; }
.map.is-loaded .map-note { display: none; }

/* Aviso al pulsar «Llamar» en un ordenador */
.call-toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; width: min(560px, calc(100% - 32px)); padding: 16px 16px 16px 22px;
  background: var(--ink); color: var(--paper);
}
.call-toast[hidden] { display: none; }
.call-toast-text { margin: 0; flex: 1; font-size: var(--step-body); }
.call-toast .btn { min-height: 46px; padding: 10px 18px; flex: none; }
.call-close { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
