/* =========================================================
   GPS Portátiles — capa de rediseño (nov 2026)
   Se carga después de css/styles.css. Para deshacer todo,
   quitar el <link> a /unslop.css de las páginas.
   Dirección: misma familia visual que gordogps.com.
   DM Sans, fondo claro, rojo solo en acciones y precios.
   ========================================================= */

:root {
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Sans", system-ui, sans-serif;
  --blue-600: #E5173F;
  --blue-700: #BE1033;
  --blue-50: #FDECEF;
  --blue-100: #F9D3DA;
  --bg: #FFFFFF;
  --bg-2: #F4F5F7;
  --border: #E4E6EA;
  --border-strong: #CDD1D8;
  --text: #12151C;
  --text-muted: #565E6B;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(18,21,28,.05);
}
[data-theme="dark"] {
  --bg: #0E1014;
  --bg-2: #15181E;
  --border: #262A33;
  --border-strong: #353A45;
  --text: #EEF0F3;
  --text-muted: #9AA1AD;
}

html:not(#_u) body:not(#_u) { font-family: "DM Sans", system-ui, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
html:not(#_u) body:not(#_u) h1,
html:not(#_u) body:not(#_u) h2,
html:not(#_u) body:not(#_u) h3 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; }
html:not(#_u) body:not(#_u) h1 { letter-spacing: -0.03em; }

/* Etiquetas: sin letra de máquina ni mayúsculas */
html:not(#_u) body:not(#_u) .eyebrow,
html:not(#_u) body:not(#_u) .card-product__eyebrow {
  font-family: inherit; text-transform: none; letter-spacing: 0;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
}
html:not(#_u) body:not(#_u) .eyebrow::before,
html:not(#_u) body:not(#_u) .eyebrow::after { display: none; }
html:not(#_u) body:not(#_u) .hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
html:not(#_u) body:not(#_u) .hero .eyebrow::before {
  content: ""; display: block; width: 34px; height: 8px;
  background:
    linear-gradient(var(--blue-600), var(--blue-600)) left center / 28px 2px no-repeat,
    radial-gradient(circle, var(--blue-600) 3px, transparent 3.5px) right center / 8px 8px no-repeat;
}
/* Firma: tramo de ruta que termina en un punto (como gordogps.com) */

/* Fondos: sin brillos */
html:not(#_u) body:not(#_u) .hero,
html:not(#_u) body:not(#_u) .hero::before,
html:not(#_u) body:not(#_u) .hero::after,
html:not(#_u) body:not(#_u) main::before,
html:not(#_u) body:not(#_u)::before,
html:not(#_u) body:not(#_u)::after { background-image: none; }
html:not(#_u) body:not(#_u) .hero { background: var(--bg); border-bottom: 1px solid var(--border); }
html:not(#_u) body:not(#_u) .section-soft { background: var(--bg-2); }
html:not(#_u) body:not(#_u) main { background: var(--bg); }

/* Portada */
html:not(#_u) body:not(#_u) .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.04; }
html:not(#_u) body:not(#_u) .hero h1 span,
html:not(#_u) body:not(#_u) .hero h1 em,
html:not(#_u) body:not(#_u) .hero h1 strong { color: var(--text-muted); font-style: normal; background: none; -webkit-text-fill-color: currentColor; }
html:not(#_u) body:not(#_u) .hero-sub { font-size: 1.12rem; line-height: 1.6; color: var(--text-muted); max-width: 34em; }
html:not(#_u) body:not(#_u) .hero-showcase { background: var(--bg-2); border-radius: 24px; }
html:not(#_u) body:not(#_u) .hero-stats { border-top: 1px solid var(--border); gap: 28px 40px; }
html:not(#_u) body:not(#_u) .hero-stats svg,
html:not(#_u) body:not(#_u) .hero-stats .icon { color: var(--text-muted); }
html:not(#_u) body:not(#_u) .hero-stats dd,
html:not(#_u) body:not(#_u) .hero-stats dt { letter-spacing: 0; }

/* Botones */
html:not(#_u) body:not(#_u) .btn { font-family: inherit; font-weight: 600; letter-spacing: 0; border-radius: 10px; text-transform: none; box-shadow: none; }
html:not(#_u) body:not(#_u) .btn-primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
html:not(#_u) body:not(#_u) .btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
html:not(#_u) body:not(#_u) .btn-outline { background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); }
html:not(#_u) body:not(#_u) .btn-outline:hover { border-color: var(--text); background: var(--bg-2); }
html:not(#_u) body:not(#_u) .btn-whatsapp { background: #16A34A; border-color: #16A34A; color: #fff; }
html:not(#_u) body:not(#_u) .btn-whatsapp:hover { background: #15803D; border-color: #15803D; }

/* Encabezado */
html:not(#_u) body:not(#_u) .site-header { background: var(--nav-bg); border-bottom: 1px solid var(--border); box-shadow: none; backdrop-filter: saturate(1.4) blur(10px); }
html:not(#_u) body:not(#_u) .main-nav a { font-weight: 500; letter-spacing: 0; }
html:not(#_u) body:not(#_u) .header-search input { border-radius: 10px; background: var(--bg-2); border-color: transparent; }
[data-theme="dark"] { --nav-bg: rgba(14,16,20,.9); }

/* Tarjetas de producto */
html:not(#_u) body:not(#_u) .card-product,
html:not(#_u) body:not(#_u) .card-bestseller {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: none; overflow: hidden; transition: border-color .15s, transform .15s;
}
html:not(#_u) body:not(#_u) .card-product:hover,
html:not(#_u) body:not(#_u) .card-bestseller:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: none; }
html:not(#_u) body:not(#_u) .card-product__media,
html:not(#_u) body:not(#_u) .card-bestseller__media { background: #F1F2F4; border-bottom: 0; }
html:not(#_u) body:not(#_u) .card-product__title,
html:not(#_u) body:not(#_u) .card-bestseller__title { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
html:not(#_u) body:not(#_u) .card-product__bullets li { color: var(--text-muted); }
html:not(#_u) body:not(#_u) .card-product__bullets li::before { background: var(--text-muted); opacity: .5; }
html:not(#_u) body:not(#_u) .price { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
html:not(#_u) body:not(#_u) .price-currency { font-family: inherit; letter-spacing: 0; color: var(--text-muted); font-size: .8rem; }
html:not(#_u) body:not(#_u) .rating-row .stars svg { color: #F2A900; }
html:not(#_u) body:not(#_u) .rating-count { color: var(--text-muted); }
html:not(#_u) body:not(#_u) .card-bestseller__rank {
  background: #12151C; color: #fff; font-family: inherit; font-weight: 600; letter-spacing: 0; box-shadow: none;
}
html:not(#_u) body:not(#_u) .testimonial-author .avatar { background: var(--bg-2); color: var(--text); box-shadow: none; }
html:not(#_u) body:not(#_u) .help-choose-inner > svg:first-child,
html:not(#_u) body:not(#_u) .help-choose-inner > .help-choose-icon { display: none; }
html:not(#_u) body:not(#_u) .help-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
/* Fuera: etiqueta verde en cada tarjeta y "Pocas unidades" en todos */
html:not(#_u) body:not(#_u) .chip--shipping,
html:not(#_u) body:not(#_u) .stock-line { display: none; }

/* Secciones */
html:not(#_u) body:not(#_u) .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
html:not(#_u) body:not(#_u) .link-arrow { color: var(--text); font-weight: 600; }
html:not(#_u) body:not(#_u) .benefits-grid { gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
html:not(#_u) body:not(#_u) .benefit-card { background: transparent; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 28px 26px; }
html:not(#_u) body:not(#_u) .benefit-card:last-child { border-right: 0; }
html:not(#_u) body:not(#_u) .benefit-card h3 { font-size: 1.05rem; }
html:not(#_u) body:not(#_u) .benefit-card p { color: var(--text-muted); }

html:not(#_u) body:not(#_u) .platform-section { background: #12151C; color: #EEF0F3; }
html:not(#_u) body:not(#_u) .platform-section h2 { color: #fff; }
html:not(#_u) body:not(#_u) .platform-section p,
html:not(#_u) body:not(#_u) .platform-section li { color: #B5BBC6; }
html:not(#_u) body:not(#_u) .platform-section .eyebrow { color: #9AA1AD; }
html:not(#_u) body:not(#_u) .platform-list svg { color: #fff; }

html:not(#_u) body:not(#_u) .testimonial-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
html:not(#_u) body:not(#_u) .testimonial-card p { color: var(--text); font-size: 1rem; line-height: 1.6; }

html:not(#_u) body:not(#_u) .help-choose-inner { background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; box-shadow: none; }
html:not(#_u) body:not(#_u) .help-choose-inner > svg,
html:not(#_u) body:not(#_u) .help-choose-inner .icon { color: var(--text); }

/* Pie */
html:not(#_u) body:not(#_u) .site-footer { background: #0E1014; color: #B5BBC6; border-top: 0; }
html:not(#_u) body:not(#_u) .site-footer h2,
html:not(#_u) body:not(#_u) .site-footer h3,
html:not(#_u) body:not(#_u) .site-footer h4 { color: #fff; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .95rem; }
html:not(#_u) body:not(#_u) .site-footer a { color: #B5BBC6; }
html:not(#_u) body:not(#_u) .site-footer a:hover { color: #fff; }

/* Ficha de producto */
html:not(#_u) body:not(#_u) .offer-timer,
html:not(#_u) body:not(#_u) .price-was-row { display: none; }
html:not(#_u) body:not(#_u) .buy-box { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; background: var(--bg); }
html:not(#_u) body:not(#_u) .price-renewal { color: var(--text-muted); font-size: .95rem; }
html:not(#_u) body:not(#_u) .pdp-gallery,
html:not(#_u) body:not(#_u) .pdp-media,
html:not(#_u) body:not(#_u) .pdp-main-image { background: #F1F2F4; border-color: transparent; }


/* Ficha: íconos neutros, sin palabra en rojo */
html:not(#_u) body:not(#_u) .accent { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
html:not(#_u) body:not(#_u) .buy-box-row svg,
html:not(#_u) body:not(#_u) .quickfact svg {
  color: var(--text); background: var(--bg-2); border: 1px solid var(--border); box-shadow: none;
}
html:not(#_u) body:not(#_u) .quickfact { background: var(--bg); border: 1px solid var(--border); box-shadow: none; }
html:not(#_u) body:not(#_u) .quickfact span,
html:not(#_u) body:not(#_u) .pdp-sku,
html:not(#_u) body:not(#_u) .pdp-quickfacts-heading { font-family: inherit; text-transform: none; letter-spacing: 0; }
html:not(#_u) body:not(#_u) .gallery-main { background: #F1F2F4; border-color: transparent; }
html:not(#_u) body:not(#_u) .pdp-title-header h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
html:not(#_u) body:not(#_u) .pdp-description-block { background: var(--bg-2); border: 0; }
html:not(#_u) body:not(#_u) .chat-notify { display: none; }

/* Ayuda flotante: más discreta */
html:not(#_u) body:not(#_u) .chat-widget .chat-bubble,
html:not(#_u) body:not(#_u) .chat-widget [class*="greeting"],
html:not(#_u) body:not(#_u) .chat-widget [class*="teaser"] { display: none; }

/* Botón del catálogo PDF */
.gp-cat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .15s, background .15s; }
.gp-cat-btn:hover { border-color: var(--text); background: var(--bg-2); }
.gp-cat-btn svg { color: var(--blue-600); flex: none; width: 18px; height: 18px; }
.gp-cat-btn small { font-weight: 400; color: var(--text-muted); font-size: .82rem; white-space: nowrap; }

/* ===== Celular ===== */
@media (max-width: 768px) {
  html:not(#_u) body:not(#_u) .hero { padding-top: 28px; padding-bottom: 36px; }
  html:not(#_u) body:not(#_u) .hero-showcase { display: none; }
  html:not(#_u) body:not(#_u) .hero h1 { font-size: 2.25rem; }
  html:not(#_u) body:not(#_u) .hero-sub { font-size: 1.02rem; }
  html:not(#_u) body:not(#_u) .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  html:not(#_u) body:not(#_u) .hero-cta .btn { width: 100%; justify-content: center; }
  html:not(#_u) body:not(#_u) .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  html:not(#_u) body:not(#_u) .hero-stats dt,
  html:not(#_u) body:not(#_u) .hero-stats strong { font-size: 1.15rem; }
  html:not(#_u) body:not(#_u) .hero-stats svg { width: 16px; height: 16px; }
  html:not(#_u) body:not(#_u) .back-top { display: none; }
  /* Más vendidos: fila que se desliza */
  html:not(#_u) body:not(#_u) .bestseller-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  html:not(#_u) body:not(#_u) .bestseller-grid::-webkit-scrollbar { display: none; }
  html:not(#_u) body:not(#_u) .bestseller-grid > * { scroll-snap-align: start; }

  /* Productos: dos por fila, más compactos */
  html:not(#_u) body:not(#_u) .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  html:not(#_u) body:not(#_u) .bestseller-grid { gap: 12px; }
  html:not(#_u) body:not(#_u) .card-product__media,
  html:not(#_u) body:not(#_u) .card-bestseller__media { aspect-ratio: 1 / 1; height: auto; min-height: 0; padding: 14px; }
  html:not(#_u) body:not(#_u) .card-product__media img,
  html:not(#_u) body:not(#_u) .card-bestseller__media img { width: 100%; height: 100%; object-fit: contain; }
  html:not(#_u) body:not(#_u) .card-product__body,
  html:not(#_u) body:not(#_u) .card-bestseller__body { padding: 12px 12px 14px; gap: 6px; }
  html:not(#_u) body:not(#_u) .card-product__bullets,
  html:not(#_u) body:not(#_u) .card-product__eyebrow { display: none; }
  html:not(#_u) body:not(#_u) .card-product__title,
  html:not(#_u) body:not(#_u) .card-bestseller__title { font-size: .95rem; line-height: 1.25; }
  html:not(#_u) body:not(#_u) .price { font-size: 1.15rem; }
  html:not(#_u) body:not(#_u) .rating-row { font-size: .78rem; }
  html:not(#_u) body:not(#_u) .card-product__actions .btn { height: 40px; font-size: .85rem; padding: 0 8px; }
  html:not(#_u) body:not(#_u) .card-product__actions .btn svg { display: none; }
  html:not(#_u) body:not(#_u) .card-bestseller__rank { width: 26px; height: 26px; font-size: .78rem; }

  html:not(#_u) body:not(#_u) .benefits-grid { grid-template-columns: 1fr; }
  html:not(#_u) body:not(#_u) .benefit-card { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px; }
  html:not(#_u) body:not(#_u) .benefit-card:last-child { border-bottom: 0; }
  html:not(#_u) body:not(#_u) .section { padding-top: 48px; padding-bottom: 48px; }
  .gp-cat-btn { display: flex; justify-content: center; width: 100%; }
  .gp-cat-btn .gp-pg { display: none; }
}
@media (max-width: 768px) {
  /* Catálogo en celular */
  html:not(#_u) body:not(#_u) .card-product__actions .btn-whatsapp { white-space: nowrap; font-size: 0; gap: 0; }
  html:not(#_u) body:not(#_u) .card-product__actions .btn-whatsapp::after { content: "Pedir"; font-size: .88rem; }
  html:not(#_u) body:not(#_u) .card-product__actions .btn-whatsapp svg { display: inline-block; width: 16px; height: 16px; margin-right: 6px; }
  html:not(#_u) body:not(#_u) .card-product__actions .link-arrow { display: none; }
  html:not(#_u) body:not(#_u) .filters-panel { padding: 16px; }
  html:not(#_u) body:not(#_u) .filters-panel .filter-group:has(.filter-option) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  html:not(#_u) body:not(#_u) .filters-panel .filter-group:has(.filter-option) h3 { grid-column: 1 / -1; }
  /* Botón de audio: solo el círculo */
  html:not(#_u) body:not(#_u) #audio-player-label { display: none; }
  html:not(#_u) body:not(#_u) #audio-player-widget { bottom: 84px; }
  html:not(#_u) body:not(#_u) #audio-player-btn { width: 44px; height: 44px; }
}
html:not(#_u) body:not(#_u) .filters-panel h2 { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); }
html:not(#_u) body:not(#_u) .filter-price-value { color: var(--text); font-weight: 600; }
@media (max-width: 360px) {
  html:not(#_u) body:not(#_u) .product-grid { grid-template-columns: 1fr; }
}

/* ===== Mejoras 19-nov (tarde) ===== */
/* Sin pantalla de carga: las páginas abren al instante */
html:not(#_u) body:not(#_u) .page-loader { display: none !important; }

/* Un solo botón flotante: WhatsApp (el de audio de las fichas se queda) */
html:not(#_u) body:not(#_u) .chat-widget,
html:not(#_u) body:not(#_u) .back-top { display: none !important; }
html:not(#_u) body:not(#_u) .wa-float { display: flex; }
@media (max-width: 768px) {
  /* En las fichas ya está la barra fija "Realizar pedido" */
  html:not(#_u) body:not(#_u):has(.wa-fixed-bar) .wa-float { display: none; }
}

/* Renovación debajo del precio en las tarjetas */
.card-renewal { margin: 2px 0 0; font-size: .82rem; line-height: 1.35; color: var(--text-muted); }

/* Tabla para comparar equipos (catálogo) */
.gp-compare { border-top: 1px solid var(--border); }
.gp-compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.gp-compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.gp-compare-table th, .gp-compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.gp-compare-table thead th { font-size: .82rem; font-weight: 600; color: var(--text-muted); background: var(--bg-2); white-space: nowrap; }
.gp-compare-table tbody tr:last-child th, .gp-compare-table tbody tr:last-child td { border-bottom: 0; }
.gp-compare-table tbody th { font-weight: 600; }
.gp-compare-table tbody th a { color: var(--text); text-decoration: none; }
.gp-compare-table tbody th a:hover { text-decoration: underline; }
.gp-compare-table td { color: var(--text-muted); }
.gp-compare-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-compare-table td.num { color: var(--text); }
@media (max-width: 768px) {
  .gp-compare-table { font-size: .88rem; }
  .gp-compare-table th, .gp-compare-table td { padding: 12px 14px; }
  .gp-compare-table tbody th { position: sticky; left: 0; background: var(--bg); min-width: 150px; }
}
.card-renewal .cr-short { display: none; }
@media (max-width: 768px) {
  .card-renewal .cr-full { display: none; }
  .card-renewal .cr-short { display: inline; }
}

/* Ficha en PC: el cuadro de compra acompaña mientras se baja */
@media (min-width: 1024px) {
  html:not(#_u) body:not(#_u) .product-detail > .pdp-title-block {
    position: sticky; top: 96px; align-self: start;
  }
}
/* overflow-x: hidden en html/body rompe "sticky"; clip corta igual sin romperlo */
html:not(#_u), html:not(#_u) body:not(#_u) { overflow-x: clip; overflow-y: visible; }
