/* ============================================================
   BLUEMOON — ESTILOS GLOBALES
   Paleta: azul noche + dorado + perla (marca de lujo)
   Edita las variables de :root para cambiar toda la paleta.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy-deep: #0a0f24;
  --navy: #0f1837;
  --navy-light: #1b2957;
  --gold: #d4af37;
  --gold-light: #f1d78c;
  --cream: #f7f3ea;
  --text-muted: #b9c0d6;
  --radius: 14px;
  --max-width: 1180px;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.3px;
}

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

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Idioma bilingüe ---------- */
body.lang-es .lang-en { display: none; }
body.lang-en .lang-es { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,0.35); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,243,234,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp {
  background: #1ea952;
  color: #fff;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,169,82,0.35); }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 310;
  background: rgba(10,15,36,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo img { height: 58px; width: auto; display: block; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(247,243,234,0.3);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Carrito: ícono en el header ---------- */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.cart-toggle svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212,175,55,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.25), transparent 70%);
  animation: hero-glow-move 14s ease-in-out infinite alternate;
}
@keyframes hero-glow-move {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(-50px, 40px) scale(1.2); opacity: 0.55; }
}

/* Chispas doradas flotantes en el hero (se agregan por JS, ver injectHeroSparkles en main.js) */
.hero-sparkle {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold) 55%, transparent 75%);
  opacity: 0;
  pointer-events: none;
  animation-name: sparkle-float;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes sparkle-float {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.85; }
  85%  { opacity: 0.4; }
  100% { transform: translateY(-180px) scale(1); opacity: 0; }
}

/* Aparición suave de secciones y tarjetas al hacer scroll (ver initScrollReveal en main.js) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Video de fondo en el hero (por ahora solo en Inicio) */
.hero-has-video::before { z-index: 1; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212,175,55,0.18), transparent 60%),
    linear-gradient(180deg, rgba(10,15,36,0.55) 0%, rgba(10,15,36,0.8) 55%, var(--navy-deep) 100%);
}
.hero-has-video .hero-sparkle { z-index: 1; }
.hero-has-video .container { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-sparkle { display: none; }
  .hero::before { animation: none; }
  .reveal-on-scroll { transition: none; opacity: 1; transform: none; }
  .hero-video-bg { display: none; }
}
.hero-eyebrow {
  display: inline-block;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cream);
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  max-width: 560px;
  margin: 22px auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--navy); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--text-muted); margin-top: 14px; }

/* ---------- Category cards (Inicio) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 46px 34px;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  border: 1px solid rgba(212,175,55,0.18);
  transition: transform var(--transition), border-color var(--transition);
}
.category-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.category-card .icon { width: 52px; height: 52px; margin-bottom: 22px; }
.category-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.category-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Product grid ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(247,243,234,0.25);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.filter-btn.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--navy);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--navy-light);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10,15,36,0.75);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.4);
}
.product-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-weight: 600; color: var(--cream); font-size: 0.95rem; }
.product-direct-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.product-direct-link:hover { color: var(--gold); }

/* ---------- About / Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.value-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); margin-top: 8px; flex-shrink: 0;
}
.about-media {
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  border-radius: var(--radius);
  border: 1px solid rgba(212,175,55,0.18);
  padding: 40px;
  text-align: center;
}

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--navy-light);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 600;
  color: var(--cream);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-muted); margin: 0 0 18px; line-height: 1.6; }

/* ---------- Testimonios ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.testimonial-card {
  background: var(--navy-light);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p.quote { color: var(--cream); font-style: italic; line-height: 1.6; margin: 0 0 16px; }
.testimonial-card .author { color: var(--text-muted); font-size: 0.9rem; }
.testimonial-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border: 1px dashed rgba(212,175,55,0.3);
  border-radius: var(--radius);
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 60px;
}
.stat h3 { color: var(--gold); font-size: 2.2rem; margin-bottom: 6px; }
.stat p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}
.contact-card {
  background: var(--navy);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-item .icon-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(212,175,55,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon-wrap svg { width: 20px; height: 20px; }
.contact-info-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(247,243,234,0.2);
  background: var(--navy-deep);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(212,175,55,0.15);
  padding: 54px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247,243,234,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  background: #1ea952;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Carrito: panel lateral ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 300;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 94px;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: calc(100% - 94px);
  background: var(--navy);
  z-index: 301;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 40px rgba(0,0,0,0.4);
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.cart-header h3 { margin: 0; font-size: 1.2rem; }
.cart-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.cart-close:hover { color: var(--gold); }

.cart-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { color: var(--text-muted); text-align: center; margin-top: 50px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247,243,234,0.08);
  position: relative;
}
.cart-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; padding-right: 20px; }
.cart-item-info h4 { font-size: 0.9rem; margin: 0 0 4px; }
.cart-item-price { font-size: 0.8rem; color: var(--text-muted); }
.cart-qty { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-qty button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,234,0.3);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.cart-qty button:hover { border-color: var(--gold); color: var(--gold); }
.cart-qty span { font-size: 0.9rem; min-width: 14px; text-align: center; }

.cart-remove {
  position: absolute;
  top: 16px; right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.cart-remove:hover { color: var(--gold); }

.cart-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(212,175,55,0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .category-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    display: none;
  }
  .main-nav.open { display: flex; }
  .header-actions { gap: 10px; }
}
