/* ==========================================================================
   CASA EGLANTINA — SEAFOOD RESTAURANT
   Sistema de diseño costero editable mediante variables CSS.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: optional;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: optional;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}

:root {
  /* Paleta base de la marca */
  --ce-turquoise: #00bcd4;
  --ce-turquoise-dark: #007c8c;
  --ce-gold: #c58e26;
  --ce-gold-dark: #8c5e0b;
  --ce-deep-blue: #064953;
  --ce-deep-blue-900: #042f36;
  --ce-ivory: #f8f5ef;
  --ce-white: #ffffff;

  /* Tipografías */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radios y espaciado */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* ==========================================================================
   AMBIENTE 1: AMANECER (Cálido, luminoso, enfoque en desayunos)
   ========================================================================== */
:root,
[data-theme="amanecer"] {
  --bg: var(--ce-ivory);
  --bg-alt: #f0ebe0;
  --surface: var(--ce-white);
  --surface-muted: #fcfaf6;
  --text: var(--ce-deep-blue-900);
  --text-muted: #385c63;
  --heading: var(--ce-deep-blue);
  --accent: var(--ce-gold);
  --accent-text: var(--ce-gold-dark);
  --accent-secondary: var(--ce-turquoise-dark);
  --accent-soft: rgba(197, 142, 38, 0.14);
  --turquoise-soft: rgba(0, 188, 212, 0.12);
  --border: rgba(6, 73, 83, 0.14);
  --nav-bg: rgba(248, 245, 239, 0.92);
  --btn-primary-bg: var(--ce-deep-blue);
  --btn-primary-text: var(--ce-white);
  --btn-primary-hover: var(--ce-deep-blue-900);
  --hero-glow: radial-gradient(circle at 82% 18%, rgba(197, 142, 38, 0.18), transparent 52%),
               radial-gradient(circle at 14% 85%, rgba(0, 188, 212, 0.1), transparent 46%);
  --shadow-sm: 0 6px 20px rgba(6, 73, 83, 0.07);
  --shadow-md: 0 14px 36px rgba(6, 73, 83, 0.1);
  --shadow-lg: 0 24px 54px rgba(6, 73, 83, 0.14);
  --status-open-bg: rgba(0, 124, 140, 0.12);
  --status-open-dot: #00897b;
  --status-closed-bg: rgba(197, 142, 38, 0.15);
  --status-closed-dot: var(--ce-gold);
  --focus-ring: 0 0 0 3px rgba(0, 188, 212, 0.55);
}

/* ==========================================================================
   AMBIENTE 2: COSTERO (Turquesa, azul profundo, enfoque en cocina de mar)
   ========================================================================== */
