/* ============================================================
   MESAS PREMIUM – Estilos principales
   Paleta: fondo oscuro carbón + dorado + blanco puro
   Fuentes: Playfair Display (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --dark:       #111111;
  --surface:    #1A1A1A;
  --border:     rgba(201,168,76,.18);
  --text:       #F0EDE8;
  --muted:      #888880;
  --radius:     12px;
  --shadow:     0 8px 40px rgba(0,0,0,.55);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--border);
  background: rgba(17,17,17,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold);
}
.logo span { color: var(--text); }

/* ============================================================
   WHATSAPP BUTTON (reutilizable)
   ============================================================ */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25D366;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: .65rem 1.3rem;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,.25);
  white-space: nowrap;
}
.wa-btn svg { flex-shrink: 0; }
.wa-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
}

.wa-btn-lg {
  font-size: 1rem;
  padding: .9rem 2.2rem;
}

/* ============================================================
   HERO – banner compacto para que las imágenes
   sean lo primero visible al cargar la página
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.6rem 5vw 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201,168,76,.08) 0%, transparent 80%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: .28rem .9rem;
  border-radius: 100px;
  margin-bottom: .7rem;
  animation: fadeUp .45s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 auto .5rem;
  animation: fadeUp .45s .07s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(.8rem, 1.5vw, .88rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto .9rem;
  animation: fadeUp .45s .13s ease both;
}

.hero-cta {
  margin-bottom: 0;
  animation: fadeUp .45s .18s ease both;
}

/* sin divider en versión compacta */
.hero-divider { display: none; }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.6rem 5vw 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .35rem;
}
.section-title span { color: var(--gold); }

.section-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.4rem;
}

/* ── Grid de imágenes ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 3rem;
}

/* ── Cada imagen ── */
.gallery-item {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
  line-height: 0; /* elimina espacio fantasma bajo img */
}

.gallery-item img {
  width: 100%;
  height: auto;      /* imagen completa, sin recorte */
  display: block;
  transition: transform .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,.3);
}

.gallery-zoom-icon {
  opacity: 0;
  transform: scale(.7);
  transition: var(--transition);
  background: var(--gold);
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Animación escalonada ── */
.gallery-item { animation: fadeUp .5s ease both; }
.gallery-item:nth-child(1)  { animation-delay: .04s; }
.gallery-item:nth-child(2)  { animation-delay: .08s; }
.gallery-item:nth-child(3)  { animation-delay: .12s; }
.gallery-item:nth-child(4)  { animation-delay: .16s; }
.gallery-item:nth-child(5)  { animation-delay: .20s; }
.gallery-item:nth-child(6)  { animation-delay: .24s; }
.gallery-item:nth-child(7)  { animation-delay: .28s; }
.gallery-item:nth-child(8)  { animation-delay: .32s; }
.gallery-item:nth-child(9)  { animation-delay: .36s; }
.gallery-item:nth-child(10) { animation-delay: .40s; }
.gallery-item:nth-child(11) { animation-delay: .44s; }
.gallery-item:nth-child(12) { animation-delay: .48s; }
.gallery-item:nth-child(13) { animation-delay: .52s; }
.gallery-item:nth-child(14) { animation-delay: .56s; }
.gallery-item:nth-child(15) { animation-delay: .60s; }
.gallery-item:nth-child(16) { animation-delay: .64s; }

/* ── CTA al final de la galería ── */
.gallery-cta-wrap {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.gallery-cta-wrap p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: 90vh;
}

.lb-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
}

.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--gold);
  color: #111;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.lb-close:hover { background: var(--gold-light); transform: scale(1.1); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lb-nav:hover { background: var(--gold); color: #111; }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }

.lb-caption {
  text-align: center;
  margin-top: .8rem;
  font-size: .82rem;
  color: var(--muted);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 500;
}

.wa-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: var(--transition);
}
.wa-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer strong { color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}