/* ==========================================================================
   GPS PORTÁTILES — Sistema de diseño
   --------------------------------------------------------------------------
   Tipografía:  Archivo (display) · Inter (texto) · JetBrains Mono (datos)
   Color:       Navy #0F172A · Rojo #FA1E4E · Verde #22C55E (uso restringido)
   Filosofía:   Bordes precisos, casi sin sombra, jerarquía por tipografía
                y espaciado — no por decoración. El verde y los datos en
                monoespaciada se reservan para estados reales (stock, señal,
                coordenadas), nunca como adorno.
   ========================================================================== */

:root {
  /* ---- Color (marca — igual en ambos temas) ---- */
  --navy-900: #0F172A;
  --navy-800: #172038;
  --navy-700: #1E293B;
  --blue-600: #FA1E4E;
  --blue-700: #C4123C;
  --blue-50:  rgba(250, 30, 78, 0.12);
  --blue-100: rgba(250, 30, 78, 0.22);
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-700: #15803D;
  --green-800: #14532D;
  --green-50: #F0FDF4;
  --amber-600: #B45309;
  --amber-50: #FFFBEB;
  --red-600: #DC2626;

  /* ---- Superficie y texto — claro por defecto ---- */
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --surface: rgba(11, 17, 32, 0.035);
  --surface-strong: rgba(11, 17, 32, 0.065);
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #111827;
  --text-muted: #5C6B7A;
  --text-faint: #64748B;

  /* ---- Tipografía ---- */
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- Escala espacial (base 4px) ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -4px rgba(15, 23, 42, 0.12);
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.15);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 420ms;

  --header-h-main: 72px;
  --header-h: var(--header-h-main);
  --content-w: 1240px;
}

/* Tema oscuro — se activa con el botón */
html[data-theme="dark"] {
  --white: #0B1120;
  --bg: #070B14;
  --bg-2: #0B1120;
  --nav-bg: rgba(7, 11, 20, 0.72);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F3F6FB;
  --text-muted: #A6B0C3;
  --text-faint: #6C7891;
}

/* Transición suave de colores al cambiar de tema */
html { transition: background-color 280ms ease; }
body, .site-header, .card-product, .buy-box, .chat-panel, .order-modal, .footer-brand,
.gallery-main, .quickfact, .review-card, .pdp-summary-block {
  transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease;
}

/* Degradado atmosférico sutil en las esquinas superiores (solo tema oscuro) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(60% 40% at 15% 0%, #150c18 0%, transparent 60%),
    radial-gradient(50% 35% at 100% 10%, rgba(250, 30, 78, 0.12) 0%, transparent 60%);
}


/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: visible; max-width: 100%; }

/* Scrollbar con el color de acento (igual a KnoxTrack) */
html { scrollbar-width: thin; scrollbar-color: var(--blue-600) var(--bg-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 999px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #ff4d73; }
::-webkit-scrollbar-corner { background: var(--bg-2); }
::-webkit-scrollbar-button { display: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
h1 { font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--content-w); margin: 0 auto; padding: 0 var(--sp-6); }
#main { scroll-margin-top: var(--header-h); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--sp-4); top: -60px; background: var(--navy-900); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); z-index: 999; font-weight: 600; font-size: 0.875rem;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------- */
/* Utilidades de texto                                                     */
/* ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-600);
}
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ---------------------------------------------------------------------- */
/* Botones                                                                  */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-whatsapp { background: var(--green-700); color: #fff; }
.btn-whatsapp:hover { background: var(--green-800); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.83rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600;
  color: var(--text); padding: 4px 2px; border-bottom: 1px solid transparent;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover svg { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 4px 9px; border-radius: var(--radius-xs);
}
.chip--sale { background: var(--navy-900); color: #fff; }
.chip--shipping { background: var(--green-600); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Header — dos niveles                                                    */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 500; background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h-main);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); height: 100%; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 1; min-width: 0; }
.brand-icon { display: block; height: 40px; width: auto; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-name strong { color: var(--blue-600); font-weight: 800; }

.main-nav { display: flex; gap: 2px; margin-left: var(--sp-2); }
.main-nav a {
  padding: 9px 13px; border-radius: var(--radius-sm); font-size: 0.89rem; font-weight: 500;
  color: var(--text); position: relative; transition: color var(--t-base) var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease);
}
.main-nav a:hover { color: var(--blue-600); }
.main-nav-call { display: none; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }

.header-search { flex: 1; max-width: 360px; position: relative; margin-left: auto; }
.header-search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); font-size: 0.87rem; color: var(--text);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.header-search input::placeholder { color: var(--text-faint); }
.header-search input:focus { border-color: var(--blue-600); background: var(--white); }
.header-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.icon-btn:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--search-mobile { display: none; }
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text);
  flex-shrink: 0; transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.theme-toggle:hover { border-color: var(--blue-600); background: var(--blue-50); }
.theme-icon { position: absolute; transition: transform 420ms var(--ease), opacity 260ms ease; }
.theme-icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: var(--sp-11) 0 var(--sp-11); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 0.86fr; gap: var(--sp-11); align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); margin-top: var(--sp-4); max-width: 15ch; }
.accent { color: var(--blue-600); }
.hero-sub { margin-top: var(--sp-4); font-size: 1.06rem; color: var(--text-muted); max-width: 42ch; line-height: 1.65; }
.hero-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--sp-8); margin-top: var(--sp-9); padding-top: var(--sp-7); border-top: 1px solid var(--border); }
.hero-stats dt { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--text); }
.hero-stats dd { margin: 3px 0 0; font-size: 0.8rem; color: var(--text-muted); }

