/* ================================================================
   VoltLlano S.A.S. — Design Tokens v6.1
   Palette: logo oficial #1B6EC2 · #2DBFA8 · #7FD93D
   ================================================================ */

:root {
  /* Brand colors — extraídas del logo oficial */
  --vl-primary:   #1B6EC2;
  --vl-primary-h: #1558a0;
  --vl-teal:      #2DBFA8;
  --vl-teal-h:    #229d8e;
  --vl-green:     #7FD93D;
  --vl-green-h:   #67b830;
  /* accent alias → teal for most UI uses */
  --vl-accent:    #2DBFA8;
  --vl-accent-h:  #229d8e;

  /* Dark palette */
  --vl-dark:      #0A1929;
  --vl-dark-2:    #0D2137;
  --vl-dark-3:    #132d47;
  --vl-card:      #0F2640;
  --vl-border:    rgba(255,255,255,0.09);
  --vl-border-h:  rgba(45,191,168,0.35);
  --vl-light:     #F5F7FA;
  --vl-muted:     #7B93B0;
  --vl-success:   #00D084;
  --vl-warning:   #FFB800;
  --vl-danger:    #FF4D4D;

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-glow:  0 0 40px rgba(27, 110, 194, 0.28);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-teal:  0 0 24px rgba(45, 191, 168, 0.22);
  --shadow-green: 0 0 24px rgba(127, 217, 61, 0.2);
  /* legacy alias */
  --shadow-cyan:  var(--shadow-teal);

  /* Gradient firma VoltLlano */
  --vl-gradient: linear-gradient(135deg, #1B6EC2 0%, #2DBFA8 50%, #7FD93D 100%);

  /* Transitions */
  --transition:     all 0.2s ease;
  --transition-md:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base resets ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--vl-dark);
  color: var(--vl-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--vl-teal); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Gradient text ──────────────────────────────────────────── */
.gradient-text {
  background: var(--vl-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-md);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--vl-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(27,110,194,0.4);
}
.btn-primary:hover {
  background: var(--vl-primary-h);
  box-shadow: 0 8px 32px rgba(27,110,194,0.6);
  transform: translateY(-2px);
  color: #fff;
}
.btn-accent {
  background: var(--vl-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-teal);
}
.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(45,191,168,0.4);
  color: #fff;
}
.btn-green {
  background: var(--vl-green);
  color: var(--vl-dark);
  font-weight: 700;
  box-shadow: var(--shadow-green);
}
.btn-green:hover {
  background: var(--vl-green-h);
  transform: translateY(-2px);
  color: var(--vl-dark);
}
.btn-outline {
  background: transparent;
  color: var(--vl-light);
  border: 1.5px solid var(--vl-border);
}
.btn-outline:hover {
  border-color: var(--vl-teal);
  color: var(--vl-teal);
  background: rgba(45,191,168,0.06);
}
.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover {
  background: #1da851;
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  transform: translateY(-2px);
  color: #fff;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--vl-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-md);
}
.card:hover {
  border-color: var(--vl-border-h);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--vl-muted);
  max-width: 640px;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,25,41,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vl-border);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(10,25,41,0.98); box-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo img {
  height: 60px; width: auto; max-width: 200px;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: screen;
  transition: transform 0.2s ease;
}
.nav-logo:hover img { transform: scale(1.06); }
@media (prefers-color-scheme: light) {
  .nav-logo img { mix-blend-mode: normal; }
}
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--vl-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--vl-light); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cart-btn {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--vl-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  color: var(--vl-light);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-cart-btn:hover { border-color: var(--vl-teal); color: var(--vl-teal); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--vl-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  display: none;
}
.cart-badge.has-items { display: flex; }
/* nav-mobile hidden by default — JS removes hidden attr, so we enforce this */
.nav-mobile { display: none; }

.nav-hamburger {
  display: none;
  background: none; border: none;
  color: var(--vl-light); cursor: pointer;
  font-size: 1.4rem; padding: 0.25rem;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  /* Overlay slide-in lateral — ya no empuja el contenido */
  .nav-mobile {
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    background: var(--vl-dark-2);
    border-left: 1px solid var(--vl-border);
    box-shadow: -8px 0 32px rgba(0,0,0,0.55);
    padding: 88px 20px 24px;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.4,0,0.2,1);
    z-index: 1500;
    display: flex !important; /* anula atributo hidden */
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
  }
  .nav-mobile.is-open { transform: translateX(0); }

  .nav-mobile a {
    display: flex; align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--vl-muted);
    text-decoration: none;
    transition: background 180ms;
  }
  .nav-mobile a:hover { color: var(--vl-light); background: var(--vl-dark-3); }
  .nav-mobile a.active { color: var(--vl-teal); background: rgba(45,191,168,0.08); }

  /* Backdrop oscuro */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,25,41,0.72);
    backdrop-filter: blur(3px);
    z-index: 1400;
    opacity: 0; pointer-events: none;
    transition: opacity 200ms ease;
  }
  .nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

  /* Bloquear scroll cuando menú abierto */
  body.nav-open { overflow: hidden; }
}

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 95vw;
  background: var(--vl-dark-2);
  border-left: 1px solid var(--vl-border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--vl-border);
  flex-shrink: 0;
}
.cart-header h2 { font-size: 1.1rem; font-weight: 700; }
.cart-close-btn {
  background: none; border: none;
  color: var(--vl-muted); cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  transition: var(--transition);
}
.cart-close-btn:hover { color: var(--vl-light); }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty {
  text-align: center; padding: 3rem 0;
  color: var(--vl-muted);
}
.cart-empty svg { margin: 0 auto 1rem; opacity: 0.3; }
.cart-item {
  display: flex; gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--vl-border);
}
.cart-item-img {
  width: 56px; height: 56px;
  object-fit: contain;
  background: var(--vl-dark-3);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  padding: 4px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.25rem; }
