/* ==========================================================================
   EL PATO TACOS Y MARISCOS — REDISEÑO PREMIUM (LA PAZ, B.C.S.)
   Estilo: High-End Coastal Editorial / Agencia Top / Awwwards
   ========================================================================== */


/* Google Fonts se carga con <link> en el <head> de index.html (antes @import, que retrasaba el render) */

/* --- Tokens & Design Variables --- */
:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif; /* sin uso visible; Cormorant ya no se descarga */
  --font-display: 'Syne', -apple-system, sans-serif;
  --font-condensed: 'Bebas Neue', Impact, sans-serif;

  /* Theme: Light (Editorial Alabaster) */
  --bg-main: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f3efe8;
  --bg-inset: #ede8df;
  
  --border-subtle: rgba(15, 27, 42, 0.08);
  --border-medium: rgba(15, 27, 42, 0.14);
  --border-strong: rgba(15, 27, 42, 0.24);

  --text-primary: #0d1721;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  /* Brand Accents */
  --brand-red: #c92a2a;
  --brand-red-hover: #b02222;
  --brand-red-light: rgba(201, 42, 42, 0.08);
  --brand-red-glow: rgba(201, 42, 42, 0.25);
  
  --brand-yellow: #d97706;
  /* El amarillo de marca no llega a 4.5:1 sobre fondo claro: tonos para texto y para relleno con texto blanco */
  --brand-yellow-text: #92400e;
  --brand-yellow-fill: #b45309;
  /* Rellenos con texto blanco encima (>= 4.5:1); --brand-red queda para texto */
  --brand-red-fill: #c92a2a;
  --brand-red-fill-hover: #b02222;
  --brand-green-fill: #0f766e;
  --brand-yellow-light: rgba(217, 119, 6, 0.1);
  --brand-yellow-glow: rgba(217, 119, 6, 0.25);

  --brand-green: #0f766e;
  --brand-green-light: rgba(15, 118, 110, 0.09);

  --brand-ink: #0a111a;
  --brand-cream: #faf7f2;

  --nav-bg: rgba(251, 249, 245, 0.85);
  --nav-border: rgba(15, 27, 42, 0.06);

  --shadow-sm: 0 2px 10px rgba(10, 20, 30, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 20, 30, 0.06), 0 2px 8px rgba(10, 20, 30, 0.03);
  --shadow-lg: 0 20px 50px rgba(10, 20, 30, 0.1), 0 4px 16px rgba(10, 20, 30, 0.04);
  --shadow-float: 0 30px 80px -15px rgba(10, 20, 30, 0.16);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #080d14;
  --bg-surface: #0f1622;
  --bg-surface-elevated: #16202e;
  --bg-muted: #131c28;
  --bg-inset: #0b121c;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8b98ab;
  --text-inverse: #0d1721;

  /* Rojo más claro para texto sobre fondo oscuro (6.5:1); los rellenos usan --brand-red-fill */
  --brand-red-fill: #c92a2a;
  --brand-red-fill-hover: #d63333;
  --brand-green-fill: #0f766e;
  --brand-yellow-text: #f59e0b;
  --brand-yellow-fill: #f59e0b;
  --brand-red: #ff6b6b;
  --brand-red-hover: #ff8787;
  --brand-red-light: rgba(224, 49, 49, 0.15);
  --brand-red-glow: rgba(224, 49, 49, 0.4);

  --brand-yellow: #f59e0b;
  --brand-yellow-light: rgba(245, 158, 11, 0.15);
  --brand-yellow-glow: rgba(245, 158, 11, 0.3);

  --brand-green: #14b8a6;
  --brand-green-light: rgba(20, 184, 166, 0.15);

  --brand-ink: #04070a;
  --brand-cream: #fbf9f5;

  --nav-bg: rgba(8, 13, 20, 0.85);
  --nav-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 30px 80px -15px rgba(0, 0, 0, 0.8);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe.map-iframe {
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Grain Texture Overlay for High-End Depth --- */
.ambient-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 2.5rem);
  padding-right: clamp(1.25rem, 5vw, 2.5rem);
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1440px;
}

/* --- Typography Helpers --- */
.font-display {
  font-family: var(--font-display);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-condensed {
  font-family: var(--font-condensed);
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}

.eyebrow-yellow {
  color: var(--brand-yellow-text);
}

.eyebrow-green {
  color: var(--brand-green);
}

.eyebrow-badge {
  padding: 0.35rem 0.85rem;
  background: var(--brand-red-light);
  border: 1px solid rgba(201, 42, 42, 0.15);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1rem;
}

/* --- Sticky Luxury Navigation Header with Integrated Status Strip --- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0 0 0.5rem 0;
}

.nav-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  background: rgba(15, 118, 110, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.45rem;
  width: 100%;
}

[data-theme="dark"] .nav-status-strip {
  background: rgba(20, 184, 166, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  line-height: 1.35;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.status-text {
  text-align: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

.status-dot.closed {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.navbar-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0 0 0.4rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.brand-logo-wrap:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-condensed);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-item-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: var(--transition-snappy);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-red-fill);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-link:hover {
  color: var(--text-primary);
}

.nav-item-link:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-snappy);
}

.theme-toggle-btn:hover {
  border-color: var(--border-strong);
  transform: rotate(15deg);
}

.icon-sun, .icon-moon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Main CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-red-fill);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--brand-red-glow);
}

.btn-primary:hover {
  background: var(--brand-red-fill-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--brand-red-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.btn-gold {
  background: var(--brand-yellow-fill);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--brand-yellow-glow);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.nav-cta-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta-desktop {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-primary);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-links a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.drawer-links a:hover {
  color: var(--brand-red);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, var(--bg-muted) 0%, var(--bg-main) 60%);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    /* minmax(0, …): el ancho de las columnas no depende del texto, así el video no cambia de tamaño
       cuando llegan las fuentes (causaba el CLS del hero) */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-red {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(201, 42, 42, 0.2);
}

.badge-green {
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.badge-yellow {
  background: var(--brand-yellow-light);
  color: var(--brand-yellow-text);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 620px;
  text-wrap: balance;
}

.hero-title-accent {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-red);
  font-size: 0.94em;
  letter-spacing: -0.01em;
  margin-top: 0.35rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-subtitle strong {
  color: var(--brand-yellow-text);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Hero Stats Counter */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 520px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-condensed);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--brand-yellow-text);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Hero Visual & Media Showcase */
.hero-media-wrap {
  position: relative;
  z-index: 2;
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  aspect-ratio: 4 / 5;
}

.hero-video-el, .hero-poster-img, .hero-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-el {
  position: relative;
  z-index: 2;
}

.hero-card-media:not(.is-ready) .hero-video-el,
.hero-card-media.is-fallback .hero-video-el {
  opacity: 0;
}

.hero-card-media.is-ready:not(.is-fallback) .hero-poster-fallback {
  opacity: 0;
  pointer-events: none;
}

.hero-card-media:hover .hero-video-el,
.hero-card-media:hover .hero-poster-img {
  transform: scale(1.03);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 26, 0.1) 0%, rgba(10, 17, 26, 0.7) 100%);
  pointer-events: none;
}

.hero-media-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(13, 23, 33, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.hero-media-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.media-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(13, 23, 33, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-snappy);
}

.media-btn:hover {
  background: var(--brand-red-fill);
  transform: scale(1.08);
}

.hero-floating-dish {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 4;
  animation: floatDish 4s ease-in-out infinite alternate;
}

@keyframes floatDish {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-dish-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.floating-dish-info .floating-dish-title,
.floating-dish-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.floating-dish-info p {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 700;
}

/* Nombre del platillo flotante del hero (antes h4): color de texto, no rojo */
.floating-dish-info .floating-dish-title {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* --- Ticker Marquee --- */
.ticker-wrap {
  background: var(--brand-ink);
  color: #f8fafc;
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: tickerSlide 38s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-dot {
  color: var(--brand-yellow-text);
  font-size: 1.2rem;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section Styling --- */
.section-padding {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* --- Destacados Cards --- */
.destacados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .destacados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .destacados-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dish-card-luxury {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.dish-card-luxury:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.dish-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}

.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card-luxury:hover .dish-card-img {
  transform: scale(1.08);
}

.dish-tag-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13, 23, 33, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dish-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dish-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.dish-price {
  font-family: var(--font-condensed);
  font-size: 1.6rem;
  color: var(--brand-red);
  letter-spacing: 0.02em;
}

.dish-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.dish-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   EL PATO COMO ANFITRIÓN INTERACTIVO DEL MENÚ (REDISEÑO 2026)
   ========================================================================== */
.menu-section {
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.menu-search-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .menu-search-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.menu-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: var(--transition-snappy);
  min-height: 44px;
}

.menu-search-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-snappy);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--brand-ink);
  color: #ffffff;
  border-color: var(--brand-ink);
}

/* Category Tabs Secundarias */
.category-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.category-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.category-tabs-track {
  display: flex;
  gap: 0.6rem;
  min-width: max-content;
}

.cat-tab-btn {
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition-snappy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.cat-tab-btn.active {
  background: var(--brand-red-fill);
  color: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 16px var(--brand-red-glow);
}

.cat-badge-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.cat-tab-btn.active .cat-badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.placeholder-icon {
  color: var(--brand-yellow-text);
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.placeholder-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-order-whatsapp-tiny {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-green);
  transition: var(--transition-snappy);
  min-height: 38px;
  padding: 0.2rem 0.15rem;
}

.btn-order-whatsapp-tiny:hover {
  color: var(--brand-red);
  transform: translateX(2px);
}

/* --- Gallery Asymmetric Mosaic --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1.25rem;
  }

  .gallery-tall {
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: span 2;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

@media (min-width: 1024px) {
  .gallery-item {
    aspect-ratio: auto;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 13, 20, 0.85) 0%, rgba(8, 13, 20, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

/* --- History Section --- */
.history-section {
  background: var(--brand-ink);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.history-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .history-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.history-image-wrap {
  position: relative;
}

.history-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  object-position: center;
}


.history-content .section-title {
  color: #ffffff;
}

.history-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.5rem;
}

.history-text p + p {
  margin-top: 1rem;
}

.history-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* --- Concierge & Reservas --- */
.concierge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 5vw, 3rem);
}

