/* Favolosa — favolosa.es
   Paleta: harina, pistacho, albahaca, bosque; pomodoro y sol solo para señales pequeñas.
   Los font están en css/fonts.css (alojados en la web, sin Google Fonts). */

:root {
  --flour: #F6F8F1;
  --pistachio: #E2EDD0;
  --pistachio-deep: #CADDAE;
  --basil: #336F24;
  --basil-bright: #4C8B34;
  --leaf: #93C95A;
  --forest: #173A22;
  --forest-2: #1F4A2C;
  --ink: #15301F;
  --ink-soft: #46604D;
  --line: #CCDABF;
  --crust: #EBC27A;
  --crust-dark: #C98A3A;
  --tomato: #C8341F;
  --sun: #F2C14E;
  --white: #FFFFFF;

  --font-display: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-photo: 28px;
  --radius-ui: 999px;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 1;  /* multiplicador de duración; más lento con movimiento reducido */
}

@media (prefers-reduced-motion: reduce) {
  :root { --t: 1.8; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--flour);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 3px solid var(--basil); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-family: var(--font-display); }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: var(--radius-ui); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color calc(.18s * var(--t)) var(--ease), color calc(.18s * var(--t)) var(--ease), transform calc(.18s * var(--t)) var(--ease), border-color calc(.18s * var(--t)) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--basil); color: var(--white); }
.btn--primary:hover { background: var(--forest-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--flour); }
.btn--wa { background: var(--basil); color: var(--white); }
.btn--wa:hover { background: var(--forest-2); }
.btn--small { min-height: 42px; padding: 0 1.1em; font-size: .98rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--flour) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color calc(.2s * var(--t)) linear;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.top__logo img { width: 140px; height: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.top__nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--basil), var(--basil)) left bottom / 0 2px no-repeat; transition: background-size calc(.22s * var(--t)) var(--ease); }
.top__nav a:hover { background-size: 100% 2px; }
@media (max-width: 760px) {
  .top__inner { gap: 14px; }
  .top__logo img { width: 118px; }
  .top__nav { gap: 16px; }
  .top__nav a:not(:first-child) { display: none; }
}

/* ---------- Inicio ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); overflow: clip; }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
  font-weight: 900; font-size: clamp(3.4rem, 9.2vw, 8rem); line-height: .9; letter-spacing: -.035em;
  color: var(--forest); max-width: 7.2ch; margin: 18px 0 26px;
}
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.rating__stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; text-shadow: 0 0 0 var(--crust-dark); }
.rating:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink-soft); background: var(--pistachio); padding: 6px 14px 6px 10px; border-radius: var(--radius-ui); text-decoration: none; }
.status:hover { background: var(--pistachio-deep); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.status.is-open .status__dot { background: var(--basil-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--basil-bright) 25%, transparent); }
.status.is-open { color: var(--forest); }

.hero__media { position: relative; margin: 0; justify-self: end; width: min(100%, 520px); }
.hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-photo); }
.hero__inset {
  position: absolute; left: -12%; bottom: 9%; width: 36%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 8px solid var(--flour);
}
.hero__caption { margin-top: 12px; font-family: var(--font-display); font-size: .92rem; color: var(--ink-soft); text-align: right; }

/* Entrada de la portada: un solo momento al cargar */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hero__title { animation: rise calc(.7s * var(--t)) var(--ease) both; }
.hero__lead, .hero__actions, .rating { animation: rise calc(.7s * var(--t)) var(--ease) both; animation-delay: calc(.12s * var(--t)); }
.hero__photo { animation: rise calc(.9s * var(--t)) var(--ease) both; animation-delay: calc(.05s * var(--t)); }
.hero__inset { animation: pop calc(.6s * var(--t)) var(--ease) both; animation-delay: calc(.45s * var(--t)); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; width: 100%; max-width: 520px; margin-inline: auto; }
  .hero__inset { left: -4%; width: 32%; }
  .hero__title { max-width: none; }
}
/* En el móvil la foto de Ani entra en la primera pantalla: estado, título, foto, texto, botones */
@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .hero__inner { row-gap: 0; }
  .hero__text { display: contents; }
  .status { order: 1; justify-self: start; font-size: .92rem; }
  .hero__title { order: 2; font-size: clamp(3rem, 15vw, 4.2rem); margin: 14px 0 18px; }
  .hero__media { order: 3; max-width: none; }
  .hero__photo { aspect-ratio: 5 / 4; object-position: 50% 52%; border-radius: 22px; }
  .hero__inset { width: 26%; left: -2%; bottom: 14%; border-width: 6px; }
  .hero__caption { margin-top: 8px; font-size: .88rem; }
  .hero__lead { order: 4; margin-top: 20px; }
  .hero__actions { order: 5; margin: 24px 0 20px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .rating { order: 6; justify-self: start; }
}