.cart-item-sku { font-size: 0.7rem; color: var(--vl-muted); font-family: var(--font-mono); }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.qty-btn {
  background: var(--vl-dark-3); border: 1px solid var(--vl-border);
  border-radius: 6px; width: 28px; height: 28px;
  color: var(--vl-light); cursor: pointer; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--vl-teal); color: var(--vl-teal); }
.qty-num { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--vl-teal); white-space: nowrap; }
.cart-remove { background: none; border: none; color: var(--vl-muted); cursor: pointer; font-size: 1rem; margin-left: auto; }
.cart-remove:hover { color: var(--vl-danger); }
.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--vl-border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between;
  margin-bottom: 1rem;
}
.cart-total-label { font-size: 0.9rem; color: var(--vl-muted); }
.cart-total-value { font-size: 1.25rem; font-weight: 800; color: var(--vl-teal); }
.cart-note { font-size: 0.72rem; color: var(--vl-muted); margin-top: 0.75rem; line-height: 1.4; }

/* ── Toast ───────────────────────────────────────────────────── */
.vl-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(4rem);
  background: var(--vl-teal);
  color: var(--vl-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 300;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(45,191,168,0.4);
}
.vl-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-hot { background: rgba(255,184,0,0.15); color: var(--vl-warning); border: 1px solid rgba(255,184,0,0.3); }
.badge-new { background: rgba(45,191,168,0.12); color: var(--vl-teal); border: 1px solid rgba(45,191,168,0.3); }
.badge-retie { background: rgba(0,208,132,0.1); color: var(--vl-success); border: 1px solid rgba(0,208,132,0.25); }
.badge-promo { background: rgba(127,217,61,0.12); color: var(--vl-green); border: 1px solid rgba(127,217,61,0.3); }

/* ── Compare bar (comparator) ────────────────────────────────── */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--vl-dark-2);
  border-top: 2px solid var(--vl-primary);
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  z-index: 90;
  transform: translateY(100%);
  transition: var(--transition-md);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-slots { display: flex; gap: 0.5rem; flex: 1; flex-wrap: wrap; }