.reservas-form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .reservas-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-col-full {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: var(--transition-snappy);
  min-height: 44px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-feedback {
  font-size: 0.78rem;
  color: var(--brand-red);
  margin-top: 0.2rem;
  display: none;
}

.catering-highlight-box {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-muted) 100%);
  border: 1px dashed var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .catering-highlight-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Ubicación & Horarios --- */
.location-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.location-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.schedule-list {
  list-style: none;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.schedule-day {
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-time {
  color: var(--text-secondary);
}

.map-container-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  min-height: 420px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-snappy);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon-cross {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-red);
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-cross {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Call to Action Banner --- */
.cta-banner-section {
  position: relative;
  background: linear-gradient(135deg, #16222f 0%, #0d1721 100%);
  color: #ffffff;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-banner-inner .section-title {
  color: #ffffff;
}

.cta-banner-inner .section-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}

/* --- Footer --- */
.footer-luxury {
  background: var(--brand-ink);
  color: #f8fafc;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 1.25rem;
}

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-yellow-text);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Mobile Bottom Floating Bar --- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.4rem 0.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.mobile-bottom-bar.cta-hidden {
  transform: translateY(115%);
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.2rem;
  min-height: 44px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-snappy);
}

.mobile-bottom-link.highlight {
  background: var(--brand-red-fill);
  color: #ffffff;
}

.mobile-bottom-link:not(.highlight):hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

/* --- Floating WhatsApp --- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 46;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.whatsapp-fab.cta-hidden {
  transform: translateY(35px) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

/* --- Modal & Lightbox --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 5;
  transition: var(--transition-snappy);
}

.modal-close-btn:hover {
  background: var(--brand-red-fill);
  color: #ffffff;
}

/* Lightbox specific */
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}

/* --- Reveal & Scroll Animations --- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Google Reviews Section & Smart Review Funnel --- */
.google-reviews-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
}