/* ---------- Carta ---------- */
.menu__head { background: var(--forest); color: var(--white); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.menu__head-inner { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 40px 64px; align-items: end; }
.menu__intro h2 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 900; letter-spacing: -.03em; color: var(--white); }
.menu__intro p { margin-top: 16px; max-width: 40ch; color: var(--pistachio); font-size: 1.12rem; }

.dough { background: var(--forest-2); border-radius: 24px; padding: 20px 22px 22px; }
.dough__label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--pistachio); }
.crust { display: block; width: 100%; height: auto; margin: 10px 0 14px; overflow: visible; }
.crust__base, .crust__rim ellipse { fill: var(--crust); stroke: var(--crust-dark); stroke-width: 2; }
.crust__sauce { fill: var(--tomato); }
.crust__cheese { fill: #FBF6EA; }
.crust__basil { fill: var(--leaf); }
.crust .alv { fill: #F8E6BF; transition: opacity calc(.35s * var(--t)) var(--ease); }
.crust__rim, .crust__base { transform-box: fill-box; transform-origin: 50% 100%; transition: transform calc(.55s * var(--t)) cubic-bezier(.34, 1.4, .5, 1); }
.crust__top { transition: transform calc(.55s * var(--t)) cubic-bezier(.34, 1.4, .5, 1); }
.crust[data-dough-art="romana"] .crust__rim { transform: scale(.62, .36); }
.crust[data-dough-art="romana"] .crust__base { transform: scaleY(.6); }
.crust[data-dough-art="romana"] .crust__top { transform: translateY(5px); }
.crust[data-dough-art="romana"] .alv { opacity: 0; }

.dough__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--forest); padding: 5px; border-radius: var(--radius-ui); }
.dough__opt {
  min-height: 46px; border: 0; border-radius: var(--radius-ui); background: transparent; color: var(--pistachio);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: background-color calc(.2s * var(--t)) var(--ease), color calc(.2s * var(--t)) var(--ease);
}
.dough__opt:hover { color: var(--white); }
.dough__opt[aria-pressed="true"] { background: var(--leaf); color: var(--forest); }
.dough__spec { margin-top: 14px; color: var(--pistachio); font-size: 1rem; min-height: 3.2em; }

.cats-bar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--flour) 96%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; scroll-snap-align: start; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 8px 16px; border-radius: var(--radius-ui); color: var(--ink-soft);
  transition: background-color calc(.2s * var(--t)) var(--ease), color calc(.2s * var(--t)) var(--ease);
}
.cats a:hover { color: var(--ink); background: var(--pistachio); }
.cats a[aria-current="true"] { background: var(--forest); color: var(--white); }
.cats a[data-hidden="true"] { display: none; }

.menu__tools { padding: 22px 0 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; }
.search .ico { position: absolute; left: 16px; color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; min-height: 48px; padding: 0 16px 0 46px; border-radius: var(--radius-ui);
  border: 2px solid var(--line); background: var(--white); font-family: var(--font-display); font-size: 1rem;
}
.search input::placeholder { color: #5B7060; }
.search input:focus { border-color: var(--basil); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-ui); border: 1.5px solid var(--line); background: transparent;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; cursor: pointer;
  transition: background-color calc(.18s * var(--t)) var(--ease), border-color calc(.18s * var(--t)) var(--ease), color calc(.18s * var(--t)) var(--ease);
}
.chip:hover { border-color: var(--basil); }
.chip[aria-pressed="true"] { background: var(--basil); border-color: var(--basil); color: var(--white); }
.chip[aria-pressed="true"]::before { content: "✓ "; }

.menu__body { padding-bottom: clamp(56px, 8vw, 104px); }
.menu__count { font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); min-height: 1.6em; margin: 6px 0 0; }

