/* ============================================================
   Vox3l - Estilo tipo "Bambu Lab" · tema oscuro
   Acentos azul/rosado · layout claro (Bambu) con superficies dark
   ============================================================ */

:root {
  --bg: #0e1524;
  --bg-alt: #121b2f;
  --surface: #16213a;
  --surface-2: #1b2743;
  --border: rgba(255, 255, 255, .09);
  --navy-ink: #0a0f1a;
  --text: #e8ecf5;
  --text-muted: #8b98ac;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: #93c5fd;
  --pink: #ec4899;
  --pink-deep: #db2777;
  --pink-soft: #f9a8d4;
  --grad: linear-gradient(135deg, #3b82f6, #ec4899);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --shadow: 0 24px 55px -26px rgba(0, 0, 0, .65);
  --shadow-sm: 0 12px 32px -20px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* [hidden] siempre oculta el elemento. Necesario para los bloques que definen
   su propio display (p. ej. .tesoro-layout, con display:grid): sin esto, el
   atributo hidden quedaría pisado por la regla de la clase. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  background-clip: padding-box;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgba(59, 130, 246, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(236, 72, 153, .55); }

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--blue-soft);
  border-color: var(--blue);
}
.btn-outline:hover { background: rgba(59, 130, 246, .14); transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 21, 36, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: 0 12px 34px -24px rgba(0, 0, 0, .8); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(255, 255, 255, .18));
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.btn) {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .18s ease;
  position: relative;
}
.main-nav > a:not(.btn):hover { color: var(--blue-soft); }
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .2s ease;
}
.main-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--border);
  background: #06060d;
}
.hero-bg {
  position: absolute;
  inset: 0;
  transition: background .35s ease;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, .45) 0%, rgba(236, 72, 153, .16) 30%, transparent 100%),
    linear-gradient(225deg, rgba(59, 130, 246, .45) 0%, rgba(59, 130, 246, .16) 30%, transparent 100%),
    linear-gradient(180deg, #06060d 0%, #0a0a16 100%);
}
.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-watermark img {
  width: clamp(1500px, 150vw, 2600px);
  max-width: none;
  margin-top: 40px;
  mix-blend-mode: screen;
  opacity: .45;
  filter: blur(2px)
          drop-shadow(0 0 14px hsl(var(--wm-hue, 330) 90% 60%))
          drop-shadow(0 0 45px hsl(var(--wm-hue, 330) 90% 40%));
  transition: filter .3s ease;
  will-change: filter;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  margin-bottom: 34px;
}
.hero-logo-mark {
  height: clamp(160px, 21vw, 250px);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 44px rgba(255, 255, 255, .14));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .hero-accent {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text { font-size: 17.5px; color: rgba(255, 255, 255, .85); max-width: 580px; margin: 0 auto 34px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 58px; }

/* ---------- Carrusel de banners del hero ---------- */
.hero-slider {
  position: relative;
  max-width: 780px;
  margin: 0 auto 44px;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide a { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: rgba(10, 15, 26, .55);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease;
}
.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }
.hero-slider-btn:hover { background: rgba(10, 15, 26, .8); }
.hero-slider:hover .hero-slider-btn,
.hero-slider:focus-within .hero-slider-btn { opacity: 1; pointer-events: auto; }

.hero-slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-slider-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-slider-dot.is-active {
  background: var(--grad);
  transform: scale(1.2);
}

@media (hover: none) {
  .hero-slider-btn { opacity: 1; pointer-events: auto; }
}

.hero-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  padding: 16px 26px;
  min-width: 160px;
  backdrop-filter: blur(8px);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- Barra de beneficios ---------- */
.benefits-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 28px 0; }
.benefits-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 36px; }
.benefit-item { display: flex; align-items: center; gap: 14px; flex: 1 1 280px; max-width: 360px; }
.benefit-item > div { min-width: 0; }
.benefit-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(236,72,153,.18));
  border: 1px solid var(--border);
}
.benefit-item strong { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--text); }
.benefit-item span { font-size: 13px; color: var(--text-muted); }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-space-sm { padding: 60px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--blue-soft);
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .35);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.5px;
  color: #fff;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-muted); font-size: 16.5px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
  filter: saturate(.92) contrast(1.03);
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 22, .55) 100%);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-label {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 1;
  background: rgba(14, 21, 36, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 10px 20px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, .5);
  box-shadow: var(--shadow);
}
.about-card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(236,72,153,.2));
  border: 1px solid var(--border);
}
.about-card h3 { font-family: var(--font-display); font-size: 19px; color: #fff; margin-bottom: 10px; }
.about-card p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Distribuidor oficial / Ficha técnica ---------- */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: -18px auto 46px;
  max-width: 880px;
}
.brand-badge {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.brand-badge-mark {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  background: var(--grad);
}
.brand-badge strong { display: block; font-family: var(--font-display); font-size: 16.5px; color: #fff; }
.brand-badge span:last-child { font-size: 13px; color: var(--text-muted); }

.spec-head { text-align: center; margin-bottom: 30px; }
.spec-head h3 { font-family: var(--font-display); font-size: 24px; color: #fff; margin-bottom: 6px; }
.spec-note { font-size: 13px; color: var(--text-muted); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.spec-card h4 { font-family: var(--font-display); font-size: 15px; color: #fff; margin-bottom: 14px; }
.spec-card dl { display: flex; flex-direction: column; gap: 10px; }
.spec-card dl > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.spec-card dt { color: var(--text-muted); white-space: nowrap; }
.spec-card dd { color: #fff; text-align: right; font-weight: 600; }
.spec-card dd em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.spec-card-highlight {
  border-color: rgba(236, 72, 153, .55);
  background: linear-gradient(160deg, rgba(236, 72, 153, .14), rgba(59, 130, 246, .1)), var(--surface);
}
.spec-card-highlight h4 { color: var(--pink-soft); }
.spec-card-highlight dd strong { color: var(--pink-soft); }

.hs-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 34px auto 0;
  max-width: 820px;
  padding: 18px 22px;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14.5px;
}
.hs-note-icon { font-size: 20px; line-height: 1.3; }
.hs-note strong { color: #fff; }

/* ---------- Catálogo ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, .5);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.product-tag {
  position: absolute;
  top: 26px; left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #fff;
  background: var(--grad);
}
.product-card h3 { font-family: var(--font-display); font-size: 17px; color: #fff; margin-bottom: 6px; }
.product-card p { font-size: 13.5px; color: var(--text-muted); flex-grow: 1; }
.product-price { margin-top: 14px; font-size: 14px; }
.product-price s { color: var(--text-muted); margin-right: 8px; }
.product-price strong { font-family: var(--font-display); font-size: 20px; color: #fff; }
.product-price span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, .14);
  padding: 3px 8px;
  border-radius: 999px;
}
.product-card .btn {
  width: auto;
  align-self: flex-start;
  margin-top: 16px;
  padding: 10px 24px;
}

/* ---------- Packs ---------- */
.packs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pack-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pack-featured {
  border: 1.5px solid var(--blue);
  background:
    radial-gradient(ellipse at top, rgba(59,130,246,.14), transparent 60%),
    var(--surface);
}
.pack-ribbon {
  position: absolute;
  top: 0; right: 0;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 8px 18px;
  border-radius: 0 var(--radius) 0 14px;
}
.pack-card h3 { font-family: var(--font-display); font-size: 24px; color: #fff; margin-bottom: 10px; }
.pack-card > p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }
.pack-list { list-style: none; margin-bottom: 26px; }
.pack-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.pack-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--blue-soft);
  font-weight: 700;
}
.pack-price {
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.pack-price-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.pack-price strong {
  font-family: var(--font-display);
  font-size: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Instagram ---------- */
.instagram-section { text-align: center; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
a.contact-card:hover { border-color: rgba(59, 130, 246, .55); transform: translateX(4px); }
.contact-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 21px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(236,72,153,.2));
  border: 1px solid var(--border);
}
.contact-card strong { display: block; font-family: var(--font-display); font-size: 16.5px; color: #fff; }
.contact-card span { color: var(--text-muted); font-size: 14.5px; }
.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { display: block; filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.92); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); border-top: 1px solid var(--border); color: #b9c2d4; padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin: 16px 0 22px; max-width: 380px; }
.footer-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 10px 26px rgba(255, 255, 255, .14));
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #cdd6e4;
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover { border-color: var(--pink); color: #fff; }
.footer-col h4 { font-family: var(--font-display); font-size: 16px; color: #fff; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-col a:hover { color: var(--pink-soft); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(.92);
  transform-origin: right center;
  background: rgba(13, 18, 32, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.wa-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: rgba(13, 18, 32, .96);
  border-right: 1px solid rgba(255, 255, 255, .14);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.whatsapp-float:hover .wa-bubble,
.whatsapp-float:focus .wa-bubble,
.whatsapp-float.wa-open .wa-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Animación de aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .products-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .packs-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cat-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-140%);
    transition: transform .3s ease;
    z-index: 59;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: 12px 6px; font-size: 16px; color: var(--text); }
  .main-nav > a::after { display: none; }
  .main-nav .btn { margin-top: 8px; }

  .stat { min-width: 46%; flex: 1; }

  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .products-grid, .about-grid { grid-template-columns: 1fr; }
  .benefit-item { max-width: 100%; flex-basis: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-slider { aspect-ratio: 16 / 11; border-radius: var(--radius-sm); }
  .hero-stats { flex-direction: column; }
  .stat { width: 100%; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .spec-grid { grid-template-columns: 1fr; }
  .hs-note { flex-direction: column; }
}

/* ---------- Búsqueda del tesoro (página propia: tesoro.html) ---------- */
.tesoro-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }

.tesoro-mapa {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #0d1117;
}
#tesoro-mapa { height: 480px; width: 100%; }
.tesoro-mapa .leaflet-tile { filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.92); }
.tesoro-mapa .leaflet-container { background: #0d1117; }
.tesoro-mapa .leaflet-bar a { background: #12131c; color: #e2e8f0; border-color: var(--border); }
.tesoro-mapa .leaflet-control-attribution { background: rgba(6,6,13,.7); color: var(--text-muted); }
.tesoro-mapa .leaflet-control-attribution a { color: var(--blue-soft); }
.tesoro-mapa-nota { color: var(--text-muted); font-size: 12.5px; margin-top: 10px; }

.tesoro-lista {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 480px; overflow-y: auto; padding-right: 4px;
}
.tesoro-lista::-webkit-scrollbar { width: 8px; }
.tesoro-lista::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .3); border-radius: 999px; }
.tesoro-lista::-webkit-scrollbar-track { background: transparent; }
.tesoro-punto {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.tesoro-punto:hover { border-color: rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .06); }
.tesoro-punto.is-activo { border-color: rgba(236, 72, 153, .65); background: rgba(236, 72, 153, .08); }
.tesoro-punto .ic {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center; font-size: 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(236, 72, 153, .25));
  border: 1px solid var(--border);
}
.tesoro-punto .grow { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.tesoro-punto .nm { font-family: var(--font-display); font-size: 15px; color: #fff; white-space: nowrap; }
.tesoro-punto .dir {
  color: var(--blue-soft); font-size: 13px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tesoro-punto .dir:empty { display: none; }
.tesoro-punto .tag {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto;
}
.tesoro-punto .tag.is-on { color: #fbcfe8; background: rgba(236, 72, 153, .2); border: 1px solid rgba(236, 72, 153, .5); }
.tesoro-punto .tag.is-ok { color: #6ee7b7; background: rgba(16, 185, 129, .16); border: 1px solid rgba(16, 185, 129, .45); }
.tesoro-punto .tag.is-no { color: var(--text-muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }

/* Pin del mapa: un globito con el emoji del tesoro adentro */
.tesoro-pin { background: none; border: 0; }
.tesoro-pin-dot {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.tesoro-pin-ic { transform: rotate(45deg); font-size: 21px; line-height: 1; }
.tesoro-pin.is-activo .tesoro-pin-dot { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.tesoro-pin.is-simple .tesoro-pin-dot { background: linear-gradient(135deg, #374151, #6b7280); }

/* Estado sin tesoro activo */
.tesoro-vacio {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 46px 30px;
  max-width: 720px;
  margin: 0 auto;
}
.tesoro-vacio-emoji { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.tesoro-vacio h3 { font-family: var(--font-display); font-size: 24px; color: #fff; margin-bottom: 10px; }
.tesoro-vacio p { color: var(--text-muted); font-size: 15.5px; max-width: 520px; margin: 0 auto 22px; }

/* Tesoros activos: puede haber varios a la vez (todo en una sola línea) */
.tesoro-activos { display: flex; flex-direction: column; gap: 10px; }
.tesoro-activo-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.tesoro-activo-card .ic {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center; font-size: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(236, 72, 153, .25));
  border: 1px solid var(--border);
}
.tesoro-activo-card .info {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: baseline; gap: 10px;
  overflow: hidden; white-space: nowrap;
}
.tesoro-activo-card .msg {
  flex: 0 1 auto; min-width: 0;
  color: var(--text-muted); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tesoro-activo-card .nm {
  flex: 0 0 auto;
  font-family: var(--font-display); font-size: 15px; color: #fff; white-space: nowrap;
}
.tesoro-activo-card .dir {
  flex: 0 1 auto; min-width: 0;
  color: var(--blue-soft); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tesoro-activo-card .dir:empty { display: none; }
.tesoro-activo-card .btn { flex: 0 0 auto; font-size: 12.5px; padding: 7px 16px; }

@media (max-width: 640px) {
  .tesoro-activo-card { flex-wrap: wrap; }
  .tesoro-activo-card .info { flex: 1 1 calc(100% - 56px); flex-wrap: wrap; white-space: normal; }
  .tesoro-activo-card .msg, .tesoro-activo-card .dir { white-space: normal; overflow: visible; text-overflow: clip; }
  .tesoro-activo-card .btn { flex: 1 1 100%; margin-top: 6px; }
}

/* Historial de tesoros anteriores */
.tesoro-hist-head { margin-top: 64px; }
.tesoro-hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tesoro-hist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.tesoro-hist-card.is-found { border-color: rgba(16, 185, 129, .55); background: rgba(16, 185, 129, .06); }
.tesoro-hist-card .ic { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.tesoro-hist-card .nm { font-family: var(--font-display); font-size: 18px; color: #fff; margin-bottom: 4px; }
.tesoro-hist-card .dir { color: var(--blue-soft); font-size: 13.5px; margin-bottom: 8px; }
.tesoro-hist-card .meta { color: var(--text-muted); font-size: 12.5px; }
.tesoro-hist-badge {
  display: inline-block; margin-top: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.tesoro-hist-badge.is-found { color: #6ee7b7; background: rgba(16, 185, 129, .16); border: 1px solid rgba(16, 185, 129, .45); }
.tesoro-hist-badge.is-no { color: var(--text-muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }

@media (max-width: 900px) {
  .tesoro-layout { grid-template-columns: 1fr; gap: 20px; }
  #tesoro-mapa { height: 380px; }
  .tesoro-lista { max-height: 320px; }
  .tesoro-hist-head { margin-top: 44px; }
}