.google-reviews-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .google-reviews-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.google-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-medium);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.google-score-lockup {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.google-score-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.google-stars-display {
  display: inline-flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1.2rem;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .google-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.google-review-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.google-review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reviewer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-comment {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Smart Review Funnel Modal */
.review-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-float);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.star-rating-selector {
  display: inline-flex;
  gap: 0.6rem;
  margin: 1.75rem 0 0.5rem 0;
  cursor: pointer;
}

.star-btn {
  font-size: 2.5rem;
  color: var(--border-strong);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
}

.star-btn:hover, .star-btn.hovered, .star-btn.selected {
  color: #f59e0b;
  transform: scale(1.18);
}

.star-rating-hint {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-height: 24px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   TABLET & MOBILE (<= 767px)
   ========================================================================== */

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
  }

  /* --- Top Status Strip compact on tablet/mobile --- */
  .nav-status-strip {
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.35rem;
  }

  .status-indicator {
    font-size: 0.72rem;
    gap: 0.4rem;
    line-height: 1.3;
  }

  .status-indicator .status-text {
    font-size: 0.72rem;
  }

  /* --- Navbar Mobile Tightened --- */
  .navbar-header {
    top: 0;
    padding: 0 0 0.4rem 0;
  }

  .navbar-header.scrolled {
    top: 0;
    padding: 0 0 0.35rem 0;
  }

  .nav-container {
    gap: 0.35rem;
  }

  .brand-logo-wrap {
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 56px;
    max-height: 56px;
  }

  .navbar-header.scrolled .brand-logo-img {
    height: 50px;
    max-height: 50px;
  }

  .navbar-header .brand-title-wrap {
    display: none;
  }

  .nav-controls {
    gap: 0.5rem;
  }

  .theme-toggle-btn {
    width: 44px;
    height: 44px;
  }

  .icon-sun, .icon-moon {
    width: 18px;
    height: 18px;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    gap: 5px;
  }

  /* --- Hero Section Mobile Stacked & Tight --- */
  .hero-section {
    min-height: auto;
    padding-top: 125px;
    padding-bottom: 3rem;
  }

  .hero-badges-row {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .badge-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .btn-lg {
    padding: 0.9rem 1.6rem;
    font-size: 0.92rem;
    width: 100%;
  }

  .hero-cta-group .btn:not(.btn-lg) {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  .stat-number {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
  }

  /* --- Hero Video Aspect Ratio Mobile Friendly --- */
  .hero-card-media {
    aspect-ratio: 1 / 1;
  }

  .hero-media-badge {
    top: 0.85rem;
    left: 0.85rem;
    font-size: 0.62rem;
    padding: 0.4rem 0.7rem;
    letter-spacing: 0.1em;
    gap: 0.35rem;
  }

  .hero-media-badge .status-dot {
    width: 5px;
    height: 5px;
  }

  .hero-media-controls {
    bottom: 0.85rem;
    right: 0.85rem;
    gap: 0.35rem;
  }

  .media-btn {
    width: 44px;
    height: 44px;
  }

  .media-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Hero Floating Dish Card - Mobile Safe */
  .hero-floating-dish {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    animation: none;
  }

  .floating-dish-thumb {
    width: 46px;
    height: 46px;
  }

  .floating-dish-info .floating-dish-title,
.floating-dish-info h4 {
    font-size: 0.8rem;
  }

  .floating-dish-info p {
    font-size: 0.7rem;
  }

  /* --- Google Reviews Mobile --- */
  .google-reviews-section {
    padding: 2.5rem 0;
  }

  .google-reviews-header {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .google-badge-pill {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    gap: 0.4rem;
  }

  .google-badge-pill svg {
    width: 14px;
    height: 14px;
  }

  .section-title {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .google-score-lockup {
    gap: 0.5rem;
  }

  .google-score-num {
    font-size: 2.1rem;
  }

  .google-stars-display {
    font-size: 1rem;
    gap: 2px;
  }

  .google-reviews-header > div:last-child {
    width: 100%;
  }

  .google-reviews-header .btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
  }

  .google-reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .google-review-card {
    padding: 1.1rem;
  }

  .reviewer-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }

  .reviewer-name {
    font-size: 0.88rem;
  }

  .reviewer-meta {
    font-size: 0.68rem;
  }

  .review-comment {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .review-card-footer {
    font-size: 0.68rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* --- Ticker Marquee Mobile --- */
  .ticker-wrap {
    padding: 0.75rem 0;
  }

  .ticker-item {
    font-size: 1.15rem;
    gap: 1.75rem;
  }

  .ticker-track {
    gap: 1.75rem;
  }

  .ticker-dot {
    font-size: 0.9rem;
  }

  /* --- Destacados Cards Mobile --- */
  .section-padding {
    padding-top: clamp(2.5rem, 8vw, 4rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .section-header-row {
    margin-bottom: 1.75rem;
  }

  .section-header-row > div:last-child {
    width: 100%;
  }

  .section-header-row .btn {
    width: 100%;
    justify-content: center;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
  }

  .eyebrow-badge {
    padding: 0.3rem 0.75rem;
  }

  .section-desc {
    font-size: 0.92rem;
    margin-top: 0.6rem;
  }

  .destacados-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dish-card-body {
    padding: 1.1rem;
  }

  .dish-name {
    font-size: 1.15rem;
  }

  .dish-price {
    font-size: 1.35rem;
  }

  .dish-desc {
    font-size: 0.84rem;
    margin-bottom: 1rem;
  }

  .dish-footer-action {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .btn-order-whatsapp-tiny {
    font-size: 0.75rem;
  }

  /* --- Menu Explorer Mobile --- */
  .menu-search-toolbar {
    padding: 1rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
  }

  .search-input-wrap {
    max-width: 100%;
  }

  .menu-search-input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    font-size: 16px;
  }

  .search-icon {
    width: 16px;
    height: 16px;
    left: 0.85rem;
  }

  .filter-chips-row {
    gap: 0.4rem;
  }

  .filter-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .category-tabs-scroll {
    margin-bottom: 1.25rem;
    padding-bottom: 0.35rem;
  }

  .category-tabs-track {
    gap: 0.45rem;
  }

  .cat-tab-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .cat-badge-count {
    font-size: 0.65rem;
  }

  /* --- Gallery Mobile --- */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0.6rem;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .gallery-tall {
    grid-row: span 1;
    aspect-ratio: 1 / 1.2;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(8, 13, 20, 0.7) 0%, rgba(8, 13, 20, 0) 55%);
    padding: 0.75rem;
  }

  .gallery-caption {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  /* --- History Section Mobile --- */
  .history-grid {
    gap: 1.75rem;
  }


  .history-text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: 1rem;
  }

  .history-socials-row {
    gap: 0.6rem;
    margin-top: 1.75rem;
  }

  .history-socials-row .btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .history-socials-row svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* --- Reservas Form Mobile --- */
  .concierge-card {
    padding: 1.5rem 1.1rem;
    border-radius: var(--radius-md);
  }

  .reservas-form-grid {
    gap: 0.9rem;
    margin-top: 1.25rem;
  }

  .form-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .form-input, .form-select, .form-textarea {
    padding: 0.8rem 1rem;
    font-size: 16px;
    min-height: 44px;
  }

  .form-textarea {
    min-height: 80px;
  }

  .catering-highlight-box {
    padding: 1.1rem;
    gap: 0.75rem;
  }

  .catering-highlight-box h3,
  .catering-highlight-box h4 {
    font-size: 1rem;
  }

  .catering-highlight-box p {
    font-size: 0.82rem;
  }

  .catering-highlight-box .btn {
    align-self: flex-start;
    padding: 0.6rem 1rem;
  }

  /* --- Ubicación & Map Mobile --- */
  .location-grid {
    gap: 1.25rem;
  }

  .location-card {
    padding: 1.5rem 1.1rem;
    border-radius: var(--radius-md);
    gap: 1.5rem;
  }

  .location-card h3 {
    font-size: 1.15rem;
  }

  .schedule-item {
    font-size: 0.85rem;
    padding: 0.7rem 0;
  }

  .location-card > div:last-child {
    flex-direction: column;
  }

  .location-card > div:last-child .btn {
    width: 100%;
    justify-content: center;
  }

  .map-container-wrap {
    min-height: 280px;
    border-radius: var(--radius-md);
  }

  .map-iframe {
    min-height: 280px;
  }

  /* --- FAQ Mobile --- */
  .faq-accordion {
    gap: 0.7rem;
  }

  .faq-trigger {
    padding: 1rem 1.1rem;
    font-size: 0.92rem;
    gap: 0.6rem;
  }

  .faq-icon-cross {
    font-size: 1.3rem;
  }

  .faq-item.active .faq-content {
    padding: 0 1.1rem 1.1rem 1.1rem;
  }

  .faq-content p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* --- CTA Banner Mobile --- */
  .cta-banner-inner {
    gap: 1rem;
  }

  .cta-banner-inner .btn-lg {
    width: 100%;
  }

  .cta-banner-inner > div:last-child {
    width: 100%;
  }

  .cta-banner-inner > div:last-child .btn {
    width: 100%;
  }

  /* --- Footer Mobile --- */
  .footer-luxury {
    padding-top: 3.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .footer-col h3,
.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-links {
    gap: 0.6rem;
  }

  .footer-links a,
  .footer-links li {
    font-size: 0.85rem;
  }

  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* --- Mobile Drawer Mobile Tweaks --- */
  .mobile-drawer-content {
    width: 92%;
    padding: 1.5rem 1.1rem;
  }

  .drawer-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .drawer-brand .brand-logo-img {
    height: 60px;
    max-height: 60px;
  }

  .drawer-links {
    gap: 1rem;
  }

  .drawer-links a {
    font-size: 1.15rem;
  }

  /* --- Bottom Nav Bar Enhanced for Thumb Reach --- */
  .mobile-bottom-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg-surface);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
  }

  .mobile-bottom-link {
    gap: 0.15rem;
    padding: 0.45rem 0.15rem;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    min-height: 56px;
  }

  .mobile-bottom-link svg {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-link.highlight {
    border-radius: 14px;
    margin: 2px;
    min-height: calc(56px - 4px);
  }

  /* --- Modals Mobile Optimized --- */
  .modal-backdrop {
    padding: 0.85rem;
  }

  .modal-container {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 0.7rem;
    right: 0.7rem;
  }

  .lightbox-img-wrap {
    max-width: 100%;
  }

  .review-modal-box {
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .star-btn {
    font-size: 2.1rem;
    padding: 0 1px;
  }

  .star-rating-selector {
    gap: 0.45rem;
    margin: 1.5rem 0 0.35rem;
  }

  .star-rating-hint {
    font-size: 0.82rem;
    min-height: 20px;
    margin-bottom: 1.25rem;
  }

  .review-modal-box h3 {
    font-size: 1.25rem !important;
  }

  .review-modal-box .btn-lg {
    padding: 0.85rem 1.3rem;
    font-size: 0.88rem;
  }

  .btn-primary, .btn-secondary, .btn-ghost, .btn-gold {
    min-height: 44px;
  }

  a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .reservas-form-grid {
    grid-template-columns: 1fr;
  }

  .form-col-full {
    grid-column: span 1;
  }

  .hero-grid,
  .history-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-fab {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }
}

/* Phones under 480px */
@media (max-width: 479px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 110px;
    padding-bottom: 2.25rem;
  }

  .hero-title {
    font-size: clamp(1.55rem, 8.2vw, 2.05rem);
    line-height: 1.18;
  }

  .section-title {
    font-size: clamp(1.45rem, 7.2vw, 1.95rem);
  }

  .hero-stats {
    gap: 0.5rem;
  }

  .gallery-grid {
    gap: 0.5rem;
  }

  .gallery-caption {
    font-size: 0.62rem;
  }

  .faq-trigger {
    font-size: 0.88rem;
    padding: 0.95rem 1rem;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/* Small phones under 380px (< iPhone SE) */
@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .hero-cta-group .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 0.85rem;
  }

  .dish-card-body {
    padding: 1rem;
  }

  .mobile-bottom-link {
    font-size: 0.6rem;
  }
}

/* Safe area landscape for notch iPhones */
@supports (padding: max(0px)) {
  @media (max-width: 1024px) and (orientation: landscape) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
  }
}

/* ==========================================================================
   MEJORAS DE DISEÑO Y ACCESIBILIDAD (rama mejoras, 2026-10-31)
   ========================================================================== */

/* --- Navbar: enlaces en una línea, sin encimarse con el logotipo --- */
.brand-subtitle,
.nav-item-link {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-container {
    gap: 2rem;
  }

  .nav-links {
    gap: clamp(1rem, 1.5vw, 2rem);
  }

  /* El botón "Ordenar en Línea" solo cabe junto a los enlaces desde 1280px */
  .nav-cta-desktop {
    display: none;
  }
}

@media (min-width: 1280px) {
  .nav-cta-desktop {
    display: inline-flex;
  }
}

.nav-item-link {
  min-width: 44px;
  justify-content: center;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-item-link {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }
}

/* "Tradición" sigue en el footer; con el selector ES | EN solo cabe holgada desde 1600px */
@media (min-width: 1024px) and (max-width: 1599px) {
  .nav-links > li:has(a[href="#historia"]) {
    display: none;
  }
}

/* --- Foco visible con teclado --- */
:focus-visible {
  outline: 3px solid var(--brand-yellow-fill);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible,
.filter-chip:focus-visible,
.theme-toggle-btn:focus-visible,
.media-btn:focus-visible {
  border-radius: var(--radius-full);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.menu-search-input:focus-visible {
  outline-offset: 1px;
}

/* --- Contraste --- */
[data-theme="dark"] .btn-gold {
  color: var(--brand-ink);
}

.history-section .eyebrow-yellow {
  color: #f59e0b;
}

.dish-tag-badge[style*="--brand-red"] {
  background: var(--brand-red-fill) !important;
}

.dish-tag-badge[style*="--brand-green"] {
  background: var(--brand-green-fill) !important;
}

/* --- Áreas táctiles de 44px --- */
.btn-order-whatsapp-tiny {
  min-height: 44px;
}

.modal-close-btn {
  min-width: 44px;
  min-height: 44px;
  /* sin "all": animar la visibility heredada impedía darle foco al abrir el diálogo */
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --- Diálogos cerrados: fuera del orden de tabulación y del lector de pantalla --- */
.mobile-drawer,
.modal-backdrop {
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-drawer.open,
.modal-backdrop.active {
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

/* --- Sin JavaScript: contenido visible y contadores con su valor final --- */
html:not(.js) .reveal-fade-up {
  opacity: 1;
  transform: none;
}

html:not(.js) .stat-number {
  font-size: 0;
}

html:not(.js) .stat-number::after {
  content: attr(data-prefix) attr(data-target) attr(data-suffix);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}

/* Ticker y footer son oscuros en ambos temas: amarillo brillante */
.ticker-dot,
.footer-luxury h3,
.footer-luxury h4 {
  color: #f59e0b;
}

.google-stars-display {
  color: var(--brand-yellow-text);
}

/* ==========================================================================
   CARTA CON EL PATO COMO ANFITRIÓN (paleta "Malecón al atardecer")
   Escenario de rótulo: letra de barda pintada a mano y el Pato frente al sol del Malecón
   ========================================================================== */
.mp {
  --mp-amber: #f5a524;
  --mp-teal: #2dd4bf;
  --mp-card: var(--bg-surface);
  --mp-night: #0b1820;
  --mp-cream: #fff4e0;
  --mp-sticky-top: 96px;
  overflow: clip; /* sin overflow:hidden para que la barra de categorías pueda quedarse fija */
  padding-top: 0;
  scroll-margin-top: 70px;
}

[data-theme="light"] .mp {
  --mp-amber: #92400e;
  --mp-teal: #0f766e;
}

.mp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Escenario (siempre oscuro, como un letrero en la pared) --- */
.mp-stage {
  position: relative;
  background: var(--mp-night);
  color: var(--mp-cream);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
  margin-bottom: 1.5rem;
  isolation: isolate;
}

/* Orilla inferior con ola pintada */
.mp-stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  background: var(--bg-muted);
  -webkit-mask: radial-gradient(14px 12px at 50% 0, transparent 98%, #000) 0 0 / 40px 22px repeat-x;
  mask: radial-gradient(14px 12px at 50% 0, transparent 98%, #000) 0 0 / 40px 22px repeat-x;
}

.mp-stage-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mp-stage-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

/* Rótulo: Bebas Neue gigante con sombra dura desplazada */
.mp-rotulo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(4.6rem, 17vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  transform-origin: 0 100%;
  margin: 0 0 1.25rem;
}

.mp-rotulo-l1 {
  color: var(--mp-amber);
  -webkit-text-stroke: 2px var(--mp-night);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 #c92a2a, 9px 9px 0 rgba(0, 0, 0, 0.45);
}

.mp-rotulo-l2 {
  color: var(--mp-cream);
  -webkit-text-stroke: 2px var(--mp-night);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 #0f766e, 9px 9px 0 rgba(0, 0, 0, 0.45);
  margin-left: 0.35em;
}

[data-theme="light"] .mp-rotulo-l1 {
  color: #f5a524;
}

.mp-stage-lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 244, 224, 0.86);
}

.mp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.mp-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mp-step-n {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #f5a524;
  color: var(--mp-night);
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  box-shadow: 2px 2px 0 #c92a2a;
}

.mp-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mp-btn-surprise,
.mp-btn-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-btn-surprise {
  background: #f5a524;
  color: var(--mp-night);
  box-shadow: 4px 4px 0 #c92a2a;
}

.mp-btn-surprise:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #c92a2a;
}

.mp-btn-surprise:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #c92a2a;
}

.mp-btn-direct {
  color: #5eead4;
  border: 2px solid #2dd4bf;
}

.mp-btn-direct:hover {
  background: rgba(45, 212, 191, 0.12);
}

/* Móvil: rótulo, enseguida el Pato, luego texto y botones */
@media (max-width: 899px) {
  .mp-stage-inner {
    gap: 0;
  }

  .mp-stage-copy {
    display: contents;
  }

  .mp-rotulo { order: 1; }
  .mp-host { order: 2; }
  .mp-stage-lede { order: 3; margin-top: 0.5rem; }
  .mp-steps { order: 4; }
  .mp-stage-actions { order: 5; }
}

/* --- El Pato frente al sol del Malecón --- */
.mp-host {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mascot";
  margin: 0 -0.5rem 0.5rem;
}

@media (max-width: 899px) {
  .mp-host {
    grid-template-areas: "bubble" "mascot";
    justify-items: center;
  }

  .mp-host .mp-bubble {
    max-width: min(100%, 420px);
    margin: 0 0.5rem 0.25rem;
  }

  .mp-host .mp-mascot {
    width: min(92%, 440px);
  }
}

@media (min-width: 900px) {
  .mp-host {
    grid-template-columns: 1fr;
    grid-template-areas: "bubble" "mascot";
    justify-items: center;
    margin: 0;
  }
}

/* Sol al atardecer con franjas de mar */
.mp-sun {
  position: absolute;
  z-index: -1;
  right: 50%;
  bottom: 8%;
  width: min(72vw, 340px);
  transform: translateX(50%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(180deg, transparent 0 58%, var(--mp-night) 58% 61%, transparent 61% 66%, var(--mp-night) 66% 70%, transparent 70% 76%, var(--mp-night) 76% 81%, transparent 81% 87%, var(--mp-night) 87% 100%),
    linear-gradient(180deg, #f5a524 0%, #e8590c 55%, #c92a2a 100%);
  opacity: 0.9;
}

@media (min-width: 900px) {
  .mp-sun {
    right: 50%;
    bottom: 4%;
    width: 380px;
    transform: translateX(50%);
  }
}

.mp-bubble {
  grid-area: bubble;
  position: relative;
  align-self: center;
  max-width: 340px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: var(--mp-cream);
  color: var(--mp-night);
  box-shadow: 4px 4px 0 #0f766e;
}

.mp-bubble::after {
  content: '';
  position: absolute;
  left: 44%;
  bottom: -14px;
  width: 18px;
  height: 16px;
  background: var(--mp-cream);
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}

@media (min-width: 900px) {
  .mp-bubble {
    justify-self: center;
    margin-bottom: 0.5rem;
  }

  .mp-bubble::after {
    right: auto;
    left: 58%;
    top: auto;
    bottom: -14px;
    clip-path: polygon(0 0, 100% 0, 30% 100%);
  }
}

.mp-bubble.is-pop {
  animation: mpPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mpPop {
  0% { opacity: 0.4; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.mp-bubble-badge {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f766e;
}

.mp-bubble-text {
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
  min-height: 2.9em;
}

.mp-mascot {
  grid-area: mascot;
  position: relative;
  animation: mpFloat 4.5s ease-in-out infinite;
}

.mp-mascot-img {
  width: 100%;
  height: auto;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
}

@media (min-width: 900px) {
  .mp-mascot {
    width: min(100%, 460px);
  }
}

/* Momento de entrada: el rótulo se "estampa" y el Pato asoma, una sola vez */
.js .mp-stage:not(.is-shown) .mp-rotulo span,
.js .mp-stage:not(.is-shown) .mp-mascot-img {
  opacity: 0;
}

.mp-stage.is-shown .mp-rotulo-l1 { animation: mpStamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.mp-stage.is-shown .mp-rotulo-l2 { animation: mpStamp 0.5s 0.12s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.mp-stage.is-shown .mp-mascot-img { animation: mpRise 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes mpStamp {
  from { opacity: 0; transform: scale(1.35) rotate(3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes mpRise {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mp-mascot.is-tilt .mp-mascot-img { animation: mpTilt 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.mp-mascot.is-bounce .mp-mascot-img { animation: mpBounce 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.mp-mascot.is-thinking .mp-mascot-img { animation: mpThink 1.2s ease-in-out; }
.mp-mascot.is-shuffling .mp-mascot-img { animation: mpShuffle 0.25s ease-in-out infinite; }

@keyframes mpTilt {
  0%, 100% { transform: rotate(0); }
  40% { transform: rotate(-6deg); }
}

@keyframes mpBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-16px) scale(1.04); }
  60% { transform: translateY(0) scale(0.98); }
}

@keyframes mpThink {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(5deg) translateX(3px); }
}

@keyframes mpShuffle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.mp-glint {
  position: absolute;
  left: 40%;
  top: 15%;
  width: 16px;
  height: 16px;
  background: #ffffff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: mpGlint 5s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes mpGlint {
  0%, 82%, 100% { opacity: 0; transform: scale(0.3) rotate(0); }
  88% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* --- "Lo que más sale" --- */
.mp-top {
  margin-top: 2rem;
}

.mp-top-title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
  color: var(--mp-cream);
  margin-bottom: 0.75rem;
}

.mp-top-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  margin: 0 -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #2dd4bf transparent;
}

@media (min-width: 1200px) {
  .mp-top-track {
    grid-auto-columns: calc((100% - 3 * 0.75rem) / 4);
  }
}

.mp-top-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "img body" "actions actions";
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 244, 224, 0.06);
  border: 1px solid rgba(255, 244, 224, 0.14);
}

.mp-top-img {
  grid-area: img;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.mp-top-icon {
  display: grid;
  place-items: center;
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
}

.mp-top-icon svg {
  width: 30px;
  height: 30px;
}

.mp-top-body {
  grid-area: body;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.mp-top-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5eead4;
}

.mp-top-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.mp-top-name a {
  color: var(--mp-cream);
}

.mp-top-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-top-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: #f5a524;
  font-variant-numeric: tabular-nums;
}

.mp-top-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.mp-top-wa {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #2dd4bf;
  color: #5eead4;
}

.mp-top-wa:hover {
  background: rgba(45, 212, 191, 0.12);
}

.mp-main {
  min-width: 0;
}

.mp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.mp-filters:empty {
  display: none;
}

.mp-filter {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-main);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.mp-filter[aria-pressed="true"] {
  background: var(--mp-teal);
  border-color: var(--mp-teal);
  color: #04201c;
}

[data-theme="light"] .mp-filter[aria-pressed="true"] {
  color: #ffffff;
}

/* --- Barra fija: búsqueda y categorías --- */
.mp-toolbar {
  position: sticky;
  top: var(--mp-sticky-top);
  z-index: 20;
  margin: 0 -1rem 1rem;
  padding: 0.75rem 1rem 0.5rem;
  background: color-mix(in srgb, var(--bg-muted) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .mp-toolbar {
    margin: 0 -1.5rem 1.25rem;
    padding: 0.75rem 1.5rem 0.5rem;
  }
}

html:not(.js) .mp-toolbar {
  position: static;
}

.mp-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.mp-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mp-summary-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.mp-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}

.mp-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.mp-search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem 0 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-main);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.95rem;
}

.mp-search-input::placeholder {
  color: var(--text-muted);
}

.mp-search-input:focus {
  border-color: var(--mp-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

html:not(.js) .mp-search,
html:not(.js) .mp-btn-surprise,
html:not(.js) .mp-btn-add,
html:not(.js) .mp-filters {
  display: none;
}

.mp-tabs-scroll {
  margin: 0.6rem -1rem 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent);
}

.mp-tabs-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .mp-tabs-scroll {
    margin: 0.6rem 0 0;
  }
}

.mp-tabs {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding: 0.25rem 2.5rem 0.4rem 1rem;
}

@media (min-width: 1024px) {
  .mp-tabs {
    padding-left: 0;
  }
}

.mp-tab {
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.95rem 0 0.8rem;
  border-radius: var(--radius-full);
  background: var(--mp-card);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mp-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.mp-tab-icon {
  display: inline-flex;
  color: var(--mp-teal);
}

.mp-tab-icon svg {
  width: 17px;
  height: 17px;
}

.mp-tab-count {
  min-width: 1.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(127, 127, 127, 0.15);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-primary);
}

.mp-tab.is-active {
  background: var(--brand-red-fill);
  border-color: var(--brand-red-fill);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--brand-red-glow);
}

.mp-tab.is-active .mp-tab-icon {
  color: #ffffff;
}

.mp-tab.is-active .mp-tab-count {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.mp-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-teal);
  padding-top: 0.25rem;
}

.mp-status[hidden],
.mp-status:empty {
  display: none;
}

/* --- Categorías y tarjetas --- */
.mp-cat + .mp-cat {
  margin-top: 2.5rem;
}

.mp-ready .mp-cat + .mp-cat {
  margin-top: 0;
}

.mp-ready .mp-cat:not([hidden]) ~ .mp-cat:not([hidden]) {
  margin-top: 2rem;
}

.mp-cat.is-entering {
  animation: mpEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mpEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mp-cat-head {
  margin-bottom: 1rem;
}

.mp-cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  scroll-margin-top: 220px;
}

.mp-cat-count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.35rem;
}

.mp-cat-blurb {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mp-cat-star {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mp-amber);
}

.mp-cat-star a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .mp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mp-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--mp-card);
  border: 1px solid var(--border-subtle);
  scroll-margin-top: 240px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.mp-card[hidden] {
  display: none;
}

/* Platillo con foto: miniatura a la izquierda del texto y botones a lo ancho */
.mp-card--photo:not(.mp-card--star) {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  row-gap: 0.4rem;
}

.mp-card--photo:not(.mp-card--star) > .mp-card-body {
  display: contents;
}

.mp-card--photo:not(.mp-card--star) > .mp-card-media {
  grid-row: 1 / span 3;
}

.mp-card--photo:not(.mp-card--star) .mp-card-tags,
.mp-card--photo:not(.mp-card--star) .mp-card-head,
.mp-card--photo:not(.mp-card--star) .mp-card-desc {
  grid-column: 2;
}

.mp-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1;
  background: linear-gradient(100deg, var(--bg-muted) 30%, var(--bg-surface-elevated) 50%, var(--bg-muted) 70%);
  background-size: 300% 100%;
  animation: mpSkeleton 1.4s linear infinite;
}

.mp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .mp-card-media img:not(.is-loaded) {
  opacity: 0;
}

.mp-card-media:has(img.is-loaded),
.mp-card-media.is-error {
  animation: none;
}

@keyframes mpSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -50% 0; }
}

.mp-card:hover .mp-card-media img {
  transform: scale(1.04);
}

/* Recomendación del Pato: tarjeta ancha, foto grande */
.mp-card--star {
  grid-column: 1 / -1;
  border: 1.5px solid color-mix(in srgb, var(--mp-amber) 55%, transparent);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(245, 165, 36, 0.12), transparent 60%),
    var(--mp-card);
}

.mp-card--star.mp-card--photo {
  grid-template-columns: 1fr;
}

.mp-card--star .mp-card-media {
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .mp-card--star.mp-card--photo {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
  }

  .mp-card--star .mp-card-media {
    aspect-ratio: 4 / 3;
  }
}

.mp-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.mp-card--star .mp-card-body {
  justify-content: center;
  gap: 0.6rem;
}

.mp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mp-tag {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.mp-tag--star {
  color: var(--mp-amber);
  background: rgba(245, 165, 36, 0.1);
}

.mp-tag--favorito { color: var(--mp-amber); }
.mp-tag--chef { color: var(--mp-teal); }
.mp-tag--nuevo { color: var(--brand-red); }

.mp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mp-card-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.mp-card--star .mp-card-name {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.mp-card-price {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--mp-amber);
  white-space: nowrap;
}

.mp-card--star .mp-card-price {
  font-size: 1.6rem;
}

.mp-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mp-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.mp-card--photo:not(.mp-card--star) .mp-card-actions {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
}

html:not(.js) .mp-card-actions {
  grid-template-columns: 1fr;
}

.mp-btn-wa,
.mp-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.mp-btn-wa {
  color: var(--mp-teal);
  background: rgba(45, 212, 191, 0.08);
  border: 1.5px solid color-mix(in srgb, var(--mp-teal) 60%, transparent);
}

.mp-btn-wa:hover {
  background: rgba(45, 212, 191, 0.16);
}

.mp-btn-add {
  background: var(--brand-red-fill);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-red-glow);
}

.mp-btn-add:hover {
  background: var(--brand-red-fill-hover);
  transform: translateY(-1px);
}

.mp-btn-add:active {
  transform: scale(0.95);
}

.mp-add-qty:empty {
  display: none;
}

.mp-add-qty {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--brand-red-fill);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Elegido por "Sorpréndeme" */
.mp-card.is-picked {
  animation: mpPicked 2.2s ease-out;
}

@keyframes mpPicked {
  0%, 60% { box-shadow: 0 0 0 4px var(--mp-amber), 0 18px 40px rgba(245, 165, 36, 0.25); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Estado vacío */
.mp-empty {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.mp-empty[hidden] {
  display: none;
}

.mp-empty-img {
  width: 150px;
  height: auto;
  transform: rotate(5deg);
}

.mp-empty-text {
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- Pato mini (móvil) --- */
.mp-mini {
  position: fixed;
  left: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid var(--mp-teal);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: mpMiniIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-mini[hidden] {
  display: none;
}

.mp-mini img {
  width: 160%;
  max-width: none;
  height: auto;
  transform: translate(-6%, -2%);
}

@keyframes mpMiniIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.mp-mini-bubble {
  position: fixed;
  left: 82px;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  max-width: min(62vw, 280px);
  padding: 0.6rem 0.85rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-surface);
  border: 1.5px solid var(--mp-teal);
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mp-mini-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .mp-mini {
    left: 24px;
    bottom: 24px;
    width: 72px;
    height: 72px;
  }

  .mp-mini-bubble {
    left: 108px;
    bottom: 44px;
  }
}

/* Con pedido activo, el botón "Tu pedido" sustituye al flotante de WhatsApp */
body.has-order .whatsapp-fab {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .mp-mascot,
  .mp-glint,
  .mp-card-media,
  .mp-stage .mp-rotulo span,
  .mp-stage .mp-mascot-img {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Pedido por WhatsApp: botón flotante, panel y aviso
   ========================================================================== */
.order-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)); /* encima de la barra inferior móvil */
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  background: var(--brand-ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  font-size: 0.9rem;
}

.order-fab[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .order-fab {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.order-fab-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-full);
  background: var(--brand-red-fill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.order-fab-total {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #fbbf24;
}

.order-fab.bump {
  animation: orderBump 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes orderBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.order-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(8, 13, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.order-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s;
}

.order-sheet {
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-float);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.order-panel.open .order-sheet {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .order-panel {
    align-items: stretch;
    justify-content: flex-end;
  }

  .order-sheet {
    max-width: 420px;
    max-height: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transform: translateX(24px);
  }

  .order-panel.open .order-sheet {
    transform: translateX(0);
  }
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.order-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.order-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-list {
  list-style: none;
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
  flex: 1;
}

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.order-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.order-line-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.order-line-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.order-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.order-qty-btn {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-full);
}

.order-qty-btn:hover {
  background: var(--bg-muted);
}

.order-qty-num {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.order-foot {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 700;
}

.order-total {
  font-family: var(--font-condensed);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--brand-red);
}

.order-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.order-send {
  width: 100%;
}

.order-clear {
  align-self: center;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-toast {
  position: fixed;
  left: 50%;
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  z-index: 170;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--brand-ink);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.order-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1024px) {
  .order-toast {
    bottom: 5.5rem;
  }
}

/* Con el panel abierto el aviso estorbaría al total */
.order-panel.open ~ .order-toast {
  display: none;
}

/* Hero estable mientras cargan las fuentes: el video no se recoloca si el texto cambia de alto */
@media (min-width: 1024px) {
  .hero-section {
    align-items: flex-start;
  }

  .hero-grid {
    align-items: start;
  }
}

/* ==========================================================================
   SISTEMA VISUAL UNIFICADO (mismo lenguaje de rótulo que la carta)
   Letra condensada con sombra dura, botones con sombra desplazada,
   secciones "noche" con orilla de ola y precios en ámbar.
   ========================================================================== */
:root {
  --rot-night: #0b1820;
  --rot-cream: #fff4e0;
  --rot-amber: #f5a524;
  --rot-red: #c92a2a;
  --rot-teal: #0f766e;
  --rot-shadow: var(--rot-teal);
}

[data-theme="dark"] {
  --rot-shadow: #0f766e;
}

/* --- Títulos de sección: rótulo condensado --- */
.section-title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem) !important; /* algunos títulos traen tamaño inline */
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--rot-shadow);
  text-wrap: balance;
}

[data-theme="light"] .section-title {
  text-shadow: 3px 3px 0 rgba(15, 118, 110, 0.35);
}

/* --- Hero: el titular habla igual que "Pídele al Pato" --- */
.hero-title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--rot-red);
  max-width: 11ch;
}

[data-theme="light"] .hero-title {
  text-shadow: 4px 4px 0 rgba(201, 42, 42, 0.35);
}

.hero-title-accent {
  font-family: var(--font-condensed);
  font-style: normal;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 0.5rem;
  color: var(--rot-amber);
  text-shadow: 3px 3px 0 var(--rot-teal);
}

[data-theme="light"] .hero-title-accent {
  color: #92400e;
  text-shadow: 3px 3px 0 rgba(15, 118, 110, 0.3);
}

/* --- Botones con sombra desplazada (mismo gesto que "Sorpréndeme") --- */
.btn-primary {
  box-shadow: 4px 4px 0 var(--rot-amber);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rot-amber);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--rot-amber);
}

.btn-gold {
  box-shadow: 4px 4px 0 var(--rot-red);
}

/* --- Precios y cifras en ámbar, como en la carta --- */
.dish-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--mp-amber, #f5a524);
}

[data-theme="light"] .dish-price {
  color: #92400e;
}

.google-score-num {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: 4.2rem;
  color: var(--rot-amber);
  text-shadow: 3px 3px 0 var(--rot-red);
}

[data-theme="light"] .google-score-num {
  color: #92400e;
  text-shadow: 3px 3px 0 rgba(201, 42, 42, 0.3);
}

/* --- Tarjetas: misma curvatura que la carta --- */
.dish-card-luxury,
.google-review-card,
.faq-item,
.location-card,
.concierge-card {
  border-radius: 20px;
}

/* --- Secciones "noche": Historia, cierre y pie, con la orilla de ola del menú --- */
.history-section,
.cta-banner-section,
.footer-luxury {
  background: var(--rot-night);
  color: var(--rot-cream);
}

.history-section,
.cta-banner-section {
  position: relative;
}

.history-section::before,
.cta-banner-section::before {
  content: '';
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: -1px;
  height: 22px;
  background: var(--bg-main);
  -webkit-mask: radial-gradient(14px 12px at 50% 100%, transparent 98%, #000) 0 0 / 40px 22px repeat-x;
  mask: radial-gradient(14px 12px at 50% 100%, transparent 98%, #000) 0 0 / 40px 22px repeat-x;
  pointer-events: none;
}

.history-section .section-title,
.cta-banner-inner .section-title {
  color: var(--rot-cream);
  text-shadow: 4px 4px 0 var(--rot-red);
}

.cta-banner-inner .section-title {
  font-size: clamp(3rem, 8vw, 5.6rem) !important;
}

/* Títulos de categoría de la carta con la misma voz de rótulo */
.mp-cat-title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--rot-shadow);
}

[data-theme="light"] .mp-cat-title {
  text-shadow: 3px 3px 0 rgba(15, 118, 110, 0.35);
}

.mp-cat-count {
  text-transform: none;
  text-shadow: none;
  letter-spacing: 0;
}

/* La sección de cierre es noche en ambos temas: amarillo brillante */
.cta-banner-section .eyebrow-yellow {
  color: #f5a524;
}

/* Nombre de "Lo más pedido" con área táctil completa */
.mp-top-name a {
  display: block;
  padding-block: 0.4rem;
  margin-block: -0.4rem;
}

/* ==========================================================================
   Hero en tema claro: tinta + rojo de marca (camarón, chile) con sombra ámbar
   cálida. Todo el texto sólido y con contraste AA; el ámbar nunca es texto.
   ========================================================================== */
[data-theme="light"] .hero-title {
  color: #0d1721;
  text-shadow: 4px 4px 0 rgba(245, 165, 36, 0.55);
}

[data-theme="light"] .hero-title-accent {
  color: #c92a2a;
  -webkit-text-stroke: 0;
  text-shadow: 3px 3px 0 rgba(245, 165, 36, 0.45);
}

[data-theme="light"] .hero-subtitle strong {
  color: #b02222;
  background: none;
  padding: 0;
}

[data-theme="light"] .hero-section .stat-number {
  color: #c92a2a;
  -webkit-text-stroke: 0;
  text-shadow: 2px 2px 0 rgba(245, 165, 36, 0.45);
}

/* ==========================================================================
   Destacados en móvil: carrusel horizontal (menos scroll para llegar al menú)
   ========================================================================== */
@media (max-width: 767px) {
  .destacados-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    overscroll-behavior-x: contain;
    margin-inline: -1rem;
    padding: 0.25rem 1rem 0.75rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
  }

  .destacados-grid::-webkit-scrollbar {
    display: none;
  }

  .destacados-grid > .dish-card-luxury {
    scroll-snap-align: start;
    /* todas visibles al deslizar, sin esperar la animación de entrada */
    opacity: 1;
    transform: none;
  }

  .dest-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .dest-dot {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
  }

  .dest-dot::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: width 0.25s ease, background-color 0.25s ease;
  }

  .dest-dot[aria-current="true"]::before {
    width: 26px;
    border-radius: 999px;
    background: var(--brand-red-fill);
  }
}

@media (min-width: 768px) {
  .dest-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destacados-grid {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Selector de idioma ES | EN (navbar). /en/ es una página propia, no una traducción en vivo
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 42px;
  padding: 0 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-snappy);
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-switch a[aria-current="page"] {
  background: #b02222; /* rojo de marca oscuro: texto blanco con contraste AA en ambos temas */
  color: #fff;
  pointer-events: none;
}

.lang-switch a:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* Carta en inglés: qué es cada platillo, debajo de su nombre en español */
.mp-card-en {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.85;
}

/* Navbar en computadora: aire fijo entre el logotipo y los enlaces (mínimo 3rem) y,
   en pantallas grandes, una barra más ancha que el contenido para que todo respire */
@media (min-width: 1024px) {
  .nav-container {
    gap: 3rem;
  }

  .navbar-header .brand-logo-wrap,
  .nav-controls {
    flex-shrink: 0;
  }
}

@media (min-width: 1600px) {
  .navbar-header .nav-container {
    max-width: 1480px;
  }
}

/* ==========================================================================
   Historia: "18 años en La Paz" como rótulo de barrio
   El año de fundación pintado de fondo, la foto como polaroid con placa
   y los tres párrafos como una ruta: 2008 → cada mañana → hoy.
   ========================================================================== */
.history-section {
  isolation: isolate;
}

/* 2008 gigante, solo contorno: se lee como pared pintada, no compite con el texto */
.history-year {
  position: absolute;
  z-index: -1;
  top: clamp(1.5rem, 4vw, 3rem);
  right: -0.04em;
  font-family: var(--font-condensed);
  font-size: clamp(11rem, 34vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 244, 224, 0.13);
  text-shadow: 0.035em 0.035em 0 rgba(201, 42, 42, 0.16);
  pointer-events: none;
  user-select: none;
}

.history-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ch del propio título: unas 3 líneas, dejando ver el 2008 a la derecha */
.history-head .section-title {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.2rem) !important;
}

.history-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .history-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* --- Foto como polaroid: sirve para cualquier foto que se ponga después --- */
.history-photo {
  position: relative;
  margin: 0;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.history-photo-frame {
  position: relative;
  background: var(--rot-cream);
  padding: 0.85rem 0.85rem 0;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  box-shadow: 10px 12px 0 rgba(15, 118, 110, 0.55), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Cinta adhesiva arriba */
.history-photo-frame::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(245, 165, 36, 0.78);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.history-photo-frame .history-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
  border-radius: 2px;
  border: 0;
  box-shadow: none;
}

.history-photo-caption {
  padding: 0.8rem 0.25rem 1rem;
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #0b1820;
  text-align: center;
}

/* --- Placa pintada, en lugar del círculo rojo --- */
.history-plaque {
  position: absolute;
  right: clamp(-1rem, -2vw, -0.5rem);
  bottom: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.1rem 0.55rem;
  background: var(--rot-red);
  color: var(--rot-cream);
  border: 3px solid var(--rot-cream);
  border-radius: 6px;
  transform: rotate(3deg);
  box-shadow: 6px 6px 0 #0b1820, 6px 6px 0 2px var(--rot-amber);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  line-height: 1;
}

.history-plaque-top,
.history-plaque-bottom {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.history-plaque-year {
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 2px 2px 0 #7f1d1d;
}

/* --- Ruta de la historia --- */
.history-route {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Línea de la ruta: se "dibuja" al entrar en pantalla */
.history-route::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--rot-amber) 0 10px, transparent 10px 18px);
  transform-origin: top;
}

.history-stop {
  position: relative;
  padding-left: 3rem;
}

.history-stop + .history-stop {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Parada: rombo ámbar como clavo de letrero */
.history-stop::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.3rem;
  width: 19px;
  height: 19px;
  background: var(--rot-amber);
  border: 3px solid var(--rot-night);
  box-shadow: 0 0 0 2px var(--rot-amber);
  transform: rotate(45deg);
}

.history-stop:last-child::before {
  background: var(--rot-red);
  box-shadow: 0 0 0 2px var(--rot-cream);
}

.history-stop-mark {
  display: block;
  font-family: var(--font-condensed);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rot-amber);
  text-shadow: 2px 2px 0 rgba(201, 42, 42, 0.7);
}

