/* =========================================================================
   Salones Leprett — multiespacio de eventos, estética oscura y elegante con
   acento esmeralda (paleta propia, distinta de la de LeCoin, para que cada
   sitio de Hugo se sienta propio aunque comparta estructura). Tipografía
   serif editorial para títulos + sans-serif limpia para cuerpo, botones tipo
   píldora, tarjetas con leve elevación sobre el fondo oscuro.
   ========================================================================= */

:root {
  --bg: #0e1210;
  --bg-alt: #151a17;
  --surface: #1a211d;
  --surface-2: #212a24;
  --ink: #eef2ee;
  --ink-muted: #a2ada4;
  --accent: #4fae82;
  --accent-dark: #357a5b;
  --accent-soft: rgba(79, 174, 130, 0.16);
  --line: rgba(238, 242, 238, 0.1);

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 50px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; }

.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 44px; }
.section-header.centered { text-align: center; }
.section-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.section-text { color: var(--ink-muted); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}

.prose p { margin: 0 0 1.1em; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0c150f;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(94%, 1120px);
  background: rgba(14, 18, 16, 0.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 26px; }
.nav-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
.nav-links a.nav-cta { background: var(--accent); color: #0c150f; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,18,16,0.35) 0%, rgba(14,18,16,0.35) 40%, rgba(14,18,16,0.94) 100%);
}

.hero-content { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 28px 90px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: 18px; max-width: 780px; color: var(--ink); }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 0 32px; color: var(--ink-muted); }

/* ---------- Nosotros ---------- */

.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.bio-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Instalaciones ---------- */

.salones-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 44px;
  padding: 0;
}
.salones-list li {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.06); }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Servicios ---------- */

.servicios-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.servicio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.servicio-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.servicio-card p { margin: 0; color: var(--ink); font-size: 0.95rem; }

/* ---------- Ubicación ---------- */

.ubicacion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ubicacion-address { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-top: 18px; }
.ubicacion-map img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; }

@media (max-width: 900px) {
  .ubicacion-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Formulario de consulta ---------- */

.consulta-form, .contact-form {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-subheading {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 18px;
  padding-top: 8px;
}
.form-subheading:first-child { padding-top: 0; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
@media (max-width: 640px) { .consulta-form, .contact-form { padding: 26px; } }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }

.form-status { margin: 14px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: #7cc47a; }
.form-status.error { color: #e08a7f; }

/* ---------- Footer ---------- */

.footer { background: #0a0d0b; color: rgba(238,242,238,0.8); padding: 56px 0 34px; text-align: center; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 0 0 8px; font-weight: 700; }
.footer-contact { font-size: 0.88rem; color: rgba(238,242,238,0.6); margin: 0 0 22px; }

.social-row { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; padding: 0; }
.social-row a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--accent); color: #0c150f; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.copyright { font-size: 0.82rem; color: rgba(238,242,238,0.45); margin: 0; }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); z-index: 90; transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox img { max-width: min(90vw, 1000px); max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- Sección del QR en la portada (distinto de la página /productos en sí) ---------- */

.productos-qr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: left;
}
.productos-qr-copy { max-width: 420px; }
.productos-qr-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .productos-qr-inner { flex-direction: column; text-align: center; }
  .productos-qr-copy { max-width: 100%; }
}

/* ---------- Productos (página /productos, la que abre el QR) ---------- */

.productos-hero {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 150px 0 60px;
  color: #ffffff;
}
.productos-hero .kicker { color: rgba(255, 255, 255, 0.75); }
.productos-hero .section-title { color: #ffffff; }

.productos-categoria { margin-bottom: 56px; }
.productos-categoria:last-child { margin-bottom: 0; }
.productos-categoria-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.productos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.producto-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.producto-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.producto-card-body { padding: 16px 18px; }
.producto-nombre { margin: 0 0 4px; font-weight: 500; }
.producto-precio { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 900px) { .productos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .productos-grid { grid-template-columns: 1fr; } }

.gallery-empty { text-align: center; color: var(--ink-muted); padding: 40px 20px; }