/* Vitrina 3D — motivo propio de la marca: los prototipos reales de los
   dispositivos, girando, sustituyen al mockup genérico con gradiente. */
.hero-showcase { position: relative; width: 100%; height: 420px; }
.hero-showcase-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  opacity: 0; pointer-events: none; transition: opacity 900ms ease;
}
.hero-showcase-frame.is-active { opacity: 1; }

/* ---------------------------------------------------------------------- */
/* Franja de confianza                                                     */
/* ---------------------------------------------------------------------- */
.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; padding: var(--sp-6) 0; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.trust-item svg { width: 17px; height: 17px; color: var(--green-600); flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Secciones                                                                */
/* ---------------------------------------------------------------------- */
.section { padding: var(--sp-12) 0; }
.section-tight { padding: var(--sp-9) 0; }
.section-soft { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.55rem, 2.1vw, 1.95rem); margin-top: var(--sp-2); }
.section-head p { color: var(--text-muted); margin-top: var(--sp-2); max-width: 56ch; font-size: 0.96rem; }

/* ---------------------------------------------------------------------- */
/* Tarjeta de producto                                                      */
/* ---------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card-product {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card-product:hover { border-color: var(--border-strong); background: var(--surface-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-product__media {
  aspect-ratio: 4/3; background: var(--bg); display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--border); overflow: hidden;
}
.card-product__media svg { width: 46%; height: 46%; transition: transform var(--t-slow) var(--ease), opacity 300ms var(--ease); }
.card-product:hover .card-product__media svg { transform: scale(1.05); }
.card-product__media .chip { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-product__media .chip--shipping { left: 12px; top: 12px; }
.card-product__media .chip--sale { left: auto; right: 12px; top: 12px; }
.card-product__media.has-frame svg { opacity: 0; }
.card-product__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none; opacity: 0; animation: card-frame-in 500ms ease 60ms forwards;
}
@keyframes card-frame-in { to { opacity: 1; } }

.card-product__body { padding: var(--sp-5) var(--sp-5) var(--sp-2); display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-product__eyebrow { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.card-product__title { font-size: 1rem; line-height: 1.35; font-weight: 600; margin-top: 1px; }
.card-product__title a:hover { color: var(--blue-600); }

.card-product__bullets { margin-top: 2px; display: grid; gap: 4px; }
.card-product__bullets li { font-size: 0.8rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.card-product__bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-100); }

.rating-row { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 13px; height: 13px; }
.star-fill { color: #F59E0B; }
.star-empty { color: var(--border-strong); }
.rating-count { color: var(--text-faint); }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.price-old { font-size: 0.82rem; color: var(--text-faint); text-decoration: line-through; }
.price-currency { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint); letter-spacing: 0.04em; }

.stock-line { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; margin-top: 2px; }
.stock-line .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.stock-line--in { color: var(--green-700); }
.stock-line--in .dot { background: var(--green-500); }
.stock-line--back { color: var(--amber-600); }
.stock-line--back .dot { background: var(--amber-600); }

.card-product__actions { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ---------------------------------------------------------------------- */
/* Por qué elegirnos                                                       */
/* ---------------------------------------------------------------------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.benefit-card { background: var(--white); padding: var(--sp-7) var(--sp-6); }
.benefit-card h3 { font-size: 1.02rem; margin-top: var(--sp-3); }
.benefit-card p { font-size: 0.87rem; color: var(--text-muted); margin-top: 8px; line-height: 1.55; }

/* ---------------------------------------------------------------------- */
/* Estadísticas oscuras                                                    */
/* ---------------------------------------------------------------------- */
.stats-strip { background: var(--navy-900); color: #fff; padding: var(--sp-9) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { text-align: center; border-left: 1px solid var(--navy-700); padding: 0 var(--sp-4); }
.stats-grid > div:first-child { border-left: none; }
.stats-grid strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.stats-grid span { font-size: 0.78rem; color: #94A3B8; margin-top: 4px; display: block; }

/* ---------------------------------------------------------------------- */
/* Testimonios                                                             */
/* ---------------------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-6); display: flex; flex-direction: column; }
.testimonial-card .stars { margin-bottom: var(--sp-4); }
.testimonial-card p { font-size: 0.93rem; color: var(--text); line-height: 1.6; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 11px; margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; color: var(--blue-600); flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.85rem; }
.testimonial-author span { font-size: 0.76rem; color: var(--text-muted); }

/* ---------------------------------------------------------------------- */
/* Newsletter                                                              */
/* ---------------------------------------------------------------------- */

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #94A3B8; padding: var(--sp-10) 0 var(--sp-6); border-top: 4px solid var(--blue-600); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: var(--sp-8); }
.footer-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: var(--sp-4); }
.footer-brand svg { width: 25px; height: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer-grid > div:first-child p { font-size: 0.85rem; line-height: 1.65; max-width: 34ch; }
.site-footer h2 { color: #fff; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--sp-4); font-weight: 600; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { font-size: 0.86rem; transition: color var(--t-base) var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: var(--sp-5); }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--navy-700); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--blue-600); background: var(--navy-800); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--navy-800); margin-top: var(--sp-9); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: 0.78rem; }
.footer-bottom a:hover { color: #fff; }
.footer-payments { display: flex; gap: 8px; }
.footer-payments span {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px;
  border: 1px solid var(--navy-700); border-radius: 4px; font-family: var(--font-mono); font-size: 0.62rem; color: #7C8AA5; letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------- */
/* WhatsApp flotante / volver arriba                                       */
/* ---------------------------------------------------------------------- */
.wa-float {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 400;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green-600);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.wa-float:hover { background: var(--green-700); transform: translateY(-2px); }
.wa-float svg { width: 25px; height: 25px; color: #fff; }

.back-top {
  position: fixed; bottom: var(--sp-6); left: var(--sp-6); z-index: 400; width: 44px; height: 44px;
  border-radius: 50%; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.back-top:hover { border-color: var(--blue-600); }
.back-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-top svg { width: 17px; height: 17px; color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Migas de pan                                                            */
/* ---------------------------------------------------------------------- */
.breadcrumb { padding: var(--sp-4) 0; font-size: 0.82rem; color: var(--text-faint); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------------------- */
/* Cabecera de páginas internas                                            */
/* ---------------------------------------------------------------------- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-9) 0 var(--sp-8); }
.page-hero .eyebrow { margin-bottom: var(--sp-3); }
.page-hero h1 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); max-width: 26ch; }
.page-hero p { color: var(--text-muted); margin-top: var(--sp-3); max-width: 58ch; font-size: 0.98rem; }

/* ---------------------------------------------------------------------- */
/* Catálogo                                                                 */
/* ---------------------------------------------------------------------- */
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: var(--sp-8); align-items: start; }
.filters-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.filters-panel h2 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-4); font-weight: 600; }
.filter-group { padding: var(--sp-4) 0; border-top: 1px solid var(--border); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group h3 { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: var(--sp-3); }
.filter-option { display: flex; align-items: center; gap: 9px; font-size: 0.87rem; margin-bottom: var(--sp-3); cursor: pointer; color: var(--text); }
.filter-option input { accent-color: var(--blue-600); width: 15px; height: 15px; }
.filter-price-value { font-family: var(--font-mono); color: var(--blue-600); font-weight: 600; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); font-size: 0.86rem; color: var(--text-muted); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.results-bar select { height: 38px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.83rem; background: var(--white); }
.empty-state { text-align: center; padding: var(--sp-11) var(--sp-5); color: var(--text-muted); grid-column: 1 / -1; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }

/* ---------------------------------------------------------------------- */
/* Ficha de producto                                                       */
/* ---------------------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 400px; gap: var(--sp-4) var(--sp-9); align-items: start; }
.pdp-title-header { grid-column: 1 / -1; grid-row: 1; }
.pdp-gallery-block { grid-column: 1; grid-row: 2; }
.pdp-title-block { grid-column: 2; grid-row: 2 / span 2; }
.pdp-media-col { grid-column: 1; grid-row: 3; }

.gallery-main { aspect-ratio: 1/1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; position: relative; transition: border-color var(--t-base) var(--ease); }
.gallery-main.has-3d { cursor: default; }
.gallery-main.has-3d iframe { pointer-events: none; }
.gallery-shipping-badge { position: absolute; top: 14px; left: 14px; z-index: 3; }

.btn-360 {
  display: block; width: 100%; max-width: 300px; margin: var(--sp-4) auto 0;
  padding: 0; border: 0; background: transparent; border-radius: 999px;
  cursor: pointer; transition: transform var(--t-base) var(--ease);
}
.btn-360:hover { transform: translateY(-1px); }
.btn-360 img { display: block; width: 100%; height: auto; }

.viewer-360 { position: fixed; inset: 0; height: 100dvh; z-index: 900; background: rgba(7, 11, 20, 0.94); }
.viewer-360-frame { width: 100%; height: 100%; border: 0; }
.viewer-360-close {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right));
  z-index: 5; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.viewer-360-close:hover { background: rgba(255, 255, 255, 0.28); }
@media (max-width: 480px) {
  .viewer-360-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 40px; height: 40px; font-size: 1.5rem; }
  .brand-icon { height: 36px; }
  .brand-name { font-size: 1.1rem; }
  .header-actions { gap: 4px; }
}
.gallery-main iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery-main:hover { border-color: var(--border-strong); }
.gallery-main svg { width: 48%; height: 48%; transition: transform 260ms var(--ease); }
.gallery-main.zoomed svg { transform: scale(1.6); }
.gallery-zoom-hint { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); background: var(--white); border: 1px solid var(--border); padding: 4px 8px; border-radius: 4px; }

.pdp-title-header .eyebrow { margin-bottom: var(--sp-3); }
.pdp-title-header h1 { font-size: 1.7rem; }
.pdp-sku { font-family: var(--font-body); font-size: 0.98rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* Buy box — panel fijo estilo ficha comercial, contiene toda la decisión de compra */
.buy-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-6); position: sticky; top: calc(var(--header-h) + var(--sp-5)); background: var(--white); }
.buy-box .price-row { margin-top: var(--sp-2); }
.buy-box .price { font-size: 1.9rem; }
.offer-timer {
  display: flex; align-items: center; gap: 7px; background: rgba(220, 38, 38, 0.08); color: var(--red-600);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px;
  transition: background 200ms ease;
}
.offer-timer svg { width: 15px; height: 15px; flex-shrink: 0; }
.offer-timer strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.offer-timer--restart { background: rgba(21, 128, 61, 0.1); color: var(--green-700); }
.price-was-row { margin: 0; }
.price-was { display: inline-block; font-size: 0.8rem; color: var(--red-600); font-weight: 600; }
.buy-box .stock-line { font-size: 0.85rem; margin-top: var(--sp-3); }
.buy-box-divider { height: 1px; background: var(--border); margin: var(--sp-5) 0; }
.buy-box-row { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 10px; }
.buy-box-row svg { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; flex-shrink: 0; }
.buy-box-row svg:has(use[href="#icon-truck"]) { background: var(--blue-50); color: var(--blue-600); }
.buy-box-row svg:has(use[href="#icon-shield"]) { background: var(--green-50); color: var(--green-600); }
.buy-box-row svg:has(use[href="#icon-headset"]) { background: var(--amber-50); color: var(--amber-600); }
.buy-box-actions { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
.buy-box-note { text-align: center; font-size: 0.76rem; color: var(--text-faint); margin-top: var(--sp-3); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-5); }
.qty-label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 34px; height: 34px; background: var(--bg); color: var(--text); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--border); }
.qty-input {
  width: 44px; height: 34px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--text); -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-mockup-video { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); }
.pdp-mockup-video-clip {
  width: 100%; max-width: 220px;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.22));
}
html[data-theme="dark"] .pdp-mockup-video-clip {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.08));
}
.pdp-mockup-video-media { width: 100%; height: auto; display: block; }
@media (max-width: 480px) {
  .pdp-mockup-video-clip { max-width: 44%; }
}