.history-stop p {
  margin-top: 0.55rem;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 244, 224, 0.82);
}

.history-content .history-socials-row {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-left: 3rem;
}

/* Un solo momento de movimiento: la ruta se dibuja y las paradas aparecen en orden */
html.js .history-content.reveal-fade-up .history-route::before {
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

html.js .history-content.reveal-fade-up .history-stop {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .history-content.in-view .history-route::before {
  transform: scaleY(1);
}

html.js .history-content.in-view .history-stop {
  opacity: 1;
  transform: none;
}

html.js .history-content.in-view .history-stop:nth-child(2) { transition-delay: 0.35s; }
html.js .history-content.in-view .history-stop:nth-child(3) { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  html.js .history-content.reveal-fade-up .history-route::before,
  html.js .history-content.reveal-fade-up .history-stop {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 767px) {
  .history-year {
    top: 1rem;
    font-size: 46vw;
  }

  .history-head {
    margin-bottom: 2rem;
  }

  .history-photo {
    max-width: 92%;
  }

  .history-photo-frame {
    padding: 0.6rem 0.6rem 0;
    transform: rotate(-1.5deg);
    box-shadow: 7px 8px 0 rgba(15, 118, 110, 0.55), 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  }

  .history-photo-caption {
    font-size: 1rem;
    padding: 0.6rem 0.25rem 0.75rem;
  }

  .history-plaque {
    right: -0.75rem;
    bottom: 3rem;
    padding: 0.45rem 0.8rem 0.4rem;
  }

  .history-plaque-top,
  .history-plaque-bottom {
    font-size: 0.78rem;
  }

  .history-stop {
    padding-left: 2.5rem;
  }

  .history-stop p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .history-content .history-socials-row {
    padding-left: 0;
  }
}

/* ==========================================================================
   Galería & Sabores: mosaico de la barra con "comandas"
   Una foto protagonista, cada platillo con su comanda de papel (categoría de
   la carta + nombre) siempre visible, y el visor con "Agregar al pedido".
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: none;
  cursor: zoom-in;
  isolation: isolate;
}

/* Móvil: la protagonista y el local ocupan todo el ancho */
.gallery-item:first-child,
.gallery-item:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.gallery-item:last-child {
  aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    grid-template-areas:
      "a a b c"
      "a a b d"
      "e f g g"
      "h h h h";
  }

  .gallery-item,
  .gallery-item:first-child,
  .gallery-item:last-child {
    aspect-ratio: auto;
    grid-column: auto;
  }

  .gallery-item:nth-child(1) { grid-area: a; }
  .gallery-item:nth-child(2) { grid-area: b; }
  .gallery-item:nth-child(3) { grid-area: c; }
  .gallery-item:nth-child(4) { grid-area: d; }
  .gallery-item:nth-child(5) { grid-area: e; }
  .gallery-item:nth-child(6) { grid-area: f; }
  .gallery-item:nth-child(7) { grid-area: g; }
  .gallery-item:nth-child(8) { grid-area: h; }
  .gallery-grid { grid-template-rows: 230px 230px 260px 300px; }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sombra suave abajo solo para asentar la comanda (no tapa el platillo) */
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: auto;
  padding: 0 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: none;
  opacity: 1;
  pointer-events: none;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(0deg, rgba(8, 13, 20, 0.45), transparent);
  z-index: 0;
  pointer-events: none;
}

.gallery-overlay { z-index: 1; }

/* La comanda: papel crema con orilla dentada, como el ticket de la cocina */
.gallery-caption {
  position: relative;
  display: block;
  max-width: min(100%, 22rem);
  padding: 0.5rem 0.75rem 0.85rem;
  background: var(--rot-cream);
  color: #0b1820;
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 3px 3px 0 0;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 6px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 6px repeat-x;
  transform: rotate(-1.2deg);
  transform-origin: left bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Categoría de la carta, pegada arriba de la comanda */
.gallery-kind {
  display: inline-block;
  margin-bottom: -2px;
  padding: 0.28rem 0.6rem 0.22rem;
  background: var(--rot-red);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 3px 3px 0 0;
  transform: rotate(-1.2deg);
  transform-origin: left bottom;
}

.gallery-item[data-href] .gallery-kind {
  background: var(--rot-teal);
}

.gallery-item:first-child .gallery-caption {
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  padding: 0.6rem 0.95rem 1rem;
}

.gallery-item:first-child .gallery-kind {
  font-size: 1.05rem;
}

@media (hover: hover) {
  .gallery-item:hover .gallery-img {
    transform: scale(1.05);
  }

  .gallery-item:hover .gallery-caption,
  .gallery-item:hover .gallery-kind {
    transform: rotate(0deg) translateY(-3px);
  }
}

.gallery-item:focus-visible {
  outline: 3px solid var(--rot-amber);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .gallery-overlay {
    padding: 0 0.5rem 0.5rem;
  }

  .gallery-caption {
    font-size: 0.92rem;
    padding: 0.4rem 0.55rem 0.7rem;
  }

  .gallery-kind {
    font-size: 0.72rem;
    padding: 0.22rem 0.45rem 0.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-img,
  .gallery-caption,
  .gallery-kind {
    transition: none;
  }
}

/* --- Visor de fotos --- */
.lightbox-container {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: min(1100px, 94vw);
  overflow: visible;
  display: flex;
  justify-content: center;
}

.lightbox-img-wrap {
  margin: 0;
  max-width: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 68vh;
  width: auto;
  border-radius: 10px;
}

.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--rot-cream);
}

.lightbox-counter {
  font-family: var(--font-condensed);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--rot-amber);
}

.lightbox-bar .gallery-kind {
  transform: none;
  border-radius: 3px;
  margin: 0;
}

.lightbox-caption {
  flex-basis: 100%;
  font-family: var(--font-condensed);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.lightbox-actions[hidden] {
  display: none;
}

.lightbox-actions .btn-secondary {
  background: transparent;
  color: var(--rot-cream);
  border-color: rgba(255, 244, 224, 0.4);
}

/* Flechas pegadas a los lados de la foto */
.lightbox-stage {
  position: relative;
  display: inline-block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: var(--radius-full);
  background: rgba(11, 24, 32, 0.6);
  border: 1px solid rgba(255, 244, 224, 0.35);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-snappy);
}

.lightbox-nav:hover {
  background: var(--rot-red);
  border-color: var(--rot-red);
}

.lightbox-prev { left: -76px; }
.lightbox-next { right: -76px; }

/* El cierre va en la esquina de la pantalla (sin la escala del modal) */
.lightbox-container {
  transform: none !important;
}

.lightbox-container .modal-close-btn {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
}

/* Con el visor abierto, el aviso "Agregado" sube para no tapar los botones */
body:has(#galleryModal.active) .order-toast {
  top: 1.25rem;
  bottom: auto;
}

@media (max-width: 767px) {
  .lightbox-img {
    max-height: 56vh;
  }

  /* En celular las flechas van sobre la foto; también se puede deslizar */
  .lightbox-nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 767px) {
  body:has(#galleryModal.active) .order-toast {
    top: 4.25rem;
  }
}

/* "Lo más pedido": flechas para recorrer la tira (también se desliza con el dedo) */
.mp-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.mp-top-head .mp-top-title {
  margin-bottom: 0;
}

.mp-top-arrows {
  display: flex;
  gap: 0.5rem;
}

.mp-top-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 3px;
  background: var(--rot-amber);
  color: #0b1820;
  border: 0;
  box-shadow: 3px 3px 0 var(--rot-red);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.mp-top-arrow:hover:not(:disabled) {
  transform: translate(-1px, -1px);
}

.mp-top-arrow:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--rot-red);
}

