/* ============================================================================
   Versátil Shop — acabado.css
   Acabado y consistencia de todo el sitio (dueño, 2026-10-01: tono profesional
   y minimalista, Inter, sin píldoras, cintas, degradados, brillos ni emojis).

   Se carga la ÚLTIMA en todas las páginas y manda sobre storefront.css,
   components.css y storefront-polish.css. Un solo lugar para:
     1. Tokens: escala tipográfica, tres radios, colores de marca.
     2. Base: títulos, botones, controles, enlaces.
     3. Barra superior, encabezado y pie.
     4. Inicio: héroe, favoritos, catálogo y tarjetas, pasos, zonas, confianza.
     5. Ficha de producto y modal.
     6. Nosotros, zonas, políticas, cómo comprar, cierre de contacto común.
     7. Pedido (cajón), aviso (toast), asistente flotante.
     8. Landing del Mini UPS.
   ============================================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f5f1;
  --ink: #202321;
  --ink-soft: #3a3d38;
  --muted: #686b65;
  --line: #ddded6;
  --white: #fff;
  --accent: #d54b27;        /* marca: logo, punto del eyebrow */
  --accent-cta: #c8431f;    /* botón principal y texto pequeño en acento (4.5:1 sobre blanco) */
  --accent-hover: #b63c1c;
  --accent-texto: #b63c1c;  /* naranja para TEXTO sobre fondo claro: 5.26:1 sobre --paper (anexo WEB-07, A1); los botones siguen con --accent-cta */
  --ok: #1e6b2e;            /* "Disponible" */
  --sold: #9a3b1f;          /* "Agotado" */
  --dark: #1a1d1b;          /* barra superior */
  --footer: #222822;

  --r-control: 4px;         /* botones, campos, chips */
  --r-card: 8px;            /* tarjetas */
  --r-panel: 12px;          /* paneles, cajones, diálogos */

  --t-h1: 46px;             /* título de página */
  --t-h2: 30px;             /* título de sección */
  --t-h3: 20px;             /* subtítulo / título de tarjeta grande */
  --t-eyebrow: 12px;
  --t-body: 15px;
  --t-min: 12px;

  --barra-alto: 34px;       /* barra superior: una sola línea (en celular, texto corto) */
  --radius: var(--r-card);
}
@media (max-width: 700px) {
  :root {
    --t-h1: 32px;
    --t-h2: 26px;
    --t-h3: 19px;
    --barra-alto: 34px;
  }
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
body { font-size: var(--t-body); }

.eyebrow { font-size: var(--t-eyebrow); letter-spacing: .1em; font-weight: 600; color: var(--ink-soft); }
.eyebrow::before { width: 6px; height: 6px; }

.section-heading { align-items: flex-end; margin-bottom: 28px; }
.section-heading h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 10px; }
.section-heading p { font-size: 15px; color: var(--muted); max-width: 440px; }
@media (max-width: 700px) {
  .section-heading, .catalog-section > .section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .catalog-section > .section-heading > p { padding-top: 0; max-width: none; font-size: 14px; }
}

/* Botones: 15px, 48px de alto, radio de control. Terracota solo para la acción principal; lo demás en contorno. */
.btn {
  min-height: 48px;
  padding: 12px 22px;
  gap: 10px;
  border-radius: var(--r-control);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--accent-cta); color: #fff; border-color: var(--accent-cta); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: #b9bcb4; }