.pdp-app-showcase { margin-top: var(--sp-11); text-align: center; }

.pdp-how { margin-top: var(--sp-11); }
.pdp-how-frame { width: 100%; height: 1100px; border: 0; display: block; overflow: hidden; }
@media (max-width: 720px) { .pdp-how-frame { height: 1900px; } }
@media (max-width: 480px) { .pdp-how-frame { height: 2500px; } }
.pdp-app-showcase-copy { max-width: 62ch; margin: 0 auto var(--sp-8); }
.pdp-app-showcase-copy h2 { font-size: 1.5rem; margin-top: var(--sp-3); }
.pdp-app-showcase-copy p { margin-top: var(--sp-4); color: var(--text-muted); font-size: 0.97rem; line-height: 1.65; }
.pdp-app-mockups { display: flex; align-items: center; justify-content: center; gap: 0; }
.pdp-app-mockup {
  width: 200px; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  flex-shrink: 0; margin: 0 -22px;
}
.pdp-app-mockup--center { width: 236px; z-index: 1; box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.28); margin: 0 -12px; }

.pdp-reviews { margin-top: var(--sp-9); }
.pdp-reviews h2 { font-size: 1.1rem; margin-bottom: var(--sp-5); }
.pdp-reviews-grid { display: flex; flex-direction: column; gap: var(--sp-4); }
.review-card { display: flex; gap: var(--sp-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-5); }
.review-photo { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); cursor: zoom-in; }