.compare-slot {
  background: var(--vl-dark-3);
  border: 1px dashed var(--vl-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem; color: var(--vl-muted);
  min-width: 120px;
}
.compare-slot.filled {
  border-color: var(--vl-primary);
  color: var(--vl-light);
  background: rgba(27,110,194,0.08);
}

/* ── Tech detail (removed — specs only in product modal) ──────── */

/* ── WhatsApp float button ───────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 89;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition-md);
  cursor: pointer;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: wa-pulse 2s ease-out infinite;
}
.wa-float-tip {
  position: absolute; right: 110%; bottom: 50%;
  transform: translateY(50%);
  background: var(--vl-dark-2);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.wa-float-tip::after {
  content: '';
  position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--vl-border);
}
.wa-float.tip-visible .wa-float-tip { opacity: 1; }
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--vl-dark-2);
  border-top: 1px solid var(--vl-border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  color: var(--vl-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer-logo { height: 32px; margin-bottom: 0.75rem; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vl-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: var(--vl-muted); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--vl-light); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--vl-dark-3);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--vl-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--vl-teal);
  color: var(--vl-teal);
  background: rgba(45,191,168,0.06);
}
.footer-bottom {
  border-top: 1px solid var(--vl-border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { color: var(--vl-muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--vl-muted); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--vl-teal); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(27,110,194,0.3); }
  50%       { box-shadow: 0 0 40px rgba(27,110,194,0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes charge-fill {
  0%   { height: 0%; }
  100% { height: 100%; }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }


/* ── Comparator modal ────────────────────────────────────────── */
.comparator-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(10,25,41,0.88);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.comparator-modal.open { opacity: 1; pointer-events: auto; }
.comparator-inner {
  background: var(--vl-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}
.comparator-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.comparator-header h2 { font-size: 1.2rem; font-weight: 800; }
.comparator-close { background: none; border: none; color: var(--vl-muted); cursor: pointer; font-size: 1.5rem; }
.comparator-grid { display: grid; gap: 1rem; }
.comparator-row { display: grid; gap: 0.5rem; border-bottom: 1px solid var(--vl-border); padding-bottom: 0.75rem; }
.comparator-row-label { font-size: 0.78rem; color: var(--vl-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.comparator-row-vals { display: flex; gap: 0.75rem; }
.comparator-val { flex: 1; font-size: 0.9rem; font-weight: 600; }

/* ── Product detail dialog ───────────────────────────────────── */
#vl-product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
#vl-product-dialog { animation: dlg-in .2s ease; }
@keyframes dlg-in { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
@media (max-width: 540px) {
  #vl-product-dialog > div:last-child { grid-template-columns: 1fr !important; }
}

/* ── Savings calculator ──────────────────────────────────────── */
.savings-section { background: var(--vl-dark-2); }
.savings-wrap { max-width: 760px; margin: 0 auto; }
.savings-slider-wrap { margin: 2rem 0; }
.savings-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--vl-muted); margin-bottom: 0.5rem; }
.savings-val { font-family: var(--font-mono); color: var(--vl-light); font-weight: 600; }
input[type=range].vl-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--vl-dark-3);
  border-radius: 3px; cursor: pointer; outline: none;
}
input[type=range].vl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--vl-gradient);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(45,191,168,0.5);
}
.savings-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
.savings-result-card {
  background: var(--vl-dark-3);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.savings-result-card .label { font-size: 0.78rem; color: var(--vl-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.savings-result-card .value { font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); }
.savings-result-card.highlight { border-color: var(--vl-green); background: rgba(127,217,61,0.06); }
.savings-result-card.highlight .value { color: var(--vl-green); }

/* ── Coverage map ────────────────────────────────────────────── */
.map-tooltip {
  position: absolute;
  background: var(--vl-card);
  border: 1px solid var(--vl-border-h);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-card);
  max-width: 200px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip strong { display: block; margin-bottom: 0.25rem; color: var(--vl-teal); }
.map-path { transition: fill 0.2s ease, filter 0.2s ease; cursor: pointer; }
.map-path:hover { filter: brightness(1.3); }

/* ── Page top padding (fixed nav) ─────────────────────────────── */
.page-top { padding-top: 64px; }

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — breakpoints unificados
   390 / 480 / 600 / 768 / 900
   ══════════════════════════════════════════════════════════════ */

/* ── Calculadora de ahorro ── */
@media (max-width: 768px) {
  .savings-results { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .savings-result-card .value { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .savings-results { grid-template-columns: 1fr; }
}

/* ── Mapa de cobertura ── */
@media (max-width: 900px) {
  .map-tooltip { display: none; }
  .coverage-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  #coverage-map { min-height: 280px !important; }
}

/* ── Modal de producto (full-screen en mobile) ── */
@media (max-width: 600px) {
  #vl-product-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    height: 100dvh;
    border-radius: 0 !important;
    margin: 0;
    padding: 0;
  }
}

/* ── Comparador mobile ── */
@media (max-width: 600px) {
  .comparator-inner { padding: 1.25rem; }
  .comparator-inner .comparator-grid { overflow-x: auto; }
}
@media (max-width: 480px) {
  .compare-bar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .compare-bar-slots { flex-wrap: wrap; }
}

/* ── Cart drawer mobile ── */
@media (max-width: 480px) {
  .cart-drawer { width: 100vw; max-width: 100vw; }
}

/* ── Botones flotantes (WA + Chat) no se enciman ── */
@media (max-width: 480px) {
  .wa-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  /* TODO(post-merge): remover si Volty v2 (#volty-mascot) funciona OK.
     Reglas del Volty viejo (js/live-chat.js) comentadas el 2026-05-25
     para resolver duplicacion visual. js/live-chat.js fue desreferenciado
     de las 6 paginas activas en el mismo commit.
  #vl-chat-trigger { bottom: 4.75rem; right: 1rem; width: 46px; height: 46px; font-size: 1.15rem; }
  #vl-live-chat { right: 0.5rem !important; bottom: 8rem !important; width: calc(100vw - 1rem) !important; }
  #vl-live-chat > div { width: 100% !important; max-height: 65vh; display: flex; flex-direction: column; }
  #vl-chat-msgs { flex: 1; min-height: 0; }
  */
}

/* ── Props grid (3 columnas → 1 en mobile) ── */
@media (max-width: 768px) {
  .props-grid { grid-template-columns: 1fr; gap: 1rem; }
  .prop-card { padding: 1.25rem; }
}

/* ── Container padding en mobile ── */
@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ── Stats bar mobile ── */
@media (max-width: 390px) {
  .stat-num { font-size: 1.6rem; }
}

/* ════════════════════════════════════════════════════════════════
   V6.5 — FIXES REALES (2026-05-21)
   ════════════════════════════════════════════════════════════════ */

/* ── FIX 1: Stack de botones flotantes definitivo ── */
.vl-floating-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  z-index: 8500;
}

/* WhatsApp button — keeps circle style */
.vl-whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 200ms ease;
  text-decoration: none;
  background: #25D366;
  color: white;
}

.vl-whatsapp-float:hover {
  transform: scale(1.08);
}

/* TODO(post-merge): remover si Volty v2 (#volty-mascot + .vl-volty-btn)
   funciona OK. Reglas del Volty viejo v6.7 comentadas el 2026-05-25
   para resolver duplicacion visual. El JS asociado (live-chat.js) ya
   no se carga en las 6 paginas activas.
.vl-chat-trigger {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 80px;
  height: 100px;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 15px rgba(168, 240, 80, 0.6));
  transition: transform 250ms ease, filter 250ms ease;
  text-decoration: none;
}

.vl-chat-trigger:hover {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 0 24px rgba(168, 240, 80, 0.9));
}

.vl-chat-trigger:active {
  transform: scale(1.05);
}

.vl-chat-trigger .vl-pulse-ring,
.vl-chat-trigger::before,
.vl-chat-trigger::after {
  display: none !important;
}
*/

.vl-volty-svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: vl-volty-float 3.5s ease-in-out infinite;
}