.btn-outline:hover { background: #ecede7; border-color: var(--ink); }
.btn-dark { background: transparent; color: var(--ink); border: 1px solid #b9bcb4; }
.btn-dark:hover { background: #ecede7; border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.text-link { font-size: 14px; font-weight: 600; gap: 8px; min-height: 0; }

input, select, textarea { border-radius: var(--r-control); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-offset: 3px; }

/* El hueco del icono de WhatsApp (el icono nunca se cargó) desaparece; el botón queda limpio. */
.wa-cta { gap: 8px; }
.wa-cta .wa-cta-icon { display: none; }

/* ── 3. Barra superior, encabezado y pie ───────────────────────────────── */
.utility-bar {
  height: var(--barra-alto);
  background: var(--dark);
  font-size: 13px;
  display: flex;
  align-items: center;
}
[data-site-header] { top: calc(-1 * var(--barra-alto)); }
.utility-inner { height: auto; width: calc(100% - 32px); max-width: 1344px; }
/* Dueño 2026-10-02: minúsculas normales, peso medio, sin espaciado; en celular la versión corta de una línea. */
.utility-scroll { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; white-space: nowrap; padding: 0; animation: none; transform: none; line-height: 1.3; }
.utility-scroll::after { content: none; }
.utility-scroll span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #fff; text-shadow: none; }
.utility-scroll [data-anuncio-corto] { display: none; }
@media (max-width: 700px) {
  .utility-scroll [data-anuncio] { display: none; }
  .utility-scroll [data-anuncio-corto] { display: inline; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .utility-scroll [data-anuncio-corto] { font-size: 12px; }
}
/* Teléfonos muy estrechos (320 px): antes que recortar el texto, se permite una segunda línea sin bajar de 12 px. */
@media (max-width: 340px) {
  :root { --barra-alto: 42px; }
  .utility-scroll { white-space: normal; text-overflow: clip; }
}

.site-header { background: #faf9f6; border-bottom: 1px solid var(--line); box-shadow: none; }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header { background: rgb(250 249 246 / 92%); }
}
.header-inner { height: 78px; }
.desktop-nav { font-size: 14px; font-weight: 500; gap: 26px; }
.header-actions { gap: 8px; }
.icon-button { border-radius: 50%; }
/* Botón "Pedir por WhatsApp" en el encabezado (solo computadora; en celular quedan los iconos y el menú). */
.header-wa { min-height: 42px; padding: 9px 16px; font-size: 14px; margin-left: 6px; }
@media (max-width: 1050px) { .header-wa { display: none; } }
.mobile-nav a { font-size: 16px; font-weight: 500; }
.mobile-nav a span { display: none; }

.site-footer { background: var(--footer); padding: 56px 0 24px; }
.footer-top { grid-template-columns: 1.1fr .8fr .9fr 1.1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: #c9cfc2; margin: 18px 0 0; }
.footer-column h2, .footer-contact h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #bac2b4; margin: 4px 0 14px; }
.footer-column a, .footer-policies a { font-size: 14px; line-height: 1.5; color: #e2e7da; margin: 0; }
.site-footer .footer-column a { padding: 9px 0; min-height: 40px; }
.footer-address { font-size: 14px; }
.footer-hours { font-size: 14px !important; color: #c9cfc2; }
.footer-phone { font-size: 17px; font-weight: 600; border-bottom: 0; }
.footer-bottom { font-size: 12px; color: #aeb6a6; padding-top: 18px; }
@media (max-width: 760px) {
  .site-footer { padding-top: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-bottom: 28px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-contact { padding-top: 4px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-bottom: 64px; } /* aire para el botón flotante */
}

/* ── 4. Inicio ─────────────────────────────────────────────────────────── */
.home-hero { padding: 36px 0 20px; }
.home-hero .hero-copy h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; max-width: 14ch; }
.home-hero .hero-copy > p[data-home-subtitulo] { font-size: 17px; line-height: 1.65; margin: 20px 0 4px; color: var(--ink-soft); max-width: 560px; }
.home-acciones { gap: 12px; margin-top: 22px; }
.home-acciones .btn { min-height: 48px; }
/* Dirección, horario y mapa, juntos y con el mismo texto que el pie. */
.hero-sede { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.hero-sede .hero-direccion { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); gap: 8px; }
.hero-sede .hero-direccion svg { width: 18px; height: 18px; color: var(--accent-texto); }
.hero-sede .hero-horario { margin: 0; }
.home-map-link { min-height: 0; font-size: 14px; font-weight: 600; color: var(--accent-texto); text-underline-offset: 4px; }
.home-proof { background: #252b25; border-radius: var(--r-panel); padding: 30px; box-shadow: none; }
.home-proof-head span { font-size: 12px; letter-spacing: .1em; color: #e5b48f; }
.home-proof-head strong { font-size: 22px; font-weight: 600; }
.home-proof li > span { font-size: 12px; color: #e5b48f; }
.home-proof li strong { font-size: 15px; font-weight: 600; }
.home-proof li p { font-size: 13px; }
.home-proof-foot { font-size: 13px; }
.home-proof-foot a { font-size: 15px; }
@media (max-width: 900px) {
  .home-hero .hero-copy { padding: 10px 0 6px; }
}
@media (max-width: 700px) {
  .home-hero { padding: 22px 0 8px; }
  .home-hero .hero-copy h1 { max-width: none; line-height: 1.12; }
  .home-hero .hero-copy > p[data-home-subtitulo] { font-size: 15px; margin-top: 14px; }
  .home-acciones { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .home-acciones .btn { width: 100%; min-height: 48px; padding: 12px 16px; font-size: 15px; }
  .hero-sede { flex-direction: column; align-items: flex-start; gap: 6px; }
  .home-proof { padding: 22px; }
  .home-proof-head strong { font-size: 20px; }
}

/* Favoritos: la misma tarjeta del catálogo, en 4 columnas, sin avance automático. */
.destacados-section { padding: 36px 0 4px; }
.destacados-track { gap: 20px; padding-bottom: 4px; }
.destacado-card { border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.destacado-visual { padding-bottom: 100%; background: var(--white); border-bottom: 1px solid #eff1ee; }
.destacado-visual img { padding: 10px; }
.destacado-badge { display: none; }
.destacado-info { padding: 12px 14px 14px; gap: 8px; }
.destacado-info h3 { font-size: 14px; font-weight: 500; line-height: 1.45; letter-spacing: -.1px; -webkit-line-clamp: 3; min-height: 61px; }
.destacado-precio .price-block-oferta { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.destacado-cod { font-size: 12px; font-weight: 600; color: var(--ok); }
.destacado-info .btn { min-height: 44px; font-size: 14px; }
.destacados-flecha { width: 40px; height: 40px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; top: 36%; }
.destacados-flecha:hover { background: #ecede7; }
.destacados-punto { width: 8px; height: 8px; background: #cdd0c8; }
.destacados-punto.activo { background: var(--ink); }
@media (min-width: 1000px) { .destacado-card { flex: 0 0 calc(25% - 15px); } }
@media (min-width: 700px) and (max-width: 999px) { .destacado-card { flex: 0 0 calc(33.333% - 14px); } }
@media (max-width: 699px) { .destacado-card { flex: 0 0 calc(50% - 10px); } .destacados-track { gap: 12px; } .destacado-info { padding: 10px 10px 12px; } }

/* Catálogo: sin degradado, sin halos, sin sombras; borde fino y blanco. */
.catalog-section { padding: 20px 0 70px; }
.catalog-section::before { content: none; }
.catalog-section .section-heading p { font-size: 15px; }
.catalog-toolbar { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.catalog-section .catalog-search { background: var(--white); border: 1px solid #cfd2c9; border-radius: var(--r-control); box-shadow: none; min-height: 48px; }
.catalog-search input { font-size: 15px; min-height: 46px; }
.catalog-categories { gap: 8px; }
.catalog-section .catalog-categories button { border-radius: var(--r-control); border: 1px solid #cfd2c9; background: var(--white); color: var(--ink-soft); font-size: 13px; font-weight: 500; min-height: 42px; padding: 8px 14px; }
.catalog-section .catalog-categories button:hover { background: #ecede7; color: var(--ink); }
.catalog-section .catalog-categories button.active, .catalog-section .catalog-categories button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.catalog-meta { font-size: 13px; }
.catalog-section .sort-label select { font-size: 13px; background: transparent; border-radius: var(--r-control); }
.catalog-section .product-grid { gap: 28px 20px; }
.catalog-section .product-card, .product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: none; transition: border-color .15s ease; }
.catalog-section .product-card:hover, .catalog-section .product-card:focus-within { border-color: #aeb3aa; box-shadow: none; transform: none; }
.product-open, .catalog-section .product-open { border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; border-bottom: 1px solid #eff1ee; background: var(--white); aspect-ratio: 1; }
.product-image, .catalog-section .product-image { padding: 10px; object-fit: contain; }
.product-open:hover .product-image { transform: none; }
.product-info, .catalog-section .product-info { padding: 12px 14px 14px; gap: 6px; }
.product-title, .catalog-section .product-title { font-size: 14px; font-weight: 500; line-height: 1.45; letter-spacing: -.1px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: none; min-height: 61px; }
.product-card .product-info .product-title { padding: 0; margin: 0; box-sizing: border-box; }
.product-prices, .catalog-section .product-prices { margin: 4px 0 2px; line-height: 1.2; }
.product-price, .catalog-section .product-price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.product-bottom, .catalog-section .product-card .product-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.product-bottom-row, .catalog-section .product-card .product-bottom-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
.product-card .product-stock, .catalog-section .product-card .product-stock { font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--ok); }
.product-card .product-stock.is-unavailable, .catalog-section .product-card .product-stock.is-unavailable { color: var(--sold); }
.product-add, .catalog-section .product-add, .catalog-section .product-card .product-add { width: 100%; flex: none; min-height: 44px; margin: 0; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid #b9bcb4; border-radius: var(--r-control); line-height: 1.2; white-space: normal; }
.product-add:hover:not(:disabled), .catalog-section .product-add:hover:not(:disabled) { background: #ecede7; border-color: var(--ink); color: var(--ink); }
.product-add:disabled, .catalog-section .product-add:disabled { opacity: 1; color: var(--muted); border-color: var(--line); background: #faf9f6; cursor: not-allowed; }
.product-card .product-add::before { content: none; }
.card-cod-micro, .catalog-section .product-card .card-cod-micro { font-size: 12px; font-weight: 500; color: var(--muted); white-space: normal; margin: 0; }
.product-card .product-image-note { font-size: 11px; border-radius: 2px; }
.catalog-expand { margin-top: 32px; }
.catalog-section .catalog-expand button { background: var(--white); border: 1px solid #b9bcb4; border-radius: var(--r-control); font-size: 15px; font-weight: 600; min-height: 48px; padding: 12px 24px; }
.catalog-section .catalog-expand button:hover { background: #ecede7; border-color: var(--ink); }
#catalogExpandCounter { font-size: 13px; margin-left: 10px; }
@media (max-width: 760px) {
  .catalog-section { padding: 10px 0 50px; }
  .catalog-toolbar { gap: 12px; padding-bottom: 14px; margin-bottom: 12px; }
  .catalog-categories { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .catalog-categories::-webkit-scrollbar { display: none; }
  .catalog-section .catalog-categories button { flex: 0 0 auto; }
  .catalog-meta { font-size: 12px; margin-bottom: 14px; }
  .catalog-section .product-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .product-info, .catalog-section .product-info, .catalog-section .product-card .product-info { padding: 10px 10px 12px; gap: 6px; }
  .product-title, .catalog-section .product-title, .catalog-section .product-card .product-title { font-size: 13px; line-height: 1.4; -webkit-line-clamp: 3; min-height: 55px; max-height: none; }
  .product-price, .catalog-section .product-card .product-price { font-size: 18px; }
  .product-card .product-stock, .catalog-section .product-card .product-stock { font-size: 12px; }
  .product-add, .catalog-section .product-card .product-add { min-height: 44px; font-size: 14px; }
  .catalog-section .product-prices { min-height: 0; }
}

/* Compra en 3 pasos: centrado como el resto, sin miniaturas. */
.como-comprar-strip { margin: 44px auto 12px; border-radius: var(--r-panel); padding: 28px; gap: 18px; }
.como-comprar-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.como-comprar-cab h2 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; margin: 6px 0 0; }
.como-comprar-cab .text-link { color: var(--accent-texto); }
.como-comprar-pasos { gap: 20px; }
.como-comprar-pasos li { align-items: flex-start; gap: 12px; border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
.como-comprar-pasos li img { display: none; }
.como-comprar-pasos span { font-size: 13px; font-weight: 700; color: var(--accent-texto); padding-top: 2px; }
.como-comprar-pasos strong { font-size: 15px; font-weight: 600; }
.como-comprar-pasos small { font-size: 13px; }
.como-comprar-nota { font-size: 14px; }
@media (max-width: 700px) {
  .como-comprar-strip { padding: 20px; margin-top: 32px; }
  .como-comprar-pasos { gap: 12px; }
  .como-comprar-pasos li { padding-top: 12px; }
}

/* Zonas en el inicio: papel y borde fino, 2×2 en celular, sin píldora ni borde ámbar. */
.home-zonas { padding: 44px 0 8px; }
.home-zonas .section-heading { align-items: flex-end; }
.home-zonas-grid { gap: 14px; }
.home-zona-card { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; gap: 6px; box-shadow: none; transition: border-color .15s ease; }
.home-zona-card:hover { border-color: var(--ink); transform: none; box-shadow: none; }
.home-zona-cod { font-size: 12px; font-weight: 600; color: var(--ok); background: none; border: 0; border-radius: 0; padding: 0; }
.home-zona-card h3 { font-size: 18px; font-weight: 600; }
.home-zona-municipios { font-size: 13px; color: var(--ink-soft); }
.home-zonas-enlace { display: inline-flex; margin-top: 18px; color: var(--accent-texto); }
@media (max-width: 640px) {
  .home-zonas-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-zona-card { padding: 14px; }
  .home-zona-card h3 { font-size: 16px; }
  .home-zona-municipios { font-size: 12px; -webkit-line-clamp: 3; }
}

/* Por qué confiar: tantas columnas como tarjetas; iconos de línea en lugar de emojis. */
.home-seriedad { padding: 44px 0 8px; }
.seriedad-stack { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.seriedad-item { border-radius: var(--r-card); padding: 20px; gap: 8px; }
.seriedad-icono { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #f1f1ec; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
.seriedad-icono svg { width: 20px; height: 20px; }
.seriedad-item strong { font-size: 16px; font-weight: 600; }
.seriedad-item p { font-size: 14px; }

/* Cierre de contacto común (inicio, nosotros, zonas, políticas, cómo comprar). */
.cierre-contacto, .policy-cta, .nosotros-cta, .registro-cta { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-panel); padding: 28px; margin: 40px auto 0; max-width: 860px; }
.cierre-contacto h2, .policy-cta h2, .nosotros-cta h2 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.cierre-contacto p, .policy-cta p, .nosotros-cta p { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.home-cierre { padding: 36px 0 64px; }
.home-cierre .cierre-contacto { margin: 0; max-width: none; }
.contact-band { background: transparent; padding: 24px 0 64px; }
.contact-band .container { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-panel); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-band h2 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; }
.contact-band p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.contact-band .btn-dark { background: var(--accent-cta); color: #fff; border-color: var(--accent-cta); }
.contact-band .btn-dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (max-width: 700px) {
  .cierre-contacto, .policy-cta, .nosotros-cta, .registro-cta { padding: 20px; }
  .cierre-contacto .btn, .policy-cta .btn, .nosotros-cta .btn, .contact-band .btn { width: 100%; }
  .contact-band .container { flex-direction: column; align-items: stretch; padding: 20px; }
}

/* ── 5. Ficha de producto y modal ──────────────────────────────────────── */
.producto-page { padding: 36px 0 72px; max-width: 1100px; }
.producto-head { padding-bottom: 20px; margin-bottom: 24px; }
.producto-head h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 10px 0 10px; max-width: 24ch; }
.producto-categoria { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.producto-categoria::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.producto-categoria:hover { color: var(--accent-texto); }
.producto-stock-line { font-size: 14px; font-weight: 700; color: var(--ok); display: inline-flex; align-items: center; gap: 7px; }
.producto-stock-line::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.producto-stock-line.is-unavailable { color: var(--sold); }
.producto-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
.producto-visual img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; }
.producto-visual figcaption { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-top: 14px; }
.producto-resumen { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.producto-galeria { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.producto-galeria button { width: 64px; height: 64px; flex: 0 0 64px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-control); }
.producto-galeria button[aria-pressed=true] { border-color: var(--accent-cta); box-shadow: inset 0 0 0 1px var(--accent-cta); }
.producto-galeria img { width: 100%; height: 100%; object-fit: contain; }
.producto-info { gap: 20px; }
.producto-precio-block .price-block-oferta { font-size: 36px; font-weight: 600; letter-spacing: -.02em; }
.price-block-confianza { font-size: 14px; }
.variante-selector { gap: 10px; }
.variante-selector-titulo { font-size: 14px; font-weight: 600; }
.variante-chip { border-radius: var(--r-control); border: 1px solid #b9bcb4; background: var(--white); min-height: 50px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.variante-chip span { font-size: 13px; }
.variante-chip:hover { border-color: var(--ink); }
.variante-chip.activa { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.variante-chip.activa span { color: #e2e7da; }
.variante-chip:disabled, .variante-chip.agotada { color: var(--muted); border-color: var(--line); background: #faf9f6; cursor: not-allowed; }
.variante-chip:disabled span, .variante-chip.agotada span { color: var(--sold); }
.producto-acciones { gap: 10px; align-items: stretch; max-width: 420px; }
.producto-acciones .btn { width: 100%; }
.producto-acciones .btn.wa-cta { justify-content: center; }
.producto-acciones .btn-outline { justify-content: center; }
.producto-acciones-nota { font-size: 13px; }
.producto-caracteristicas { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.producto-caracteristicas li { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.producto-bloque h2 { font-size: 17px; font-weight: 600; }
.producto-bloque p, .producto-compatibles li { font-size: 15px; }
.producto-acordeones { margin-top: 32px; gap: 10px; }
.producto-acordeones details { border-radius: var(--r-card); }
.producto-acordeones summary { font-size: 16px; font-weight: 600; }
.producto-acordeones summary span { color: var(--ink); font-weight: 400; }
.producto-acordeones details p, .producto-acordeones details li { font-size: 15px; }
.producto-specs { display: table; width: 100%; border-collapse: collapse; gap: 0; font-size: 15px; }
.producto-specs > div { display: table-row; }
.producto-specs dt, .producto-specs dd { display: table-cell; padding: 9px 0; border-top: 1px solid #eceee8; vertical-align: top; }
.producto-specs dt { width: 38%; padding-right: 16px; color: var(--muted); font-weight: 500; }
.producto-specs > div:first-child dt, .producto-specs > div:first-child dd { border-top: 0; }
.producto-confianza, .producto-zona { margin-top: 40px; max-width: 860px; }
.producto-confianza h2, .producto-zona h2 { font-size: var(--t-h3); font-weight: 600; }
.trust-badges { gap: 12px; }
.trust-badge { border-radius: var(--r-card); }
.trust-badge-link:hover { border-color: transparent; }
.trust-badge:hover { border-color: var(--ink); }
.trust-badge-body svg { color: var(--ink); width: 24px; height: 24px; }
.trust-badge-body strong { font-size: 15px; font-weight: 600; }
.trust-badge-body span { font-size: 13px; }
.trust-badge-arrow { display: none; }
.cod-zonas { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-card); padding: 20px; gap: 12px; }
.cod-zonas-titulo { font-size: 16px; font-weight: 600; }
.cod-zonas-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cod-zonas-lista li { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-control); padding: 12px 14px; gap: 3px; }
.cod-zonas-lista strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.cod-zonas-provincia { font-size: 12px; }
.cod-zonas-municipios { font-size: 13px; }
.cod-zonas-nota { font-size: 14px; }
.cod-zonas-enlace { font-size: 14px; color: var(--accent-texto); }
@media (max-width: 860px) {
  .producto-page { padding: 24px 0 56px; }
  .producto-head h1 { max-width: none; }
  .producto-layout { grid-template-columns: 1fr; gap: 22px; }   /* una columna: foto, precio, botón */
  .producto-acciones { max-width: none; }
}
@media (max-width: 700px) {
  .producto-precio-block .price-block-oferta { font-size: 32px; }
  .producto-specs dt { width: 42%; }
  .cod-zonas-lista { grid-template-columns: 1fr 1fr; }
}

/* Modal del catálogo: misma escala y radios, enlaces internos sin flecha. */
#productModal .product-dialog-panel { border-radius: var(--r-panel); border: 1px solid var(--line); box-shadow: 0 24px 80px #1016121f; }
.product-dialog-top > span { font-size: 12px; letter-spacing: .08em; }
#productModal #modalTitle { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.product-excerpt { font-size: 14px; color: var(--ink-soft); }
#productModal #modalOfferPrice { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.product-availability .product-stock { font-size: 13px; font-weight: 700; color: var(--ok); }
.product-availability .product-stock.is-unavailable { color: var(--sold); }
.modal-variants h3 { font-size: 14px; font-weight: 600; }
.variant-options button { border-radius: var(--r-control); border: 1px solid #b9bcb4; font-size: 13px; }
.variant-options button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.variant-options button[aria-pressed=true] small { color: #e2e7da; }
.variant-options button:disabled { background: #faf9f6; border-color: var(--line); color: var(--muted); }
.variant-options button:disabled > span, .variant-options button:disabled > small { background: transparent; }
.product-accordions summary { font-size: 15px; font-weight: 600; }
.accordion-body, .product-accordions dl { font-size: 14px; color: var(--ink-soft); }
.product-actions .btn, #productModal #modalBuyNowBtn, #productModal #modalWhatsAppBtn { font-size: 14px; font-weight: 600; }
.product-actions.is-agotado .btn-primary { grid-column: 1 / -1; }
.product-actions p { font-size: 12px; }
.product-thumbnails button { border-radius: var(--r-control); }
.product-thumbnails button[aria-pressed=true] { outline: 0; border-color: var(--accent-cta); box-shadow: inset 0 0 0 1px var(--accent-cta); }
.product-visual-footer, .product-visual-footer button, .product-photo-note, .media-position { font-size: 12px; }
.product-stage { border-radius: var(--r-control); }
.image-zoom-button { border-radius: 50%; }

/* ── 6. Nosotros, zonas, políticas, cómo comprar ──────────────────────── */
.nosotros-hero, .zonas-hero, .policy-page, .guia-page { max-width: 860px; }
.nosotros-hero h1, .zonas-hero h1, .policy-head h1, .guia-page h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 10px 0 14px; }
.nosotros-historia p, .zonas-intro, .policy-body p, .guia-page p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); max-width: 680px; }
.nosotros-seccion { padding: 32px 0 8px; }
.nosotros-datos-titulo { font-size: var(--t-h3); font-weight: 600; }
.nosotros-datos { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-card); padding: 22px 24px; max-width: 680px; }
.nosotros-datos p { font-size: 15px; margin: 0 0 8px; }
.nosotros-datos p:last-child { margin-bottom: 0; }
.nosotros-datos .btn { margin-top: 14px; }
.nosotros-datos a[data-wa] { color: var(--accent-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.nosotros-mapa { border: 0; padding: 0; background: transparent; }
.nosotros-acciones { margin: 40px auto 56px; border-radius: var(--r-panel); padding: 28px; }
.nosotros-acciones h2 { font-size: var(--t-h3); font-weight: 600; }
.nosotros-accion { border: 1px solid #b9bcb4; border-radius: var(--r-card); min-height: 0; padding: 18px 16px; gap: 4px; }
.nosotros-accion:hover { border-color: var(--ink); transform: none; }
.nosotros-accion span { display: none; }
.nosotros-accion strong { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.nosotros-accion small { font-size: 13px; }
.nosotros-accion[data-nosotros-escribir] { background: var(--accent-cta); border-color: var(--accent-cta); color: #fff; }
.nosotros-accion[data-nosotros-escribir] small { color: #fbe7df; }
.nosotros-accion[data-nosotros-escribir]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.nosotros-anos { background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink-soft); }
.nosotros-page .customer-reviews { padding-block: 40px 8px; max-width: 860px; }
.reviews-heading h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; margin: 10px 0 8px; }
.reviews-heading p { font-size: 15px; color: var(--muted); }
.review-invite { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.review-invite strong { font-size: 15px; }
.review-invite p { font-size: 14px; color: var(--muted); }
.review-dialog { border-radius: var(--r-panel); }
.rating-options span { border-radius: var(--r-control); }
.rating-options input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.review-form input:not([type=radio]):not([type=checkbox]), .review-form textarea { border-radius: var(--r-control); }
@media (max-width: 700px) { .reviews-heading { flex-direction: column; align-items: flex-start; gap: 14px; } .reviews-heading .btn { width: 100%; } }
@media (max-width: 640px) {
  .nosotros-acciones { padding: 20px; margin: 32px auto 44px; }
}

.zonas-hero { padding: 44px 0 4px; }
.zonas-selector-wrap { max-width: 860px; padding: 24px 0 0; }
.zonas-seccion { padding: 40px 0 0; max-width: 860px; }
.zonas-pasos-seccion { padding-bottom: 8px; }
.contra-entrega-titulo { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; }
.contra-entrega-pasos li { border-radius: var(--r-card); padding: 18px; }
.contra-entrega-numero { color: var(--accent-texto); font-size: 13px; }
.contra-entrega-pasos p { font-size: 15px; }
.zonas-nota { color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 14px; }
.zonas-pasos li { border-radius: var(--r-card); }
.zonas-paso-numero { color: var(--accent-texto); }
@media (max-width: 640px) {
  .zonas-hero { padding-top: 32px; }
  .zonas-seccion { padding-top: 32px; }
  .contra-entrega-pasos { grid-template-columns: 1fr; }
}

.policy-page { padding: 44px 0 72px; }
.policy-head { padding-bottom: 20px; margin-bottom: 24px; }
.policy-meta { font-size: 13px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.policy-nav a { color: var(--muted); font-weight: 500; padding: 6px 0; display: inline-block; }
.policy-nav a:hover { color: var(--ink); }
.policy-nav a[aria-current=page] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent-cta); }
.policy-body section { margin-bottom: 26px; }
.policy-body h2 { font-size: var(--t-h3); font-weight: 600; }
.policy-chip { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .policy-page { padding: 28px 0 56px; } }

/* Página /como-comprar/: las guías en una sola columna de lectura. */
.guia-page { padding: 44px 0 72px; }
.guia-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.guia-indice { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.guia-indice a { color: var(--muted); font-weight: 500; padding: 6px 0; display: inline-block; }
.guia-indice a:hover { color: var(--ink); }
.guia-articulo { padding: 32px 0 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.guia-articulo:last-of-type { border-bottom: 0; }
.guia-articulo > h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 12px; }
.guia-articulo .guia-intro { font-size: 17px; margin-bottom: 8px; }
.guia-articulo section { margin: 22px 0 0; }
.guia-articulo h3 { font-size: var(--t-h3); font-weight: 600; margin: 0 0 8px; }
.guia-articulo p { margin: 0 0 10px; }
.guia-articulo ul { margin: 0 0 10px; padding-left: 20px; }
.guia-articulo li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.guia-nota { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-card); padding: 14px 16px; font-size: 14px !important; color: var(--ink-soft); }
.guia-articulo .guia-cta { margin: 20px 0 24px; }
.guia-error p { color: var(--muted); }
@media (max-width: 700px) { .guia-page { padding: 28px 0 56px; } .guia-articulo { padding-top: 26px; } }

/* ── 7. Pedido, aviso y asistente ──────────────────────────────────────── */
.quote-panel { border-radius: 0; box-shadow: -12px 0 40px #12201018; }
.quote-panel.is-empty { height: 100dvh; max-height: none; align-self: stretch; }
.quote-header { padding: 24px 24px 20px; }
.quote-header h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.quote-items { padding: 0 24px; }
.quote-item { gap: 14px; padding: 18px 0; }
.quote-item-image { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r-control); }
.quote-item-title { font-size: 14px; font-weight: 500; line-height: 1.45; }
.quote-item-price { font-size: 16px; font-weight: 600; margin: 6px 0 10px; }
.quote-quantity { border-radius: var(--r-control); border-color: #b9bcb4; }
.quote-quantity button { width: 40px; height: 40px; }
.quote-quantity span { font-size: 14px; }
.quote-remove { font-size: 13px; }
.quote-footer { background: var(--paper); padding: 16px 24px; }
.quote-total { font-size: 14px; }
.quote-total strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.quote-footer p { font-size: 13px; line-height: 1.5; margin: 8px 0 12px; }
.quote-footer > .btn { font-size: 15px; }
.quote-footer .quote-confirmation { font-size: 12px; margin: 10px 0 0; }
/* "Elige tu ciudad": lista propia con jerarquía ciudad → municipio, filas de 44 px, marca en la elección y una sombra suave
   que la despega del cajón (dueño 2026-10-02: que no se vea pobre ni plana). */
.quote-zona { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.quote-zona-etiqueta { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.quote-zona-boton { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1px solid #b9bcb4; border-radius: var(--r-control); font-size: 15px; color: var(--muted); text-align: left; box-shadow: inset 0 1px 2px #1016120d; transition: border-color .15s ease, box-shadow .15s ease; }
.quote-zona-boton:hover { border-color: var(--ink); }
.quote-zona-boton[aria-expanded=true] { border-color: var(--ink); box-shadow: 0 0 0 3px #20232114; }
.quote-zona-boton svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); transition: transform .15s ease; }
.quote-zona-boton[aria-expanded=true] svg { transform: rotate(180deg); }
.quote-zona-texto { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.quote-zona-texto.elegida { color: var(--ink); }
.quote-zona-texto strong { font-weight: 600; }
.quote-zona-texto span { font-size: 13px; color: var(--muted); }
.quote-zona-lista { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 6; margin: 0; padding: 6px 0; list-style: none; background: var(--white); border: 1px solid #d3d5cf; border-radius: var(--r-card); box-shadow: 0 18px 44px #10161224, 0 2px 6px #10161210; max-height: min(360px, 52vh); overflow: auto; overscroll-behavior: contain; }
.quote-zona-lista.arriba { top: auto; bottom: calc(100% + 6px); box-shadow: 0 -14px 40px #10161220, 0 -2px 6px #10161210; }
.quote-zona-grupo { padding: 12px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.quote-zona-grupo + .quote-zona-grupo, .quote-zona-opcion + .quote-zona-grupo { margin-top: 6px; border-top: 1px solid #eceee8; padding-top: 12px; }
.quote-zona-opcion { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 16px 10px 26px; font-size: 15px; color: var(--ink); cursor: pointer; outline: none; }
.quote-zona-opcion svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent-texto); opacity: 0; }
.quote-zona-opcion:hover, .quote-zona-opcion:focus-visible { background: var(--paper); }
.quote-zona-opcion:focus-visible { box-shadow: inset 3px 0 0 var(--accent-cta); }
.quote-zona-opcion[aria-selected=true] { font-weight: 600; }
.quote-zona-opcion[aria-selected=true] svg { opacity: 1; }
.quote-zona-otra { margin-top: 6px; border-top: 1px solid #eceee8; padding: 12px 16px 10px; color: var(--ink-soft); }
.quote-footer-enlaces { display: flex; justify-content: center; gap: 22px; margin-top: 6px; }
.quote-footer .quote-continue, .quote-footer .quote-clear { width: auto; min-height: 44px; margin: 0; padding: 10px 2px; background: none; border: 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.quote-footer .quote-continue:hover, .quote-footer .quote-clear:hover { background: none; color: var(--ink); }
.quote-empty { padding: 36px 0; }
.quote-empty .empty-bag { width: 56px; height: 56px; background: #ecede7; color: var(--ink); font-size: 26px; }
.quote-empty h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.quote-empty p { font-size: 15px; }
.quote-empty .btn { font-size: 15px; }
@media (max-width: 760px) {
  .quote-header { padding: 20px 18px 16px; }
  .quote-items { padding: 0 18px; }
  .quote-footer { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
}
#quoteListButton.floating-list { border-radius: 30px; background: var(--ink); border: 0; box-shadow: 0 6px 18px #1016121f; font-size: 13px; font-weight: 600; }

/* Aviso "Agregado a tu pedido": solo existe mientras tiene texto. */
#consumerToast.consumer-toast { background: var(--ink); border: 0; border-radius: var(--r-card); font-size: 14px; padding: 12px 16px; box-shadow: 0 8px 24px #1016121f; }
#consumerToast.consumer-toast:empty { display: none; }

/* Asistente: burbuja de chat en línea, 48px, sin pulso, sin sombra de color. */
.asistente-launcher { width: 48px; height: 48px; right: 18px; bottom: 18px; background: var(--ink); color: #fff; box-shadow: 0 6px 18px #1016121f; animation: none; font-size: 0; }
.asistente-launcher:hover { transform: none; background: #363c37; }
.asistente-launcher svg { width: 22px; height: 22px; }
.asistente-panel { border-radius: var(--r-panel); box-shadow: 0 24px 80px #10161233; }
.asistente-head { background: var(--paper); }
.asistente-head h2 { font-size: 20px; font-weight: 600; }
.asistente-sub { font-size: 14px; }
.asistente-pregunta { border-radius: var(--r-control); border: 1px solid #b9bcb4; font-weight: 500; }
.asistente-respuesta { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-card); }
.asistente-respuesta-pregunta { color: var(--ink); }
.asistente-volver { color: var(--accent-texto); }
@media (max-width: 700px) {
  .asistente-launcher { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  #quoteListButton.floating-list { bottom: 16px; }
}

/* ── 8. Landing del Mini UPS (oculta salvo campaña) ───────────────────── */
.mups-hero { padding: 48px 0 32px; }
.mups-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.mups-hero-copy h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.mups-subtitulo { font-size: 16px; }
.mups-hero .eyebrow.light { color: #e5b48f; }
.mups-hero-visual img { width: 100%; max-width: 480px; aspect-ratio: 1; height: auto; object-fit: contain; border-radius: var(--r-card); padding: 12px; background: #fff; }
.mups-hero-visual figcaption { font-size: 12px; }
.mups-badge-destacado { display: none; }
.mups-hero-acciones .btn { min-height: 48px; }
.btn-outline-light { border-radius: var(--r-control); font-size: 15px; font-weight: 600; min-height: 48px; }
.mups-hero .variante-chip { background: #2c352c; border-color: #5a6459; color: #f0f1e9; }
.mups-hero .variante-chip.activa { background: #f6f5f1; color: var(--ink); border-color: #f6f5f1; box-shadow: none; }
.mups-hero .variante-chip.activa span { color: var(--ink-soft); }
.mups-dolor { padding: 56px 0 0; max-width: 760px; margin-inline: auto; text-align: left; }
.mups-dolor h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.mups-dolor p { font-size: 16px; margin: 0; }
.mups-seccion { padding: 48px 0 0; max-width: 760px; }
.mups-beneficios { grid-template-columns: 1fr 1fr; gap: 12px; }
.mups-beneficio { border-radius: var(--r-card); font-size: 15px; }
.mups-beneficio::before { color: var(--ink); }
.mups-compat-wrap, .mups-zona-wrap, .mups-entregas-wrap, .mups-autonomia-grid, .mups-disclaimer, .mups-seriedad, .mups-faq { max-width: none; }
.mups-autonomia-card { border-radius: var(--r-card); }
.mups-oferta-wrap { background: transparent; padding: 48px 0 0; margin-top: 0; }
.mups-oferta { grid-template-columns: 1fr; gap: 14px; max-width: 760px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-panel); padding: 28px; }
.mups-oferta-main h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; margin: 8px 0 0; }
.mups-oferta-main [data-price-block] { display: none; }
.mups-urgencia { max-width: none; font-size: 14px; }
.mups-faq details { border-radius: var(--r-card); }
.mups-faq summary { font-size: 16px; font-weight: 600; }
.mups-faq summary span { color: var(--ink); font-weight: 400; }
.mups-faq details p { font-size: 15px; }
.mups-final { padding: 56px 0; margin-top: 56px; }
.mups-final h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.02em; }
.mups-hero .price-block-oferta { font-size: 36px; font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 1000px) {
  .mups-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .mups-hero-visual { order: -1; }   /* la foto primero: el producto se ve en la primera pantalla */
  .mups-hero-visual img { max-width: 360px; }
}
@media (max-width: 640px) {
  .mups-hero { padding: 24px 0 28px; }
  .mups-hero-acciones { flex-direction: column; align-items: stretch; }
  .mups-hero-acciones .btn, .mups-hero-acciones .btn-outline-light { width: 100%; }
  .mups-beneficios { grid-template-columns: 1fr; }
  .mups-oferta { padding: 20px; }
  .mups-final .btn { width: 100%; }
}

/* ── 9. Enlaces internos sin flecha ↗ (la flecha se reserva para lo que sale del sitio) ── */
.destacado-info .btn span[aria-hidden], .catalog-expand button span[aria-hidden], .product-actions .text-link span[aria-hidden] { display: none; }

/* ── 10. Movimiento reducido ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn, .product-card, .home-zona-card, .nosotros-accion { transition: none; }
}

/* ---------- 11. Ficha: galería con ampliación, "Lo esencial" y barra de compra fija (dueño 2026-10-02) ---------- */
.producto-visual { position: sticky; top: 96px; align-self: start; }
.producto-galeria-wrap { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.producto-galeria-wrap:not(:has(.producto-galeria)) { grid-template-columns: minmax(0, 1fr); }
.producto-foto { position: relative; grid-column: 2; grid-row: 1; display: block; width: 100%; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); cursor: zoom-in; }
.producto-galeria-wrap:not(:has(.producto-galeria)) .producto-foto { grid-column: 1; }
.producto-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; border: 0; border-radius: var(--r-card); background: transparent; }
.producto-foto:focus-visible { outline: 2px solid var(--accent-cta); outline-offset: 2px; }
.producto-foto-contador { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: #ffffffe6; border: 1px solid var(--line); border-radius: var(--r-control); }
.producto-galeria { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0; padding: 0; max-height: 560px; overflow-x: hidden; overflow-y: auto; }
.producto-galeria button { width: 76px; height: 76px; flex: 0 0 76px; padding: 4px; }
.producto-galeria img { width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
/* Video del producto: ocupa el lugar de la foto grande; miniatura "▶ Video" al final de la tira. */
.producto-foto[hidden], .producto-video[hidden] { display: none; }
.producto-video { grid-column: 2; grid-row: 1; }
.producto-galeria-wrap:not(:has(.producto-galeria)) .producto-video { grid-column: 1; }
.producto-video video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.producto-video-nota { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.producto-galeria .producto-galeria-video { position: relative; overflow: hidden; }
.producto-galeria .producto-galeria-video img { opacity: .55; }
.producto-galeria .producto-galeria-video span { position: absolute; inset: auto 4px 4px; padding: 2px 0; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--white); background: var(--ink); border-radius: 4px; }
.producto-esencial h2 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.producto-esencial dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.producto-esencial dl > div { padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-control); }
.producto-esencial dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.producto-esencial dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.producto-zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; }
.producto-zoom::backdrop { background: #101612eb; }
.producto-zoom[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 64px 16px 8px; box-sizing: border-box; }
.producto-zoom-img { max-width: min(94vw, 1100px); max-height: 100%; object-fit: contain; background: var(--white); border-radius: var(--r-card); }
.producto-zoom-leyenda { margin: 0; padding: 10px 16px 14px; font-size: 14px; color: #fff; text-align: center; }
.producto-zoom-cerrar, .producto-zoom-nav { position: fixed; display: flex; align-items: center; justify-content: center; color: #fff; background: #ffffff24; border: 1px solid #ffffff3d; border-radius: var(--r-control); cursor: pointer; }
.producto-zoom-cerrar { top: 12px; right: 12px; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.producto-zoom-nav { top: 50%; width: 48px; height: 64px; margin-top: -32px; font-size: 38px; line-height: 1; }
.producto-zoom-anterior { left: 12px; }
.producto-zoom-siguiente { right: 12px; }
.producto-zoom-nav[hidden] { display: none; }
.producto-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.producto-barra[hidden] { display: none; }
.producto-barra-interior { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; margin: 0 auto; }
.producto-barra-texto { display: flex; flex-direction: column; min-width: 0; }
.producto-barra-texto strong { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.producto-barra-texto span { font-size: 14px; color: var(--ink-soft); }
.producto-barra .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
body.con-barra-compra .asistente-launcher { bottom: 84px; }
@media (max-width: 860px) {
  .producto-visual { position: static; }
  .producto-galeria-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .producto-foto, .producto-galeria-wrap:not(:has(.producto-galeria)) .producto-foto { grid-column: 1; grid-row: 1; }
  .producto-video, .producto-galeria-wrap:not(:has(.producto-galeria)) .producto-video { grid-column: 1; grid-row: 1; }
  .producto-galeria { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .producto-galeria button { width: 64px; height: 64px; flex: 0 0 64px; }
}
@media (max-width: 700px) {
  .producto-esencial dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .producto-barra-texto strong { font-size: 14px; }
  .producto-barra-texto span { font-size: 13px; }
  .producto-barra .btn { padding-left: 16px; padding-right: 16px; }
  body.con-barra-compra .asistente-launcher { bottom: 80px; }
}

/* ── 12. Celular (pedido WEB-03, 2026-11-05): llegar antes al catálogo, más productos por pantalla ──
   Todo dentro de la media query de teléfono (≤ 700 px): la versión de computadora no cambia.
   Ningún texto se borra del código; lo que sobra en celular se oculta con CSS. */
@media (max-width: 700px) {
  /* Pieza 1 — Inicio más corto */
  .home-hero { padding: 14px 0 0; }
  .home-hero .hero-copy { padding: 0; }
  .home-hero .hero-layout { gap: 14px; }
  .home-hero .eyebrow { margin: 0; }
  .home-hero .hero-copy h1 { margin-top: 8px; font-size: 29px; text-wrap: balance; }
  .home-hero .hero-copy > p[data-home-subtitulo] { margin: 8px 0 0; line-height: 1.55; }
  /* Los dos botones del héroe, lado a lado (mismo alto, ancho repartido). */
  .home-acciones { flex-direction: row; margin-top: 14px; gap: 8px; }
  .home-acciones .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 10px 8px; font-size: 14px; }
  .hero-sede { margin-top: 10px; gap: 2px; }
  .section-heading h2 { margin-top: 4px; text-wrap: balance; }
  .section-heading, .catalog-section > .section-heading { gap: 4px; margin-bottom: 12px; }
  .catalog-section { padding-top: 6px; }
  .catalog-section .catalog-toolbar { gap: 8px; padding-bottom: 10px; margin-bottom: 8px; }
  .catalog-section .catalog-meta { margin-bottom: 8px; }
  /* Cuadro oscuro: solo los títulos de los 3 puntos y el teléfono. */
  .home-proof { padding: 14px 16px; }
  .home-proof-head { padding-bottom: 10px; }
  .home-proof-head span { margin-bottom: 4px; }
  .home-proof-head strong { font-size: 17px; line-height: 1.3; }
  .home-proof ol { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; }
  .home-proof li { display: flex; gap: 6px; padding: 0; border: 0; align-items: baseline; }
  .home-proof li > span { padding-top: 0; }
  .home-proof li strong { font-size: 14px; }
  .home-proof li p { display: none; }
  .home-proof-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #ffffff1f; }
  /* Favoritos: fila con desplazamiento lateral (el patrón que ya existe), tarjetas bajas y ~2.3 a la vista. */
  .destacados-section { padding: 18px 0 0; }
  .destacados-section .section-heading { margin-bottom: 12px; }
  .destacado-card { flex: 0 0 calc(50% - 6px); }
  .destacado-visual { padding-bottom: 100%; }   /* WEB-05: cuadrado, la foto llena el ancho (antes 62 %) */
  .destacado-visual img { padding: 2.5px; }
  .destacado-info { padding: 8px 8px 10px; gap: 4px; }
  .destacado-info h3 { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 55px; }
  .destacado-info h3 a { display: inline; padding: 0; margin: 0; }   /* el inline-block impedía el recorte a 3 líneas */
  .destacado-info .btn { padding: 8px; }
  .destacado-precio .price-block-oferta { font-size: 17px; }
  .destacado-cod { display: none; }
  .destacados-dots { margin-top: 6px; }
  /* Por qué confiar: dos columnas y menos relleno. */
  .home-seriedad { padding: 32px 0 4px; }
  .seriedad-stack { grid-template-columns: 1fr 1fr; gap: 10px; }
  .seriedad-item { padding: 12px; gap: 6px; }
  .seriedad-icono { width: 30px; height: 30px; }
  .seriedad-icono svg { width: 18px; height: 18px; }
  .seriedad-item strong { font-size: 14px; line-height: 1.35; }
  .seriedad-item p { font-size: 13px; line-height: 1.45; }
  /* "Explorar todo el catálogo" a ancho completo, como los demás botones. */
  .catalog-expand { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .catalog-section .catalog-expand button { width: 100%; }
}

/* Pieza 2 (WEB-03) — Tarjetas del catálogo compactas en celular: 2 columnas, foto 4:3 sin recortar, precio y estado
   en la misma línea (salta debajo si no cabe) y el botón anclado al fondo para que los de una fila queden parejos. */
@media (max-width: 700px) {
  .catalog-section .product-card { display: flex; flex-direction: column; }
  /* WEB-05: marco cuadrado; las fotos (casi todas cuadradas) llenan el ancho de la tarjeta sin recortarse.
     2.5 px de relleno: lo justo para que la esquina redondeada (7 px, entra 2.05 px en diagonal) no corte la foto. */
  .catalog-section .product-card .product-open { aspect-ratio: 1 / 1; }
  .catalog-section .product-card .product-image { padding: 2.5px; object-fit: contain; }
  .catalog-section .product-card .product-info { position: relative; flex: 1 1 auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 2px 8px; padding: 8px 8px 60px; }
  .catalog-section .product-card .product-info > h3 { flex: 0 0 100%; margin: 0 0 2px; }
  .catalog-section .product-card .product-bottom, .catalog-section .product-card .product-bottom-row { display: contents; }
  .catalog-section .product-card .product-prices { margin: 0; }
  .catalog-section .product-card .product-price { font-size: 17px; }
  .catalog-section .product-card .product-stock { white-space: nowrap; }
  .catalog-section .product-card .product-add { position: absolute; left: 8px; right: 8px; bottom: 8px; width: auto; min-height: 44px; }
  /* "Pagas al recibir" sigue arriba y en las zonas de entrega; dentro de cada tarjeta sobra. El estado y "Agotado" no se tocan. */
  .catalog-section .product-card .card-cod-micro { display: none; }
}

/* Pieza 3 (WEB-03) — Burbuja del asistente en celular: 44 px, pegada a la esquina, por encima de la zona segura del
   iPhone y de la barra fija "Pedir por WhatsApp" de las fichas. Su función no cambia (js/asistente.js intacto). */
@media (max-width: 700px) {
  .asistente-launcher { width: 44px; height: 44px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .asistente-launcher svg { width: 20px; height: 20px; }
  #quoteListButton.floating-list { bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; }
  body.con-barra-compra .asistente-launcher { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* Aire al final de la página para que la burbuja no tape el pie. */
  .footer-bottom { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Pieza 4 (WEB-03) — Encabezado de celular más bajo (≈ 56 px, sigue fijo) y con el MISMO botón "Pedir por WhatsApp"
   del encabezado de computadora (mismo enlace, data-wa y medición), en versión compacta de ícono. El texto del botón
   se conserva en el HTML (lo leen los lectores de pantalla); solo se oculta a la vista. */
@media (max-width: 700px) {
  .header-inner { height: 56px; gap: 8px; }
  .site-header .brand-mark { font-size: 31px; padding-right: 6px; }
  .site-header .brand-type { font-size: 19px; }
  .site-header .brand-type > span { font-size: 9px; letter-spacing: 3px; margin-top: 3px; }
  .header-actions { gap: 2px; }
  .site-header .header-wa { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0 2px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; gap: 0; overflow: hidden; }
  .site-header .header-wa::before {
    content: ''; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 20.4l1.2-3.9A8.6 8.6 0 1 1 8 19.3z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M9.1 7.6c.3-.3.7-.3 1 0l1.1 1.2c.3.3.3.7 0 1l-.6.7a6 6 0 0 0 2.9 2.9l.7-.6c.3-.3.7-.3 1 0l1.2 1.1c.3.3.3.7 0 1-.9 1-2.3 1.2-3.5.6a9.4 9.4 0 0 1-4.4-4.4c-.6-1.2-.4-2.6.6-3.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 20.4l1.2-3.9A8.6 8.6 0 1 1 8 19.3z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M9.1 7.6c.3-.3.7-.3 1 0l1.1 1.2c.3.3.3.7 0 1l-.6.7a6 6 0 0 0 2.9 2.9l.7-.6c.3-.3.7-.3 1 0l1.2 1.1c.3.3.3.7 0 1-.9 1-2.3 1.2-3.5.6a9.4 9.4 0 0 1-4.4-4.4c-.6-1.2-.4-2.6.6-3.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Pieza 5 (WEB-03) — La flecha ↗ se dibuja como texto (del color del enlace), nunca como emoji azul de iOS.
   Además, cada ↗ del código lleva detrás el selector de variación U+FE0E. Aplica a celular y computadora. */
body { font-variant-emoji: text; }

/* Pieza 6 (WEB-03) — Ficha y pedido en celular: solo lo que estaba por debajo de 44 px de toque. */
@media (max-width: 700px) {
  .quote-quantity button { width: 44px; height: 44px; }                    /* − y + del pedido: 40 → 44 */
  .quote-panel .dialog-close { width: 44px; height: 44px; min-width: 44px; } /* cerrar el pedido: 40 → 44 */
  .catalog-section .catalog-categories button { min-height: 44px; }        /* filtros: 42 → 44 */
  .quote-item .quote-remove { min-height: 44px; padding: 0 4px; }          /* "Quitar": 41 → 44 */
}

/* WEB-05 pieza 2 — Título pegado arriba en las tarjetas del catálogo (solo celular). El enlace del título tenía
   min-height de 3 líneas y, con el recorte -webkit-box, Chrome/Safari centraban en vertical los títulos de 1–2 líneas.
   El alto mínimo pasa al h3 (mismo alto de tarjeta) y el enlace mide lo que su texto. */
@media (max-width: 700px) {
  .catalog-section .product-card .product-info > h3 { min-height: 55px; }
  .catalog-section .product-card .product-info .product-title { min-height: 0; }
}

/* ============================================================================
   13. WEB-07 (dueño 2026-11-06): sistema visual moderno con la MISMA paleta.
   Botones, chips, filtros y campos de una línea en forma de píldora; tarjetas de 22 px y paneles de 24 px;
   sombra suave; foto sobre fondo claro; chip de estado en pastilla; movimiento corto (150–200 ms) que se apaga
   con prefers-reduced-motion. Inter alojada en la propia web (/fonts/, licencia OFL en /fonts/LICENSE.txt).
   Lo móvil de WEB-03/05 se conserva: lo que cambia de tamaño o de sitio va en media queries separadas.
   ============================================================================ */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");   /* WEB-08: recorte latino de InterVariable.woff2 (352 → 109 KB, mismos ejes) */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Sin respaldo local("Arial") ajustado: obligaba a Chrome a buscar entre las fuentes del sistema y retrasaba el primer
   pintado unos 300 ms en celular (medido). Mientras llega Inter se usa Arial normal (font-display: swap). */
:root {
  --font: "Inter", Arial, sans-serif;
  --r-pill: 999px;
  --r-control: 999px;       /* botones, chips, filtros, buscador y campos de una línea */
  --r-box: 14px;            /* cajas de varias líneas, miniaturas y campos de varias líneas */
  --r-foto: 16px;           /* foto dentro de la tarjeta */
  --r-card: 22px;           /* tarjetas */
  --r-panel: 24px;          /* paneles y diálogos */
  --foto-bg: #faf9f6;
  --linea-suave: #e7e6df;
  --pastilla-bg: #ecebe5;
  --ok-bg: #e6f1e8;         /* chip "Disponible": #1e6b2e sobre este fondo */
  --sold-bg: #f6e6df;       /* chip "Agotado": #9a3b1f sobre este fondo */
  --sombra-card: 0 1px 2px rgb(32 35 33 / 4%), 0 8px 24px rgb(32 35 33 / 6%);
  --sombra-card-hover: 0 18px 40px rgb(32 35 33 / 12%);
  --sombra-btn: 0 8px 20px rgb(200 67 31 / 22%);
  --sombra-suave: 0 6px 18px rgb(32 35 33 / 10%);
  --sombra-flotante: 0 24px 60px rgb(32 35 33 / 14%);
  --mov: 180ms cubic-bezier(.2, .7, .3, 1);
}
body, button, input, select, textarea { font-family: var(--font); }

/* Tipografía: titulares más marcados (800), letra un poco más junta y líneas equilibradas. */
h1, .home-hero .hero-copy h1, .producto-head h1, .nosotros-hero h1, .zonas-hero h1, .policy-head h1, .guia-page h1, .mups-hero-copy h1, .calc-head h1 { font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.section-heading h2, .reviews-heading h2, .guia-articulo > h2, .contra-entrega-titulo, .mups-dolor h2, .mups-oferta-main h2, .mups-final h2, .cierre-contacto h2, .policy-cta h2, .nosotros-cta h2, .contact-band h2, .como-comprar-cab h2 { font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.policy-body h2, .guia-articulo h3, .producto-confianza h2, .producto-zona h2, .nosotros-datos-titulo, .nosotros-acciones h2, .producto-bloque h2, .producto-esencial h2 { font-weight: 700; letter-spacing: -.015em; }
.eyebrow { font-weight: 700; letter-spacing: .14em; color: var(--accent-texto); }
.eyebrow::before { display: none; }

/* Botones en píldora: borde definido, suben 1 px con sombra al pasar el ratón (o al tocar). */
.btn { border-radius: var(--r-pill); transition: transform var(--mov), box-shadow var(--mov), background-color var(--mov), border-color var(--mov), color var(--mov); }
.btn-outline, .btn-dark { border: 1.5px solid var(--ink); color: var(--ink); background: var(--white); }
.btn-outline:hover, .btn-dark:hover { background: var(--white); border-color: var(--ink); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: var(--sombra-suave); }
  .btn-primary:hover { box-shadow: var(--sombra-btn); }
}
.btn:active { transform: translateY(-1px); }
.btn-outline-light { border-radius: var(--r-pill); }

/* Campos: una línea en píldora; varias líneas con su radio propio. */
textarea, .review-form textarea { border-radius: var(--r-box); }
input[type=checkbox] { border-radius: 4px; }

/* Lo que antes usaba el radio de control pero es una caja (varias líneas, miniaturas, fotos). */
.quote-item-image, .producto-galeria button, .product-thumbnails button, .product-stage, .producto-esencial dl > div, .cod-zonas-lista li, .asistente-pregunta, .rating-options span { border-radius: var(--r-box); }
.producto-zoom-img { border-radius: var(--r-panel); }

/* Tarjetas: esquinas de 22 px, borde casi invisible, sombra suave; suben 4 px al pasar el ratón. */
.product-card, .catalog-section .product-card, .destacado-card, .home-zona-card, .seriedad-item, .trust-badge, .nosotros-accion, .review-invite, .contra-entrega-pasos li, .zonas-pasos li, .mups-beneficio, .mups-autonomia-card { border-color: var(--linea-suave); box-shadow: var(--sombra-card); }
.catalog-section .product-card, .product-card, .destacado-card, .home-zona-card { transition: transform var(--mov), box-shadow var(--mov), border-color var(--mov); }
@media (hover: hover) {
  .catalog-section .product-card:hover, .destacado-card:hover, .home-zona-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-card-hover); border-color: var(--linea-suave); }
}
.cierre-contacto, .policy-cta, .nosotros-cta, .registro-cta, .contact-band .container, .nosotros-datos, .cod-zonas, .zonas-nota, .guia-nota, .mups-oferta { border-color: var(--linea-suave); box-shadow: var(--sombra-card); }

/* Precio grande y firme. */
.product-price, .catalog-section .product-price { font-weight: 800; }
.destacado-precio .price-block-oferta, .producto-precio-block .price-block-oferta, #productModal #modalOfferPrice, .quote-total strong, .mups-hero .price-block-oferta { font-weight: 800; letter-spacing: -.025em; }

/* Chip de estado en pastilla ("Disponible" verde suave, "Agotado" en el tono de --sold). Los textos no cambian. */
.product-card .product-stock, .catalog-section .product-card .product-stock, .product-availability .product-stock, .producto-stock-line {
  display: inline-flex; align-items: center; align-self: flex-start; width: max-content; max-width: 100%;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--ok-bg); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: 0;
}
.producto-stock-line { font-size: 13px; padding: 5px 12px; gap: 7px; }
.producto-stock-line::before { width: 6px; height: 6px; }
.product-card .product-stock.is-unavailable, .catalog-section .product-card .product-stock.is-unavailable, .product-availability .product-stock.is-unavailable, .producto-stock-line.is-unavailable { background: var(--sold-bg); }
.home-zona-cod, .destacado-cod { display: inline-flex; align-self: flex-start; width: max-content; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ok-bg); }

/* Foto del producto sobre fondo claro con esquinas redondeadas (ficha, modal, favoritos). */
.producto-foto, .producto-video video, .producto-visual img, .product-stage, .destacado-visual, .mups-hero-visual img { background: var(--foto-bg); }
.producto-foto { border-color: var(--linea-suave); border-radius: var(--r-card); overflow: hidden; }
.producto-foto img { border-radius: var(--r-card); }

/* Paneles oscuros y bandas: radio de panel. */
.home-proof, .como-comprar-strip, .nosotros-acciones { border-radius: var(--r-panel); }

/* Aparición suave de secciones al desplazarse (solo con JS y sin movimiento reducido; ver storefront-shell.js). */
.js-revelar .revelar { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease-out, transform 420ms cubic-bezier(.2, .7, .3, 1); }
.js-revelar .revelar.revelada { opacity: 1; transform: none; }

/* Movimiento reducido: nada se mueve ni aparece con animación. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active, .catalog-section .product-card:hover, .destacado-card:hover, .home-zona-card:hover, .hero-producto:hover, .calc-equipo:hover { transform: none !important; }
  .js-revelar .revelar { opacity: 1 !important; transform: none !important; }
}

/* ── 14. WEB-07 pieza 2: cabecera, inicio y catálogo ───────────────────────
   Regla para no perder lo móvil de WEB-03/05: tamaños, altos y rellenos que esas piezas fijan en celular solo se
   cambian aquí dentro de @media (min-width: 701px); lo común (colores, radios, sombras) va sin media query. */

/* Cabecera fija, clara y semitransparente con desenfoque; sombra suave al desplazarse (clase con-scroll, storefront-shell.js). */
.site-header { background: rgb(246 245 241 / 86%); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow var(--mov), border-color var(--mov); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--paper); } }
.con-scroll .site-header { border-bottom-color: var(--linea-suave); box-shadow: 0 8px 24px rgb(32 35 33 / 7%); }
.desktop-nav { gap: 4px; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: var(--r-pill); color: var(--ink-soft); font-weight: 500; transition: background-color var(--mov), color var(--mov); }
.desktop-nav a::after { content: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current=page] { background: var(--pastilla-bg); color: var(--ink); }
.icon-button { transition: background-color var(--mov); }
.icon-button:hover { background: var(--pastilla-bg); }
@media (min-width: 701px) { .header-wa { min-height: 44px; padding: 10px 20px; } }

/* Héroe: etiqueta en pastilla, titular grande con la segunda frase en terracota, dos botones píldora y pastillas. */
.hero-etiqueta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 6px 14px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ink-soft); }
.hero-etiqueta span { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero-acento { color: var(--accent-texto); }
.hero-pastillas { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero-pastillas li { padding: 7px 14px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.hero-llamar { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.hero-llamar:hover { color: var(--accent-texto); }
@media (min-width: 701px) {
  .home-hero { padding: 52px 0 28px; }
  .home-hero .hero-copy { padding: 0; max-width: none; }
  /* Tope de la escala de la marca (--t-h1 = 46 px; el QA lo vigila): más grande se gana con peso 800, no con tamaño. */
  .home-hero .hero-copy h1 { font-size: clamp(36px, 4vw, var(--t-h1)); line-height: 1.05; letter-spacing: -.04em; max-width: 15ch; margin: 18px 0 0; }
  .home-hero .hero-copy > p[data-home-subtitulo] { font-size: 18px; line-height: 1.55; margin: 18px 0 0; max-width: 540px; }
  .home-acciones { margin-top: 26px; gap: 12px; }
  .home-acciones .btn { min-height: 52px; padding: 13px 28px; font-size: 16px; }
  .hero-sede { margin-top: 14px; gap: 2px 18px; }
}
@media (min-width: 901px) {
  .home-hero .hero-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
}

/* Dos tarjetas de producto "flotando" a la derecha (solo computadora; en celular los favoritos están justo debajo). */
.hero-productos { position: relative; min-height: 450px; }
.hero-productos::before { content: ''; position: absolute; inset: 26px 0 0 48px; border-radius: 32px; background: var(--pastilla-bg); }
.hero-producto, .oferta-producto { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--white); border-radius: var(--r-panel); color: var(--ink); text-decoration: none; transition: transform var(--mov), box-shadow var(--mov); }
.hero-producto { position: absolute; box-shadow: var(--sombra-flotante); }
.hero-producto-1 { left: 0; top: 0; width: 58%; z-index: 1; }
.hero-producto-2 { right: 0; bottom: 0; width: 46%; z-index: 2; }
.hero-producto-foto { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-foto); background: var(--foto-bg); }
.hero-producto-foto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-producto-nombre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.hero-producto-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.hero-producto-precio { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hero-producto-estado { padding: 4px 10px; border-radius: var(--r-pill); background: var(--ok-bg); font-size: 12px; font-weight: 600; color: var(--ok); }
@media (hover: hover) {
  .hero-producto:hover, .oferta-producto:hover { transform: translateY(-4px); box-shadow: var(--sombra-card-hover); }
}
.hero-producto:focus-visible, .oferta-producto:focus-visible { outline: 2px solid var(--accent-cta); outline-offset: 3px; }
@media (max-width: 900px) { .hero-productos { display: none; } }

/* El panel oscuro de confianza baja debajo del héroe como una banda (computadora); en celular sigue como en WEB-03. */
@media (min-width: 901px) {
  .home-hero .home-proof { margin-top: 36px; display: grid; grid-template-columns: minmax(190px, .9fr) minmax(0, 2.7fr) auto; align-items: center; gap: 24px; padding: 22px 28px; box-shadow: none; }
  .home-hero .home-proof-head { border-bottom: 0; padding: 0; }
  .home-hero .home-proof-head strong { font-size: 18px; line-height: 1.3; }
  .home-hero .home-proof ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; }
  .home-hero .home-proof li { grid-template-columns: 26px 1fr; gap: 6px; padding: 0 0 0 18px; border-bottom: 0; border-left: 1px solid #ffffff24; }
  .home-hero .home-proof-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 0 0 18px; border-left: 1px solid #ffffff24; }
}

/* Celular: el héroe sigue corto (WEB-03). Las pastillas repiten lo que dice el panel oscuro de abajo: se ocultan. */
@media (max-width: 700px) {
  .hero-etiqueta { font-size: 12px; padding: 5px 12px; }
  .home-hero .hero-copy h1 { margin-top: 10px; }
  .hero-pastillas { display: none; }
  .hero-sede { flex-direction: row; flex-wrap: wrap; column-gap: 14px; }
  .hero-sede .hero-direccion, .hero-sede .hero-horario { flex: 0 0 100%; }
}

/* Ofertas: componente listo; solo aparece si el dueño marca ofertas reales (oferta: true). Sin tachados ni porcentajes. */
.home-ofertas { padding: 36px 0 4px; }
.home-ofertas[hidden] { display: none; }
.ofertas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.oferta-producto { box-shadow: var(--sombra-card); border: 1px solid var(--linea-suave); }

/* Catálogo: buscador y filtros en píldora; pestañas Todos / Nuevos / Destacados antes de las categorías. */
.catalog-section .catalog-search { border-radius: var(--r-pill); border-color: #d9d8d0; padding-left: 4px; transition: border-color var(--mov), box-shadow var(--mov); }
.catalog-section .catalog-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(32 35 33 / 8%); }
.catalog-section .catalog-search input { border-radius: var(--r-pill); }
.catalog-section .catalog-categories { align-items: center; }
.catalog-section .catalog-categories button { border-radius: var(--r-pill); border-color: #dcdbd3; color: var(--ink); font-weight: 500; transition: background-color var(--mov), border-color var(--mov), color var(--mov); }
.catalog-section .catalog-categories button:hover { background: var(--pastilla-bg); border-color: #cfcec6; color: var(--ink); }
.catalog-section .catalog-categories button.active, .catalog-section .catalog-categories button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-section .catalog-categories .vista-btn { font-weight: 600; }
.filtros-separador { flex: 0 0 1px; align-self: stretch; width: 1px; margin: 8px 4px; background: var(--line); }
.catalog-toolbar { border-bottom-color: var(--linea-suave); }
.catalog-section .sort-label select { border-radius: var(--r-pill); }
.catalog-section .catalog-expand button { border-radius: var(--r-pill); border: 1.5px solid var(--ink); transition: transform var(--mov), box-shadow var(--mov); }
@media (hover: hover) { .catalog-section .catalog-expand button:hover { background: var(--white); transform: translateY(-1px); box-shadow: var(--sombra-suave); } }
@media (min-width: 701px) {
  .catalog-section .catalog-search { min-height: 52px; }
  .catalog-section .catalog-categories button { min-height: 44px; padding: 8px 16px; font-size: 14px; }
}

/* Tarjeta de producto (referencia "propuesta" aprobada): foto con fondo claro y esquinas redondeadas, precio grande,
   chip de estado y botón píldora terracota "+ Agregar" / "Elegir". Agotado: "Ver producto" en contorno. */
.catalog-section .product-card { overflow: hidden; }
.catalog-section .product-card .product-open { background: var(--foto-bg); border-bottom: 0; }
.catalog-section .product-card .product-add { border-radius: var(--r-pill); background: var(--accent-cta); border: 1px solid var(--accent-cta); color: #fff; font-weight: 600; transition: transform var(--mov), box-shadow var(--mov), background-color var(--mov), border-color var(--mov); }
.catalog-section .product-card .product-add:disabled { background: var(--accent-cta); border-color: var(--accent-cta); color: #fff; cursor: default; opacity: 1; }
.catalog-section .product-card .product-stock.is-unavailable ~ .product-add { background: var(--white); border: 1.5px solid var(--ink); color: var(--ink); }
@media (hover: hover) {
  .catalog-section .product-card .product-add:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--sombra-btn); }
  .catalog-section .product-card .product-stock.is-unavailable ~ .product-add:hover:not(:disabled) { background: var(--white); border-color: var(--ink); color: var(--ink); box-shadow: var(--sombra-suave); }
}
.catalog-section .product-card .product-add:active:not(:disabled) { transform: translateY(-1px); }
@media (min-width: 701px) {
  .catalog-section .product-grid { gap: 22px 18px; }
  .catalog-section .product-card { padding: 10px; }
  .catalog-section .product-card .product-open { overflow: hidden; border-radius: var(--r-foto); }
  .catalog-section .product-card .product-image { padding: 0; }
  .catalog-section .product-card .product-info { padding: 12px 6px 4px; gap: 8px; }
  .catalog-section .product-card .product-title { font-weight: 600; }
  .catalog-section .product-card .product-price { font-size: 21px; }
  .catalog-section .product-card .product-add { min-height: 46px; font-size: 15px; }
}
/* Celular (WEB-05 intacto: marco 1:1, foto con 2.5 px de relleno, título pegado, botón anclado de 44 px): la foto gana
   esquinas redondeadas sobre el fondo claro; la tarjeta toma el radio nuevo. */
@media (max-width: 700px) {
  .catalog-section .product-card .product-image { border-radius: 14px; }
  .catalog-section .product-card .product-title { font-weight: 600; }
}

/* Favoritos: misma tarjeta (foto sobre fondo claro, esquinas nuevas). */
.destacado-card { overflow: hidden; }
.destacado-visual { border-bottom: 0; }
.destacado-visual img { border-radius: 14px; }
.destacado-info h3 { font-weight: 600; }
.destacados-flecha { box-shadow: var(--sombra-suave); border-color: var(--linea-suave); }

/* Zonas, confianza y pasos con el mismo lenguaje. */
.home-zona-card h3, .seriedad-item strong { font-weight: 700; letter-spacing: -.01em; }
.seriedad-icono { background: var(--pastilla-bg); }
.como-comprar-strip { border: 1px solid var(--linea-suave); box-shadow: var(--sombra-card); background: var(--white); }

/* Pedido (cajón), modal y asistente: botones y campos en píldora ya vienen de los tokens; superficies con el radio nuevo. */
#productModal .product-dialog-panel { border-radius: var(--r-panel); }
.asistente-panel { border-radius: var(--r-panel); }
.quote-item-image { background: var(--foto-bg); }
.quote-zona-lista { border-radius: var(--r-box); }
#consumerToast.consumer-toast { border-radius: var(--r-pill); }

/* ── 15. WEB-07 pieza 3: "Herramientas gratis" en el inicio y calculadora /herramientas/inversor/ ── */
.home-herramientas { padding: 8px 0 8px; }
.herramienta-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 28px; background: var(--ink); color: #f6f5f1; border-radius: var(--r-panel); text-decoration: none; box-shadow: var(--sombra-card); transition: transform var(--mov), box-shadow var(--mov); }
.herramienta-icono { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #ffffff14; color: #f0a58f; }
.herramienta-icono svg { width: 26px; height: 26px; }
.herramienta-texto { display: flex; flex-direction: column; gap: 6px; }
.herramienta-texto strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.herramienta-texto span { font-size: 15px; line-height: 1.5; color: #d6d5cd; }
.herramienta-cta { pointer-events: none; }
@media (hover: hover) { .herramienta-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-card-hover); } .herramienta-card:hover .herramienta-cta { background: var(--accent-hover); border-color: var(--accent-hover); } }
.herramienta-card:focus-visible { outline: 2px solid var(--accent-cta); outline-offset: 3px; }
@media (max-width: 700px) {
  .home-herramientas { padding-top: 24px; }
  .herramienta-card { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; }
  .herramienta-icono { width: 44px; height: 44px; }
  .herramienta-texto strong { font-size: 18px; }
  .herramienta-texto span { font-size: 14px; }
  .herramienta-cta { grid-column: 1 / -1; width: 100%; }
}

.calc-page { padding: 40px 0 72px; }
.calc-head { max-width: 760px; }
.calc-head h1 { font-size: var(--t-h1); line-height: 1.08; margin: 10px 0 14px; }
.calc-intro { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.calc-cuerpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: start; margin-top: 28px; }
.calc-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc-form legend { padding: 0; font-size: var(--t-h3); font-weight: 800; letter-spacing: -.015em; }
.calc-ayuda { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.calc-equipos { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.calc-equipo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 10px 14px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-card); box-shadow: var(--sombra-card); transition: border-color var(--mov), box-shadow var(--mov); }
.calc-equipo.activo { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sombra-card); }
.calc-marcar { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.calc-marcar input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--accent-cta); }
.calc-nombre { font-size: 15px; font-weight: 600; }
.calc-w { margin-left: auto; padding: 3px 10px; border-radius: var(--r-pill); background: var(--pastilla-bg); font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.calc-campos { display: flex; gap: 8px; }
.calc-campos label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.calc-campos input { width: 82px; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd2c9; border-radius: var(--r-pill); background: var(--white); font-size: 15px; color: var(--ink); }
.calc-campos input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(32 35 33 / 10%); }
.calc-resultado { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-panel); box-shadow: var(--sombra-flotante); }
.calc-resultado h2 { margin: 0; font-size: var(--t-h3); font-weight: 800; letter-spacing: -.015em; }
.calc-resultado h3 { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.calc-vacio { margin: 0; font-size: 15px; color: var(--muted); }
.calc-datos { display: flex; flex-direction: column; gap: 10px; }
.calc-datos[hidden] { display: none; }
.calc-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.calc-cifras > div { padding: 10px 12px; background: var(--paper); border-radius: var(--r-box); }
.calc-cifras dt { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.calc-cifras dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.calc-recomendacion { margin: 0; font-size: 15px; line-height: 1.5; }
.calc-nota { margin: 0; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: #fbf3e2; border-radius: var(--r-box); }
.calc-sugeridos { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.calc-sugeridos a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--linea-suave); border-radius: var(--r-box); color: var(--ink); text-decoration: none; transition: border-color var(--mov); }
.calc-sugeridos a:hover { border-color: var(--ink); }
.calc-sugerido-nombre { font-size: 14px; font-weight: 600; line-height: 1.35; }
.calc-sugerido-precio { font-size: 16px; font-weight: 800; }
.calc-sugerido-estado, .calc-producto-estado { justify-self: start; width: max-content; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ok-bg); font-size: 12px; font-weight: 600; color: var(--ok); }
.calc-sugerido-estado.is-unavailable, .calc-producto-estado.is-unavailable { background: var(--sold-bg); color: var(--sold); }
.calc-sugerido-extra { justify-self: end; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.calc-sin-opcion { padding: 10px 14px; font-size: 14px; background: var(--paper); border-radius: var(--r-box); }
.calc-wa { width: 100%; justify-content: center; margin-top: 4px; }
.calc-aviso { margin: 0; font-size: 13px; color: var(--muted); }
.calc-catalogo-seccion { padding-top: 48px; }
.calc-catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.calc-producto { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-card); box-shadow: var(--sombra-card); }
.calc-producto-foto { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-foto); background: var(--foto-bg); }
.calc-producto-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.calc-producto-info { display: flex; flex-direction: column; gap: 6px; padding: 2px 6px 6px; }
.calc-producto-info h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.calc-producto-info h3 a { color: var(--ink); text-decoration: none; }
.calc-producto-info h3 a:hover { text-decoration: underline; }
.calc-producto-detalle { margin: 0; font-size: 13px; color: var(--muted); }
.calc-producto-precio { margin: 0; font-size: 19px; font-weight: 800; }
.calc-modelos { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.calc-modelos li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.calc-modelos strong { margin-left: auto; font-weight: 800; }
.calc-modelos em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--sold); }
.calc-fuentes-seccion { padding-top: 40px; max-width: 860px; }
.calc-fuentes-detalle { padding: 18px 22px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-card); }
.calc-fuentes-detalle summary { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 700; cursor: pointer; }
.calc-supuestos { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.calc-fuentes { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.calc-fuentes a { display: inline-block; font-weight: 600; color: var(--accent-texto); }
.calc-fuentes li > span { display: block; }
.calc-page .home-cierre { padding: 40px 0 0; }
@media (max-width: 900px) {
  .calc-cuerpo { grid-template-columns: 1fr; }
  .calc-resultado { position: static; }
}
@media (max-width: 700px) {
  .calc-page { padding: 24px 0 56px; }
  .calc-intro { font-size: 15px; }
  .calc-equipo { grid-template-columns: 1fr; padding: 8px 12px 12px; }
  .calc-campos { justify-content: space-between; }
  .calc-campos label { flex: 1 1 0; }
  .calc-campos input { width: 100%; }
  .calc-cifras { grid-template-columns: 1fr 1fr 1fr; }
  .calc-cifras dd { font-size: 16px; }
  .calc-resultado { padding: 18px; }
}
/* Celular: aviso fijo con el resultado mientras se marcan equipos (lleva al panel de la estimación). */
.calc-flotante { display: none; }
@media (max-width: 900px) {
  .calc-flotante:not([hidden]) { position: fixed; left: 10px; right: 64px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 8px 8px 16px; background: var(--ink); color: #fff; border-radius: var(--r-pill); box-shadow: var(--sombra-flotante); font-size: 14px; text-decoration: none; }
  .calc-flotante strong { flex: 0 0 auto; padding: 8px 14px; background: var(--accent-cta); border-radius: var(--r-pill); font-size: 13px; }
}

/* ── 16. Anexo WEB-07 (A1, A3): contraste y nombres accesibles ──────────────
   A1: todo texto naranja sobre fondo claro usa --accent-texto (#b63c1c, 5.26:1 sobre --paper). Las hojas viejas aún
   pintaban algunos textos con --accent (#d54b27, 3.9:1): se corrigen aquí. En el pie oscuro, el hover usa un naranja claro. */
.text-link:hover, .product-title:hover, .destacado-info h3 a:hover, .help-links a:hover, .zone-not-listed-link, .compat-enlace { color: var(--accent-texto); }
.footer-address:hover, .footer-phone:hover, .footer-tel:hover { color: #f0a58f !important; }
/* A3: en celular, "Ordenar por:" se oculta solo a la vista (los lectores de pantalla lo siguen leyendo). */
@media (max-width: 760px) {
  .sort-label > span { display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* ── 17. WEB-07B (2026-11-06): fidelidad al canvas aprobado (docs/pedidos/web07-referencia/canvas-exacto/) ──
   Medidas tomadas con getComputedStyle sobre canvas-inicio.html a 1440 px. En celular sigue lo de WEB-03/05 salvo lo que
   el pedido marca "(también celular)". */
:root {
  --t-hero: clamp(40px, 4.1vw, 58px);   /* titular del héroe: excepción documentada a --t-h1 (el dueño la aprobó en el canvas) */
  --canvas-borde: #ecebe5;
}
.container { max-width: 1200px; }          /* el canvas usa 1200 px de contenido (a 1440 px empieza en x = 120) */

/* Cabecera: 72 px, menú en pastillas de 14 px, buscador píldora (≥ 1100 px) y botón de WhatsApp con ícono de mensaje. */
@media (min-width: 701px) { .header-inner { height: 72px; gap: 16px; } }
.header-actions { margin-left: auto; }
.desktop-nav { margin-left: 16px; }
.desktop-nav a { padding: 9px 14px; font-size: 14px; font-weight: 500; }
.header-buscar { display: none; }
@media (min-width: 1100px) {
  .header-buscar { display: flex; flex: 0 1 260px; min-width: 170px; margin-left: auto; }
  .header-buscar + .header-actions { margin-left: 0; }
  .header-buscar label { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); cursor: text; transition: border-color var(--mov), box-shadow var(--mov); }
  .header-buscar label:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(32 35 33 / 8%); }
  .header-buscar svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); }
  .header-buscar input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
  .header-buscar input::placeholder { color: var(--muted); opacity: 1; }
  .header-actions [data-focus-search] { display: none; }
  .catalog-section .catalog-search { display: none; }   /* el buscador grande del catálogo queda para < 1100 px */
}
@media (min-width: 1051px) {
  .site-header .header-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; height: 44px; padding: 0 20px; margin-left: 4px; font-size: 14px; font-weight: 600; }
  .site-header .header-wa::before {
    content: ''; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.5 7.8L3 21l1.2-4.5A9 9 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.5 7.8L3 21l1.2-4.5A9 9 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Héroe: solo etiqueta, titular, subtítulo, 2 botones y 3 pastillas, con los espacios del canvas (22 px entre piezas). */
.home-hero .hero-copy > .hero-etiqueta { margin: 0; padding: 6px 14px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.hero-pastillas li { padding: 8px 14px; font-weight: 400; }
@media (min-width: 701px) {
  .home-hero { padding: 56px 0 40px; }
  .home-hero .hero-copy { display: flex; flex-direction: column; gap: 22px; }
  .home-hero .hero-copy h1 { margin: 0; max-width: none; font-size: var(--t-hero); line-height: 1.05; letter-spacing: -.03em; }
  .home-hero .hero-copy > p[data-home-subtitulo] { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; }
  .home-hero .home-acciones { margin: 0; gap: 12px; }
  .home-hero .hero-pastillas { margin: 0; padding-top: 6px; gap: 10px; }
}
@media (min-width: 901px) {
  .home-hero .hero-layout { grid-template-columns: minmax(0, 620fr) minmax(0, 540fr); gap: 40px; align-items: center; }
}
/* Tarjetas flotantes: principal 62 % + su relleno (≈ 367 px a 1440), la segunda 46 % encimada abajo a la derecha;
   panel claro detrás. Nombre en 1 línea con puntos suspensivos. Nada se corta a 1280, 1366 ni 1440 px. */
.hero-productos { min-height: 440px; }
.hero-productos::before { inset: 20px 0 0 40px; }
.hero-producto-1 { left: 0; top: 0; width: calc(62% + 32px); max-width: 100%; padding: 16px; gap: 10px; }
.hero-producto-2 { right: 0; bottom: 10px; width: calc(46% + 28px); padding: 14px; gap: 8px; }
.hero-producto-2 .hero-producto-foto { border-radius: 14px; }
.hero-producto-nombre { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: unset; }
.hero-producto-2 .hero-producto-nombre { font-size: 14px; }
.hero-producto-fila { flex-wrap: nowrap; }
.hero-producto-precio { font-size: 20px; }
.hero-producto-2 .hero-producto-precio { font-size: 18px; }
@media (max-width: 700px) {
  .home-hero .hero-copy > .hero-etiqueta { font-size: 12px; padding: 5px 12px; }
  .hero-pastillas { display: flex; margin-top: 12px; gap: 6px; }   /* el panel oscuro ya no está: las pastillas vuelven en celular */
  .hero-pastillas li { padding: 6px 11px; font-size: 12px; }
}

/* Herramientas gratis: tarjeta oscura del canvas (1 de 4 columnas, 230 px de alto) y al lado el texto de la sección. */
.home-herramientas { padding: 24px 0 48px; }
.herramientas-fila { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: center; }
.herramientas-texto { grid-column: 2 / -1; padding-left: 24px; }
.herramientas-texto .eyebrow { margin: 0; }
.herramientas-texto h2 { margin: 6px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.herramientas-texto p:last-child { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.herramienta-card { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 24px; background: var(--ink); color: #f6f5f1; border-radius: var(--r-panel); box-shadow: none; }
.herramienta-icono { width: auto; height: auto; background: none; border-radius: 0; color: #f0a58f; }
.herramienta-icono svg { width: 28px; height: 28px; }
.herramienta-texto { gap: 14px; }
.herramienta-texto strong { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.herramienta-texto span { font-size: 14px; line-height: 1.5; color: #c9c8c0; }
.herramienta-cta { margin-top: auto; align-self: flex-start; width: auto; min-height: 44px; height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 900px) {
  .herramientas-fila { grid-template-columns: 1fr; }
  .herramientas-texto { grid-column: auto; grid-row: 1; padding-left: 0; }
  .herramientas-texto h2 { font-size: var(--t-h2); }
}
@media (max-width: 700px) {
  .home-herramientas { padding: 20px 0 8px; }
  .herramienta-card { min-height: 0; gap: 8px; padding: 18px; }   /* ≤ 220 px de alto */
  .herramienta-icono svg { width: 24px; height: 24px; }
  .herramienta-texto { gap: 6px; }
  .herramienta-texto strong { font-size: 18px; }
  .herramienta-cta { grid-column: auto; width: auto; margin-top: 4px; }
}

/* Catálogo: título y texto a la izquierda, "Ordenar por" a la derecha; filtros en una sola fila con desplazamiento. */
.catalog-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.catalog-cabeza > div > p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.catalog-cabeza .sort-label { flex: 0 0 auto; }
.catalog-section .catalog-categories { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.catalog-section .catalog-categories::-webkit-scrollbar { display: none; }
.catalog-section .catalog-categories button { flex: 0 0 auto; white-space: nowrap; }
.catalog-section .catalog-categories button.active, .catalog-section .catalog-categories button[aria-pressed=true] { font-weight: 600; }
@media (max-width: 700px) {
  .catalog-section > .catalog-cabeza { flex-direction: row; align-items: flex-end; }
  .catalog-cabeza > div { flex: 1 1 100%; }
  .catalog-cabeza > div > p { font-size: 14px; margin-top: 4px; }
}

/* Tarjeta de producto exacta al canvas (computadora): relleno 12, borde #ecebe5, radio 22, foto radio 16 sobre #faf9f6,
   nombre 15/600 pegado arriba con 2 líneas reservadas, precio 19/800 con el chip a la derecha y botón píldora de 46 px. */
.catalog-section .product-card { border-color: var(--canvas-borde); }
@media (min-width: 701px) {
  .catalog-section .product-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; box-shadow: none; }
  .catalog-section .product-card .product-open { border-radius: var(--r-foto); }
  .catalog-section .product-card .product-info { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-items: center; gap: 8px; padding: 0 6px; }
  .catalog-section .product-card .product-info > h3 { grid-column: 1 / -1; align-self: start; min-height: 40px; margin: 0; }
  .catalog-section .product-card .product-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 0; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-align: left; }
  .catalog-section .product-card .product-prices { grid-column: 1; margin: 0; }
  .catalog-section .product-card .product-price { font-size: 19px; font-weight: 800; letter-spacing: 0; }
  .catalog-section .product-card .product-bottom, .catalog-section .product-card .product-bottom-row { display: contents; }
  .catalog-section .product-card .product-stock { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; white-space: nowrap; }
  .catalog-section .product-card .product-add { grid-column: 1 / -1; align-self: end; height: 46px; min-height: 46px; margin: 0; }
  .catalog-section .product-grid { gap: 18px; }
}
@media (hover: hover) and (min-width: 701px) {
  .catalog-section .product-card:hover { box-shadow: var(--sombra-card-hover); }
}
/* Celular (WEB-05 intacto: foto al 98 %, botón anclado): nombre 14/600 con 2 líneas reservadas; chip debajo del precio. */
@media (max-width: 700px) {
  .catalog-section .product-card .product-info > h3 { min-height: 39px; }
  .catalog-section .product-card .product-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
}

/* Favoritos (solo con 4 o más): la misma tarjeta nueva, en una fila de 4. */
.destacados-section[hidden] { display: none; }
@media (min-width: 701px) {
  .destacado-card { padding: 12px; border-color: var(--canvas-borde); box-shadow: none; }
  .destacado-visual { border-radius: var(--r-foto); overflow: hidden; }
  .destacado-visual img { padding: 0; border-radius: 0; }
  .destacado-info { padding: 10px 6px 0; }
  .destacado-info h3 { font-size: 15px; font-weight: 600; min-height: 40px; }
  .destacado-precio .price-block-oferta { font-size: 19px; font-weight: 800; }
}

/* Visítanos: dirección, horario, mapa, llamada y WhatsApp, justo antes del pie (salieron del héroe). */
.home-cierre { padding-bottom: 24px; }
.home-visitanos { padding: 16px 0 64px; }
.visitanos-banda { display: grid; grid-template-columns: minmax(0, .9fr) repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; padding: 28px; background: var(--white); border: 1px solid var(--linea-suave); border-radius: var(--r-panel); }
.visitanos-cabeza .eyebrow { margin: 0; }
.visitanos-cabeza h2 { margin: 6px 0 0; font-size: var(--t-h2); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.visitanos-dato { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.visitanos-dato strong { font-size: 13px; font-weight: 700; color: var(--muted); }
.visitanos-dato p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.visitanos-dato .home-map-link, .visitanos-dato .hero-llamar { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.visitanos-wa { min-height: 44px; padding: 10px 18px; font-size: 14px; }
@media (max-width: 900px) { .visitanos-banda { grid-template-columns: 1fr 1fr; } .visitanos-cabeza { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .home-visitanos { padding: 8px 0 48px; }
  .visitanos-banda { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .visitanos-dato { gap: 2px; }
}
/* Ajustes finos medidos contra el canvas: pastillas y nombres con interlineado normal; chip de estado sin punto (como el canvas). */
.hero-pastillas li, .hero-producto-nombre, .hero-producto-estado { line-height: normal; }
.catalog-section .product-card .product-stock::before, .hero-producto-estado::before { content: none; }
.catalog-section .product-card .product-stock { line-height: normal; }
.hero-producto, .hero-producto-precio, .hero-producto-fila { line-height: normal; }
/* La tarjeta 2 se encima sobre la 1 (como el canvas): el nombre, el precio y el chip de la 1 se quedan en la parte que se
   ve (hasta el borde izquierdo de la 2, menos 8 px), para que nada quede tapado ni cortado. 1cqw = 1 % del ancho del bloque. */
.hero-productos { container-type: inline-size; }
.hero-producto-1 .hero-producto-nombre, .hero-producto-1 .hero-producto-fila { max-width: calc(54cqw - 52px); }
/* Toques de 44 px y contraste ≥ 4.5 (comprobación WEB-07B): el buscador de la cabecera sube de 42 a 44 px (2 px sobre el
   canvas) y la línea pequeña del botón terracota de Nosotros pasa a blanco (#fbe7df daba 4.1:1). */
@media (min-width: 1100px) { .header-buscar label { height: 44px; } }
.nosotros-accion[data-nosotros-escribir] small { color: #fff; }
@media (max-width: 700px) { .herramienta-card { padding: 16px 18px; } }
/* Celular: las 3 pastillas en una sola fila que se desliza (no 3 renglones); el texto largo de "Herramientas gratis" se
   queda solo en computadora (la tarjeta ya lo explica); "Ordenar" alineado a la derecha. */
@media (max-width: 700px) {
  .home-hero .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .home-hero .hero-copy { min-width: 0; }
  .home-hero .hero-pastillas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .home-hero .hero-pastillas::-webkit-scrollbar { display: none; }
  .home-hero .hero-pastillas li { flex: 0 0 auto; white-space: nowrap; }
  .herramientas-texto p:last-child { display: none; }
  .herramientas-texto h2 { margin-bottom: 0; }
  .catalog-cabeza .sort-label { margin-left: auto; }
}

/* ── 18. WEB-08: ficha horneada. La foto principal y las miniaturas traen width/height (reservan su espacio antes de
   cargar); la altura real la da la proporción cuadrada del CSS. */
.producto-foto img, .producto-galeria img { height: auto; }
.producto-galeria img { height: 100%; }

/* ── 19. WEB-09 (dueño 2026-11-06): botón de la tarjeta de producto más fino ─────────────────────────────
   "+ Agregar", "Elegir" y "Ver producto" (catálogo y favoritos): 28 px visibles (el dueño lo pidió aún más fino que
   36), letra 13/600, misma píldora, colores, hover y :active. El área de toque sigue en 44 px: un ::after invisible de
   44 px, centrado, sobresale 8 px arriba y 8 px abajo (cae en el espacio libre de la tarjeta, sin tapar título, foto ni
   chip). En celular el botón sigue anclado abajo (WEB-05) y el espacio reservado baja de 60 a 44 px (8 + 28 + 8).
   La altura sale de --alto-control (sección 20). */
.catalog-section .product-card .product-add, .destacado-info .btn { height: var(--alto-control); min-height: var(--alto-control); padding-top: 0; padding-bottom: 0; font-size: 13px; font-weight: 600; line-height: 1.2; }
.destacado-info .btn { position: relative; }
.catalog-section .product-card .product-add::after, .destacado-info .btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
@media (min-width: 701px) {
  .catalog-section .product-card .product-add { position: relative; height: var(--alto-control); min-height: var(--alto-control); }
}
@media (max-width: 700px) {
  .catalog-section .product-card .product-info { padding-bottom: calc(var(--alto-control) + 16px); }
  .catalog-section .product-card .product-add { height: var(--alto-control); min-height: var(--alto-control); }
}

/* ── 20. WEB-09B (dueño 2026-11-06): todos los controles del inicio a la altura del botón de la tarjeta ──────
   Un solo token, --alto-control (28 px), manda en: el botón de la tarjeta (sección 19), los dos botones del héroe, el
   buscador del catálogo, el buscador y el "Pedir por WhatsApp" de la cabecera (computadora), "Calcular", los chips del
   filtro, "Explorar todo el catálogo", "849-344-0033 · WhatsApp" de Visítanos y el botón del cierre "¿Dudas?".
   Para cambiar la altura de todos, se cambia solo --alto-control.
   Área de toque ≥ 44 px: una capa invisible ::after de 44 px de alto, centrada en el control (con 28 px sobresale 8 arriba
   y 8 abajo; se mide en 44 fijos para que el borde del botón no le reste). Sobresale solo en vertical, así los controles
   que van lado a lado (chips, botones del héroe) no se tocan.
   Letra de 13 px: 600 en botones; los chips conservan su peso (500, y 600 en Todos/Nuevos/Destacados y el activo).
   No cambian: los íconos redondos de la cabecera en celular, el asistente, la ficha, el carrito, el formulario del
   pedido, ni "Ordenar por" (no tiene caja visible: es texto sobre fondo transparente; sus 44 px ya son solo toque). */
:root { --alto-control: 28px; --toque-extra: min(0px, calc((var(--alto-control) - 44px) / 2)); }

/* Botones en píldora */
.home-acciones .btn,
.catalog-section .catalog-expand button,
.visitanos-dato .visitanos-wa,
.cierre-contacto .btn,
.herramienta-cta {
  position: relative; height: var(--alto-control); min-height: var(--alto-control); padding-top: 0; padding-bottom: 0;
  font-size: 13px; font-weight: 600; line-height: 1.2;
}
.home-acciones .btn { padding-left: 18px; padding-right: 18px; }
.catalog-section .catalog-expand button, .visitanos-dato .visitanos-wa, .cierre-contacto .btn, .herramienta-cta { padding-left: 16px; padding-right: 16px; }
.home-acciones .btn::after,
.catalog-section .catalog-expand button::after,
.visitanos-dato .visitanos-wa::after,
.cierre-contacto .btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
/* "Calcular" no lleva capa propia: es parte de la tarjeta de la calculadora, que es toda un enlace. */
@media (max-width: 700px) {
  .home-acciones .btn { padding-left: 8px; padding-right: 8px; }
}

/* Chips del filtro: el carril tiene scroll horizontal y recorta lo que sobresale, por eso gana 8 px arriba y abajo
   para que quepa el área de toque. */
.catalog-section .catalog-categories { padding-top: calc(-1 * var(--toque-extra)); padding-bottom: calc(-1 * var(--toque-extra)); }
.catalog-section .catalog-categories button {
  position: relative; height: var(--alto-control); min-height: var(--alto-control); padding: 0 12px; font-size: 13px; line-height: 1.2;
}
.catalog-section .catalog-categories button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }

/* Buscador del catálogo (< 1100 px). La letra del campo queda en 16 px: con menos, el iPhone se acerca al tocarlo. */
.catalog-section .catalog-search { position: relative; height: var(--alto-control); min-height: var(--alto-control); padding-left: 10px; gap: 8px; }
.catalog-section .catalog-search::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.catalog-section .catalog-search input { position: relative; z-index: 1; height: 100%; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: 16px; line-height: 1.2; }
.catalog-section .catalog-search [data-icon] { display: flex; align-items: center; height: auto; }
.catalog-section .catalog-search [data-icon] svg { width: 14px; height: 14px; }
/* En celular el buscador va justo debajo de "Ordenar por", cuyo toque sobresale 7 px de su línea: 4 px más de separación
   para que las dos áreas de toque no se pisen. */
@media (max-width: 700px) { .catalog-section .catalog-search { margin-top: 4px; } }

/* Cabecera en computadora: buscador (≥ 1100 px) y "Pedir por WhatsApp" con texto (≥ 1051 px). */
@media (min-width: 1051px) {
  .site-header .header-wa { position: relative; height: var(--alto-control); min-height: var(--alto-control); padding: 0 16px; gap: 6px; font-size: 13px; }
  .site-header .header-wa::before { flex-basis: 14px; width: 14px; height: 14px; }
  .site-header .header-wa::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
}
@media (min-width: 1100px) {
  .header-buscar label { position: relative; height: var(--alto-control); padding: 0 12px; gap: 6px; }
  .header-buscar label::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .header-buscar input { position: relative; z-index: 1; font-size: 13px; }
  .header-buscar svg { flex-basis: 14px; width: 14px; height: 14px; }
}

/* Visítanos: "Ver ubicación" y "Llamar a la tienda" son enlaces de texto subrayados; su caja queda a la altura del texto
   (20 px) y el toque sigue en 44 px. El botón de WhatsApp se separa lo justo para que las dos áreas no se toquen. */
.visitanos-dato .home-map-link, .visitanos-dato .hero-llamar { position: relative; min-height: 0; height: 20px; line-height: 20px; }
.visitanos-dato .home-map-link::after, .visitanos-dato .hero-llamar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
/* El toque de "Llamar" sobresale 12 px abajo y el del botón 8 px arriba: hacen falta 20 px entre los dos. */
.visitanos-dato .hero-llamar + .visitanos-wa { margin-top: 18px; }
@media (min-width: 701px) { .visitanos-dato .hero-llamar + .visitanos-wa { margin-top: 14px; } }

/* ── 21. WEB-10 (dueño 2026-11-06): botón del asistente, botones de las demás páginas e íconos de la cabecera ──────── */
/* Botones donde el cliente compra (ficha): un poco más altos que el resto. Se cambia aquí si el dueño pide otra altura. */
:root { --alto-control-principal: 36px; }

/* Asistente (opción B, dueño 2026-11-06, WEB-10B): círculo oscuro de 44 px con la carita de asistente y un punto verde
   de "en línea" arriba a la derecha, desde que carga la página. Mientras el cliente desliza hacia abajo se esconde con una
   salida suave (js/asistente.js pone la clase "escondido"). La capa ::after hace que respondan también las esquinas del
   cuadrado (el círculo solo, no). En la ficha va 10 px sobre la barra fija de compra (body.con-barra-compra, abajo). */
.asistente-launcher {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  transition: opacity .18s ease, transform .18s ease;
}
.asistente-launcher svg { flex: 0 0 24px; width: 24px; height: 24px; }
.asistente-launcher-punto { position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: #2fa84f; }
.asistente-launcher::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.asistente-launcher.escondido { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .asistente-launcher { transition: none; } }

/* Botones de 48 px de las demás páginas → --alto-control (28 px), letra 13/600 y toque de 44 px, igual que WEB-09B. */
.nosotros-datos .btn,
.reviews-heading .btn,
.guia-articulo .guia-cta,
.cod-zonas-cta .btn,
.contact-band .btn,
.policy-cta .btn {
  position: relative; height: var(--alto-control); min-height: var(--alto-control);
  padding: 0 16px; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.nosotros-datos .btn::after,
.reviews-heading .btn::after,
.guia-articulo .guia-cta::after,
.cod-zonas-cta .btn::after,
.contact-band .btn::after,
.policy-cta .btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
/* "Confirmar mi ciudad por WhatsApp" cabe en una línea desde 320 px. */
.cod-zonas-cta .btn { white-space: nowrap; }
@media (max-width: 380px) { .cod-zonas-cta .btn { padding-left: 12px; padding-right: 12px; } }

/* Ficha: "Pedir este producto por WhatsApp" y "Agregar a mi pedido" → --alto-control-principal (36 px), letra 14 px,
   toque de 44 px. Las variantes, la barra fija de compra y la calculadora no cambian. */
.producto-acciones .btn {
  position: relative; height: var(--alto-control-principal); min-height: var(--alto-control-principal);
  padding: 0 16px; font-size: 14px; line-height: 1.2; white-space: nowrap;
}
.producto-acciones .btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }

/* Íconos de la cabecera (lupa, carrito, WhatsApp en celular, menú): son círculos, y el navegador no acepta toques en las
   esquinas del cuadrado; en las páginas internas el carrito y el menú miden 38 px. Una capa invisible de 44 px de alto,
   tan ancha como el ícono, hace que respondan en 44 px sin cambiar lo que se ve y sin pisarse entre sí. */
.site-header .header-actions > a,
.site-header .header-actions > button { position: relative; }
.site-header .header-actions > a::after,
.site-header .header-actions > button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 46px; margin-top: -23px; }   /* 46: con 44 justos, el borde redondeado deja sin respuesta la última fila de píxeles en los lados */
/* El ícono de WhatsApp de la cabecera en celular tenía overflow: hidden (para esconder el texto, que ya va en letra de 0 px):
   recortaba la capa de toque. Sin recorte se ve igual y responde en toda su altura. */
@media (max-width: 700px) { .site-header .header-wa { overflow: visible; } }
/* Ficha: el asistente va 10 px por encima de la barra fija de compra, mida lo que mida (js/asistente.js pone
   --alto-barra-compra). Con 80 px fijos, en 320 px la barra (85 px) tapaba el borde de abajo del botón. */
body.con-barra-compra .asistente-launcher { bottom: calc(var(--alto-barra-compra, 70px) + 10px); }

/* ── 22. WEB-11 (dueño 2026-11-06): inicio directo al catálogo ─────────────────────────────────────────────────
   Sin la sección "Herramientas gratis" ni el encabezado visible del catálogo: del héroe se pasa al buscador (celular) o
   a los chips (computadora). "Nuestros productos" queda solo para lectores de pantalla (.sr-only) y "Ordenar por" pasa
   a la fila de "88 productos", a la derecha (docs/pedidos/web11-referencia/). */
.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; }
.catalog-section .catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-section .catalog-meta .sort-label { flex: 0 0 auto; margin-left: auto; }
/* Del héroe al catálogo: 8 px de relleno arriba, en todos los anchos (lo que mide la referencia aprobada). */
.catalog-section { padding-top: 8px; }
/* #catalog (tarjetas de categoría, "Ver todo →", "Productos" del menú, enlaces /?categoria=…#catalog) baja justo al
   título "Todo el catálogo", unos 12 px bajo la cabecera fija (WEB-12; en WEB-11 se bajaba al buscador). El ancla suma el
   scroll-padding-top de la página (90 px hasta 760 px, 110 después; storefront.css); aquí: cabecera visible (57 px hasta
   700, 73 después) + 12 px − scroll-padding − lo que hay en la sección antes del título (8 px de relleno + 22 de margen).
   Las demás anclas del sitio no cambian. */
.catalog-section { scroll-margin-top: -55px; }
@media (max-width: 760px) { .catalog-section { scroll-margin-top: -35px; } }
@media (max-width: 700px) { .catalog-section { scroll-margin-top: -51px; } }

/* ── 23. WEB-12 (dueño 2026-11-07): inicio "nivel 9" (docs/pedidos/web12-referencia/) ──────────────────────────────
   Héroe → [celular: buscador] → Compra por categoría → banda "Para los apagones" → Seguridad para tu casa → Lo nuevo
   en la tienda → Todo el catálogo. Todo horneado por gen-home.cjs; storefront-catalog.js hidrata sin repintar. */
/* Buscador del inicio (hasta 1099 px): sube debajo del héroe. Desde 1100 px el buscador está en la cabecera. */
.catalog-section.inicio-buscador { margin-top: 4px; padding: 6px 0 0; min-height: 0; scroll-margin-top: 0; }
@media (min-width: 1100px) { .catalog-section.inicio-buscador { display: none; } }

.inicio-sec { margin-top: 28px; }
.inicio-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.inicio-cab h2, .inicio-banda h2, .catalog-section h2.inicio-todo { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.inicio-cab a { position: relative; font-size: 13px; font-weight: 600; color: var(--accent-texto); text-decoration: none; white-space: nowrap; }
.inicio-cab a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }

/* Compra por categoría: 2 columnas (1:1) en celular, 6 (4:5) en computadora. El degradado oscuro abajo (aprobado en este
   pedido) va anclado al borde inferior en píxeles: los últimos 80 px (donde está el texto, aunque el nombre ocupe 2 líneas)
   quedan a 62 % o más de opacidad y el blanco cumple 4.5:1 aunque la foto sea clara. */
.inicio-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .inicio-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.inicio-cat { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; }
@media (min-width: 900px) { .inicio-cat { aspect-ratio: 4 / 5; } }
.inicio-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inicio-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 21, .88) 0, rgba(20, 22, 21, .62) 80px, rgba(20, 22, 21, 0) 140px); }
.inicio-cat-texto { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.inicio-cat-texto b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.inicio-cat-texto small { font-size: 12px; color: rgba(255, 255, 255, .88); }

/* Filas que se deslizan (apagones, seguridad, lo nuevo): hasta 8 tarjetas de 150 px (200 en computadora). */
.inicio-fila { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 -2px; padding: 2px 2px 10px; scrollbar-width: none; }
.inicio-fila::-webkit-scrollbar { display: none; }
.fila-card { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px; background: var(--white); border: 1px solid #ecebe5; border-radius: 18px; }
@media (min-width: 900px) { .fila-card { flex-basis: 200px; } }
.fila-foto { display: block; overflow: hidden; border-radius: 12px; background: #faf9f6; }
.fila-foto img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.fila-nombre { display: block; margin: -5px 0; padding: 5px 4px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.fila-precio { padding: 0 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.fila-btn { position: relative; height: var(--alto-control); margin-top: 2px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--accent-cta); color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.fila-btn:disabled { opacity: 1; cursor: default; }   /* horneado: se activa al llegar los datos, sin cambiar de aspecto */
.fila-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
/* El nombre abre la ventana como la foto. El enlace mide 44 px (5 px más arriba y abajo, con margen negativo: no mueve nada ni
   pisa la foto) y el texto va en un <span> recortado a 2 líneas (34 px), como en la referencia. */
.fila-nombre span { display: block; height: 34px; overflow: hidden; }

/* Banda oscura "Para los apagones": color sólido de la marca (la referencia trae un degradado casi invisible; el dueño
   cerró "nada de degradados"). El rótulo va en 12 px, la letra mínima del sitio. */
.inicio-banda { padding: 18px 18px 16px; border-radius: 22px; background: var(--ink); color: #f6f5f1; }
.inicio-banda-eb { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #f0a58f; }
.inicio-banda h2 { margin: 4px 0 12px; font-size: 21px; color: #fff; }
.inicio-banda .fila-card { border-color: #3a403c; }

/* "Todo el catálogo": título visible arriba de los chips. */
.catalog-section h2.inicio-todo { margin: 22px 0 12px; }

/* ============================================================================
   24. WEB-12B (dueño 2026-11-07): las fotos de las 3 filas del inicio y del catálogo se piden solo cuando el cliente se
   acerca (storefront-catalog.js → vigilarFotos). Mientras no tienen dirección se esconden (sin texto alternativo a la
   vista); su cuadro 1:1 con fondo claro (.fila-foto, .product-open) ya reserva el lugar, así que nada salta al cargar.
   ============================================================================ */
.fila-foto img[data-src], .product-card img.product-image[data-src] { visibility: hidden; }