.photo-lightbox {
  position: fixed; inset: 0; z-index: 999999; background: rgba(8, 12, 20, 0.92);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-6);
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox-img { max-width: min(90vw, 640px); max-height: 85vh; border-radius: var(--radius-md); object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.photo-lightbox-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: #fff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.photo-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.review-name { display: block; font-size: 0.87rem; color: var(--text); }
.review-city { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); margin-top: 1px; }
.review-stars { margin: 3px 0 6px; }
.review-stars svg { width: 12px; height: 12px; }
.review-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.order-modal { border: none; border-radius: var(--radius-lg); padding: 0; width: min(460px, 92vw); box-shadow: var(--shadow-md); background: var(--white); color: var(--text); }
.order-modal::backdrop { background: rgba(15, 23, 42, 0.55); }
.order-form { padding: var(--sp-7); display: grid; gap: var(--sp-4); }
.order-modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.order-modal-head h2 { font-size: 1.15rem; }
.order-modal-close { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--text-muted); border: 1px solid var(--border); }
.order-modal-close:hover { background: var(--bg); color: var(--text); }
.order-modal-product { font-size: 0.88rem; color: var(--text-muted); margin-top: -8px; }
.order-modal-shipping { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--green-700); font-weight: 600; margin: 0; }
.order-modal-shipping svg { width: 14px; height: 14px; flex-shrink: 0; }
.order-form .field { display: grid; gap: 6px; }
.order-form label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.order-form input, .order-form textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 0.9rem; font-family: inherit; }
.order-form input:focus, .order-form textarea:focus { border-color: var(--blue-600); }

