:root {
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --card: #1a1a1a;
  --text: #f2f2f2;
  --text-dim: #b8b8b8;
  --pink: #f4a6c1;
  --mint: #8fe0c9;
  --green: #7fbf5e;
  --yellow: #f6d34a;
  --fire: #e8622c;
  --pink-deep: #d9527a;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.5em;
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fire);
  margin: 0 0 0.6em;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; }

#about .eyebrow { color: var(--pink); }
#menu .eyebrow { color: var(--mint); }
#gallery .eyebrow { color: var(--yellow); }
#reviews .eyebrow { color: var(--green); }

.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--fire), var(--pink-deep));
  color: #fff;
}
.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.brand-logo { height: 48px; display: block; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--yellow); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--fire), var(--pink-deep));
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* HERO */
.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244,166,193,0.22), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(143,224,201,0.20), transparent 45%),
    radial-gradient(circle at 25% 90%, rgba(127,191,94,0.20), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(246,211,74,0.20), transparent 45%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 0.4em; }
.hero-sub { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 2em; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ABOUT */
.about { padding: 100px 0; background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-media { background: #0a0a0a; border-radius: var(--radius); padding: 20px; }
.about-logo { width: 100%; display: block; }
.about-text {
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--pink);
  padding-left: 20px;
  margin: 0.8em 0 1.4em;
}
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}
.about-points li:nth-child(2)::before { background: var(--mint); }
.about-points li:nth-child(3)::before { background: var(--pink); }

/* MENU */
.menu { padding: 100px 0; }
.menu-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.menu-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2;
  background: var(--fire);
}
.menu-card:nth-child(2)::before { background: var(--pink); }
.menu-card:nth-child(3)::before { background: var(--green); }
.menu-card:nth-child(4)::before { background: var(--mint); }
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,0.4); }
.menu-card h3, .menu-card p { padding: 0 20px; }
.menu-card h3 { margin-top: 20px; font-size: 1.15rem; }
.menu-card p { color: var(--text-dim); font-size: 0.92rem; padding-bottom: 22px; }
.menu-card-media { height: 150px; width: 100%; }

.placeholder-tacos { background: url('assets/gallery/tacos.jpg') center/cover; }
.placeholder-pastry { background: url('assets/gallery/pastry.jpg') center/cover; }
.placeholder-tiramisu { background: url('assets/gallery/tiramisu.jpg') center/cover; }
.placeholder-holiday { background: url('assets/gallery/christmas.jpg') center/cover; }
.placeholder-events { background: url('assets/gallery/corporate.jpg') center/cover; }
.placeholder-molletes { background: url('assets/gallery/molletes.jpg') center/cover; }
.placeholder-pandemuertos { background: url('assets/gallery/pan-de-muertos.jpg') center/cover; }
.placeholder-desserts { background: url('assets/gallery/desserts.jpg') center/cover; }
.placeholder-chocolates { background: url('assets/gallery/chocolates.jpg') center/cover; }
.placeholder-chili { background: url('assets/gallery/chili.jpg') center/cover; }

/* GALLERY */
.gallery { padding: 100px 0; background: var(--bg-alt); }
.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  overflow: hidden;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 55%);
}
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2;
  background: var(--fire);
}
.gallery-item:nth-child(4n+2)::after { background: var(--pink); }
.gallery-item:nth-child(4n+3)::after { background: var(--mint); }
.gallery-item:nth-child(4n+4)::after { background: var(--yellow); }
.gallery-item span { position: relative; z-index: 1; }
.gallery-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 30px;
}

/* REVIEWS */
.reviews { padding: 100px 0; }
.reviews-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}
.review-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pink);
}
.review-card:nth-child(2)::before { background: var(--mint); }
.review-card:nth-child(3)::before { background: var(--yellow); }
.review-stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 12px; }
.review-text { color: var(--text-dim); font-style: italic; margin-bottom: 18px; }
.review-author { font-weight: 700; }
.review-loc { color: var(--text-dim); font-size: 0.85rem; }

/* CONTACT */
.contact { padding: 100px 0; background: var(--bg-alt); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-text, .contact-copy p:not(.eyebrow) { color: var(--text-dim); }
.contact-info { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; }
.contact-info span { color: var(--text-dim); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form select { appearance: auto; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--fire);
}

.date-picker { position: relative; }
#eventDateDisplay { width: 100%; cursor: pointer; caret-color: transparent; }
.date-picker-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}
.date-picker-panel.is-open { display: block; }
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.date-picker-header button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.date-picker-header button:hover { background: rgba(255,255,255,0.08); }
.date-picker-header button:disabled { opacity: 0.25; cursor: not-allowed; }
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-picker-weekday {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 4px 0 8px;
}
.date-picker-day {
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  background: transparent;
  border: none;
  font-family: inherit;
}
.date-picker-day:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.date-picker-day.is-empty { visibility: hidden; pointer-events: none; }
.date-picker-day.is-today { border: 1px solid var(--fire); }
.date-picker-day.is-selected {
  background: linear-gradient(135deg, var(--fire), var(--pink-deep));
  color: #fff;
  font-weight: 600;
}
.date-picker-day:disabled { color: rgba(255,255,255,0.2); cursor: not-allowed; }

.btn:disabled, .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  min-height: 1.2em;
}
.form-note.is-success { color: var(--green); }
.form-note.is-error { color: var(--fire); }

/* FOOTER */
.site-footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo { height: 44px; margin-bottom: 16px; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}