[data-theme="costero"] {
  --bg: var(--ce-deep-blue);
  --bg-alt: var(--ce-deep-blue-900);
  --surface: #0a5662;
  --surface-muted: #07414a;
  --text: var(--ce-ivory);
  --text-muted: #cbe4e8;
  --heading: var(--ce-white);
  --accent: var(--ce-turquoise);
  --accent-text: #6ee7f7;
  --accent-secondary: #e2ad47;
  --accent-soft: rgba(0, 188, 212, 0.18);
  --turquoise-soft: rgba(0, 188, 212, 0.16);
  --border: rgba(248, 245, 239, 0.18);
  --nav-bg: rgba(4, 47, 54, 0.9);
  --btn-primary-bg: var(--ce-turquoise);
  --btn-primary-text: var(--ce-deep-blue-900);
  --btn-primary-hover: #31d2e8;
  --hero-glow: radial-gradient(circle at 82% 20%, rgba(0, 188, 212, 0.22), transparent 52%),
               radial-gradient(circle at 12% 85%, rgba(197, 142, 38, 0.14), transparent 45%);
  --shadow-sm: 0 8px 22px rgba(2, 24, 28, 0.35);
  --shadow-md: 0 16px 38px rgba(2, 24, 28, 0.45);
  --shadow-lg: 0 26px 56px rgba(2, 24, 28, 0.58);
  --status-open-bg: rgba(0, 188, 212, 0.2);
  --status-open-dot: #38e5f9;
  --status-closed-bg: rgba(197, 142, 38, 0.22);
  --status-closed-dot: #f2be54;
  --focus-ring: 0 0 0 3px rgba(197, 142, 38, 0.7);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  scroll-padding-bottom: 88px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 999;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   NAVBAR FIJA & MENÚ MÓVIL
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.navbar-inner {
  width: min(84rem, 94%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand-logo-frame,
.footer-logo-frame {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="costero"] .brand-logo-frame,
[data-theme="costero"] .footer-logo-frame {
  background: rgba(248, 245, 239, 0.94);
  padding: 0.24rem 0.55rem;
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  width: 84px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.1vw, 1.1rem);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding-block: 0.3rem;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.12s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.status-pill {
  min-inline-size: 12.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--status-open-bg);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-closed {
  background: var(--status-closed-bg);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-open-dot);
  flex-shrink: 0;
}

.status-pill.is-closed .status-dot {
  background: var(--status-closed-dot);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 7.25rem;
  min-height: 44px;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0 10px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  max-height: calc(100dvh - 69px);
  overflow-y: auto;
  padding: 0.65rem 4% 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-drawer.open {
  display: flex;
}

.drawer-link {
  padding: 0.72rem 0.25rem;
  font-weight: 600;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--border);
}

.drawer-status {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-text);
}

/* ==========================================================================
   UTILIDADES & BOTONES
   ========================================================================== */
.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header h2,
.hours-panel h2,
.connect-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.section-subtitle {
  max-width: 44ch;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.88rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.2rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   1. HERO PRINCIPAL
   ========================================================================== */
.hero {
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
  background: var(--hero-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 0.85rem;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.8vw, 5.25rem);
  font-weight: 700;
  line-height: 0.97;
  text-wrap: balance;
}

.hero-slogan {
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
}

.hero-lead {
  max-width: 43ch;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.hero-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-hours span + span {
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 0.75rem;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  gap: clamp(0.45rem, 1vw, 0.8rem);
  align-items: stretch;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.hero-frame-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-frame picture,
.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-frame img {
  object-fit: cover;
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ffaa5220, transparent 68%);
  pointer-events: none;
  content: "";
}

[data-theme="costero"] .hero-frame::after {
  background: linear-gradient(145deg, #aef3fa24, transparent 68%);
}

.hero-frame-main figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 1.85rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, #042f36e8);
  color: var(--ce-white);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-accents {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: inherit;
}

.hero-photo-enter {
  animation: hero-photo-in 0.22s ease-out;
}

@keyframes hero-photo-in {
  from { opacity: 0.68; }
  to { opacity: 1; }
}

/* ==========================================================================
   2. CATEGORÍAS GASTRONÓMICAS
   ========================================================================== */
.categories-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.categories-grid:empty {
  min-height: calc(min(36.875rem, 46vw) * 0.625 + 11rem);
}

.category-block {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.category-block.is-featured-ambience {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-lg);
}

.category-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-muted);
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-block:hover .category-media img {
  transform: scale(1.04);
}

.category-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.36rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(4, 47, 54, 0.86);
  color: var(--ce-white);
  backdrop-filter: blur(6px);
}

.category-body {
  padding: 1.5rem 1.65rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.category-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
}

.category-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-text);
  margin-top: 0.35rem;
}

/* ==========================================================================
   3. MENÚ INTERACTIVO
   ========================================================================== */
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.58rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.menu-card.is-hidden {
  display: none;
}

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

.menu-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-card-media img {
  width: 100%;
  height: 100%;
  object-fit: var(--menu-photo-fit, cover);
  object-position: 50% var(--menu-photo-y, 50%);
  transition: transform 0.35s ease;
}

.menu-card[data-dish="feat-plato-fruta"],
.menu-card[data-dish="feat-tacos-gobernador-camaron"],
.menu-card[data-dish="feat-pescado"] {
  --menu-photo-fit: contain;
}

.menu-card[data-dish="feat-aguachile-negro"] {
  --menu-photo-y: 38%;
}