.order-qty { display: grid; gap: 8px; }
.order-qty-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }

.qty-tiers { display: grid; gap: 8px; }
.qty-tier {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.qty-tier:has(input:checked) { border-color: var(--blue-600); background: rgba(250, 30, 78, 0.06); }
.qty-tier input[type="radio"] { grid-row: 1 / 3; accent-color: var(--blue-600); width: 17px; height: 17px; }
.qty-tier-count { font-weight: 700; color: var(--text); font-size: 0.92rem; }
.qty-tier-badge {
  justify-self: start; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--green-700); background: rgba(21, 128, 61, 0.1); padding: 2px 7px; border-radius: 4px; grid-column: 2; grid-row: 2;
}
.qty-tier-badge--empty { background: transparent; padding: 0; }
.qty-tier-price { grid-column: 3; grid-row: 1 / 3; font-weight: 600; font-size: 0.88rem; color: var(--text); text-align: right; white-space: nowrap; }

.qty-exact { display: grid; gap: 6px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.qty-exact label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.qty-exact input { width: 80px; }

.pdp-quickfacts-heading { font-size: 1rem; font-weight: 700; color: var(--text); margin: var(--sp-6) 0 0; }
.pdp-quickfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.quickfact { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); }
.quickfact svg { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 50%; flex-shrink: 0; }
.quickfact svg:has(use[href="#icon-signal"]) { background: var(--blue-50); color: var(--blue-600); }
.quickfact svg:has(use[href="#icon-battery"]) { background: var(--green-50); color: var(--green-600); }
.quickfact svg:has(use[href="#icon-pin"]) { background: var(--amber-50); color: var(--amber-600); }
.quickfact svg:has(use[href="#icon-shield"]) { background: rgba(15, 23, 42, 0.07); color: var(--text); }
.quickfact strong { display: block; font-size: 0.83rem; color: var(--text); line-height: 1.25; }
.quickfact span { display: block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-top: 2px; }

.pdp-summary-grid { margin-top: var(--sp-9); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }

.pdp-uses-block { padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); align-self: start; }
.pdp-uses-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text); background: transparent; border: 0; text-align: left;
}
.pdp-uses-toggle-icon { width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; }
.pdp-uses-panel-inner { padding: 0 var(--sp-6) var(--sp-6); }
.pdp-uses-panel-inner img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); cursor: zoom-in; }
.pdp-summary-block--wide { grid-column: 1 / -1; }
.pdp-summary-block h2 { font-size: 1.05rem; margin-bottom: var(--sp-4); }
.pdp-ideal-para { margin-bottom: var(--sp-4); font-size: 0.93rem; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.feature-list { display: grid; gap: 12px; }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.feature-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 0.87rem; font-weight: 500; color: var(--text); line-height: 1.3;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.feature-card:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.feature-card-icon { display: flex; flex-shrink: 0; width: 22px; height: 22px; }
.feature-card-icon svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-card { padding: 10px 12px; font-size: 0.82rem; gap: 9px; }
  .feature-card-icon, .feature-card-icon svg { width: 19px; height: 19px; }
}
.feature-list li { padding-left: 26px; position: relative; line-height: 1.5; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.feature-list li::after {
  content: "";
  position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 1.5px solid var(--blue-600);
  border-bottom: 1.5px solid var(--blue-600); transform: rotate(-45deg);
}
.feature-cards.feature-list li::before,
.feature-cards.feature-list li::after { content: none; }
.feature-cards.feature-list li { padding-left: 0; }

.spec-grid { display: grid; gap: 10px; }
.spec-grid div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.spec-grid dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; flex-shrink: 0; }
.spec-grid dd { text-align: right; color: var(--text); font-weight: 500; }


