:root {
  --color-bg: #f6f4f0;
  --color-bg-alt: #ffffff;
  --color-primary: #114b74;
  --color-accent: #d4af37;
  --color-accent-soft: rgba(212, 175, 55, 0.16);
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: rgba(31, 42, 124, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.5;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-image {
  height: 44px;
  width: auto;
  display: block;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.15rem;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #111827;
  text-decoration: none;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 5rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 6vw, 4.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-primary);
}

.hero-title-sub {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.25em;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 0.4rem;
}

.hero-seo {
  margin-top: 1.1rem;
  max-width: 640px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.hero-subtitle {
  margin-top: 1.2rem;
  max-width: 460px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.8rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.btn-reserva {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.btn-reserva:hover {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  justify-content: center;
}

/* GALERÍA SLIDER */

.slider-section {
  padding: 0;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--shadow-soft);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.slider-dot.active {
  background: var(--color-primary);
  transform: scale(1.15);
}

/* SECTIONS */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* Línea separadora azul entre secciones (con margen lateral) */
.hero + .section::before,
.hero + .slider-section::before,
.slider-section + .section::before,
.section + .section::before,
.section + .section-alt::before,
.section-alt + .section::before,
.section-alt + .section-alt::before {
  content: "";
  display: block;
  height: 2px;
  background-color: rgba(31, 42, 124, 0.75);
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto 2.5rem;
}

.section-header {
  max-width: 540px;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* MENU TABS */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.menu-tab {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-primary);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.menu-tab:hover {
  border-color: rgba(31, 42, 124, 0.7);
}

.menu-tab.active {
  background: var(--color-accent-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* MENU PANELS */

.menu-panels {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.5rem 1.9rem;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 1.8rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 3fr) auto;
  gap: 1.25rem;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-media {
  grid-column: 1 / 2;
}

.menu-item-main {
  grid-column: 1 / 3;
}

.menu-item-media + .menu-item-main {
  grid-column: 2 / 3;
}

.menu-item-media img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

/* LIGHTBOX IMÁGENES PLATOS */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

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

.lightbox-content {
  max-width: min(90vw, 560px);
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox-caption {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.allergen-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.allergen-icons img {
  width: 36px;
  height: 36px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.allergen-icons img:hover {
  opacity: 1;
}

.allergen-icons-card {
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Leyenda alérgenos */
.allergen-legend {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem;
  border-top: 2px solid var(--color-primary);
  text-align: center;
}

.allergen-legend h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.allergen-legend-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.allergen-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.allergen-legend-item img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  opacity: 0.8;
}

.allergen-legend-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
}

.allergen-legend-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .allergen-legend {
    margin-top: 1.8rem;
    padding: 1.2rem 0.5rem;
  }
  .allergen-legend h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }
  .allergen-legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.5rem;
    max-width: 100%;
  }
  .allergen-legend-item {
    min-width: unset;
  }
  .allergen-legend-item img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }
  .allergen-legend-item span {
    font-size: 0.68rem;
  }
  .allergen-legend-note {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .allergen-legend-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem 0.4rem;
  }
  .allergen-legend-item img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
  .allergen-legend-item span {
    font-size: 0.62rem;
  }
}

.menu-item-main h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
}

.menu-desc {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.menu-price {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--color-primary);
}

.menu-note {
  margin: 0 0 0.8rem;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

/* MENU CARDS */

.menu-grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.3rem;
}

.menu-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 1.1rem 1.1rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.07;
  background:
    radial-gradient(circle at 0 0, var(--color-accent) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #ffffff 0, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.menu-card-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
}

.menu-tag {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* LOCATION */

.location-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.location-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--color-text-muted);
}

.location-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.location-list strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #111827;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  min-height: 260px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

/* CONTACTO */

.contact-grid {
  display: grid;
  gap: 2.2rem;
  align-items: flex-start;
}

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

@media (max-width: 600px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 1.1rem 1.1rem 1.2rem;
}

.contact-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: var(--color-primary);
}

.contact-hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* FORMULARIO */


/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 60%);
  padding-top: 2.6rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

.footer-block p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 2rem;
  padding: 0.9rem 0 1.3rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* BOTONES WHATSAPP */

.btn-whatsapp {
  background: #25d366;
  color: #032015;
  border-color: #1ebe5d;
  box-shadow: var(--shadow-soft);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-whatsapp-outline {
  background: transparent;
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.7);
}

.btn-whatsapp-outline:hover {
  background: #ffffff;
  border-color: #25d366;
  color: #25d366;
  text-decoration: none;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
}

.btn-full-width-mobile {
  display: inline-block;
}

/* CTA debajo de categorías */

.menu-category-cta {
  margin-top: 1rem;
  text-align: right;
}

/* BOTÓN FLOTANTE WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  z-index: 40;
  text-decoration: none;
  animation: whatsapp-pulse 2.4s infinite;
}

.whatsapp-float-inner {
  width: 62%;
  height: 62%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
}

/* Animación de pulso */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 1.2rem 0.9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  .nav.open {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.25rem 0;
  }

  .hero-content {
    padding-top: 4.2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .menu-panels {
    padding-inline: 1.1rem;
  }

  .menu-item {
    grid-template-columns: 72px minmax(0, 2fr) auto;
  }

  .location-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-wrapper {
    min-height: 220px;
  }


  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .slide img {
    height: 280px;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .whatsapp-float {
    width: 68px;
    height: 68px;
    right: 16px;
    bottom: 16px;
  }

  .btn-full-width-mobile {
    width: 100%;
    text-align: center;
  }

  .menu-category-cta {
    text-align: left;
  }
}

@media (min-width: 769px) {
  .hero-content {
    padding-top: 5.6rem;
  }

  .location-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1.1fr 1.1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.7rem, 100%);
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .menu-tabs {
    gap: 0.45rem;
  }

  .menu-tab {
    font-size: 0.78rem;
    padding-inline: 0.7rem;
  }
}