.menu-card:hover .menu-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.menu-cat-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-cat-tag.is-breakfast {
  background: var(--ce-gold);
  color: var(--ce-deep-blue-900);
}

.menu-cat-tag.is-all-day {
  background: var(--ce-ivory);
  color: var(--ce-deep-blue-900);
  border: 1px solid rgba(6, 73, 83, 0.25);
}

.menu-cat-tag.is-seafood {
  background: var(--ce-turquoise);
  color: var(--ce-deep-blue-900);
}

.menu-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.menu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.menu-card-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--heading);
}

.menu-price-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-card-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-card-alias {
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-card-contact {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.23em;
}

.menu-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.menu-block-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
}

.menu-block-meta,
.menu-catalog-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.menu-catalog-wrap {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.menu-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.catalog-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 1.85rem);
  box-shadow: var(--shadow-sm);
}

.catalog-section.is-hidden {
  display: none;
}

.catalog-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.catalog-section-head h4 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}

.catalog-section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.catalog-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.catalog-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  overflow: hidden;
}

.catalog-accordion.is-single-col {
  grid-column: 1 / -1;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-trigger:hover {
  background: var(--accent-soft);
}

.accordion-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.accordion-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
}

.accordion-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.accordion-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px solid var(--border);
}

.accordion-panel[hidden] {
  display: none;
}

.catalog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.catalog-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px dashed var(--border);
}

.catalog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.catalog-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.catalog-item-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.catalog-item-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.catalog-photo-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.48rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--turquoise-soft);
  color: var(--accent-secondary);
  vertical-align: middle;
}

.catalog-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.official-menu-pages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.official-menu-page-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.45rem;
}

.official-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* ==========================================================================
   4. GALERÍA RESPONSIVA + LIGHTBOX
   ========================================================================== */
.gallery-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item:focus-within {
  box-shadow: var(--focus-ring);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.gallery-trigger {
  display: block;
  width: 100%;
  border: none;
  background: var(--surface-muted);
  padding: 0;
  cursor: zoom-in;
}

.gallery-trigger::after {
  position: absolute;
  inset: 0;
  content: "";
}

.gallery-thumb {
  width: 100%;
  height: auto;
  max-height: clamp(22rem, 42vw, 31rem);
  object-fit: contain;
  object-position: center;
}

.gallery-caption {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.gallery-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

/* ==========================================================================
   5. HORARIOS EN TIEMPO REAL
   ========================================================================== */
.hours-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.facade-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.facade-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.facade-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(4, 47, 54, 0.85);
  color: var(--ce-white);
  backdrop-filter: blur(8px);
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

.hours-lead {
  color: var(--text-muted);
  margin: 0.75rem 0 1.35rem;
}

.live-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.live-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--status-open-bg);
  color: var(--heading);
}

.live-badge.is-closed {
  background: var(--status-closed-bg);
}

.live-clock {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.live-next {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--heading);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.2rem;
}

.schedule-row.is-rest-day {
  border-left: 4px solid var(--ce-gold);
}

.schedule-days {
  font-weight: 600;
  color: var(--text);
}

.schedule-time {
  color: var(--heading);
  font-size: 0.96rem;
}

/* ==========================================================================
   6. UBICACIÓN Y CONTACTO
   ========================================================================== */
.connect-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.location-header {
  display: block;
  margin-bottom: clamp(1.15rem, 2.5vw, 2rem);
}

.location-header .section-subtitle {
  max-width: none;
  margin-top: 0.45rem;
}

.location-layout {
  display: grid;
  gap: clamp(1rem, 2vw, 1.65rem);
}