.mp-top-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.mp-top-arrow:focus-visible {
  outline: 3px solid #fff4e0;
  outline-offset: 3px;
}

/* Pedido: para recoger o a domicilio */
.order-delivery {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.order-delivery legend {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.order-delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.order-delivery-option {
  position: relative;
  cursor: pointer;
}

.order-delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-delivery-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.75rem;
  border-radius: 12px;
  border: 2px solid var(--border-medium);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition-snappy);
}

.order-delivery-option input:checked + span {
  border-color: var(--brand-red-fill);
  background: var(--brand-red-fill);
  color: #fff;
  box-shadow: 3px 3px 0 var(--rot-amber);
}

.order-delivery-option input:focus-visible + span {
  outline: 3px solid var(--brand-yellow-fill);
  outline-offset: 2px;
}

.order-address {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.order-address[hidden] {
  display: none;
}

.order-address input {
  min-height: 46px;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 600 0.95rem var(--font-body);
}

.order-address small {
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Secciones del menú pensadas para todos (también para quien casi no usa
   el celular): las 9 secciones a la vista en recuadros grandes, sin deslizar,
   con su nombre y cuántos platillos tiene; barra fija "Estás viendo… Cambiar
   sección" y botones de sección anterior/siguiente al final de cada una.
   ========================================================================== */
.mp-toolbar {
  position: static;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: 0;
  padding-top: 0.25rem;
}

.mp-toolbar-top {
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.mp-sections-head {
  flex: 1 1 320px;
}

.mp-sections-title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 3px 3px 0 rgba(15, 118, 110, 0.35);
}

.mp-sections-hint {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mp-sections-hint .mp-summary-count {
  font-weight: 500;
  white-space: nowrap;
}

/* Buscador más grande y legible */
.mp-search {
  flex: 1 1 320px;
  max-width: 460px;
}

.mp-search-input {
  min-height: 56px;
  font-size: 1.05rem;
  border-width: 2px;
}

/* --- Las 9 secciones a la vista --- */
.mp-tabs-scroll {
  margin: 1.1rem 0 0;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.mp-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: auto;
  padding: 0;
}

@media (min-width: 640px) {
  .mp-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.mp-tab {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: "icon label" "icon count";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  min-height: 78px;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  border: 2px solid var(--border-medium);
  background: var(--mp-card);
  color: var(--text-primary);
  white-space: normal;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--border-medium);
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-tab-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.14);
  color: var(--mp-teal);
}

.mp-tab-icon svg {
  width: 24px;
  height: 24px;
}

.mp-tab-label {
  grid-area: label;
  align-self: end;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mp-tab-count {
  grid-area: count;
  align-self: start;
  justify-self: start;
  min-width: 0;
  padding: 0;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-secondary);
}

@media (hover: hover) {
  .mp-tab:hover {
    border-color: var(--mp-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(15, 118, 110, 0.35);
  }
}

.mp-tab:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* Sección elegida: roja, con palomita "Viendo" (no depende solo del color) */
.mp-tab.is-active {
  background: var(--brand-red-fill);
  border-color: var(--brand-red-fill);
  color: #fff;
  box-shadow: 4px 4px 0 var(--rot-amber);
}

.mp-tab.is-active .mp-tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mp-tab.is-active .mp-tab-count {
  background: none;
  color: rgba(255, 255, 255, 0.92);
}

.mp-tab.is-active::after {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rot-amber);
  color: #0b1820;
  font-weight: 900;
  font-size: 1rem;
  border: 3px solid var(--bg-muted);
}

.mp-tab:focus-visible {
  outline: 3px solid var(--rot-amber);
  outline-offset: 3px;
}

@media (max-width: 479px) {
  .mp-tab {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 0.6rem;
    padding: 0.6rem 0.7rem;
  }

  .mp-tab-icon {
    width: 38px;
    height: 38px;
  }

  .mp-tab-icon svg {
    width: 20px;
    height: 20px;
  }

  .mp-tab-label {
    font-size: 0.98rem;
  }
}

@media (max-width: 340px) {
  .mp-tab {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 0.55rem;
    padding: 0.6rem 0.65rem;
  }

  .mp-tab-icon {
    width: 40px;
    height: 40px;
  }
}

/* --- Barra fija "Estás viendo… / Cambiar sección" --- */
.mp-current {
  position: fixed;
  top: var(--mp-sticky-top);
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem max(1rem, calc((100vw - 1280px) / 2 + 2.5rem));
  background: color-mix(in srgb, var(--bg-muted) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand-red-fill);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mp-current.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mp-current-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-fill);
  color: #fff;
}

.mp-current-icon:empty {
  display: none;
}

.mp-current-icon svg {
  width: 20px;
  height: 20px;
}

.mp-current-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-secondary);
}

