/* El Rincón Web 2.0.2.18 */
:root {
  --ink: #17141a;
  --muted: #6f625f;
  --wine: #851f28;
  --wine-dark: #65151d;
  --wine-soft: #f7e9e7;
  --navy: #2f2624;
  --cream: #f4eee6;
  --paper: #fffdf9;
  --line: #ddd2c8;
  --green: #315f4d;
  --shadow: 0 16px 34px rgba(55, 35, 30, .08);
  --radius: 18px;
  --wrap: 1140px;
  --section-space: 72px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
html.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #d99a24; outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(222,212,204,.7); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.header-inner nav { display: flex; align-items: center; gap: 22px; }
.header-inner nav a { position: relative; padding: 10px 0; text-decoration: none; font-weight: 760; font-size: .94rem; }
.header-inner nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px; background: var(--wine); transition: right .2s ease; }
.header-inner nav a:hover { color: var(--wine-dark); }
.header-inner nav a:hover::after { right: 0; }
.hero { padding: 42px 0 48px; background: var(--cream); border-bottom: 1px solid #e7ddd4; }
.hero-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 54px; align-items: center; }
.hero-copy { max-width: 520px; }
.eyebrow { margin: 0 0 10px; color: var(--wine); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1,h2,h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.025em; }
h1 { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 4.1vw, 3.65rem); font-weight: 700; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 2.45vw, 2.45rem); }
h3 { font-size: 1.24rem; letter-spacing: -.012em; }
.hero-place { margin: 0; color: var(--wine-dark); font-weight: 800; font-size: 1.04rem; }
.hero-rule { width: 58px; height: 3px; margin: 22px 0 20px; background: var(--wine); }
.hero-lead { max-width: 470px; margin: 0 0 24px; color: #554b48; font-size: 1.05rem; line-height: 1.65; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { width: 178px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 820; }
.button--primary { background: var(--wine); color: white; box-shadow: 0 7px 16px rgba(133,31,40,.15); }
.button--primary:hover { background: var(--wine-dark); }
.button--secondary { background: #fffaf6; color: var(--wine-dark); border-color: #dcbfba; }
.button--secondary:hover { background: var(--wine-soft); }
.hero-contact { margin: 24px 0 0; padding-left: 14px; border-left: 3px solid var(--wine); display: grid; gap: 4px; width: fit-content; }
.hero-contact__label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 1.04rem; }
.hero-contact a:hover strong { color: var(--wine); }
.hero-contact__icon { color: var(--wine); font-size: .95rem; }
.hero-contact__arrow { color: var(--wine); transition: transform .18s ease; }
.hero-contact a:hover .hero-contact__arrow { transform: translateX(3px); }
.hero-photo { margin: 0; height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.state-banner { padding: 10px 0 0; }
.state-card { padding: 28px 30px; border-radius: var(--radius); border: 1px solid #dcc7b3; background: #fff7e9; }
.state-card--holidays { background: #edf5f0; border-color: #b9d2c4; }
.state-card h2 { font-size: clamp(1.55rem, 2.2vw, 2.2rem); margin-bottom: 10px; }
.menu-section { padding: var(--section-space) 0; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 8px; }
.section-subtitle, .section-intro { margin: 0; color: var(--muted); }
.section-intro { max-width: 420px; }
.menu-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.menu-price { min-width: 180px; text-align: right; color: var(--muted); }
.menu-price span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.menu-price strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.menu-course, .menu-includes { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.menu-course h3 { color: var(--wine); margin-bottom: 20px; }
.dish-list { list-style: none; padding: 0; margin: 0; }
.dish-list li { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid #eee4dc; }
.dish-list li:first-child { border-top: 0; padding-top: 0; }
.dish-name { font-weight: 680; }
.allergen-icons { flex: 0 0 auto; display: inline-flex; gap: 4px; align-items: center; }
.allergen-icons img { width: 24px; height: 24px; border-radius: 50%; }
.menu-course--desserts { background: #fbf5ee; }
.menu-includes { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: white; border-color: var(--navy); }
.menu-includes .eyebrow { color: #f0bdbb; }
.menu-includes > p { margin: 5px 0; }
.secondary-price { margin-top: 20px !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; gap: 20px; }
.secondary-price strong { font-size: 1.25rem; }
.takeaway { color: #d7dfef; font-size: .9rem; }
.allergen-legend { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.allergen-legend summary { cursor: pointer; padding: 18px 4px; color: var(--wine-dark); font-weight: 850; }
.allergen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; padding: 0 4px 24px; }
.allergen-grid > div { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; font-size: .84rem; color: #5d5350; }
.allergen-grid img { border-radius: 50%; }
.empty-menu { padding: 30px 34px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.empty-menu h3 { font-size: 1.55rem; margin-bottom: 8px; }
.identity-section { padding: var(--section-space) 0; background: #f7f2ec; border-top: 1px solid #eee4dc; border-bottom: 1px solid #eee4dc; }
.identity-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }
.identity-photo { height: 430px; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.identity-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.identity-copy h2 { max-width: 570px; margin-bottom: 20px; }
.identity-copy p:not(.eyebrow) { max-width: 610px; color: #544b48; font-size: 1rem; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 10px; color: var(--wine); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.gallery-section { padding: var(--section-space) 0; background: var(--paper); }
.gallery-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: end; gap: 38px; margin-bottom: 28px; }
.gallery-heading h2 { max-width: 650px; margin: 0; }
.gallery-intro { margin: 0 0 3px; max-width: 420px; color: var(--muted); line-height: 1.65; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.gallery-card { min-width: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3d8cf; border-radius: 18px; background: #fffdfa; box-shadow: 0 9px 24px rgba(53,39,35,.07); }
.gallery-card img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: center; border: 0; border-radius: 0; box-shadow: none; transition: transform .22s ease; }
.gallery-card:hover img { transform: scale(1.015); }
.gallery-card figcaption { display: grid; gap: 5px; padding: 16px 17px 18px; color: #4d4441; }
.gallery-card figcaption strong { color: var(--ink); font-size: 1rem; line-height: 1.25; }
.gallery-card figcaption span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.contact-section { padding: 64px 0 54px; background: var(--cream); border-top: 1px solid #e4d9cf; }
.contact-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid #d9cec5; }
.contact-heading h2 { margin: 0; max-width: 620px; font-size: clamp(1.7rem, 2.4vw, 2.35rem); }
.contact-heading > p:last-child { margin: 0 0 4px; color: var(--muted); font-weight: 720; }
.contact-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0; align-items: stretch; }
.contact-detail { min-height: 150px; padding: 22px 24px; border: 1px solid #ded1c7; border-radius: 14px; background: rgba(255,253,249,.72); box-shadow: 0 8px 20px rgba(55,35,30,.04); display: flex; flex-direction: column; justify-content: flex-start; }
.contact-detail:first-child { padding-left: 24px; border-left: 1px solid #ded1c7; }
.contact-label { display: block; margin-bottom: 12px; color: var(--wine); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail address, .contact-detail p { margin: 0; color: #4f4542; font-style: normal; }
.contact-detail a { color: var(--ink); font-weight: 720; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-actions--wide { margin-top: 6px; }

/* Web 2.0.2.21: horario */
.opening-hours { margin: 0; display: grid; gap: 8px; color: #4f4542; }
.opening-hours > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.opening-hours dt, .opening-hours dd { margin: 0; }
.opening-hours dt { font-weight: 700; }
.opening-hours dd { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.site-footer { padding: 18px 0; background: #2b2221; color: #eadfd8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .82rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: white; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; background: white; border-radius: 50%; }
.footer-brand span { display: grid; gap: 1px; }
.footer-brand small { color: #cdbfba; font-size: .72rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: white; text-underline-offset: 4px; }

/* Web 2.0.2.2: cierre más limpio y consistente */
.contact-phone-list { display: grid; gap: 10px; }
.contact-phone-link { display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink) !important; text-decoration: none; }
.contact-phone-icon { width: 30px; height: 30px; flex: 0 0 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font-size: .82rem; }
.contact-phone-link span:last-child { display: grid; gap: 1px; }
.contact-phone-link small { color: var(--muted); font-size: .68rem; line-height: 1; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.contact-phone-link strong { color: var(--ink); font-size: .94rem; line-height: 1.2; }
.contact-phone-link:hover strong { color: var(--wine); }
.contact-actions--wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 650px; }
.contact-actions--wide .button { width: 100%; min-height: 48px; justify-content: center; text-align: center; }


/* Web 2.0.2.3: botón Volver arriba */
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: var(--wine);
  color: #fff !important;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(0,0,0,.14);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.back-to-top span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: .95rem;
  line-height: 1;
}
.back-to-top:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.back-to-top:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 1080px) {
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); align-items: stretch; }
  .gallery-card img { height: 230px; }
  .gallery-card figcaption { align-content: center; padding: 22px 24px; }
}

@media (max-width: 900px) {
  .hero-panel, .identity-grid { grid-template-columns: 1fr; }
  .hero-panel { gap: 28px; }
  .hero-photo { height: 300px; order: -1; }
  .menu-grid { grid-template-columns: 1fr; }
  .allergen-grid { grid-template-columns: 1fr 1fr; }
  .gallery-heading { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .gallery-intro { max-width: 620px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-card { display: flex; }
  .gallery-card img { height: 240px; }
  .contact-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail, .contact-detail:first-child, .contact-detail:nth-child(3) { min-height: 0; padding: 20px 22px; border: 1px solid #ded1c7; grid-column: auto; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-inner { min-height: 68px; align-items: center; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .92rem; }
  .header-inner nav { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .header-inner nav::-webkit-scrollbar { display: none; }
  .header-inner nav a { white-space: nowrap; font-size: .81rem; }
  .hero { padding: 24px 0 40px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero-photo { height: 225px; }
  .hero-actions .button { flex: 1 1 100%; }
  .menu-section, .identity-section, .gallery-section { padding: 56px 0; }
  .contact-section { padding: 52px 0 44px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .menu-price { text-align: left; }
  .menu-course, .menu-includes { padding: 22px; }
  .dish-list li { align-items: flex-start; flex-direction: column; gap: 7px; }
  .allergen-grid { grid-template-columns: 1fr; }
  .identity-photo { height: 360px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-card img { height: 210px; }
  .gallery-card figcaption { padding: 14px 15px 16px; }
  .contact-details { grid-template-columns: 1fr; gap: 12px; }
  .contact-detail, .contact-detail:first-child, .contact-detail:nth-child(3) { min-height: 0; padding: 20px; border: 1px solid #ded1c7; grid-column: auto; }
  .contact-actions--wide { grid-template-columns: 1fr; max-width: none; }
  .contact-actions--wide .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .back-to-top { min-height: 46px; padding-inline: 17px; }
}

/* Web 2.0.2.4: flecha flotante para volver arriba */
.back-to-top-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(54,20,20,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease, visibility 0s linear .18s;
}
.back-to-top-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.back-to-top-float:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(54,20,20,.3);
}
.back-to-top-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--wine), 0 11px 26px rgba(54,20,20,.3);
}
.back-to-top-float:active { transform: translateY(0); }

@media (max-width: 680px) {
  .back-to-top-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}

/* Web 2.0.2.9: tres colecciones en carrusel */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.collection-carousel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3d8cf;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 9px 24px rgba(53,39,35,.07);
}
.collection-header {
  min-height: 150px;
  padding: 20px 20px 17px;
}
.collection-kicker {
  margin: 0 0 7px;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.collection-header h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.2;
}
.collection-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.collection-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  background: #efe7df;
}
.collection-viewport::-webkit-scrollbar { display: none; }
.collection-viewport:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: -3px;
}
.collection-track {
  display: flex;
  width: 100%;
}
.collection-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #fffdfa;
}
.collection-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.collection-controls {
  margin-top: auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #eee3da;
}
.collection-arrow {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8c7bd;
  border-radius: 50%;
  background: #fff;
  color: var(--wine-dark);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.collection-arrow:hover:not(:disabled) {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  transform: translateY(-1px);
}
.collection-arrow:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}
.collection-arrow:disabled {
  opacity: .34;
  cursor: default;
}
.collection-counter {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

@media (max-width: 1000px) {
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-carousel:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); width: 100%; justify-self: center; }
}

@media (max-width: 680px) {
  .collection-grid { grid-template-columns: 1fr; gap: 18px; }
  .collection-carousel:last-child { grid-column: auto; max-width: none; width: auto; justify-self: stretch; }
  .collection-header { min-height: 0; padding: 18px 18px 15px; }
  .collection-header h3 { font-size: 1.15rem; }
    .collection-controls { padding: 10px 12px 12px; }
}


/* Web 2.0.2.10: catálogo por categoría + información contextual accesible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.collection-media {
  position: relative;
  background: #efe7df;
}
.collection-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.collection-info {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: rgba(43,34,33,.86);
  color: #fff;
  font: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
}
.collection-info:hover,
.collection-info[aria-expanded="true"] {
  background: var(--wine);
}
.collection-info:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--wine), 0 6px 16px rgba(0,0,0,.24);
}
.collection-info-panel {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 64px;
  max-width: calc(100% - 24px);
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 11px;
  background: rgba(43,34,33,.93);
  color: #fff;
  font-size: .84rem;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  backdrop-filter: blur(7px);
}
.collection-info-panel[hidden] { display: none !important; }
.collection-arrow--prev span,
.collection-arrow--next span { transform: translateY(-1px); }
.collection-arrow--prev { justify-self: start; }
.collection-arrow--next { justify-self: end; }
.collection-counter--single {
  margin: auto 0 0;
  padding: 13px 16px 15px;
  border-top: 1px solid #eee3da;
}
.collection-slide[aria-hidden="true"] .collection-info {
  pointer-events: none;
}
@media (max-width: 680px) {
  .collection-info {
    right: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
  }
  .collection-info-panel {
    right: 10px;
    bottom: 62px;
    max-width: calc(100% - 20px);
  }
}

/* Web 2.0.2.12: el local adopta el mismo carrusel accesible de la galería */
.identity-carousel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3d8cf;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}
.identity-carousel__viewport {
  background: #efe7df;
}
.identity-carousel .collection-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.identity-carousel__controls {
  margin-top: 0;
  background: #fffdfa;
}

@media (max-width: 900px) {
  .identity-carousel { width: 100%; }
}

/* Web 2.0.2.13: navegación integrada en la propia fotografía */
.collection-stage {
  position: relative;
  overflow: hidden;
}
.collection-controls--overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  display: block;
}
.collection-controls--overlay .collection-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(43,34,33,.74);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
}
.collection-controls--overlay .collection-arrow--prev { left: 12px; }
.collection-controls--overlay .collection-arrow--next { right: 12px; }
.collection-controls--overlay .collection-arrow:hover:not(:disabled) {
  background: var(--wine);
  border-color: rgba(255,255,255,.92);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}
.collection-controls--overlay .collection-arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--wine), 0 6px 18px rgba(0,0,0,.24);
}
.collection-controls--overlay .collection-arrow:disabled {
  opacity: .28;
  background: rgba(43,34,33,.62);
}
.collection-controls--overlay .collection-counter {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 76px);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(43,34,33,.72);
  color: #fff;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .025em;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.identity-carousel__controls {
  background: transparent;
}
@media (max-width: 680px) {
  .collection-controls--overlay .collection-arrow {
    width: 44px;
    height: 44px;
  }
  .collection-controls--overlay .collection-arrow--prev { left: 10px; }
  .collection-controls--overlay .collection-arrow--next { right: 10px; }
  .collection-controls--overlay .collection-counter {
    left: 10px;
    bottom: 10px;
  }
}

/* Web 2.0.2.17: el menú vuelve al lienzo general de la web */
.menu-section--app-preview {
  position: relative;
  background: var(--paper);
  border-block: 0;
  box-shadow: none;
}
.menu-section--app-preview::before {
  content: none;
}

/* La carta mantiene su fondo blanco y su tratamiento propio */
.app-menu-preview {
  width: 100%;
  overflow: hidden;
}
.app-menu-sheet {
  width: min(210mm, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd5cf;
  border-radius: 4px;
  padding: clamp(24px, 4vw, 9mm) clamp(20px, 5vw, 11mm) clamp(22px, 4vw, 8mm);
  box-shadow: 0 10px 28px rgba(43, 33, 30, .08);
  color: #252525;
  font-size: .95rem;
  line-height: 1.35;
}
.app-menu-sheet__head { margin: 0 0 18px; }
.app-menu-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 2px;
}
.app-menu-branding__brand {
  display: block;
  width: 104px;
  height: auto;
}
.app-menu-branding__details {
  text-align: right;
  color: #15265c;
}
.app-menu-branding__address {
  margin-bottom: 3px;
  color: #414141;
  font-size: .78rem;
}
.app-menu-branding__phones {
  margin-bottom: 3px;
  color: #15265c;
  font-size: .93rem;
  font-weight: 800;
}
.app-menu-branding__online {
  color: #5d5d5d;
  font-size: .72rem;
}
.app-menu-sheet__rule {
  height: 2px;
  margin: 5px 0 8px;
  background: #15265c;
}
.app-menu-sheet__date {
  margin: 0 0 24px;
  text-align: right;
  color: #b71c1c;
  font-size: .82rem;
  font-style: italic;
  font-weight: 800;
}
.app-menu-sheet__head h2 {
  margin: 0;
  text-align: center;
  color: #15265c;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.12;
}
.app-menu-sheet__subtitle {
  margin: 4px 0 0;
  text-align: center;
  color: #777;
  font-size: .8rem;
  letter-spacing: .03em;
}
.app-menu-course { margin: 0 0 14px; }
.app-menu-course h3 {
  margin: 0 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid #e7d8d8;
  color: #b71c1c;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.app-preview-dish-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-preview-dish-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 7px;
  padding: 2px 3px;
}
.app-preview-dish-bullet {
  color: #252525;
  font-size: 1rem;
}
.app-preview-dish-content {
  min-width: 0;
  font-size: .98rem;
  line-height: 1.4;
}
.app-menu-dish__text { font-size: .98rem; }
.app-preview-dish-content .allergen-icons {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.app-preview-dish-content .allergen-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.app-price-box {
  margin: 26px 0 28px;
  padding: 8px 10px 7px;
  border: 1px solid #d7dbe6;
  border-radius: 0;
  background: #f7f8fb;
}
.app-price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 7px 4px;
  border-bottom: 1px solid #e1e3e9;
}
.app-price-option:last-of-type { border-bottom: 0; }
.app-price-option strong {
  display: block;
  color: #b71c1c;
  font-size: .9rem;
  text-transform: uppercase;
}
.app-price-option small {
  display: block;
  color: #555;
  font-size: .78rem;
}
.app-price-option > span {
  min-width: 90px;
  text-align: right;
  color: #15265c;
  font-size: 1.55rem;
  font-weight: 800;
  white-space: nowrap;
}
.app-price-box__small {
  margin: 7px 2px 0;
  text-align: right;
  color: #666;
  font-size: .78rem;
}
.app-price-box__small strong { color: #b71c1c; }
.app-allergen-legend {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #15265c;
}
.app-allergen-legend h3 {
  margin: 0 0 8px;
  color: #15265c;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.app-allergen-legend ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-allergen-legend li {
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 2px 10px 2px 0;
  color: #555;
  font-size: .76rem;
  line-height: 1.18;
}
.app-allergen-legend img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.app-menu-sheet__footer {
  margin: 16px 0 0;
  text-align: center;
  color: #8a8a8a;
  font-size: .82rem;
  letter-spacing: .025em;
}

@media (max-width: 680px) {
  .menu-section--app-preview { padding-block: 38px; }
  .menu-section--app-preview .wrap { width: min(100% - 18px, var(--wrap)); }
  .app-menu-sheet {
    padding: 20px 15px 18px;
    border-radius: 3px;
  }
  .app-menu-branding {
    align-items: flex-start;
    gap: 14px;
  }
  .app-menu-branding__brand { width: 76px; }
  .app-menu-branding__details { max-width: 68%; }
  .app-menu-branding__address { font-size: .67rem; }
  .app-menu-branding__phones { font-size: .78rem; }
  .app-menu-branding__online {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: .62rem;
  }
  .app-menu-sheet__date {
    margin-bottom: 18px;
    font-size: .74rem;
  }
  .app-menu-sheet__head h2 { font-size: 1.8rem; }
  .app-menu-course h3 { font-size: .86rem; }
  .app-preview-dish-row {
    min-height: 46px;
    align-items: center;
  }
  .app-preview-dish-content,
  .app-menu-dish__text { font-size: .9rem; }
  .app-preview-dish-content .allergen-icons {
    margin-left: 4px;
  }
  .app-preview-dish-content .allergen-icons img {
    width: 17px;
    height: 17px;
  }
  .app-price-option > span {
    min-width: 68px;
    font-size: 1.3rem;
  }
  .app-allergen-legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .app-menu-branding__online { display: none; }
  .app-allergen-legend ul { grid-template-columns: 1fr; }
}

/* Web 2.0.2.16: estado sin menú integrado en el fondo de la sección */
.menu-section--app-preview .empty-menu {
  background: transparent;
  border-color: rgba(121, 88, 72, .12);
  box-shadow: none;
}


/* Web 2.0.2.18: acento de color en el estado sin menú */
.menu-section--app-preview .empty-menu::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--wine);
}
.menu-section--app-preview .empty-menu h3 {
  color: var(--wine-dark);
}
.menu-section--app-preview .empty-menu p {
  color: #554b48;
}

/* Web 2.0.2.20: navegación móvil plegable */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(127, 29, 36, .24);
  border-radius: 12px;
  background: rgba(255, 253, 249, .88);
  color: var(--wine);
  cursor: pointer;
}
.nav-toggle:hover { background: #fff8f3; border-color: rgba(127, 29, 36, .42); }
.nav-toggle:focus-visible { outline: 3px solid rgba(127, 29, 36, .28); outline-offset: 3px; }
.nav-toggle__lines {
  width: 22px;
  display: grid;
  gap: 3px;
}
.nav-toggle__lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 680px) {
  .site-header { overflow: visible; }
  .header-inner {
    min-height: 68px;
    position: relative;
    gap: 14px;
  }
  .brand { min-width: 0; }
  .brand span { font-size: 1rem; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .header-inner .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    overflow: visible;
    border: 1px solid rgba(222, 212, 204, .94);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(255, 253, 249, .98);
    box-shadow: 0 16px 30px rgba(47, 38, 36, .12);
    backdrop-filter: blur(14px);
  }
  .header-inner .main-nav.is-open { display: flex; }
  .header-inner .main-nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    white-space: normal;
    font-size: .96rem;
  }
  .header-inner .main-nav a::after { display: none; }
  .header-inner .main-nav a:hover,
  .header-inner .main-nav a:focus-visible {
    background: rgba(127, 29, 36, .07);
    color: var(--wine-dark);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(2),
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(3) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(4) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__lines span { transition: none; }
}

/* Web 2.0.2.22: galerías dinámicas por carpeta */
.identity-grid--without-gallery {
  grid-template-columns: 1fr;
}
.identity-grid--without-gallery .identity-copy {
  max-width: 760px;
}
.collection-grid--count-1 {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.collection-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 680px) {
  .collection-grid--count-1,
  .collection-grid--count-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .collection-grid--count-1 .collection-carousel:last-child,
  .collection-grid--count-2 .collection-carousel:last-child {
    grid-column: auto;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }
}
