/* =========================================================================
   Demo comercial de FrontyBack: fondo blanco monocromático, un solo acento
   (negro/carbón) en vez de color - mismo sistema de diseño que ya se usa en
   los sitios reales de clientes, pero sin ninguna marca/foto específica.
   ========================================================================= */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f2efeb;
  --surface: #ffffff;
  --surface-2: #f5f3f0;
  --ink: #1c1c1a;
  --ink-muted: #756f68;
  --gold: #1c1c1a;
  --gold-dark: #3a3632;
  --gold-soft: rgba(28, 28, 26, 0.06);
  --line: rgba(28, 28, 26, 0.1);

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

  --shadow-soft: 0 24px 50px rgba(20, 18, 15, 0.12);
  --shadow-card: 0 12px 30px rgba(20, 18, 15, 0.08);

  --font-display: "Jost", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --container: 1120px;
}


.demo-ribbon {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}
.demo-ribbon a { text-decoration: underline; }

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a453e, #2a2723);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 20px;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

* { 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: 400; line-height: 1.28; letter-spacing: 0.04em; 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); max-width: 700px; margin: 14px auto 0; }
.centered .section-text { margin-left: auto; margin-right: auto; }

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

.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;
  letter-spacing: 0.01em;
  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(--gold), var(--gold-dark));
  color: #ffffff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.18); }

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

.nav {
  position: fixed;
  /* 46px y no 18px: hay que dejar lugar para el cartel negro ".demo-ribbon" de arriba
     de todo (solo existe en este sitio demo, no en los sitios de clientes) - con 18px
     el nav tapaba la mitad del cartel y quedaba un resto de franja negra asomando. */
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(94%, 1080px);
  background: #ffffff;
  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: 8px 12px 8px 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 40px; width: auto; display: block; }

@media (max-width: 920px) {
  .nav-logo { height: 42px; }
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  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(--gold); color: #ffffff; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--gold-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: 860px) {
  .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; z-index: 0; 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(21,18,15,0.35) 0%, rgba(21,18,15,0.35) 40%, rgba(21,18,15,0.94) 100%);
}

.hero-content { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 28px 90px; width: 100%; }
/* Estos tres quedan siempre claros a propósito: la portada sigue teniendo la foto con
   velo oscuro debajo (ver .hero-veil), aunque el resto del sitio ahora sea blanco. */
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: rgba(255,255,255,0.85); 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: #ffffff; }
.hero-subtitle { font-size: 1.1rem; max-width: 560px; margin: 0 0 32px; color: rgba(255,255,255,0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Próximo evento ---------- */

.proximo-evento { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0; }
.proximo-evento-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.proximo-evento-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gold);
  background: var(--surface-2);
}
.proximo-evento-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* El widget de Instagram arma su propio iframe con un ancho fijo por inline style -
   esto lo recentra y lo deja encoger dentro del marco en vez de desbordar. */
.instagram-embed-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.instagram-embed-wrap iframe { max-width: 100% !important; }
/* Video vertical (Reels/Shorts): en vez de aplastarlo en un marco horizontal, se
   angosta y centra dentro del mismo marco - los costados quedan rellenos con el fondo
   de .proximo-evento-media en vez de dejar franjas negras del video. */
.video-frame.vertical { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.proximo-evento-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 800px) {
  .proximo-evento-inner { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 40px 28px; gap: 20px; }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: 0.03em; color: var(--gold); font-weight: 500; }
.stat-label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-top: 6px; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}

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

.servicios-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.servicio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.servicio-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.servicio-icon svg { width: 22px; height: 22px; }
.servicio-card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- Galería ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.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; } }

/* ---------- 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(--gold-dark), var(--gold));
  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; } }

/* ---------- Testimonios ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.testimonial-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-text { color: var(--ink); font-style: italic; margin: 0 0 16px; }
.testimonial-name { color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; }
.testimonials-empty { text-align: center; color: var(--ink-muted); margin-bottom: 40px; }

.testimonial-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.testimonial-form-wrap h3 { margin-bottom: 8px; }
.testimonial-form { text-align: left; margin-top: 24px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Formularios (compartido: testimonios y contacto) ---------- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.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(--gold); }

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

/* ---------- Contacto ---------- */

.contacto-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }
.contact-form { background: var(--surface); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

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

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

.footer { background: var(--bg-alt); color: var(--ink); padding: 56px 0 34px; text-align: center; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; color: var(--ink); margin: 0 0 22px; font-weight: 500; }

.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(28,28,26,0.06); color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--gold); color: #ffffff; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.copyright { font-size: 0.82rem; color: var(--ink-muted); 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; }
}