.group { padding-top: clamp(40px, 5vw, 64px); }
.group[hidden] { display: none; }
.group__head { display: grid; grid-template-columns: 1fr; gap: 20px 48px; align-items: end; margin-bottom: 18px; }
.group__head.has-photo { grid-template-columns: 1fr minmax(260px, 400px); align-items: center; }
.group__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--forest); }
.group__note { margin-top: 10px; color: var(--ink-soft); max-width: 46ch; }
.group__photo { margin: 0; }
.group__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.group__photo figcaption { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); font-style: italic; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: center;
  padding: 16px 0 18px; border-top: 1px solid var(--line);
}
.item[hidden] { display: none; }
.item__name {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.15;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
}
.item__qty { font-size: .85rem; font-weight: 800; color: var(--white); background: var(--basil); border-radius: var(--radius-ui); padding: 1px 8px; }
.item__price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--forest); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__ing { grid-column: 1 / -1; color: var(--ink-soft); max-width: 52ch; }
.item__ing mark { background: color-mix(in srgb, var(--sun) 55%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.item__extra { grid-column: 1 / -1; font-style: italic; color: var(--basil); font-size: .98rem; }
.item__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.item__meta:empty { display: none; }
.item__add {
  grid-column: 3; grid-row: 1; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--basil); background: transparent; color: var(--basil); cursor: pointer;
  transition: background-color calc(.18s * var(--t)) var(--ease), color calc(.18s * var(--t)) var(--ease), transform calc(.18s * var(--t)) var(--ease);
}
.item__add svg { width: 20px; height: 20px; }
.item__add:hover, .item__add.is-added { background: var(--basil); color: var(--white); }
.item__add:active { transform: scale(.92); }
.item__add .i-check { display: none; }
.item__add.is-added .i-plus { display: none; }
.item__add.is-added .i-check { display: block; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: .86rem; font-weight: 500; color: var(--ink-soft); }
.tag .ico { width: 1.05em; height: 1.05em; }
.tag--hot { color: var(--tomato); }
.tag--veg { color: var(--basil); }
.badge { font-family: var(--font-display); font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: var(--radius-ui); background: var(--pistachio); color: var(--forest); }
.badge--new { background: var(--sun); color: var(--ink); }

.empty { padding: 40px 0; display: grid; gap: 14px; justify-items: start; font-family: var(--font-display); font-size: 1.15rem; }
.empty[hidden] { display: none; }
.menu__foot { margin-top: 40px; font-size: .95rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .menu__head-inner { grid-template-columns: 1fr; }
  .group__head.has-photo { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search { max-width: none; }
}

/* ---------- Historia ---------- */
.story { background: var(--pistachio); padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 8vw, 104px); }
.story__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 3vw, 40px); row-gap: clamp(48px, 7vw, 96px);
}
.story__media { grid-column: 1 / span 5; grid-row: 1; }
.story__media img { position: sticky; top: calc(var(--header-h) + 24px); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-photo); }
.story__text { grid-column: 7 / span 6; grid-row: 1; }
.story__text h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 900; letter-spacing: -.03em; color: var(--forest); }
.story__lead { margin-top: 20px; font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; max-width: 36ch; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--basil); opacity: .5; }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--crust); border: 2px solid var(--crust-dark);
}
.timeline__when { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--basil); margin-bottom: 4px; }
.timeline li p:not(.timeline__when) { max-width: 46ch; }

.quote { grid-column: 2 / span 10; margin: 0; }
.quote p {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.02em;
  color: var(--forest); text-wrap: balance;
}
.quote p::before { content: "«"; color: var(--basil-bright); }
.quote p::after { content: "»"; color: var(--basil-bright); }
.quote footer { margin-top: 18px; font-style: italic; color: var(--ink-soft); }

.story__duo { grid-column: 1 / span 6; }
.story__duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-photo); }
.italy { grid-column: 8 / span 5; align-self: center; }
.italy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--forest); }
.italy__list { list-style: none; margin: 18px 0 0; padding: 0; }
.italy__list li { padding: 10px 0; border-top: 1px solid var(--pistachio-deep); }
.italy__list strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.italy__note { margin-top: 18px; color: var(--ink-soft); }
.italy__note a { color: var(--basil); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .story__media, .story__text, .quote, .story__duo, .italy { grid-column: 1 / -1; grid-row: auto; }
  .story__media img { position: static; aspect-ratio: 4 / 5; }
  .story__text { order: -1; }
  .story__grid { row-gap: 48px; }
}