@keyframes vl-volty-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-5px) rotate(1deg); }
}

@keyframes vl-volty-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%            { transform: scaleY(0.1); }
  96%            { transform: scaleY(1); }
}

#volty-svg ellipse {
  animation: vl-volty-blink 5s infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* Pulse-ring se mantiene para WhatsApp float */
.vl-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: vl-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes vl-pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* TODO(post-merge): .vl-volty-tooltip legacy (estilo right:80px al lado
   del FAB viejo) comentado el 2026-05-25. El nuevo .vl-volty-tooltip
   esta definido en refactor-2026-05-24.css con estilo card + flecha
   apuntando al FAB. .vl-wa-tooltip no se usa en ningun HTML (CSS dead).
.vl-wa-tooltip,
.vl-volty-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vl-dark-2);
  color: var(--vl-light);
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  pointer-events: none;
  border: 1px solid var(--vl-teal);
}

.vl-volty-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--vl-teal);
}
*/

@media (max-width: 480px) {
  .vl-floating-stack { bottom: 16px; right: 16px; gap: 12px; }
  .vl-whatsapp-float { width: 52px; height: 52px; }
  /* TODO(post-merge): mobile override del Volty viejo, comentado 2026-05-25.
  .vl-chat-trigger { width: 64px; height: 80px; }
  */
}

/* ── FIX 2: Logo navbar móvil ── */
@media (max-width: 480px) {
  .nav-logo img { height: 48px !important; }
  .nav-inner { height: 64px !important; }
}

