/* ==========================================================================
   M&F HERRAMIENTAS — visual.css
   Fase de mejoras visuales: sistema de diseño (variables) y componentes
   nuevos. Se carga después de pages.css en todas las páginas.
   ========================================================================== */

/* ---------- Sistema de diseño: variables comunes ---------- */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.16);
  --c-text-muted: #64748b;
  --c-border-soft: #e2e8f0;
  --c-success: #16a34a;
  --c-whatsapp: #25d366;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 1. Hero: mensaje claro para talleres y distribuidores ---------- */
.hero-tagline { max-width: 760px; padding: 0 1rem; line-height: 1.35; }
.hero-tagline strong { color: var(--c-white); font-weight: 700; }
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: -0.5rem 0 0;
  padding: 0 1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 10px var(--c-blue);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-sm); }
.hero-cta-row .btn-ghost .fa-whatsapp { color: var(--c-whatsapp); font-size: 1.15rem; }
.hero-catalog-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: -0.4rem;
}
.hero-catalog-link:hover { color: var(--c-white); }
.hero-catalog-link small { opacity: 0.7; }
@media (max-width: 720px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .hero-cta-row .btn { width: 100%; }
  .hero-points { font-size: 0.8rem; gap: 0.4rem 0.9rem; }
}
/* En escritorio el mensaje debe verse sin bajar: título y linterna más contenidos */
@media (min-width: 721px) {
  .hero { padding-top: 5.5rem; }
  .hero-word { font-size: clamp(3.5rem, 9vw, 8.5rem); }
  .hero-flashlight-wrap { width: clamp(380px, 52vw, 720px); margin-top: -0.5rem; margin-bottom: -0.5rem; }
  .hero-bottom { gap: 1.2rem; margin-bottom: 1.5rem; }
}

