/* ==========================================================================
   Catálogo PRO — capa final de acabado para TODAS las apariencias.
   Va al último (después de catalog-craft.css). Solo usa los tokens de cada
   apariencia (--bg, --bg-card, --text, --accent, --font-heading…), así que cada
   diseño conserva su paleta, tipografía, radios y sombras; lo que unifica es la
   jerarquía: portada útil, barra superior real, tarjetas limpias y móvil compacto.
   Prefijo html[data-style][data-world] body = más específico que las capas
   por mundo/estilo sin tener que usar !important salvo donde ellas lo usan.
   ========================================================================== */

html[data-style][data-world] {
  --pro-ease: cubic-bezier(.22, 1, .36, 1);
  --pro-line: color-mix(in srgb, var(--text) 11%, transparent);
  --pro-soft: color-mix(in srgb, var(--text) 4%, var(--bg-card));
  --pro-tint: color-mix(in srgb, var(--accent) 9%, var(--bg-card));
  --pro-muted: var(--muted, var(--text-secondary));
  --pro-on-accent: var(--soc-on-accent, #fff);
  --pro-sale: #c8322a;
  --pro-ok: #15803d;
  --pro-btn-radius: min(calc(var(--radius) * .75), 14px);
  --pro-chip-radius: min(calc(var(--radius) * 2), 999px);
  --pro-hdr-h: 64px;
}
html[data-tone="dark"][data-style][data-world] {
  --pro-line: color-mix(in srgb, var(--text) 14%, transparent);
  --pro-soft: color-mix(in srgb, var(--text) 6%, var(--bg-card));
  --pro-tint: color-mix(in srgb, var(--accent) 14%, var(--bg-card));
  --pro-sale: #ef5a4c;
  --pro-ok: #4ade80;
}
html[data-world="soft"][data-style], html[data-world="organic"][data-style] { --pro-btn-radius: 999px; }
html[data-world="editorial"][data-style], html[data-world="brutalist"][data-style] { --pro-btn-radius: 0px; --pro-chip-radius: 0px; }

/* --------------------------------------------------------------------------
   1. Barra superior: aparece al bajar (la portada ya presenta la marca), sin
      la franja vacía con un solo botón que quedaba bajo la portada.
   -------------------------------------------------------------------------- */
html[data-style][data-world] body:has(.hero, .brand-hero) .hdr {
  position: fixed; left: 0; right: 0; top: 0;
  transform: translateY(-105%);
  transition: transform .38s var(--pro-ease), box-shadow .3s var(--pro-ease);
  box-shadow: none;
}
html[data-style][data-world] body:has(.hero, .brand-hero) .hdr.hdr-compact {
  transform: none;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}
html.is-standalone[data-style][data-world] body:has(.hero, .brand-hero) .hdr { padding-top: env(safe-area-inset-top); }
html[data-style][data-world] body .hdr .hdr-left { opacity: 1; pointer-events: auto; }
html[data-style][data-world] body .hdr .hdr-inner {
  min-height: var(--pro-hdr-h); padding-block: 10px;
  max-width: 1440px; margin-inline: auto;
}
html[data-style][data-world] body .hdr .hdr-title { font-size: 1.05rem; letter-spacing: -.005em; }
html[data-style][data-world] body .hdr .hdr-logo { height: 38px; max-width: 120px; object-fit: contain; border-radius: min(var(--radius), 10px); }
html[data-style][data-world] body .hdr .hdr-right { gap: 8px; }
html[data-style][data-world] body .hdr .hdr-wa {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--pro-btn-radius); background: #1f9d55; color: #fff;
  font: 700 13px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: filter .2s var(--pro-ease), transform .2s var(--pro-ease);
}
html[data-style][data-world] body .hdr .hdr-wa i { font-size: 16px; }
html[data-style][data-world] body .hdr .hdr-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* "Instalar app" pasa a ser un botón discreto de ícono: es secundario */
html[data-style][data-world] body .hdr #pwa-install-btn-public {
  width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0;
  font-size: 0; gap: 0; background: transparent; color: var(--text);
  border: 1px solid var(--pro-line); border-radius: var(--pro-btn-radius); box-shadow: none;
}
html[data-style][data-world] body .hdr #pwa-install-btn-public svg { width: 18px; height: 18px; flex-basis: 18px; }
html[data-style][data-world] body .hdr #pwa-install-btn-public:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
html[data-style][data-world] body .hdr .how-pill { height: 40px; min-height: 40px; }
@media (max-width: 640px) {
  html[data-style][data-world] { --pro-hdr-h: 56px; }
  html[data-style][data-world] body .hdr .hdr-inner { padding: 8px 14px; }
  html[data-style][data-world] body .hdr .hdr-wa { width: 40px; padding: 0; justify-content: center; }
  html[data-style][data-world] body .hdr .hdr-wa span { display: none; }
  html[data-style][data-world] body .hdr .how-pill { display: none; }
  html[data-style][data-world] body .hdr .hdr-logo { height: 32px; }
}