/* ── FIX 3: Botón Comparar sin truncar ── */
.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}
.product-actions > * { flex: 1 1 auto; min-width: 0; }
[data-compare-btn] { white-space: nowrap; flex-shrink: 0; min-width: fit-content; }

@media (max-width: 480px) {
  .product-actions { flex-direction: column; gap: 8px; }
  .product-actions .btn, .product-actions button { width: 100%; }
}

/* ── FIX 4: Modal detalle centrado ── */
.vl-product-dialog {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0;
  background: var(--vl-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 960px;
  width: 92vw;
  max-height: 88vh;
  overflow: hidden;
  color: var(--vl-light);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.vl-product-dialog::backdrop {
  background: rgba(10,25,41,0.85);
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .vl-product-dialog {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
}

.vl-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  color: var(--vl-muted); font-size: 1.4rem;
  cursor: pointer; z-index: 10;
  line-height: 1;
}

.vl-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 300px;
}

.vl-modal-media {
  background: var(--vl-dark-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 12px;
  border-right: 1px solid var(--vl-border);
}

.vl-modal-media img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.vl-modal-info {
  padding: 24px;
  overflow-y: auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vl-modal-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--vl-teal);
  color: var(--vl-dark);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vl-modal-sku {
  font-size: 11px;
  color: var(--vl-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 4px;
  margin-top: 12px;
}

.vl-modal-info h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}

.vl-modal-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--vl-primary);
  margin: 0 0 8px;
}

.vl-modal-desc {
  color: var(--vl-muted);
  line-height: 1.6;
  font-size: 0.87rem;
  margin-bottom: 4px;
}

.vl-modal-section { margin-top: 24px; }
.vl-modal-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vl-teal);
  margin: 0 0 10px;
}

.vl-modal-specs { width: 100%; border-collapse: collapse; }

.vl-spec-key {
  color: var(--vl-muted);
  width: 45%;
  padding: 7px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.vl-spec-val {
  color: var(--vl-light);
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vl-modal-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vl-modal-chips li {
  padding: 5px 12px;
  background: var(--vl-dark-3);
  border: 1px solid var(--vl-border);
  border-radius: 16px;
  font-size: 12px;
}

.vl-modal-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vl-modal-list li {
  padding: 8px 12px;
  background: var(--vl-dark-3);
  border-left: 3px solid var(--vl-teal);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.vl-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-bottom: 8px;
}

.vl-modal-actions .btn { flex: 1; min-width: 120px; }

@media (max-width: 600px) {
  .vl-modal-grid { grid-template-columns: 1fr; }
  .vl-modal-media { border-right: none; border-bottom: 1px solid var(--vl-border); padding: 16px; }
  .vl-modal-media img { max-height: 160px; }
  .vl-modal-info { padding: 16px; }
}

/* ── FIX 5 (v6.10): Modo Técnico ELIMINADO — specs en modal de detalle ── */
/* Nav tech btn CSS también removido */

/* ── FIX 7: Volty animations ── */
#volty-svg ellipse {
  animation: vl-blink 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes vl-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%            { transform: scaleY(0.1); }
  96%            { transform: scaleY(1); }
}

/* ── FIX 8: Tabla comparativa enriquecida ── */
.vl-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vl-dark-2);
  border-radius: 12px;
  overflow: hidden;
  min-width: 480px;
}

.vl-compare-table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--vl-dark-3);
  color: var(--vl-muted);
  font-weight: 600;
  font-size: 12px;
  width: 22%;
  vertical-align: top;
}

.vl-compare-table td {
  padding: 11px 16px;
  border-left: 1px solid var(--vl-border);
  vertical-align: top;
  font-size: 13px;
  color: var(--vl-light);
}

.vl-compare-table tr:not(:last-child) { border-bottom: 1px solid var(--vl-border); }
.vl-compare-table tr:first-child td { text-align: center; }

.vl-compare-price {
  font-size: 18px;
  font-weight: 900;
  background: var(--vl-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .vl-compare-table th, .vl-compare-table td { padding: 8px; font-size: 11px; }
  .vl-compare-table th { font-size: 10px; }
}

/* ── Legal disclaimer footer ── */
.vl-legal-disclaimer {
  font-size: 11px;
  color: var(--vl-muted);
  line-height: 1.4;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--vl-border);
  opacity: 0.7;
}