/* ---------- 2. Tarjetas de producto más limpias ---------- */
.product-family-card {
  border-radius: var(--radius-lg);
  border-color: var(--c-border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s, border-color 0.3s;
}
.product-family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-family-card .card-header { gap: 0.5rem; align-items: flex-start; }
.product-family-card .card-badge-category {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  line-height: 1.3;
  border-radius: var(--radius-pill);
  background: rgba(3, 111, 211, 0.08);
  border-color: rgba(3, 111, 211, 0.2);
  color: var(--c-blue-dim);
  letter-spacing: 0.04em;
}
.product-family-card .card-badge-variants {
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Imagen uniforme: misma proporción con o sin foto */
.product-family-card .card-product-img--photo,
.product-family-card .card-placeholder-img {
  aspect-ratio: 4 / 3;
  height: auto;
  background: #fff;
  border-bottom: 1px solid var(--c-border-soft);
}
.product-family-card .card-product-img--photo img { transition: transform 0.4s var(--ease-soft); }
.product-family-card:hover .card-product-img--photo img { transform: scale(1.04); }
.card-placeholder-img--soon {
  background:
    radial-gradient(circle at 50% 35%, rgba(3, 111, 211, 0.10), transparent 60%),
    linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%) !important;
}
.card-placeholder-img--soon .placeholder-icon { color: var(--c-blue); opacity: 0.55; width: 42px; height: 42px; }
.card-placeholder-img--soon .placeholder-tag {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted);
}
/* Pie de la tarjeta: precio a la izquierda, acción a la derecha */
.product-family-card .card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  margin-top: auto;
  border-top: 1px solid var(--c-border-soft);
  background: #fbfcfe;
}
.product-family-card .card-price { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.product-family-card .card-price small { font-size: 0.7rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.product-family-card .card-price--quote {
  font-size: 0.78rem; font-weight: 700; color: #b45309;
  background: #fef3c7; border: 1px solid #fde68a;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.product-family-card .btn-card-action {
  width: auto;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
}
.btn-card-action--buy { background: #e30613; color: #fff; }
.btn-card-action--quote { background: transparent; color: var(--c-blue); border: 1px solid rgba(3, 111, 211, 0.35); }
.product-family-card:hover .btn-card-action--buy { background: #b80510; }
.product-family-card:hover .btn-card-action--quote { background: var(--c-blue); color: #fff; }
.product-family-card .card-product-img--photo { position: relative; padding: 0; overflow: hidden; }
.product-family-card .card-product-img--photo img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.product-family-card .card-body { flex: 1; }
.product-family-card .card-header { min-height: 62px; }

/* ---------- 3. Esqueletos de carga (en vez de pantallas vacías) ---------- */
.sk {
  background: linear-gradient(90deg, #e8edf3 0%, #f4f7fa 40%, #e8edf3 80%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: sk-shimmer 1.3s ease-in-out infinite;
}
.sk-img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.sk-line { height: 12px; margin-top: 0.7rem; }
.sk-title { height: 34px; width: 60%; margin-top: 0.8rem; }
.sk-w40 { width: 40%; } .sk-w70 { width: 70%; } .sk-w90 { width: 90%; }
.skeleton-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.4rem;
}
.skeleton-product { text-align: left; max-width: 1000px; margin: 0 auto; }
.skeleton-product .sk { background: linear-gradient(90deg, #1b1e24 0%, #262a31 40%, #1b1e24 80%); background-size: 200% 100%; }
.skeleton-product-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 768px) { .skeleton-product-grid { grid-template-columns: 1fr; } }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- 4. Franja compacta de marcas en el inicio ---------- */
.page-home #marcas { padding-top: var(--space-section); padding-bottom: var(--space-section); background: #fff; }
.page-home #marcas .products-sub { margin-bottom: 2rem; }
.page-home #marcas .brands-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0;
}
.page-home #marcas .brand-plate {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-soft);
  box-shadow: none;
  background: #fff;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s, border-color 0.3s;
}
.page-home #marcas .brand-plate::before,
.page-home #marcas .brand-plate::after { display: none; }
.page-home #marcas .brand-plate:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(3, 111, 211, 0.35); }
.page-home #marcas .brand-logo { max-width: 78%; max-height: 62%; filter: grayscale(0.15); }
.page-home #marcas .section-cta { margin-top: 2rem; }
@media (max-width: 1024px) {
  .page-home #marcas .brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .page-home #marcas .brands-grid { gap: 0.6rem; }
}
.page-home #marcas .brand-plate { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.6rem; white-space: normal; }
.page-home #marcas .brand-plate .brand-cta { display: none; }
.page-home #marcas .brand-plate .brand-logo { width: 86%; height: 72%; max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 480px) {
  .page-home #marcas .brand-plate { aspect-ratio: 1 / 1; padding: 0.35rem; }
  .page-home #marcas .brand-plate .brand-logo { width: 92%; height: 80%; }
}

/* ---------- 5. Por qué M&F (señales de confianza) ---------- */
.why-mf { background: var(--c-paper); color: var(--c-black); padding: var(--space-section) var(--gutter); border-top: 1px solid var(--c-border-soft); }
.why-mf-inner { max-width: var(--container); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.why-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(3, 111, 211, 0.1); color: var(--c-blue); font-size: 1.2rem;
  margin-bottom: 1rem;
}
.why-card h3 { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; margin: 0 0 0.5rem; line-height: 1.1; }
.why-num { color: var(--c-blue); }
.why-card p { margin: 0; color: var(--c-text-muted); font-size: 0.92rem; line-height: 1.55; }
.why-cta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(120deg, #0a0b0d 0%, #0d1a2b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
}
.why-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.why-cta strong { color: #fff; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 560px) {
  .why-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 0.9rem; padding: 1rem; }
  .why-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
  .why-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
  .why-card p { font-size: 0.86rem; }
  .why-grid { gap: 0.75rem; }
}

/* ---------- 6. Inicio: acceso a la tienda con categorías ---------- */
.page-home #productos { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.page-home #productos .products-sub { margin-bottom: 1.5rem; }
.home-categories { margin-top: 2.25rem; }
.home-categories-title {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-muted); margin: 0 0 0.9rem; font-weight: 700;
}
.home-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.home-cat {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font-weight: 600; font-size: 0.9rem; color: #0f172a;
  transition: transform 0.25s var(--ease-soft), border-color 0.25s, box-shadow 0.25s;
}
.home-cat i {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(3, 111, 211, 0.1); color: var(--c-blue);
}
.home-cat:hover { transform: translateY(-2px); border-color: rgba(3, 111, 211, 0.4); box-shadow: var(--shadow-md); }
.home-store-search + .home-categories + .section-cta,
.home-categories + .section-cta { justify-content: flex-start; margin-top: 1.5rem; }
@media (max-width: 1024px) { .home-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .home-cat { padding: 0.7rem; font-size: 0.82rem; gap: 0.55rem; }
  .home-cat i { width: 30px; height: 30px; font-size: 0.85rem; }
  .home-store-search { flex-direction: column; }
  .home-store-search .btn { width: 100%; }
}

/* ---------- 7. Sistema de diseño aplicado a todo el sitio ---------- */
/* Botones: mismas esquinas, peso y transición en todas las páginas */
.btn { border-radius: var(--radius-sm); transition: transform 0.25s var(--ease-soft), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s; }
.btn-primary { box-shadow: 0 6px 16px rgba(3, 111, 211, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(3, 111, 211, 0.30); }
.btn-nav { border-radius: var(--radius-sm); }
.btn-load-more-products { border-radius: var(--radius-pill); }
/* Campos de formulario */
.form-row input, .form-row textarea,
.checkout-form-input,
.store-search-box input { border-radius: var(--radius-sm); }
/* Tarjetas y paneles */
.dist-card, .news-card, .news-featured-card, .about-panel,
.future-commerce-box, .product-page-card, .checkout-container { border-radius: var(--radius-lg); }
.about-panel { overflow: hidden; }
.modal-tag, .category-pill, .subcategory-chip { border-radius: var(--radius-pill); }
/* Foco de teclado uniforme y visible en fondos claros y oscuros */
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }
/* Títulos de sección con el mismo ritmo vertical */
.section-eyebrow { margin-bottom: 0.9rem; }
.about-story, .channel-switch, .social-links, .contact-form, .service-row, .coverage-city-btn, .distributor-cta-box { border-radius: var(--radius-lg); }

/* ---------- 8. Franja de cotización y pie de página ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(3, 111, 211, 0.35), transparent 55%),
    linear-gradient(120deg, #06111f 0%, #0a0b0d 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-band-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem); line-height: 1.05; margin: 0 0 0.4rem;
}
.cta-band-text { margin: 0; color: rgba(255, 255, 255, 0.72); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-whatsapp { background: var(--c-whatsapp); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); }
.btn-whatsapp .fa-whatsapp { font-size: 1.15rem; }
@media (max-width: 560px) {
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; }
}
/* Pie: menú alineado a la izquierda bajo el logo, sin sangría */
.site-footer .footer-nav { justify-content: flex-start; gap: 0.6rem 1.4rem; padding: 0; }
.site-footer .footer-social-link { border-radius: var(--radius-sm); }
@media (max-width: 860px) { .site-footer .footer-nav { justify-content: flex-start; } }

/* ---------- 9. Revisión en celular ---------- */
/* Modales de marca cerrados: ocultos del todo (no asoman ni reciben foco) */
.brand-modal:not(.is-visible) { visibility: hidden; transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s; }
.brand-modal.is-visible { visibility: visible; }
/* Marcas: la sección no repite la introducción que ya está en el encabezado de la página */
.page-brands #marcas .section-eyebrow,
.page-brands #marcas .products-sub { display: none; }
.page-brands #marcas .products-title { margin-bottom: 2rem; }

/* ---------- Ajuste: franjas de llamado a la acción más sobrias ---------- */
/* Sin resplandor ni degradados: fondo sólido, borde fino y botones planos */
.cta-band {
  background: #121417;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cta-band-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: 0.01em;
}
.cta-band-text { color: rgba(255, 255, 255, 0.62); }
.btn-whatsapp,
.btn-whatsapp:hover { box-shadow: none; transform: none; }
.btn-whatsapp:hover { background: #1fb457; }
.why-cta {
  background: #121417;
  border-radius: var(--radius-sm);
}
.btn-primary,
.btn-primary:hover { box-shadow: none; }

/* ---------- Ajuste: tarjeta de producto sobria (estilo catálogo) ---------- */
.product-family-card,
.product-family-card:hover {
  border-radius: 4px;
  border: 1px solid #e3e6ea;
  box-shadow: none;
  transform: none;
}
.product-family-card:hover { border-color: #9aa3ad; }
.product-family-card:hover .card-product-img--photo img { transform: none; }
.product-family-card .card-header {
  background: #fff;
  border-bottom: 0;
  min-height: 0;
  padding-bottom: 0.4rem;
  align-items: baseline;
}
.product-family-card .card-badge-category,
.product-family-card .card-badge-variants {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.product-family-card .card-badge-category { color: #374151; }
.product-family-card .card-product-img--photo,
.product-family-card .card-placeholder-img { border-bottom: 1px solid #eef0f2; }
.card-placeholder-img--soon {
  background: #f6f7f8 !important;
}
.card-placeholder-img--soon .placeholder-icon { color: #9aa3ad; opacity: 1; width: 34px; height: 34px; }
.product-family-card .card-footer {
  background: #fff;
  border-top: 1px solid #eef0f2;
  padding: 0.75rem 1rem;
}
.product-family-card .card-price { font-size: 0.98rem; font-weight: 700; color: #111827; }
.product-family-card .card-price small { font-size: 0.68rem; color: #6b7280; }
.product-family-card .card-price--quote {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
}
.product-family-card .card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-blue);
  white-space: nowrap;
}
.product-family-card:hover .card-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Marcas como macro-categorías en la tienda ---------- */
.brand-filter {
  display: flex;
  gap: 0.25rem 1.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid #dfe3e8;
  margin: 1.5rem 0 1rem;
  padding: 0 0.1rem;
}
.brand-tab {
  flex-shrink: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0 0.6rem;
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}
.brand-tab:hover { color: #111827; }
.brand-tab.is-active { color: #111827; border-bottom-color: var(--c-blue); }
.brand-tab-count { font-size: 0.72rem; font-weight: 500; color: #9ca3af; margin-left: 0.2rem; }
.brand-tab.is-empty { color: #9ca3af; }
.brand-tab.is-empty.is-active { color: #374151; }
/* Etiqueta de marca en la ficha (enlace a la tienda filtrada) */
.modal-tag--brand { border-color: rgba(255, 255, 255, 0.35); color: #fff; font-weight: 700; }
.modal-tag--brand:hover { border-color: var(--c-blue); }
/* Marca en la tarjeta */
.product-family-card .card-badge-brand { color: #111827; font-weight: 700; letter-spacing: 0.08em; }
.modal-footer { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Estado vacío de la tienda (sin resultados / marca "pronto"): claro y legible */
.store-empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #cfd5dc;
  border-radius: 4px;
  color: #374151;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.store-empty-state h3 { color: #111827; margin: 0 0 0.5rem; font-size: 1.15rem; }
.store-empty-state p { color: #4b5563; margin: 0.4rem 0; }
.store-empty-state a:not(.btn) { color: var(--c-blue); text-decoration: underline; }
.store-empty-state .btn { margin-top: 0.8rem; }

/* ---------- Ajuste: botones de categoría y subcategoría sobrios ---------- */
.category-pills-scroll { gap: 0.5rem; }
.category-pill {
  background: #fff;
  border: 1px solid #d5dae0;
  border-radius: 3px;
  color: #374151;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.category-pill:hover {
  background: #fff;
  border-color: #9aa3ad;
  color: #111827;
}
.category-pill.is-active,
.category-pill.is-active:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}
/* Subcategorías: texto simple; la activa subrayada */
.subcategory-chips-scroll { gap: 0.25rem 1.2rem; padding-top: 0.25rem; }
.subcategory-chip,
.subcategory-chip:hover {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  box-shadow: none;
}
.subcategory-chip:hover { color: #111827; }
.subcategory-chip.is-active,
.subcategory-chip.is-active:hover {
  background: none;
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.subcategory-chip.is-active,
.subcategory-chip.is-active:hover { border: 0; }
/* En escritorio todas las categorías visibles (varias líneas); en celular, una fila deslizable */
@media (min-width: 769px) {
  .category-pills-scroll,
  .subcategory-chips-scroll { flex-wrap: wrap; overflow-x: visible; }
}

/* ---------- Categorías plegables (botón "Categorías ▾") ---------- */
.category-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d5dae0;
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}
.category-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-toggle:hover { border-color: #9aa3ad; }
.category-toggle.has-selection { border-color: #1f2937; }
.category-toggle i { font-size: 0.75rem; color: #6b7280; transition: transform 0.2s; }
.category-toggle.is-open i { transform: rotate(180deg); }
.category-pills-scroll {
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 3px;
}