.pdp-faq-plain { display: grid; gap: var(--sp-5); }
.pdp-faq-item h3 { font-size: 0.93rem; margin-bottom: 6px; }
.pdp-faq-question--accent { color: var(--blue-600); }
.pdp-faq-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }


.wa-fixed-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
  padding: var(--sp-3) 0; display: none; z-index: 300;
}

/* ---------------------------------------------------------------------- */
/* Acordeón (FAQ)                                                          */
/* ---------------------------------------------------------------------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-heading { margin: 0; font: inherit; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 2px; text-align: left; font-weight: 600; font-size: 0.98rem; color: var(--text);
}
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t-base) var(--ease); color: var(--text-faint); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--blue-600); }
.accordion-trigger[aria-expanded="true"] { color: var(--blue-600); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 280ms var(--ease); }
.accordion-panel p { padding: 0 2px var(--sp-5); color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; max-width: 68ch; }

/* ---------------------------------------------------------------------- */
/* Formularios                                                             */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-10); align-items: start; }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 0.9rem; font-family: inherit; background: var(--white); color: var(--text); transition: border-color var(--t-base) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); }
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-6); font-style: normal; }
.contact-info-row { display: flex; gap: 13px; margin-bottom: var(--sp-5); }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row svg { width: 19px; height: 19px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.contact-info-row strong { display: block; font-size: 0.87rem; }
.contact-info-row span { font-size: 0.85rem; color: var(--text-muted); }
.map-frame { border-radius: var(--radius-md); overflow: hidden; margin-top: var(--sp-5); border: 1px solid var(--border); aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------- */
/* Notificaciones                                                          */
/* ---------------------------------------------------------------------- */
.toast {
  position: fixed; top: var(--sp-5); right: var(--sp-5); z-index: 999; background: var(--navy-900); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px; font-size: 0.87rem; max-width: 320px;
  transform: translateY(-12px); opacity: 0; transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Loader                                                                   */
/* ---------------------------------------------------------------------- */
.page-loader {
  position: fixed; inset: 0; background: var(--white); z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) var(--ease);
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 34px; height: 34px; border: 2.5px solid var(--border); border-top-color: var(--blue-600); border-radius: 50%; animation: spin 750ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------- */
/* Revelado al hacer scroll — sutil, sin rebote                            */
/* ---------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

[data-reveal="left"] { transform: translateX(-52px) translateY(0); transition: opacity 650ms var(--ease) 80ms, transform 650ms var(--ease) 80ms; }
[data-reveal="left"].in-view { transform: translateX(0) translateY(0); }
[data-reveal="right"] { transform: translateX(52px) translateY(0); transition: opacity 650ms var(--ease) 80ms, transform 650ms var(--ease) 80ms; }
[data-reveal="right"].in-view { transform: translateX(0) translateY(0); }
[data-reveal="center"] { transform: translateY(24px) scale(0.94); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }
[data-reveal="center"].in-view { transform: translateY(0) scale(1); }

/* ---------------------------------------------------------------------- */
/* Páginas legales                                                         */
/* ---------------------------------------------------------------------- */
.legal-content { max-width: 720px; }
.legal-content h2 { margin-top: var(--sp-8); font-size: 1.1rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.93rem; margin-top: var(--sp-3); line-height: 1.7; }
.legal-content ul { padding-left: var(--sp-5); list-style: disc; }

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */
.error-page { text-align: center; padding: var(--sp-12) 0; }
.error-page .mono-code { font-family: var(--font-mono); font-size: 5rem; font-weight: 600; color: var(--blue-600); line-height: 1; }
.error-page h2 { margin-top: var(--sp-4); }
.error-page p { margin: var(--sp-4) auto var(--sp-7); max-width: 420px; color: var(--text-muted); }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* Sprite de iconos: los símbolos viven una sola vez en el DOM (ver <body>)
   y se reutilizan con <use>. El tamaño y color se heredan de las mismas
   reglas que ya existían para los SVG inline — no rompe nada del sistema. */
.icon-sprite { display: none; }

.header-search--full { max-width: none; }
.filter-price-copy { margin-bottom: var(--sp-3); font-size: 0.87rem; color: var(--text-muted); }
.filter-range { width: 100%; accent-color: var(--blue-600); }
.trust-strip--start { justify-content: flex-start; gap: var(--sp-9); }

.pdp-description { font-size: 0.96rem; color: var(--text-muted); line-height: 1.75; max-width: 62ch; }
.pdp-title-header .rating-row { margin-top: var(--sp-3); }

.wa-fixed-bar-inner { display: flex; justify-content: center; }

.cta-block { text-align: center; }
.cta-block h2 { margin-bottom: var(--sp-2); }
.cta-block p { margin-bottom: var(--sp-6); }

.container--narrow { max-width: 760px; }

/* ---------------------------------------------------------------------- */
/* Nosotros — línea de tiempo / valores                                    */
/* ---------------------------------------------------------------------- */
.about-lede { font-size: 1.1rem; color: var(--text); line-height: 1.65; max-width: 62ch; font-weight: 500; }
.about-body p { font-size: 0.96rem; color: var(--text-muted); line-height: 1.75; max-width: 66ch; margin-top: var(--sp-4); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.value-card { background: var(--white); padding: var(--sp-7); }
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.89rem; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-showcase { max-width: 460px; height: 320px; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(3) { border-left: none; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .footer-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .pdp-title-header { grid-column: 1; grid-row: 1; }
  .pdp-gallery-block { grid-column: 1; grid-row: 2; }
  .pdp-title-block { grid-column: 1; grid-row: 3; }
  .pdp-media-col { grid-column: 1; grid-row: 4; }
  .buy-box { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .icon-btn--search-mobile { display: inline-flex; }
}

@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-icon { height: 42px; }
  .brand-name { font-size: 1.3rem; }
  .header-actions { gap: 4px; }
  .header-actions a.icon-btn[href^="tel:"] { display: none; }
  .main-nav-call {
    display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-top: 4px;
    border-top: 1px solid var(--border); color: var(--blue-600); font-weight: 600; font-size: 0.89rem;
  }
  .main-nav-call svg { width: 17px; height: 17px; flex-shrink: 0; }
  .pdp-app-mockup { width: 130px; margin: 0 -15px; }
  .pdp-app-mockup--center { width: 156px; margin: 0 -8px; }
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: var(--sp-3) var(--sp-5) var(--sp-5); gap: 2px; box-shadow: var(--shadow-md);
  }
  .header-actions .btn span { display: none; }
  .header-actions .btn { width: 42px; padding: 0; }
  .icon-btn--search-mobile { display: none; }
  .product-grid, .product-grid--4 { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(odd) { border-left: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-nav-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .hero-stats { gap: var(--sp-6); flex-wrap: wrap; }
  .pdp-summary-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .wa-fixed-bar { display: block; }
  body[data-page="producto.html"] .site-footer { padding-bottom: 84px; }
  #audio-player-widget { bottom: 84px; }
}
body[data-page="producto.html"] .wa-float { display: none; }
body[data-page="index.html"] .wa-float { display: none; }

@media (max-width: 480px) {
  .product-grid, .product-grid--4, .stats-grid { grid-template-columns: 1fr; }
  .review-card { flex-direction: column; }
  .review-photo { width: 100%; height: 160px; }
  .order-modal {
    position: fixed; inset: 0; margin: 0;
    width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    border-radius: 0;
  }
  .order-form { padding: var(--sp-5); gap: var(--sp-3); overflow-y: auto; overflow-x: hidden; max-height: 100%; box-sizing: border-box; }
  .order-modal-head h2 { font-size: 1.02rem; }
  .order-form .field { gap: 4px; }
  .order-form input { padding: 9px 12px; font-size: 0.87rem; }
  .qty-tier { padding: 8px 10px; grid-template-columns: auto 1fr auto; gap: 6px; }
  .qty-tier-price { font-size: 0.78rem; }
}

/* ==========================================================================
   Reproductor de audio flotante (solo en páginas de producto)
   -------------------------------------------------------------------------- */
#audio-player-widget {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
#audio-player-label {
  background: var(--white); color: var(--text); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
#audio-player-btn {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  background: var(--blue-600); color: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 10px 24px -6px rgba(250, 30, 78, 0.5); flex-shrink: 0;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
#audio-player-btn:hover { background: var(--blue-700); transform: scale(1.06); }
#audio-player-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
#audio-player-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 160ms ease, transform 160ms ease; }
#audio-player-icon .icon-pause { opacity: 0; transform: scale(0.7); }
#audio-player-btn.is-playing #audio-player-icon .icon-play { opacity: 0; transform: scale(0.7); }
#audio-player-btn.is-playing #audio-player-icon .icon-pause { opacity: 1; transform: scale(1); }

@media (max-width: 480px) {
  #audio-player-widget { bottom: 84px; right: 16px; gap: 6px; }
  #audio-player-btn { width: 46px; height: 46px; }
  #audio-player-icon { width: 19px; height: 19px; }
  #audio-player-label { font-size: 0.7rem; padding: 5px 10px; }
}

/* ==========================================================================
   Ver en tu espacio (cámara) — solo en páginas de producto
   -------------------------------------------------------------------------- */
.ar-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ar-trigger svg { width: 18px; height: 18px; }

.ar-overlay {
  position: fixed; inset: 0; z-index: 1000000; background: #000;
  overflow: hidden; touch-action: none;
}
.ar-overlay[hidden] { display: none; }
.ar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; touch-action: none; }

.ar-error {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-7); text-align: center; color: #fff; background: rgba(15, 23, 42, 0.9); font-size: 0.95rem;
}
.ar-error[hidden] { display: none; }

.ar-model-wrap {
  position: absolute; width: 92vmin; height: 92vmin; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 90ms linear;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
  touch-action: none;
}
.ar-model-frame { width: 100%; height: 100%; border: 0; background: transparent; pointer-events: auto; touch-action: none; }

.ar-hint {
  position: absolute; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px);
  padding: 9px 16px; border-radius: 14px; font-size: 0.78rem; font-weight: 500; line-height: 1.4;
  pointer-events: none; white-space: normal; text-align: center; width: min(88vw, 360px);
}

.ar-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px);
  color: #fff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ar-close:hover { background: rgba(15, 23, 42, 0.8); }

/* ==========================================================================
   Chat de preguntas (portada) — sin IA, guionado, con burbuja de aviso,
   indicador de "escribiendo" y captura de teléfono
   -------------------------------------------------------------------------- */
.chat-widget { position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.chat-notify {
  max-width: 240px; background: var(--white); border: 1px solid var(--border); border-radius: 16px 16px 4px 16px;
  padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 0.87rem; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  animation: chatNotifyIn 320ms cubic-bezier(.22,1,.36,1);
}
.chat-notify[hidden] { display: none; }
@keyframes chatNotifyIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-notify-close { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; font-size: 1rem; line-height: 1; color: var(--text-faint); display: flex; align-items: center; justify-content: center; }
.chat-notify-close:hover { background: var(--bg); color: var(--text); }

.chat-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-600);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  flex-shrink: 0;
}
.chat-fab:hover { background: var(--blue-700); transform: translateY(-2px); }
.chat-fab svg { position: absolute; width: 26px; height: 26px; color: #fff; transition: opacity 160ms ease, transform 160ms ease; }
.chat-fab-icon-close { opacity: 0; transform: scale(0.6) rotate(-90deg); }
.chat-widget.is-open .chat-fab-icon-chat { opacity: 0; transform: scale(0.6) rotate(90deg); }
.chat-widget.is-open .chat-fab-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }
.chat-fab-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--red-600); border: 2px solid #fff;
}
.chat-fab-dot[hidden] { display: none; }