/* Reseñas */
.reviews { margin-top: clamp(64px, 9vw, 112px); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.reviews__head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--forest); }
.reviews__head p { font-family: var(--font-display); font-size: 1.05rem; }
.reviews__head a { color: var(--basil); font-weight: 700; text-underline-offset: 3px; }
.reviews__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.reviews__list li { border-top: 3px solid var(--basil); padding-top: 16px; }
.reviews__list blockquote { margin: 0; }
.reviews__list blockquote p { font-size: 1.08rem; line-height: 1.5; }
.reviews__who { margin-top: 12px; font-family: var(--font-display); font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .reviews__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews__list { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Visita ---------- */
.visit { padding: clamp(64px, 9vw, 120px) 0; }
.visit__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.visit h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.03em; color: var(--forest); max-width: 14ch; }
.visit__address { margin-top: 20px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.35; }
.hours { margin-top: 26px; border-collapse: collapse; width: 100%; max-width: 420px; font-family: var(--font-display); font-size: 1.05rem; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-closed { color: #5B7060; }
.hours tr.is-today { background: var(--pistachio); font-weight: 700; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.services { margin: 26px 0 0; padding: 0; list-style: none; }
.services li { padding-left: 26px; position: relative; margin-top: 8px; }
.services li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--basil-bright); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.visit__media { margin: 0; }
.visit__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-photo); }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.foot { background: var(--forest); color: var(--pistachio); padding: 56px 0 120px; }
.foot__inner { display: grid; gap: 16px; }
.foot__inner img { width: 150px; }
.foot__links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--font-display); }
.foot__links a { color: var(--white); text-underline-offset: 3px; }
.foot__legal { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.foot__legal a { color: var(--pistachio); text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--white); }

/* ---------- Página legal ---------- */
.legal { max-width: 820px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.legal__back a { font-family: var(--font-display); font-weight: 700; color: var(--basil); text-underline-offset: 3px; }
.legal h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; color: var(--forest); }
.legal__date { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }
.legal section { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--forest); margin-bottom: 14px; }
.legal p, .legal ul { margin: 0 0 14px; max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--basil); text-underline-offset: 3px; }
.legal + .foot { padding-bottom: 56px; }

/* ---------- Pedido ---------- */
.cart-pill {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 10px;
  border: 0; border-radius: var(--radius-ui); background: var(--forest); color: var(--white); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 12px 30px -10px rgba(23, 58, 34, .55);
}
.cart-pill[hidden] { display: none; }
.cart-pill__count { min-width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: var(--forest); font-weight: 900; }
.cart-pill__total { color: var(--pistachio); font-weight: 500; }
.cart-pill.is-bump { animation: bump calc(.4s * var(--t)) var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (max-width: 560px) {
  .cart-pill { left: 16px; right: 16px; justify-content: flex-start; }
  .cart-pill__total { margin-left: auto; }
}

.cart {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(440px, 100vw);
  background: var(--flour); color: var(--ink); overflow: hidden;
}
.cart::backdrop { background: rgba(21, 48, 31, .45); }
.cart[open] { animation: slide-in calc(.32s * var(--t)) var(--ease); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
/* Cabecera y pie fijos; en medio solo se desplaza el contenido: el pie nunca tapa los campos */
.cart__inner { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.cart__head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 10px; }
.cart__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; padding: 4px 22px 20px; }
.cart__when { background: var(--pistachio); border-radius: 14px; padding: 10px 14px; font-family: var(--font-display); font-weight: 500; color: var(--forest); }
.cart__when[hidden] { display: none; }
.field__error { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--tomato); }
.field__error[hidden] { display: none; }
.field input[aria-invalid="true"] { border-color: var(--tomato); }
.cart__head h2 { font-size: 2rem; font-weight: 900; color: var(--forest); }
.cart__close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.cart__line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cart__line-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.cart__line-price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-ui); }
.qty button { width: 40px; height: 38px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; border-radius: var(--radius-ui); }
.qty button:hover { background: var(--pistachio); }
.qty output { min-width: 26px; text-align: center; font-family: var(--font-display); font-weight: 700; }
.masa-select { min-height: 40px; border-radius: var(--radius-ui); border: 1.5px solid var(--line); background: var(--white); padding: 0 12px; font-family: var(--font-display); }
.cart__empty { color: var(--ink-soft); }
.cart__empty[hidden] { display: none; }
.cart__how { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.cart__how legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.cart__how label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.cart__how input { width: 20px; height: 20px; accent-color: var(--basil); }
.field { display: grid; gap: 6px; font-family: var(--font-display); font-weight: 700; }
.field[hidden] { display: none; }
.field input, .field select { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); padding: 0 14px; font-family: var(--font-text); font-weight: 400; font-size: 1rem; }
.cart__foot {
  flex: none; display: grid; gap: 10px; padding: 14px 22px max(18px, env(safe-area-inset-bottom));
  border-top: 2px solid var(--forest); background: var(--flour);
}
.cart__sum { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.15rem; }
.cart__sum strong { font-size: 1.35rem; color: var(--forest); }
.cart__note { font-size: .92rem; color: var(--ink-soft); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

@media (max-width: 560px) {
  .cart { margin: auto 0 0; width: 100vw; max-width: 100vw; height: 92dvh; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .cart__head h2 { font-size: 1.7rem; }
  .cart__note { font-size: .85rem; }
  .cart[open] { animation-name: slide-up; }
  @keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
}