.mp-current-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
}

.mp-current-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.mp-current-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--rot-amber);
  color: #0b1820;
  font: 800 0.98rem var(--font-body);
  box-shadow: 3px 3px 0 var(--brand-red-fill);
  cursor: pointer;
}

.mp-current-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--brand-red-fill);
}

@media (max-width: 420px) {
  .mp-current-btn {
    padding: 0 0.85rem;
    font-size: 0.9rem;
  }
}

/* --- Al final de cada sección: anterior / todas / siguiente --- */
.mp-cat-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--border-medium);
}

.mp-is-search .mp-cat-nav {
  display: none;
}

.mp-cat-nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 68px;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--border-medium);
  background: var(--mp-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.mp-cat-nav-next {
  text-align: right;
  align-items: flex-end;
  background: var(--brand-red-fill);
  border-color: var(--brand-red-fill);
  color: #fff;
}

.mp-cat-nav-all {
  align-items: center;
  text-align: center;
}

.mp-cat-nav-dir {
  font-size: 0.9rem;
  font-weight: 700;
}

.mp-cat-nav-next {
  background: #b02222; /* rojo un poco más oscuro: texto blanco con contraste AA */
  border-color: #b02222;
}

.mp-cat-nav-btn strong {
  font-family: var(--font-body);
  overflow-wrap: break-word;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}

@media (hover: hover) {
  .mp-cat-nav-btn:hover {
    border-color: var(--mp-teal);
    transform: translateY(-2px);
  }
}

.mp-cat-nav-btn:focus-visible {
  outline: 3px solid var(--rot-amber);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .mp-cat-nav {
    grid-template-columns: 1fr 1fr;
  }

  .mp-cat-nav-all {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-tab,
  .mp-current,
  .mp-cat-nav-btn {
    transition: none;
  }
}

/* ==========================================================================
   Hero: video nuevo (horizontal, sin sonido) en una pantalla 16:9 sin recortes,
   marco de rótulo con sombra ámbar, línea de avance y capítulos con los
   platillos que aparecen ("En el video"), que llevan al menú.
   ========================================================================== */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: clamp(2.5rem, 4vw, 4rem);
  }

  /* El video arranca a la altura del titular, no de las etiquetas */
  .hero-media-wrap {
    margin-top: 3.25rem;
  }
}