.chat-panel {
  width: min(360px, 92vw); height: min(560px, 72vh); background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15,23,42,0.25); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border);
  animation: chatPanelIn 220ms cubic-bezier(.22,1,.36,1);
}
.chat-panel[hidden] { display: none; }
@keyframes chatPanelIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-panel-head { background: var(--navy-900); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chat-panel-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.chat-panel-avatar svg { width: 22px; height: 26px; }
.chat-panel-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-panel-title strong { font-size: 0.92rem; }
.chat-panel-status { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: #A7F3D0; margin-top: 2px; }
.chat-panel-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); animation: dot-live 2.6s ease-in-out infinite; }
.chat-panel-close { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-panel-close:hover { background: rgba(255,255,255,0.12); }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }

.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 0.87rem; line-height: 1.5; animation: chatMsgIn 220ms ease; }
@keyframes chatMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.chat-msg--user { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }

.chat-typing { align-self: flex-start; background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; padding: 12px 15px; border-radius: 14px; display: flex; gap: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: chatTypingBounce 1.1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-options { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.chat-option-btn {
  text-align: left; background: var(--white); border: 1px solid var(--blue-600); color: var(--blue-600);
  border-radius: 10px; padding: 9px 13px; font-size: 0.84rem; font-weight: 600;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.chat-option-btn:hover { background: var(--blue-600); color: #fff; }
.chat-option-btn:disabled { opacity: 0.45; pointer-events: none; }

.chat-cta-whatsapp {
  align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-600); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 0.87rem; font-weight: 700;
  transition: background var(--t-base) var(--ease);
}
.chat-cta-whatsapp:hover { background: var(--green-700); }
.chat-cta-whatsapp svg { width: 17px; height: 17px; }

.chat-phone-form { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.chat-phone-form input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font-size: 0.88rem; font-family: inherit;
}
.chat-phone-form input:focus { border-color: var(--blue-600); }
.chat-phone-actions { display: flex; gap: 8px; }
.chat-phone-actions button { flex: 1; }
.chat-phone-skip { background: transparent; color: var(--text-faint); font-size: 0.78rem; text-align: center; padding: 6px; }
.chat-phone-skip:hover { color: var(--text-muted); text-decoration: underline; }
.chat-phone-confirm { font-size: 0.87rem; color: var(--text); margin: 0; }
.chat-phone-form [data-chat-phone-send]:disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; left: 16px; align-items: flex-end; }
  .chat-panel { width: 100%; height: min(74dvh, 560px); }
  .chat-notify { max-width: 220px; }
  .pdp-app-mockups { gap: 0; }
  .pdp-app-mockup { width: 92px; margin: 0 -11px; }
  .pdp-app-mockup--center { width: 114px; margin: 0 -6px; }
  .pdp-app-showcase-copy h2 { font-size: 1.25rem; }
}

