/* ==========================================================================
   VARIABLES Y ESTILOS BASE
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #0f0b0a;
  --surface: #181312;
  --surface-alt: #221b19;
  --surface-card: #28201d;
  --text: #f7f6f2;
  --muted: #c8c3bc;
  --accent: #d52f32;
  --accent-hover: #ef4346;
  --gold: #f1c40f;
  --gold-subtle: #d4af37;
  --border: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Variables Neumórficas */
  --btn-bg: #221b19;
  --btn-shadow-dark: #120e0d;
  --btn-shadow-light: #322825;
  --btn-accent: #d52f32;
  --btn-accent-glow: rgba(213, 47, 50, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ==========================================================================
   PANTALLA SIN CONEXIÓN (OFFLINE)
   ========================================================================== */
.offline-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 11, 10, 0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.offline-overlay.active {
  display: flex !important;
}

.offline-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.offline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: 1rem;
}

.offline-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.8rem 0 1.5rem;
}

/* ==========================================================================
   NAVEGACIÓN RESPONSIVE Y CONTROLES
   ========================================================================== */
.hero {
  min-height: 100vh;
  background: 
    linear-gradient(180deg, rgba(15, 11, 10, 0.88) 0%, rgba(15, 11, 10, 0.7) 50%, #0f0b0a 100%),
    url("Imagenes/bar1.jpeg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 11, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}

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

.lang-dropdown select {
  appearance: none;
  background-color: var(--btn-bg);
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45em 2em 0.45em 0.8em;
  border: 1px solid var(--border);
  border-radius: 0.8em;
  cursor: pointer;
  box-shadow: inset 2px 2px 4px var(--btn-shadow-dark), inset -2px -2px 4px var(--btn-shadow-light);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  background-size: 1em;
  outline: none;
}

.lang-dropdown select:focus {
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.4rem;
}

.nav-links a {
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(213, 47, 50, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.4rem;
  height: 2.4rem;
  background-color: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 0.6em;
  padding: 0.5rem;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--btn-shadow-dark), -4px -4px 8px var(--btn-shadow-light);
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Content */
.hero-content {
  margin: auto;
  padding: 3rem 0;
  text-align: center;
  max-width: 780px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero h1,
.section-heading h2,
.reservation-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BOTONES NEUMÓRFICOS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.85em 1.6em;
  border: none;
  border-radius: 1em;
  background-color: var(--btn-bg);
  cursor: pointer;
  box-shadow: 8px 8px 16px var(--btn-shadow-dark), -8px -8px 16px var(--btn-shadow-light);
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  box-shadow: 10px 10px 20px var(--btn-shadow-dark), -10px -10px 20px var(--btn-shadow-light);
}

.btn:active {
  background-color: var(--btn-accent);
  color: #ffffff;
  transform: scale(0.96);
  box-shadow: 0px 0px 15px var(--btn-accent-glow);
}

.btn.primary {
  border: 1px solid rgba(213, 47, 50, 0.4);
}

.btn.sm {
  padding: 0.5em 1em;
  font-size: 0.8rem;
}

.btn-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIONES GENERALES Y CONTENIDO
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section.alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.intro-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.intro-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

/* ==========================================================================
   SHOWCASE / ESPECIALIDADES
   ========================================================================== */
.menu-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.menu-card-visual,
.menu-card-image,
.menu-card-carousel {
  height: 180px; 
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg);
}

.menu-card-visual {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(222, 177, 82, 0.12), rgba(150, 113, 48, 0.08));
}

.menu-card--tapas .menu-card-visual {
  background: linear-gradient(135deg, rgba(191, 128, 45, 0.18), rgba(90, 66, 36, 0.12));
}

.menu-card--cocktails .menu-card-visual {
  background: linear-gradient(135deg, rgba(201, 144, 77, 0.18), rgba(60, 40, 31, 0.18));
  padding: 0.5rem;
  box-sizing: border-box;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.menu-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .menu-card-visual,
  .menu-card-image,
  .menu-card-carousel {
    height: 140px;
  }

  .menu-card-content {
    padding: 1rem;
  }

  .menu-card-content h3 {
    font-size: 1.1rem;
  }

  .menu-card-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

.badge-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 5;
}

.menu-card-content {
  padding: 1.25rem;
  flex-grow: 1;
}

.menu-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.menu-card-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   CARRUSELES (Galería y Tarjetas)
   ========================================================================== */
.carousel-shell {
  position: relative;
}

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

.carousel-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.carousel,
.menu-card-carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface-alt);
}

.menu-card-carousel {
  height: 380px;
  width: 100%;
}

.carousel-track {
  width: 100%;
  height: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

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

.menu-card-carousel .carousel-slide img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.carousel-controls,
.menu-card-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.6rem;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  pointer-events: auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: rgba(24, 19, 18, 0.7);
  backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
}

.carousel-btn:hover {
  background-color: rgba(34, 27, 25, 0.95);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.08);
}

.carousel-btn:active {
  background-color: var(--accent);
  color: #ffffff;
  transform: scale(0.95);
}

.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(15, 11, 10, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 4px;
}

/* ==========================================================================
   HORARIOS Y UBICACIÓN
   ========================================================================== */
.reservation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.reservation-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
}

.schedule-list {
  list-style: none;
  margin-top: 1rem;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.schedule-list li strong {
  color: var(--gold);
}

.address-text {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.map-wrapper {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
}

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

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid transparent;
  border-radius: 0.8em;
  padding: 0.8em 1em;
  outline: none;
  box-shadow: inset 3px 3px 6px var(--btn-shadow-dark), inset -3px -3px 6px var(--btn-shadow-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #f87171 !important;
}

.field-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1em;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-status {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.6em;
  padding: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-status.success {
  padding: 0.8em;
  opacity: 1;
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
}

.form-status.error {
  padding: 0.8em;
  opacity: 1;
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
}

/* ==========================================================================
   MODAL DE LA CARTA
   ========================================================================== */
.menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 1rem;
}

.menu-modal[aria-hidden="false"],
.menu-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.menu-modal-panel {
  position: relative;
  z-index: 10;
  width: min(650px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.12);
  color: var(--text);
}

.menu-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.menu-modal-close:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.menu-modal-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.menu-modal-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  margin: 0.2rem 0;
}

.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.menu-list-container {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-list-container::-webkit-scrollbar {
  width: 6px;
}
.menu-list-container::-webkit-scrollbar-thumb {
  background: var(--surface-card);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Bloques de Categorías de la Carta */
.menu-category {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 12px;
}

.menu-category.highlight-category {
  border: 1.5px solid rgba(241, 196, 15, 0.4);
  background: linear-gradient(180deg, var(--surface-alt) 0%, rgba(241, 196, 15, 0.05) 100%);
}

.category-title.gold {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.4rem;
}

/* Filas de Productos */
.menu-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.menu-item-row:hover {
  border-color: rgba(241, 196, 15, 0.3);
}

.item-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.item-price {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(241, 196, 15, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(241, 196, 15, 0.25);
}

.item-price-consult {
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: rgba(213, 47, 50, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(213, 47, 50, 0.3);
}

/* ==========================================================================
   COOKIES & FOOTER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
  z-index: 200;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 11, 10, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .carousel-slide img {
    height: 280px;
  }

  .menu-card-carousel,
  .menu-card-image {
    height: 280px;
  }

  .carousel-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  .menu-modal-panel {
    padding: 1.5rem 1rem !important;
  }

  .menu-item-row {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }

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

  .item-price {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }
}