/* ========================================
   SCANDALO GASTROBAR — Design Tokens
   ======================================== */
:root {
  --gold: #c9a962;
  --gold-light: #e8d8a5;
  --gold-muted: rgba(201, 169, 98, 0.12);
  --burgundy: #6b1c23;
  --burgundy-light: #8b2233;
  --bg: #0b0b0d;
  --bg-elevated: #141417;
  --surface: #1a1a1f;
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(201, 169, 98, 0.35); color: #fff; }

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
p { color: var(--text-secondary); }
.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* ========================================
   Layout
   ======================================== */
.container { width: 90%; max-width: 1160px; margin: 0 auto; padding: 6rem 0; }
@media (max-width: 768px) { .container { padding: 4rem 0; } }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.accent-line {
  display: block;
  width: 50px;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ========================================
   Header / Nav
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(11, 11, 13, 0.93);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.header .nav-inner {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}
.logo span { color: var(--gold); }
.nav-list { display: flex; gap: 2.2rem; }
.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}
.nav-list a:hover { color: var(--text); }
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-list a:hover::after { width: 100%; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1100; }
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 72%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.6rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 1050;
    border-left: 1px solid var(--border);
  }
  .nav-list.open { right: 0; }
  .nav-list a { font-size: 1.05rem; color: var(--text); }
  .mobile-toggle { display: flex; }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 1rem 4rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(107, 28, 35, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.3), var(--bg)),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, 0.72);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-label {
  display: inline-block;
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: rgba(240, 240, 240, 0.75);
  font-weight: 300;
}
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: #0b0b0d;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 169, 98, 0.28);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 98, 0.06);
}
.btn-full { width: 100%; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ========================================
   Experience
   ======================================== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.exp-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.exp-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 169, 98, 0.3);
  box-shadow: var(--shadow);
}
.exp-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.2);
}
.exp-icon svg { width: 26px; height: 26px; }
.exp-card h3 { margin-bottom: 0.5rem; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
.exp-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ========================================
   Menu
   ======================================== */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}
.menu-tab {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
}
.menu-tab.active {
  background: var(--burgundy);
  border-color: var(--burgundy-light);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(107, 28, 35, 0.35);
}
.menu-tab:hover:not(.active) { border-color: rgba(201, 169, 98, 0.4); color: var(--text); }

.menu-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.menu-grid.active { display: grid; }
.menu-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(18px);
}
.menu-item.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.menu-item:hover { border-color: rgba(201, 169, 98, 0.25); box-shadow: var(--shadow); }
.menu-item-img {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #111;
}
.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.menu-item:hover .menu-item-img img { transform: scale(1.07); }
.menu-item-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.menu-item-header h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.2;
}
.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.menu-item p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; margin-top: auto; }

/* ========================================
   Reservas
   ======================================== */
.reservas-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-control::placeholder { color: rgba(160, 160, 160, 0.6); }
.form-control:focus {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.08);
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ========================================
   Eventos
   ======================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.event-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.event-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.event-card:hover .event-card-bg { transform: scale(1.06); }
.event-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.96) 22%, rgba(11, 11, 13, 0.4) 70%, transparent);
}
.event-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.8rem;
}
.event-card-content .date {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.event-card-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.event-card-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ========================================
   Galería
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.55rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #111;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, 0.25);
  transition: background 0.3s ease;
}
.gallery-item:hover::after { background: rgba(11, 11, 13, 0.05); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

@media (max-width: 992px) { .gallery-grid { grid-auto-rows: 190px; } }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.tall { grid-row: span 2; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-item.tall { grid-row: span 1; }
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 13, 0.96);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.lightbox.active { display: grid; }
.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--burgundy); border-color: var(--burgundy-light); }

/* ========================================
   Ubicación
   ======================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  position: relative;
  background: #111;
}
.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.55) contrast(1.1) brightness(0.78);
}
.location-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  flex: 1;
}
.info-block h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}
.info-block p, .info-block li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.info-block ul { list-style: none; }
.info-block li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.info-block li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 820px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-container { min-height: 320px; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.footer .logo { display: inline-block; margin-bottom: 1.2rem; font-size: 1.7rem; }
.footer .footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  background: var(--gold-muted);
}
.footer-copy {
  color: rgba(160, 160, 160, 0.6);
  font-size: 0.82rem;
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  z-index: 1500;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ========================================
   Utilities / Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .menu-item { transition: none; }
}