/* --------------------------------------------------------------------------
   2. Portada: nombre, descripción, estado de hoy y llamadas a la acción
   -------------------------------------------------------------------------- */
html[data-style][data-world] body .hero .hero-name,
html[data-style][data-world] body .brand-hero .hero-name { line-height: 1.04; margin: 0; }
html[data-style][data-world] body :is(.hero, .brand-hero) .hero-desc {
  margin-top: 12px; line-height: 1.55; text-wrap: pretty;
}
/* Fotos de logo: nunca recortadas */
html[data-style][data-world] body :is(.hero-logo, .brand-hero-logo, .hdr-logo) { object-fit: contain; }

/* Banner: la foto y el texto comparten la misma celda; la portada mide lo que mida
   lo más alto de los dos (en PC la foto casi completa, con tope; en el celular el
   texto), así el logo, el nombre y los botones nunca se salen por arriba. */
html[data-style][data-world] body .hero.has-banner { display: grid; min-height: 0; background: #0c0c10; }
html[data-style][data-world] body .hero.has-banner > img.bg,
html[data-style][data-world] body .hero.has-banner > .hero-overlay { grid-area: 1 / 1; position: relative; inset: auto; }
html[data-style][data-world] body .hero.has-banner > img.bg {
  width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: center;
}
html[data-style][data-world] body .hero.has-banner > .hero-overlay { padding-top: clamp(76px, 9vw, 120px); }
@media (min-width: 900px) {
  html[data-style][data-world] body .hero.has-banner > img.bg { max-height: min(82vh, 780px); min-height: 440px; }
}
@media (max-width: 640px) {
  html[data-style][data-world] body .hero .hero-logo,
  html[data-style][data-world] body .hero.has-banner .hero-logo { height: 92px; min-width: 92px; margin-bottom: 14px; }
  html[data-style][data-world] body .brand-hero-logo { height: 96px; min-width: 96px; }
}

/* Banner: degradado que respeta la alineación del texto (izquierda/centro/derecha) */
html[data-style][data-world] body .hero.has-banner .hero-overlay {
  background: linear-gradient(180deg, rgba(8, 8, 12, .10) 0%, rgba(8, 8, 12, .38) 42%, rgba(8, 8, 12, .80) 100%);
  justify-content: flex-end;
  padding-bottom: clamp(30px, 5.5vw, 72px);
}
html[data-hero="left"][data-style][data-world] body .hero.has-banner .hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 12, .72) 0%, rgba(8, 8, 12, .42) 46%, rgba(8, 8, 12, .06) 100%),
    linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, .45) 100%);
}
html[data-hero="right"][data-style][data-world] body .hero.has-banner .hero-overlay {
  background:
    linear-gradient(270deg, rgba(8, 8, 12, .72) 0%, rgba(8, 8, 12, .42) 46%, rgba(8, 8, 12, .06) 100%),
    linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, .45) 100%);
}
html[data-style][data-world] body .hero.has-banner .hero-desc { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }

