:root {
  --navy: #1b2a44;
  --navy-dark: #10192b;
  --cream: #f4ecdd;
  --cream-soft: #faf6ee;
  --gold: #cc7a3c;
  --gold-light: #e8a55f;
  --ink: #23252b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 25, 43, 0.12);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top utility bar */
.topbar {
  background: var(--navy-dark);
  color: var(--cream);
  font-size: 0.82rem;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 16px;
  letter-spacing: 0.03em;
}
.topbar a:hover { color: var(--gold); }
.topbar-ig { display: inline-flex; align-items: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 25, 43, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--cream);
}
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--gold-light); font-weight: 600; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184,151,101,0.35); }
.btn-outline {
  border: 1.5px solid rgba(244,236,221,0.5);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(244,236,221,0.1); transform: translateY(-2px); }

/* Sections */
.section { padding: 88px 0; }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 40px;
}

/* Schedule */
.schedule-section { background: var(--cream-soft); }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.schedule-card {
  background: var(--white);
  border: 1px solid rgba(27,42,68,0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.schedule-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.schedule-card .hours {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.schedule-card.closed {
  background: var(--navy);
  color: var(--cream);
}
.schedule-card.closed h3 { color: var(--cream); }
.schedule-card.closed .hours { color: rgba(244,236,221,0.75); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; }

.notice {
  background: rgba(184,151,101,0.12);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--navy);
}

/* Menu teaser (homepage) */
.menu-teaser { background: var(--white); padding: 40px 0; }
.menu-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(27,42,68,0.08);
  border-bottom: 1px solid rgba(27,42,68,0.08);
  padding: 30px 0;
}
.menu-teaser-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy);
  margin: 4px 0 6px;
}
.menu-teaser-text p { color: rgba(35,37,43,0.65); font-size: 0.92rem; }
.menu-teaser .btn { white-space: nowrap; }

/* Carta page */
.menu-hero { background: var(--navy); color: var(--cream); padding: 56px 0 40px; text-align: center; }
.menu-hero .eyebrow { color: var(--gold-light); }
.menu-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.menu-hero-note {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(244,236,221,0.75);
  font-size: 0.92rem;
}

.menu-nav {
  position: sticky;
  top: 67px;
  z-index: 90;
  background: var(--cream-soft);
  border-bottom: 1px solid rgba(27,42,68,0.1);
  display: flex;
  justify-content: safe center;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 24px;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(27,42,68,0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.menu-nav a:hover, .menu-nav a.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.menu-section { background: var(--cream-soft); padding-top: 50px; }
.menu-category { margin-bottom: 54px; scroll-margin-top: 120px; }
.menu-category-head { margin-bottom: 22px; }
.menu-category-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--navy);
  margin-bottom: 6px;
}
.menu-category-note {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(204,122,60,0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

.menu-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px 40px; }
.menu-item { padding: 14px 0; border-bottom: 1px dashed rgba(27,42,68,0.12); }
.menu-item-row { display: flex; align-items: baseline; gap: 8px; }
.menu-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}
.menu-item-dots { flex: 1; border-bottom: 1px dotted rgba(27,42,68,0.3); margin-bottom: 5px; min-width: 20px; }
.menu-item-price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.98rem;
  white-space: nowrap;
}
.menu-item-desc { font-size: 0.86rem; color: rgba(35,37,43,0.6); margin-top: 4px; }
.menu-allergens { font-size: 0.68rem; color: rgba(35,37,43,0.45); margin-left: 3px; vertical-align: super; white-space: nowrap; }

.menu-legend {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(27,42,68,0.1);
}
.menu-legend h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.menu-legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  list-style: none;
  font-size: 0.82rem;
  color: rgba(35,37,43,0.65);
}
.menu-legend-list li { display: flex; align-items: center; }
.menu-legend-list li strong { color: var(--navy); margin-right: 4px; }
.menu-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  font-size: 1rem;
  background: rgba(204,122,60,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .menu-nav { top: 0; justify-content: flex-start; }
}

/* Gallery */
.gallery-section { background: var(--cream-soft); padding: 88px 0; overflow: hidden; }
.gallery-eyebrow, .gallery-title { text-align: center; padding: 0 24px; }
.gallery-title { margin-bottom: 40px; }

.gallery-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: gallery-scroll 32s linear infinite;
}
.gallery-track img {
  height: 320px;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.gallery-track-wrap:hover .gallery-track { animation-play-state: paused; }

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 780px) {
  .gallery-track img { height: 220px; }
}