.location-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2.65rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.location-details h3 {
  margin-bottom: 0.45rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.location-address {
  margin-top: 0.55rem;
  color: var(--heading);
}

.location-hours {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.location-hours dt {
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
}

#location-hours {
  color: var(--heading);
}

.location-actions {
  margin-top: 1.35rem;
}

.contact-row {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-row .connect-card {
  max-width: 36rem;
  margin-inline: auto;
}

.connect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connect-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.map-embed-wrap {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wa-widget {
  --wa-edge: clamp(0.75rem, 2vw, 1.75rem);
  position: fixed;
  z-index: 90;
  right: max(var(--wa-edge), env(safe-area-inset-right));
  bottom: max(var(--wa-edge), env(safe-area-inset-bottom));
}

body:has(.mobile-drawer.open, .modal-backdrop.open) .wa-widget {
  display: none;
}

.wa-launcher,
.wa-close {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.wa-launcher {
  width: 54px;
  height: 54px;
  border: 2px solid #c6f0d9;
  border-radius: 50%;
  background: #0d6849;
  color: #fff;
  box-shadow: 0 7px 22px #042f365c;
}

.wa-launcher:hover {
  background: #0b543c;
}

.wa-launcher:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(21rem, calc(100vw - 2 * var(--wa-edge)));
  max-height: calc(100dvh - 155px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.wa-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem 0.35rem 1rem;
  background: var(--ce-deep-blue-900);
  color: var(--ce-ivory);
}

.wa-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.wa-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
}

.wa-close:hover {
  background: #ffffff20;
}

.wa-welcome {
  margin: 0.85rem 1rem 0.55rem;
  font-size: 0.9rem;
}

.wa-options {
  display: grid;
  gap: 0.2rem;
  margin: 0 0.65rem 0.75rem;
  list-style: none;
}

.wa-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.wa-options a:hover {
  background: var(--accent-soft);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding-block: 2.5rem clamp(4.75rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 84px;
  height: auto;
  flex-shrink: 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--heading);
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-hours {
  margin-top: 0.15rem;
  font-weight: 600;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-text);
}

.platform-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.platform-credit a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   MODALES & LIGHTBOX ACCESIBLE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 28, 33, 0.84);
  backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 250;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--heading);
}

.modal-body {
  padding: 1.4rem;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-md);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--accent);
}

/* Lightbox */
.lightbox-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  z-index: 5;
  background: var(--ce-deep-blue-900);
  color: var(--ce-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.lightbox-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#lightbox-media {
  background: #031e22;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 68vh;
}

#lightbox-media img {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption {
  padding: 1rem 1.35rem 1.2rem;
}

.lightbox-caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.lightbox-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lightbox-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 73, 83, 0.85);
  color: var(--ce-white);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--ce-turquoise);
  color: var(--ce-deep-blue-900);
  transform: scale(1.06);
}

/* ==========================================================================
   ANIMACIÓN REVEAL & REDUCED MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1440, 1024, 768, 390, 360)
   ========================================================================== */
/* El ancho mínimo incluye la marca, ocho enlaces, dos controles y sus separaciones. */
@media (width < 88rem) {
  .brand-sub,
  .status-pill {
    display: none;
  }

  .nav-links {
    gap: 0.85rem;
  }
}

@media (width < 70rem) {
  .nav-links,
  .status-pill {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 960px) {
  .hours-grid,
  .catalog-groups {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    column-count: 2;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (width >= 769px) {
  .location-layout:has(.map-embed-wrap:not([hidden])) {
    grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
  }

  .map-embed-wrap {
    height: clamp(400px, 32vw, 450px);
  }
}

@media (max-width: 640px) {
  .categories-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    min-height: 68px;
  }

  .hero {
    padding-block: 2rem 2.5rem;
  }

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

  .hero-title {
    max-width: 16ch;
  }

  .hero-frame-main {
    border-radius: var(--radius-md);
  }

  .hero-frame-accent {
    border-radius: var(--radius-sm);
  }

  .hero-frame-main figcaption {
    padding-inline: 0.65rem;
    font-size: 0.75rem;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lightbox-nav {
    position: fixed;
    bottom: 1.15rem;
    z-index: 260;
  }

  .lightbox-prev {
    left: 1.25rem;
  }

  .lightbox-next {
    right: 1.25rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }

  .navbar-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-logo {
    width: 105px;
  }

  .brand-text {
    display: none;
  }

  .theme-toggle {
    min-width: 6rem;
    padding-inline: 0.6rem;
    font-size: 0.78rem;
  }
}