.hero-media-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-media-wrap > .hero-card-media {
  width: 100%;
  min-width: 0;
}

.hero-card-media,
.hero-section .hero-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 3px solid #0b1820;
  background: #0b1820;
  box-shadow: 10px 10px 0 var(--rot-amber), 0 30px 60px -25px rgba(11, 24, 32, 0.55);
}

[data-theme="dark"] .hero-card-media {
  border-color: rgba(255, 244, 224, 0.85);
  box-shadow: 10px 10px 0 var(--rot-amber), 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

/* Sin zoom al pasar el mouse: el video ya se mueve */
.hero-card-media:hover .hero-video-el,
.hero-card-media:hover .hero-poster-img {
  transform: none;
}

/* Oscurece solo arriba (etiqueta) y abajo (botón y línea), no los platillos */
.hero-media-overlay {
  background: linear-gradient(180deg, rgba(11, 24, 32, 0.35) 0%, transparent 22%, transparent 72%, rgba(11, 24, 32, 0.5) 100%);
}

.hero-media-controls {
  bottom: 1rem;
  right: 1rem;
}

/* Línea de avance del video */
.hero-progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 244, 224, 0.2);
}

.hero-progress span {
  display: block;
  height: 100%;
  background: var(--rot-amber);
  transform: scaleX(0);
  transform-origin: left;
}