/* Takeaway */
.takeaway-section { background: var(--navy); color: var(--cream); padding: 46px 0; }
.takeaway-section .eyebrow { color: var(--gold); }
.takeaway-section h2 { color: var(--cream); margin-bottom: 20px; }
.takeaway-grid { display: flex; justify-content: center; }
.takeaway-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(244,236,221,0.15);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 360px;
  text-align: center;
}
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.price span { font-size: 0.85rem; color: rgba(244,236,221,0.7); font-family: var(--font-body); font-weight: 400; }
.takeaway-days {
  list-style: none;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: rgba(244,236,221,0.9);
}
.takeaway-times { margin-bottom: 16px; font-size: 0.85rem; color: rgba(244,236,221,0.85); }
.takeaway-times p { margin-bottom: 2px; }

/* Location */
.location-section { background: var(--cream-soft); }
.location-note { margin-bottom: 26px; color: rgba(35,37,43,0.7); max-width: 560px; }
.map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-link { display: block; width: 100%; height: 100%; position: relative; }
.map-wrapper iframe { pointer-events: none; }
.map-overlay {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.map-link:hover .map-overlay { background: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }

.rating-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  background: var(--white);
  border: 1px solid rgba(27,42,68,0.08);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.rating-badge:hover { transform: translateY(-2px); }
.rating-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.rating-text { font-size: 0.9rem; color: var(--navy); }
.rating-text strong { color: var(--gold); }

/* Reviews */
.reviews-section { background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.review-card {
  position: relative;
  background: var(--cream-soft);
  border: 1px solid rgba(27,42,68,0.08);
  border-radius: var(--radius);
  padding: 26px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.review-author { font-weight: 600; color: var(--navy); font-size: 0.9rem; }

.review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.review-media-item {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(27,42,68,0.1);
}

.review-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 0.9rem;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.review-delete:hover { opacity: 0.9; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.media-note-error { background: rgba(200,60,60,0.12); border-left-color: #c83c3c; }

/* Carrusel de reseñas (más de 3): se mueve al contrario que la galería de fotos */
.reviews-track-wrap {
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviews-scroll 32s linear infinite;
}
.reviews-track .review-card {
  width: 300px;
  flex-shrink: 0;
}
.reviews-track-wrap:hover .reviews-track { animation-play-state: paused; }

@keyframes reviews-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
}

.reviews-empty {
  text-align: center;
  color: rgba(35,37,43,0.55);
  padding: 30px 0;
  font-style: italic;
}

.review-form-wrap {
  max-width: 480px;
  margin: 40px auto 0;
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.review-form-wrap h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(35,37,43,0.5);
  margin-top: 4px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(27,42,68,0.15);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  resize: vertical;
}
.form-row input[type="text"]:focus,
.form-row textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 1.8rem;
}
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
  color: rgba(27,42,68,0.2);
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--gold);
}

.form-row input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
  color: var(--navy);
}
.form-row input[type="file"]::file-selector-button {
  border: 1px solid rgba(27,42,68,0.15);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--navy);
  margin-right: 10px;
  cursor: pointer;
}
.form-row input[type="file"]::file-selector-button:hover { background: var(--cream-soft); }

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  font-size: 0.68rem;
  color: rgba(35,37,43,0.65);
  text-align: center;
}
.media-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(27,42,68,0.1);
}
.media-item-file {
  font-size: 1.8rem;
}
.media-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

.review-form button { width: 100%; }
.review-form-note {
  font-size: 0.78rem;
  color: rgba(35,37,43,0.55);
  text-align: center;
  margin-top: 12px;
}
.media-note {
  background: rgba(184,151,101,0.15);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 0.82rem;
  text-align: left;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(244,236,221,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
}
.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.footer-legal {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(244,236,221,0.12);
}
.footer-legal a { font-size: 0.78rem; color: rgba(244,236,221,0.5); }
.footer-legal a:hover { color: var(--gold); }

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}
.legal-content h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 8px;
}
.legal-content .legal-updated {
  color: rgba(35,37,43,0.55);
  font-size: 0.85rem;
  margin-bottom: 36px;
}
.legal-content h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.25rem;
  margin: 34px 0 12px;
}
.legal-content p, .legal-content li { color: var(--ink); font-size: 0.96rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content .placeholder {
  background: rgba(184,151,101,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 2px solid var(--gold);
  }
  .main-nav.open { max-height: 340px; }
  .main-nav a { width: 100%; text-align: center; padding: 16px; border-top: 1px solid rgba(244,236,221,0.08); }
  .nav-toggle { display: flex; }
  .topbar { gap: 18px; font-size: 0.75rem; }
}