/* Estado de hoy */
html[data-style][data-world] body .hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: inherit; }
html[data-style][data-world] body .hero-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font: 500 12.5px/1.2 var(--font-body); letter-spacing: 0; text-transform: none;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--pro-line);
}
html[data-style][data-world] body .hero-status b { font-weight: 700; }
html[data-style][data-world] body .hero-status-sub { opacity: .78; }
html[data-style][data-world] body .hero-status-sub::before { content: "·"; margin: 0 6px 0 0; opacity: .6; }
html[data-style][data-world] body .hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: none; }
html[data-style][data-world] body .hero-status.open .hero-dot { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 28%, transparent); }
html[data-style][data-world] body .hero-status.closed .hero-dot { background: #ef4444; }
html[data-style][data-world] body .hero.has-banner .hero-status {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-style][data-world] body .hero.has-banner .hero-status.open,
html[data-style][data-world] body .hero.has-banner .hero-status.closed { color: #fff; }

/* Llamadas a la acción */
html[data-style][data-world] body .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
html[data-hero="center"][data-style][data-world] body .hero-ctas,
html[data-hero="center"][data-style][data-world] body .hero-meta { justify-content: center; }
html[data-hero="right"][data-style][data-world] body .hero-ctas,
html[data-hero="right"][data-style][data-world] body .hero-meta { justify-content: flex-end; }
html[data-style][data-world] body .hero-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: var(--pro-btn-radius);
  font: 700 14px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .22s var(--pro-ease), filter .22s var(--pro-ease), background-color .22s var(--pro-ease);
}
html[data-style][data-world] body .hero-cta i { font-size: 16px; }
html[data-style][data-world] body .hero-cta:hover { transform: translateY(-2px); }
html[data-style][data-world] body .hero-cta:active { transform: translateY(0) scale(.98); }
html[data-style][data-world] body .hero-cta--main { background: var(--accent); color: var(--pro-on-accent); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
html[data-style][data-world] body .hero-cta--main:hover { filter: brightness(1.08); }
html[data-style][data-world] body .hero-cta--wa { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 26%, transparent); }
html[data-style][data-world] body .hero-cta--wa i { color: #1f9d55; }
html[data-style][data-world] body .hero-cta--wa:hover { border-color: #1f9d55; }
html[data-style][data-world] body .hero.has-banner .hero-cta--main { background: #fff; color: #111; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55); }
html[data-style][data-world] body .hero.has-banner .hero-cta--wa {
  color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-style][data-world] body .hero.has-banner .hero-cta--wa i { color: #4ade80; }
html[data-style][data-world] body .hero.has-banner .hero-cta--wa:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

/* En el celular la portada siempre va centrada (la regla por apariencia ya centra el texto) */
@media (max-width: 700px) {
  html[data-style][data-world] body :is(.hero, .brand-hero) :is(.hero-ctas, .hero-meta) { justify-content: center; }
  html[data-style][data-world] body .hero-ctas { gap: 8px; }
}

/* Portada sin banner (logo o solo nombre) */
html[data-style][data-world] body .brand-hero { position: relative; border-bottom: 1px solid var(--pro-line); }
html[data-style][data-world] body .brand-hero--text {
  padding-block: clamp(48px, 8vw, 104px) clamp(36px, 6vw, 72px);
  background:
    radial-gradient(80% 120% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(40% 60% at 92% 110%, color-mix(in srgb, var(--accent-glow) 14%, transparent), transparent 70%),
    var(--bg);
}
html[data-style][data-world] body .brand-hero--text .hero-name { font-size: clamp(2.4rem, 7vw, 4.4rem); max-width: 18ch; }

/* --------------------------------------------------------------------------
   3. Franja de confianza
   -------------------------------------------------------------------------- */
html[data-style][data-world] body .trust-strip { background: var(--bg-card); border-bottom: 1px solid var(--pro-line); }
html[data-style][data-world] body .trust-inner {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  max-width: 1440px; margin-inline: auto;
}
html[data-style][data-world] body .trust-n2 { --n: 2; }
@media (min-width: 901px) {
  html[data-style][data-world] body .trust-n2 { display: flex; justify-content: center; }
  html[data-style][data-world] body .trust-n2 .trust-item { padding-inline: clamp(28px, 4vw, 56px); }
}
html[data-style][data-world] body .trust-n3 { --n: 3; }
html[data-style][data-world] body .trust-n4 { --n: 4; }
html[data-style][data-world] body .trust-item {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 16px clamp(12px, 2vw, 24px); color: var(--text); text-decoration: none;
}
html[data-style][data-world] body .trust-item + .trust-item { border-left: 1px solid var(--pro-line); }
html[data-style][data-world] body .trust-item > i {
  flex: none; width: 38px; height: 38px; border-radius: min(var(--radius), 12px);
  display: grid; place-items: center; font-size: 17px;
  background: var(--pro-tint); color: var(--accent);
}
html[data-tone="dark"][data-style][data-world] body .trust-item > i { color: var(--accent-light, var(--accent)); }
html[data-style][data-world] body .trust-item.is-open > i { color: var(--pro-ok); background: color-mix(in srgb, var(--pro-ok) 12%, var(--bg-card)); }
html[data-style][data-world] body .trust-item span { display: flex; flex-direction: column; min-width: 0; }
html[data-style][data-world] body .trust-item b { font: 700 13.5px/1.25 var(--font-body); }
html[data-style][data-world] body .trust-item small { font: 500 12px/1.35 var(--font-body); color: var(--pro-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-style][data-world] body a.trust-item:hover b { color: var(--accent); }
@media (max-width: 900px) {
  html[data-style][data-world] body .trust-inner {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0;
  }
  html[data-style][data-world] body .trust-inner::-webkit-scrollbar { display: none; }
  html[data-style][data-world] body .trust-item { flex: 0 0 auto; max-width: 78vw; padding: 13px 16px; scroll-snap-align: start; }
  html[data-style][data-world] body .trust-item > i { width: 34px; height: 34px; font-size: 15px; }
}

/* --------------------------------------------------------------------------
   4. Títulos de sección
   -------------------------------------------------------------------------- */
html[data-style][data-world] body :is(.sec-title, .ofertas-title) {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-heading); font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.1;
  color: var(--text);
}
html[data-style][data-world] body :is(.sec-title, .ofertas-title) > i.bi { display: none; }
html[data-style][data-world] body .sec-count {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 700 11.5px/1 var(--font-body); letter-spacing: .02em; text-transform: none;
  background: var(--pro-tint); color: var(--text); border: 1px solid var(--pro-line);
}
html[data-style][data-world] body .ofertas-title .sec-count { background: color-mix(in srgb, var(--pro-sale) 12%, var(--bg-card)); color: var(--pro-sale); border-color: color-mix(in srgb, var(--pro-sale) 26%, transparent); }
html[data-style][data-world] body .ofertas-section { padding-top: clamp(20px, 3vw, 36px); margin-top: 0; }
html[data-style][data-world] body .ofertas-header { margin-bottom: 16px; }
html[data-style][data-world] body .ofertas-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--pro-line);
  box-shadow: none;
}
html[data-style][data-world] body .ofertas-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Tarjeta de producto (catálogo y carruseles)
   -------------------------------------------------------------------------- */
html[data-style][data-world] body :is(.prod-card, .oferta-card) {
  display: flex; flex-direction: column; overflow: hidden;
}
html[data-style][data-world] body :is(.prod-body, .oferta-body) {
  display: flex; flex-direction: column; flex: 1 1 auto; gap: 0;
}
/* Una sola insignia de descuento: "-18%" ya dice que es oferta */
html[data-style][data-world] body .prod-badge-offer ~ .prod-badge-promo { display: none; }
html[data-style][data-world] body .prod-badge-wrap { top: 10px; left: 10px; gap: 6px; }
html[data-style][data-world] body .prod-badge-offer {
  background: var(--pro-sale); color: #fff; border: 0;
  font: 800 11px/1 var(--font-body); letter-spacing: .02em;
  padding: 6px 8px; border-radius: min(var(--radius), 6px); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}
html[data-style][data-world] body :is(.prod-badge-promo, .prod-badge-new, .prod-badge-rank) {
  font: 700 10.5px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 8px; border-radius: min(var(--radius), 6px);
}

/* Nombre: dos líneas máximo y la misma altura en toda la fila */
html[data-style][data-world] body .prod-name {
  font-size: clamp(.95rem, 1.05vw, 1.04rem); line-height: 1.3; min-height: 0; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-style][data-world] body .prod-name a { color: inherit; text-decoration: none; }
html[data-style][data-world] body .prod-card:hover .prod-name a { color: var(--accent); }
html[data-tone="dark"][data-style][data-world] body .prod-card:hover .prod-name a { color: var(--accent-light, var(--accent)); }
html[data-style][data-world] body .prod-desc {
  margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--pro-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Precio: protagonista, con el anterior tachado al lado */
/* El precio baja al fondo de la tarjeta: en una fila todos quedan a la misma altura */
html[data-style][data-world] body :is(.prod-prices, .oferta-prices) {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 14px;
}
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) { margin-top: 0; }
html[data-style][data-world] body .oferta-prices { flex-direction: row-reverse; justify-content: flex-end; }
html[data-style][data-world] body :is(.prod-price, .oferta-new) {
  font-size: clamp(1.12rem, 1.35vw, 1.3rem); font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--text);
}
html[data-style][data-world] body :is(.prod-old, .oferta-old) {
  font-size: 13px; font-weight: 500; color: var(--pro-muted); text-decoration: line-through;
  text-decoration-thickness: 1px; font-variant-numeric: tabular-nums;
}
html[data-style][data-world] body :is(.prod-card, .oferta-card):has(.prod-badge-offer) :is(.prod-price, .oferta-new) { color: var(--pro-sale); }

/* Disponibilidad y abonos: una línea discreta, no tres renglones de colores */
html[data-style][data-world] body .stock-status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font: 600 12px/1.3 var(--font-body); color: var(--pro-muted); background: none; border: 0; padding: 0;
}
html[data-style][data-world] body .stock-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pro-ok); flex: none;
}
html[data-style][data-world] body .stock-status--low { color: #b45309; }
html[data-style][data-world] body .stock-status--low::before { background: #f59e0b; }
html[data-tone="dark"][data-style][data-world] body .stock-status--low { color: #fbbf24; }
html[data-style][data-world] body .stock-status--out { color: var(--pro-sale); }
html[data-style][data-world] body .stock-status--out::before { background: var(--pro-sale); }
html[data-style][data-world] body .installment-note {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 4px 8px; width: fit-content;
  font: 600 11.5px/1.2 var(--font-body); color: var(--text);
  background: var(--pro-soft); border: 1px solid var(--pro-line); border-radius: min(var(--radius), 6px);
}
html[data-style][data-world] body .prod-promo-strip { margin-top: 8px; font-size: 11.5px; }
html[data-style][data-world] body .prod-card.is-out .prod-img-wrap > img { filter: grayscale(.55); opacity: .82; }
html[data-style][data-world] body .prod-card.is-out .stock-status--out { display: none; }
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-btn.prod-btn--out,
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-btn.prod-btn--out:hover {
  background: var(--pro-soft); color: var(--pro-muted); border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent);
  box-shadow: none; filter: none; transform: none; cursor: not-allowed; text-transform: none;
}

/* Acciones: "Agregar" + compartir. "Ver" sobraba: toda la tarjeta abre el producto */
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding-top: 14px;
}
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-view-btn { display: none; }
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-btn {
  grid-column: 1; min-height: 44px; height: 44px; padding: 0 12px;
  font: 700 13px/1 var(--font-body); letter-spacing: .01em; gap: 8px;
}
html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-share-btn {
  grid-column: 2; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
}
html[data-style][data-world] body .oferta-body { padding: 14px 16px 16px; }
html[data-style][data-world] body .oferta-name {
  font-size: .98rem; line-height: 1.3; min-height: calc(1.3em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Búsqueda y categorías rápidas (solo celular/tablet)
   -------------------------------------------------------------------------- */
html[data-style][data-world] body .shop-tools { display: none; }
@media (max-width: 900px) {
  html[data-style][data-world] body .shop-tools { display: block; margin: 0 0 16px; }
  html[data-style][data-world] body .shop-search {
    display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
    background: var(--bg-card); border: 1px solid var(--pro-line); border-radius: var(--pro-btn-radius);
    color: var(--pro-muted); transition: border-color .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
  }
  html[data-world="soft"][data-style] body .shop-search,
  html[data-world="organic"][data-style] body .shop-search { border-radius: 999px; }
  html[data-style][data-world] body .shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
  html[data-style][data-world] body .shop-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font: 500 16px/1 var(--font-body); color: var(--text);
  }
  html[data-style][data-world] body .shop-search input::placeholder { color: var(--pro-muted); opacity: 1; }
  html[data-style][data-world] body .shop-search input::-webkit-search-cancel-button { opacity: .6; }
  html[data-style][data-world] body .cat-chips {
    display: flex; gap: 8px; overflow-x: auto; margin: 12px -14px 0; padding: 2px 14px 4px;
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  html[data-style][data-world] body .cat-chips::-webkit-scrollbar { display: none; }
  html[data-style][data-world] body .cat-chip {
    flex: none; height: 38px; padding: 0 16px; border-radius: var(--pro-chip-radius); scroll-snap-align: start;
    font: 600 13px/1 var(--font-body); white-space: nowrap; cursor: pointer;
    background: var(--bg-card); color: var(--text); border: 1px solid var(--pro-line);
    transition: background-color .2s var(--pro-ease), color .2s var(--pro-ease), border-color .2s var(--pro-ease);
  }
  html[data-style][data-world] body .cat-chip.on { background: var(--accent); color: var(--pro-on-accent); border-color: var(--accent); }
}

/* --------------------------------------------------------------------------
   7. Rejilla y móvil compacto
   -------------------------------------------------------------------------- */
html[data-style][data-world] body .main-content .sec-title { margin-bottom: 18px; }
@media (max-width: 600px) {
  html[data-style][data-world] body .prod-grid { gap: 10px; }
  html[data-style][data-world] body .prod-body { padding: 10px 11px 11px; }
  html[data-style][data-world] body .prod-name { font-size: .9rem; }
  html[data-style][data-world] body .prod-desc,
  html[data-style][data-world] body .prod-specs { display: none; }
  html[data-style][data-world] body .prod-tags-row .prod-tag-custom:nth-child(n+3) { display: none; }
  html[data-style][data-world] body :is(.prod-prices, .oferta-prices) { padding-top: 8px; gap: 2px 8px; }
  html[data-style][data-world] body :is(.prod-price, .oferta-new) { font-size: 1.05rem; }
  html[data-style][data-world] body :is(.prod-old, .oferta-old) { font-size: 12px; }
  html[data-style][data-world] body .stock-status { margin-top: 6px; font-size: 11.5px; }
  html[data-style][data-world] body .installment-note { margin-top: 6px; font-size: 11px; padding: 3px 6px; }
  html[data-style][data-world] body :is(.prod-actions, .oferta-actions) { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; padding-top: 10px; flex-wrap: nowrap; }
  html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-btn { height: 40px; min-height: 40px; font-size: 12.5px; padding: 0 8px; flex: none; }
  html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-share-btn { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  html[data-style][data-world] body .oferta-body { padding: 10px 11px 11px; }
  html[data-style][data-world] body .oferta-card { width: clamp(168px, 46vw, 220px); flex: 0 0 auto; }
  html[data-style][data-world] body .oferta-name { font-size: .9rem; }
  html[data-style][data-world] body :is(.sec-title, .ofertas-title) { font-size: 1.4rem; }
  html[data-style][data-world] body .hero-cta { height: 46px; padding: 0 18px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  html[data-style][data-world] body :is(.prod-actions, .oferta-actions) .prod-btn i { display: none; }
}

/* "Ver más productos" */
html[data-style][data-world] body .load-more-btn {
  height: 48px; padding: 0 26px; border-radius: var(--pro-btn-radius);
  background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  font: 700 14px/1 var(--font-body); box-shadow: none;
}
html[data-style][data-world] body .load-more-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* --------------------------------------------------------------------------
   8. Toques por mundo (sobre la base anterior)
   -------------------------------------------------------------------------- */
/* Lujo: texto centrado, cifras finas y CTA sin sombras */
html[data-world="luxury"][data-style] body :is(.prod-price, .oferta-new) { font-weight: 600; letter-spacing: .02em; }
html[data-world="luxury"][data-style] body .hero-cta { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
html[data-world="luxury"][data-style] body .hero-cta--main { box-shadow: none; }
html[data-world="luxury"][data-style] body .trust-item b { font-weight: 600; letter-spacing: .02em; }
/* Editorial: reglas finas, mayúsculas espaciadas en botones */
html[data-world="editorial"][data-style] body .hero-cta { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
html[data-world="editorial"][data-style] body .trust-item > i { background: transparent; border: 1px solid var(--pro-line); }
/* Industrial y brutalista: contundentes */
html[data-world="industrial"][data-style] body .hero-cta,
html[data-world="brutalist"][data-style] body .hero-cta { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
html[data-world="brutalist"][data-style] body .hero-cta--main { box-shadow: 5px 5px 0 rgba(0, 0, 0, .85); }
html[data-world="brutalist"][data-style] body .trust-strip { border-bottom: 3px solid var(--text); }
html[data-world="industrial"][data-style] body .trust-item > i { border-radius: min(var(--radius), 4px); }
/* Tecnológico: brillo del acento */
html[data-world="tech"][data-style] body .hero-cta--main { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
html[data-world="tech"][data-style] body .trust-item > i { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
/* Suave y vibrante: botones redondos y amables */
html[data-world="vibrant"][data-style] body .hero-cta { font-weight: 800; }
html[data-world="soft"][data-style] body .trust-item > i,
html[data-world="vibrant"][data-style] body .trust-item > i { border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  html[data-style][data-world] body :is(.hdr, .hero-cta, .cat-chip, .shop-search) { transition: none !important; }
}

/* Tipografías decorativas (Amatic SC): se lucen en títulos grandes, pero en nombres y
   precios pequeños se vuelven difíciles de leer → ahí va la tipografía de texto. */
html[data-style="vivero"][data-world] body :is(.prod-name, .oferta-name, .prod-price, .oferta-new, .hdr-title, .filter-header h2) {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
html[data-style="vivero"][data-world] body :is(.prod-name, .oferta-name) { font-weight: 700; }
html[data-style][data-world] body #contenido { scroll-margin-top: calc(var(--pro-hdr-h) + 8px); }

/* --------------------------------------------------------------------------
   9. Catálogo separado por línea / marca (Configuración → "Separar productos
      por línea o marca"). Usa el Agrupador de cada producto.
   -------------------------------------------------------------------------- */
html[data-style][data-world] body .line-mono {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: min(var(--radius), 11px); background: var(--pro-tint); color: var(--accent);
  font: 800 13px/1 var(--font-body); letter-spacing: -.02em;
}
html[data-tone="dark"][data-style][data-world] body .line-mono { color: var(--accent-light, var(--accent)); }
html[data-style][data-world] body .line-mono--lg {
  width: 52px; height: 52px; font-size: 17px; border-radius: min(var(--radius), 14px);
  background: var(--accent); color: var(--pro-on-accent);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
html[data-tone="dark"][data-style][data-world] body .line-mono--lg { color: var(--pro-on-accent); }

/* Índice "Compra por línea" */
html[data-style][data-world] body .line-index { margin: 0 0 8px; }
html[data-style][data-world] body .line-index-lbl {
  display: block; margin-bottom: 10px;
  font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pro-muted);
}
html[data-style][data-world] body .line-index-track { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-style][data-world] body .line-pill {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 16px 8px 8px; border-radius: min(calc(var(--radius) + 4px), 16px);
  background: var(--bg-card); border: 1px solid var(--pro-line); color: var(--text); text-decoration: none;
  transition: border-color .2s var(--pro-ease), transform .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}
html[data-style][data-world] body .line-pill:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .45); }
html[data-style][data-world] body .line-pill-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html[data-style][data-world] body .line-pill-txt b { font: 700 13.5px/1.15 var(--font-body); white-space: nowrap; }
html[data-style][data-world] body .line-pill-txt small { font: 500 11.5px/1 var(--font-body); color: var(--pro-muted); white-space: nowrap; }

/* Encabezado de cada línea dentro de la rejilla */
html[data-style][data-world] body .prod-grid--lines .line-head {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  margin: 26px 0 2px; scroll-margin-top: calc(var(--pro-hdr-h) + 12px);
}
html[data-style][data-world] body .prod-grid--lines .line-head:first-child { margin-top: 10px; }
html[data-style][data-world] body .line-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-style][data-world] body .line-txt small { font: 700 10.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pro-muted); }
html[data-style][data-world] body .line-txt h3 {
  margin: 0; font-family: var(--font-heading); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.1; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-style][data-world] body .line-rule { flex: 1; height: 1px; min-width: 24px; background: linear-gradient(90deg, var(--pro-line), transparent); }
html[data-style][data-world] body .line-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font: 500 13px/1.3 var(--font-body); color: var(--pro-muted); white-space: nowrap; }
html[data-style][data-world] body .line-meta b { color: var(--text); font-weight: 700; }
html[data-style][data-world] body .line-offers {
  padding: 4px 8px; border-radius: 999px; font-weight: 700; font-size: 11.5px;
  background: color-mix(in srgb, var(--pro-sale) 11%, var(--bg-card)); color: var(--pro-sale);
}
/* Mundos con carácter */
html[data-world="editorial"][data-style] body .line-mono--lg,
html[data-world="luxury"][data-style] body .line-mono--lg { background: transparent; color: var(--text) !important; border: 1px solid var(--text); box-shadow: none; font-weight: 600; }
html[data-world="brutalist"][data-style] body .line-mono--lg { border-radius: 0; box-shadow: 4px 4px 0 var(--text); }
html[data-world="industrial"][data-style] body .line-txt h3,
html[data-world="brutalist"][data-style] body .line-txt h3 { text-transform: uppercase; }
html[data-world="soft"][data-style] body .line-mono, html[data-world="vibrant"][data-style] body .line-mono { border-radius: 50%; }

@media (max-width: 900px) {
  html[data-style][data-world] body .line-index { margin: 0 0 6px; }
  html[data-style][data-world] body .line-index-track { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  html[data-style][data-world] body .line-index-track::-webkit-scrollbar { display: none; }
  html[data-style][data-world] body .line-pill { flex: none; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  html[data-style][data-world] body .prod-grid--lines .line-head { gap: 12px; margin-top: 20px; flex-wrap: wrap; }
  html[data-style][data-world] body .line-mono--lg { width: 44px; height: 44px; font-size: 15px; }
  html[data-style][data-world] body .line-rule { display: none; }
  html[data-style][data-world] body .line-txt { flex: 1; }
  html[data-style][data-world] body .line-meta { width: 100%; justify-content: flex-start; padding-left: 56px; margin-top: -6px; font-size: 12px; }
  html[data-style][data-world] body .line-from { display: none; }
}
html[data-style][data-world] body .line-from::before { content: "·"; margin-right: 8px; opacity: .6; }
/* Acentos claros (rosa, pastel, coral, dorado): las iniciales y los íconos se oscurecen
   hacia el color de texto para que se lean bien sobre el fondo tintado. */
html[data-tone="light"][data-style][data-world] body :is(.line-pill .line-mono, .trust-item > i) { color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