/* Tarjeta "Curricanes de Camarón": calcomanía en la esquina de la pantalla */
.hero-floating-dish {
  top: -1.75rem;
  right: -1rem;
  bottom: auto;
  left: auto;
  transform: rotate(2deg);
  animation: none;
  border: 2px solid #0b1820;
  box-shadow: 5px 5px 0 var(--rot-red);
  padding: 0.75rem 1rem;
}

[data-theme="dark"] .hero-floating-dish {
  border-color: rgba(255, 244, 224, 0.6);
}

/* --- "En el video": los platillos como capítulos --- */
.hero-scenes {
  margin-top: 1.6rem;
}

.hero-scenes-title {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-scenes-title span::before {
  content: '· ';
}

.hero-scenes-title span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
}

.hero-scenes-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-scene {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 12px;
  border: 2px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.hero-scene-bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--border-medium);
  overflow: hidden;
}

.hero-scene-bar span {
  display: block;
  height: 100%;
  background: var(--rot-amber);
  transform: scaleX(0);
  transform-origin: left;
}

/* El platillo que está en pantalla */
.hero-scene.is-now {
  border-color: var(--brand-red-fill);
  color: var(--text-primary);
  background: var(--brand-red-light);
}

.hero-scene.is-now .hero-scene-bar {
  background: rgba(201, 42, 42, 0.25);
}

.hero-scene.is-now .hero-scene-bar span {
  background: var(--brand-red-fill);
}

@media (hover: hover) {
  .hero-scene:hover {
    border-color: var(--rot-teal);
    color: var(--text-primary);
    transform: translateY(-2px);
  }
}

.hero-scene:focus-visible {
  outline: 3px solid var(--rot-amber);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .hero-floating-dish {
    position: relative;
    top: auto;
    right: auto;
    order: 3;
    align-self: flex-start;
    margin-top: 1rem;
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero-card-media,
  .hero-section .hero-card-media {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    box-shadow: 6px 6px 0 var(--rot-amber);
  }

  .hero-scenes {
    margin-top: 1.25rem;
  }

  .hero-scenes-title span {
    display: block;
    margin-top: 0.1rem;
  }

  .hero-scenes-title span::before {
    content: none;
  }

  .hero-media-wrap > .hero-card-media {
    width: calc(100% - 6px); /* deja ver la sombra ámbar */
  }

  /* En celular los capítulos se deslizan de lado, con el siguiente asomándose */
  .hero-scenes-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-right: -1.25rem;
    padding-right: 1.25rem;
  }

  .hero-scenes-list::-webkit-scrollbar {
    display: none;
  }

  .hero-scenes-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero-scene {
    min-width: 128px;
    min-height: 56px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene {
    transition: none;
  }
}

/* Secciones solo con su nombre (sin ícono ni conteo), centrado y grande */
.mp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.mp-tab-label {
  align-self: center;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

@media (max-width: 479px) {
  .mp-tab {
    min-height: 64px;
    padding: 0.6rem 0.7rem;
  }

  .mp-tab-label {
    font-size: 1.02rem;
  }
}
