﻿@import url("/static/catalog.css");

/* Soft UI Dashboard styles by Creative Tim */
/* Adapted for this project */

:root {
  --brand-blue: #004aad;
  --brand-blue-dark: #002d73;
  --brand-orange: #ff4d00;
  --brand-gray: #f7f8fa;
  --bs-primary: var(--brand-blue);
  --bs-accent: var(--brand-orange);
  --bs-secondary: #6c757d;
  --bs-light: #f8f9fa;
  --bs-dark: #344767;
  --bs-white: #fff;
  --bs-body-bg: var(--brand-gray);
  --bs-font-sans-serif: "Inter", "Poppins", "Nunito", sans-serif;
}
body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
}

/* Hide price elements for guests (not logged in) */
.guest .card .card-text.h5.text-primary { display: none !important; }
.guest .price-panel .price-display { display: none !important; }
.guest #price-tiers-table { display: none !important; }
.guest .quote-summary .price,
.guest .quote-summary .subtotal,
.guest .quote-summary .total { visibility: hidden; }

.volume-pricing #price-tiers-table tbody tr {
  cursor: pointer;
}

.volume-pricing #price-tiers-table tbody tr.selected {
  background: rgba(0, 74, 173, 0.12);
}

.volume-pricing #price-tiers-table tbody tr.selected td {
  font-weight: 600;
  color: var(--brand-blue);
}

.main-content {
  margin-left: 0; /* Eliminado el margen del sidebar */
  transition: all 0.3s ease-in-out;
}

/* Estilos de la barra de navegación pública */
.catalog-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: 0 2px 20px rgba(13, 110, 253, 0.12);
  padding: 0.75rem 0;
  min-height: 70px; /* ✅ ALTURA MÍNIMA CONSISTENTE */
}

.home-sticky-search{
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  z-index: 1035;
  padding: 10px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(13, 110, 253, 0.08);
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.home-sticky-search.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.home-sticky-search-form{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 110, 253, 0.15);
  background: #ffffff;
  box-shadow: 0 14px 50px rgba(2,6,23,.08);
}
.home-sticky-search-form i{ color: rgba(100,116,139,1); }
.home-sticky-search-form .product-suggest-anchor{ flex: 1 1 auto; }
.home-sticky-search-form input{
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 240px;
  font-size: 14px;
  background: transparent;
}
.home-sticky-search-form input::placeholder{ color: rgba(148,163,184,1); }

.btn-brand-accent{
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(255, 77, 0, 0.22);
}
.btn-brand-accent:hover,
.btn-brand-accent:focus{
  background: #e64500;
  border-color: #e64500;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(255, 77, 0, 0.28);
}
.btn-brand-primary{
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.22);
}
.btn-brand-primary:hover,
.btn-brand-primary:focus{
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 74, 173, 0.28);
}
.btn-brand-outline{
  background: #ffffff;
  border: 2px solid rgba(0,74,173,.32);
  color: var(--brand-blue);
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
}
.btn-brand-outline:hover,
.btn-brand-outline:focus{
  background: rgba(0,74,173,.06);
  border-color: rgba(0,74,173,.50);
  color: var(--brand-blue);
  box-shadow: 0 14px 32px rgba(2,6,23,.14);
}

/* Chips "Explora por intención" */
.btn-intent-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,1);
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
.btn-intent-chip:hover{
  border-color: rgba(255,77,0,.45);
  box-shadow: 0 14px 32px rgba(255,77,0,.12);
  transform: translateY(-1px);
}
.btn-intent-chip i{ color: var(--brand-blue); }

.product-suggest-anchor{ position: relative; }
.product-suggest{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 2000;
}
.product-suggest-panel{
  margin-top: 0;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(226,232,240,1);
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(2,6,23,.14);
}
.product-suggest-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226,232,240,1);
  font-weight: 900;
  font-size: 12px;
  color: #111827;
}
.product-suggest-all{
  font-weight: 900;
  font-size: 12px;
  color: var(--brand-blue, #004aad);
  text-decoration:none;
}
.product-suggest-all:hover{ text-decoration: underline; }
.product-suggest-list{
  max-height: 360px;
  overflow:auto;
}
.product-suggest-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration:none;
  color: #111827;
  border-bottom: 1px solid rgba(241,245,249,1);
}
.product-suggest-item:last-child{ border-bottom: 0; }
.product-suggest-item:hover,
.product-suggest-item.is-active{
  background: rgba(0,74,173,.07);
}
.product-suggest-thumb{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(148,163,184,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.product-suggest-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.product-suggest-meta{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.product-suggest-name{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.product-suggest-sku{
  font-size: 11px;
  font-weight: 800;
  color: rgba(100,116,139,1);
}

.catalog-navbar .container-fluid {
  padding: 0 1.5rem;
  align-items: center; /* ✅ ALINEACIÓN VERTICAL PERFECTA */
}

.catalog-navbar .navbar-brand {
  color: var(--bs-dark) !important;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
  margin-right: 2rem;
  flex-shrink: 0;
  min-width: 200px;
  height: 44px; /* ✅ ALTURA FIJA PARA CONSISTENCIA */
  display: flex;
  align-items: center;
}

.catalog-navbar .navbar-brand:hover {
  transform: scale(1.02);
}

.catalog-navbar .navbar-brand-img {
  max-height: 42px;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
  background: #fafbfc;
  box-shadow: inset 0 1px 3px rgba(13, 110, 253, 0.05);
  width: 100%;
  max-width: none;
  transition: all 0.2s ease;
}

.nav-search:focus-within {
  border-color: var(--bs-primary);
  background: var(--bs-white);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.nav-search i {
  color: var(--bs-secondary);
  font-size: 0.95rem;
}

.nav-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  color: var(--bs-dark);
  font-weight: 500;
}

.nav-search input::placeholder {
  color: rgba(52, 71, 103, 0.55);
}

.nav-search.mobile {
  max-width: 100%;
}

.nav-search-desktop {
  max-width: 520px;
}

.nav-quick-actions {
  align-items: center;
  gap: 0.5rem; /* ✅ GAP REDUCIDO PARA MEJOR ESPACIADO */
  flex-shrink: 0;
  min-width: 300px;
  justify-content: flex-end;
  height: 44px; /* ✅ ALTURA CONSISTENTE CON BRAND */
}

.nav-quick-actions .btn {
  box-shadow: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
  display: flex;
  align-items: center;
  white-space: nowrap; /* ✅ PREVENIR WRAP EN MOBILE */
}

.nav-categories .btn {
  border-color: rgba(108, 117, 125, 0.3);
  color: var(--bs-secondary);
}

.nav-categories .btn:hover {
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
  color: white;
}

.nav-access .btn {
  border-color: rgba(108, 117, 125, 0.3);
  color: var(--bs-secondary);
  min-width: 90px; /* ✅ ANCHO MÍNIMO PARA CONSISTENCIA */
  text-align: center;
}

.nav-access .btn:hover {
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
  color: white;
  transform: translateY(-1px); /* ✅ MICRO-ANIMACIÓN */
}

.nav-help .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px; /* ✅ ANCHO MÍNIMO PARA CONSISTENCIA */
  text-align: center;
}

.nav-help .btn:hover {
  transform: translateY(-1px); /* ✅ MICRO-ANIMACIÓN */
}

.nav-quote-wrapper {
  position: relative;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
}

.nav-quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-primary);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
  flex-shrink: 0;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
  min-width: 140px; /* ✅ ANCHO MÍNIMO CONSISTENTE */
}

.nav-quote-toggle:hover,
.nav-quote-toggle:focus {
  background: linear-gradient(135deg, #e3f0ff 0%, #d6e8ff 100%);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.nav-quote-toggle i.fa-chevron-down {
  color: rgba(13, 110, 253, 0.65);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-quote-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-quote-toggle .quote-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; /* ✅ TAMAÑO OPTIMIZADO */
  height: 2rem;
  border-radius: 8px; /* ✅ BORDES MÁS SUTILES */
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  color: var(--bs-white);
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.nav-quote-toggle .quote-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  background: var(--bs-accent);
  color: var(--bs-white);
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  min-width: 1rem;
  height: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(253, 126, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-quote-toggle .quote-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  overflow: hidden; /* ✅ PREVENIR OVERFLOW */
}

.nav-quote-toggle .quote-label .title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
}

.nav-quote-toggle .quote-label .meta {
  font-size: 0.74rem;
  color: rgba(13, 110, 253, 0.75);
  font-weight: 500;
  white-space: nowrap;
  max-width: 80px; /* ✅ LIMITAR ANCHO DEL META */
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-quote-menu {
  min-width: 240px;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.nav-quote-menu .dropdown-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(52, 71, 103, 0.65);
}

.nav-quote-menu .dropdown-item {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth .btn {
  border-radius: 999px;
}

.nav-profile .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.catalog-navbar .nav-link {
  font-weight: 600;
  color: rgba(52, 71, 103, 0.8);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.catalog-navbar .nav-link:hover,
.catalog-navbar .nav-link:focus {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.06);
  transform: translateY(-1px);
}

.catalog-navbar .nav-link.active {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.1);
  font-weight: 700;
}

.catalog-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 2px;
}

.catalog-navbar .navbar-toggler {
  border: 1px solid rgba(52, 71, 103, 0.25);
  border-radius: 0.65rem;
  padding: 0.35rem 0.55rem;
}

.catalog-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.dropdown-menu-xl {
  min-width: min(480px, 90vw);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.08);
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.category-scroll {
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.category-scroll .dropdown-item {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.category-scroll .dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

.category-search .input-group-text {
  background: transparent;
  border-right: none;
}

.category-search .form-control {
  border-left: none;
}

/* ===== RESPONSIVE MEJORADO ===== */

@media (max-width: 1199.98px) {
  .catalog-navbar .container-fluid {
    padding: 0 1rem;
  }
  
  .nav-quick-actions {
    min-width: 250px;
    gap: 0.4rem;
  }
  
  .nav-quote-toggle {
    min-width: 120px;
    padding: 0.5rem 0.8rem;
  }
  
  .nav-quote-toggle .quote-label .meta {
    max-width: 60px;
  }
}

@media (max-width: 991.98px) {
  /* Nueva estructura móvil organizada */
  .catalog-navbar {
    min-height: auto;
    padding: 0;
  }
  
  /* Versión desktop mantiene comportamiento original */
  .catalog-navbar .container-fluid.d-none.d-lg-flex {
    min-height: 60px;
  }
  
  .nav-quick-actions {
    order: 3;
    margin-left: auto;
    gap: 0.4rem;
    min-width: auto;
    height: auto;
  }
  
  .nav-quick-actions .btn {
    height: 38px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .nav-quote-toggle {
    height: 38px;
    min-width: 100px;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.8rem;
    height: 1.8rem;
  }
  
  .nav-quote-toggle .quote-label .title {
    font-size: 0.75rem;
  }
  
  .nav-quote-toggle .quote-label .meta {
    font-size: 0.7rem;
    max-width: 50px;
  }
  
  .catalog-navbar .dropdown-menu-xl {
    width: 100%;
  }
  
  /* Nueva estructura móvil en dos filas */
  .catalog-navbar .container-fluid.d-lg-none {
    flex-direction: column;
    gap: 0;
  }
  
  /* Fila 1: Logo + Cotización + Hamburguesa */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 50px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Logo compacto móvil */
  .catalog-navbar .navbar-brand img {
    max-height: 28px !important;
  }
  
  .catalog-navbar .navbar-brand span {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  /* Acciones rápidas móvil */
  .catalog-navbar .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* Fila 2: Buscador móvil */
  .catalog-navbar .nav-search.mobile {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.1rem;
    transition: all 0.2s ease;
  }
  
  .catalog-navbar .nav-search.mobile:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: white;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.9rem;
    padding: 0.5rem 2.5rem 0.5rem 2.2rem;
    border: none;
    background: transparent;
  }
  
  .catalog-navbar .nav-search.mobile input:focus {
    outline: none;
    box-shadow: none;
  }
  
  .catalog-navbar .nav-search.mobile i {
    left: 0.7rem;
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  /* Hamburguesa más compacta */
  .navbar-toggler {
    border: 1px solid #dee2e6 !important;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Cotización móvil más prominente */
  .catalog-navbar .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  }
  
  .catalog-navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  }
}

@media (max-width: 767.98px) {
  .catalog-navbar {
    min-height: 55px; /* ✅ ALTURA MÁS COMPACTA EN MÓVIL */
    padding: 0.5rem 0;
  }
  
  .catalog-navbar .container-fluid {
    padding: 0 0.75rem;
  }
  
  .catalog-navbar .navbar-brand {
    margin-right: 1rem;
    min-width: 160px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .nav-quick-actions {
    gap: 0.3rem;
  }
  
  .nav-quick-actions .btn {
    height: 36px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .nav-quote-toggle {
    height: 36px;
    min-width: 90px;
    padding: 0.3rem 0.6rem;
    gap: 0.5rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8rem;
  }
  
  .nav-quote-toggle .quote-label {
    display: none; /* ✅ OCULTAR ETIQUETAS EN MÓVIL MUY PEQUEÑO */
  }
}

@media (max-width: 575.98px) {
  .catalog-navbar .navbar-brand {
    min-width: 140px;
    font-size: 1rem;
  }
  
  .nav-quick-actions {
    gap: 0.3rem;
  }
  .nav-quick-actions .btn {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }
  
  .nav-quote-toggle {
    min-width: 80px;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
  }
  
  .catalog-navbar .nav-link {
    width: 100%;
    text-align: left;
  }
}

/* Mobile specific styles for new two-row structure */
@media (max-width: 991.98px) {
  /* Small mobile devices - responsive adjustments for new structure */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 48px;
  }
  
  .catalog-navbar .navbar-brand {
    font-size: 0.85rem;
  }
  
  .catalog-navbar .navbar-brand img {
    max-height: 24px !important;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.85rem;
    padding: 0.45rem 2.2rem 0.45rem 2rem;
  }
  
  .catalog-navbar .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  /* Very small mobile devices - hide brand text, more compact */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 46px;
  }
  
  /* Hide brand name on very small screens */
  .catalog-navbar .navbar-brand span.d-none.d-sm-inline {
    display: none !important;
  }
  
  .catalog-navbar .nav-search.mobile {
    margin-bottom: 0.5rem;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.8rem;
    padding: 0.4rem 2rem 0.4rem 1.8rem;
  }
  
  .catalog-navbar .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.8rem !important;
  }
}

/* Navegación móvil - OCULTA EN DESKTOP */
@media (min-width: 992px) {
  #navbarMain {
    display: none !important;
  }
  .navbar-toggler {
    display: none !important;
  }
}

/* Bottom navigation (mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(52, 71, 103, 0.08);
  box-shadow: 0 -8px 32px rgba(13, 110, 253, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
}

.bottom-nav-link {
  flex: 1;
  text-decoration: none;
  color: rgba(52, 71, 103, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0.65rem 0;
  min-height: 44px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.bottom-nav-link i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.bottom-nav-link .badge {
  position: absolute;
  top: 0.25rem;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.6rem;
  padding: 0.15rem 0.35rem;
}

.bottom-nav-link.is-active,
.bottom-nav-link:focus,
.bottom-nav-link:hover {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
}

.bottom-nav-link.is-active i,
.bottom-nav-link:hover i {
  transform: scale(1.1);
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

.input-group {
  width: 250px;
}

.card {
  border: none;
  box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
}

.card .card-body {
  padding: 1.5rem;
}

.card .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.btn {
  box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11), 0 2px 4px -1px rgba(0, 0, 0, 0.07);
  font-weight: 600;
}

.btn-primary {
  background-color: var(--bs-primary);
  border: none;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.btn-accent {
  background-color: var(--bs-accent);
  color: var(--bs-white);
  border: none;
}
.btn-accent:hover {
  background-color: #e66a00;
  color: var(--bs-white);
}

.text-primary {
  color: var(--bs-primary) !important;
}

/* Alert system - Bootstrap compatible with good contrast */
.alert {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 16px;
  margin-bottom: 1rem;
}

/* Success alerts - green with dark text */
.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

/* Error/Danger alerts - red with dark text */
.alert-error,
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

/* Warning alerts - yellow with dark text */
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

/* Info alerts - blue with dark text */
.alert-info {
  background-color: #cfe2ff;
  border-color: #b6d4fe;
  color: #084298;
}

/* Light alerts */
.alert-light {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #212529;
}

/* Dark alerts */
.alert-dark {
  background-color: #d3d3d4;
  border-color: #bcbebf;
  color: #141619;
}

/* Background utility classes - ensure proper text contrast */
/* Apply to common text elements, excluding buttons and badges */
.bg-light,
.bg-light p,
.bg-light span:not(.badge),
.bg-light div:not(.btn),
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-light small,
.bg-light a:not(.btn) {
  color: #212529 !important; /* Dark text on light background */
}

.bg-secondary p,
.bg-secondary span:not(.badge),
.bg-secondary div:not(.btn),
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.bg-secondary small,
.bg-secondary a:not(.btn):not(.badge) {
  color: #fff !important; /* White text on secondary (gray) background */
}

.bg-primary p,
.bg-primary span:not(.badge),
.bg-primary div:not(.btn):not(.badge),
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary small,
.bg-primary a:not(.btn):not(.badge) {
  color: #fff !important; /* White text on primary background */
}

.bg-success p,
.bg-success span:not(.badge),
.bg-success div:not(.btn),
.bg-success h1, .bg-success h2, .bg-success h3, .bg-success h4, .bg-success h5, .bg-success h6,
.bg-success small,
.bg-success a:not(.btn):not(.badge) {
  color: #fff !important; /* White text on success (green) background */
}

.bg-danger p,
.bg-danger span:not(.badge),
.bg-danger div:not(.btn),
.bg-danger h1, .bg-danger h2, .bg-danger h3, .bg-danger h4, .bg-danger h5, .bg-danger h6,
.bg-danger small,
.bg-danger a:not(.btn):not(.badge) {
  color: #fff !important; /* White text on danger (red) background */
}

.bg-warning p,
.bg-warning span:not(.badge),
.bg-warning div:not(.btn),
.bg-warning h1, .bg-warning h2, .bg-warning h3, .bg-warning h4, .bg-warning h5, .bg-warning h6,
.bg-warning small,
.bg-warning a:not(.btn):not(.badge) {
  color: #000 !important; /* BLACK text on warning (yellow) background - CRITICAL FOR CONTRAST */
}

.bg-info p,
.bg-info span:not(.badge),
.bg-info div:not(.btn),
.bg-info h1, .bg-info h2, .bg-info h3, .bg-info h4, .bg-info h5, .bg-info h6,
.bg-info small,
.bg-info a:not(.btn):not(.badge) {
  color: #000 !important; /* BLACK text on info (cyan) background - CRITICAL FOR CONTRAST */
}

.bg-dark p,
.bg-dark span:not(.badge),
.bg-dark div:not(.btn),
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark small,
.bg-dark a:not(.btn):not(.badge) {
  color: #fff !important; /* White text on dark background */
}

/* Buttons - explicit rules to override any background color */
.btn-primary,
.btn-primary *,
.bg-primary.btn,
.bg-primary.btn * {
  color: #fff !important;
}

.btn-secondary,
.btn-secondary * {
  color: #fff !important;
}

.btn-success,
.btn-success * {
  color: #fff !important;
}

.btn-danger,
.btn-danger * {
  color: #fff !important;
}

.btn-warning,
.btn-warning * {
  color: #000 !important;
}

.btn-info,
.btn-info * {
  color: #000 !important;
}

.btn-light,
.btn-light * {
  color: #212529 !important;
}

.btn-dark,
.btn-dark * {
  color: #fff !important;
}

/* Progress bars - ensure readable text */
.progress-bar {
  color: #fff; /* White text in progress bars */
}

.progress-bar.bg-secondary {
  color: #fff !important;
}

/* Card headers with background colors */
.card-header.bg-light p,
.card-header.bg-light span:not(.badge),
.card-header.bg-light div:not(.btn),
.card-header.bg-light h1, .card-header.bg-light h2, .card-header.bg-light h3, 
.card-header.bg-light h4, .card-header.bg-light h5, .card-header.bg-light h6,
.card-header.bg-light small,
.card-header.bg-light a:not(.btn) {
  color: #212529 !important;
}

.card-header.bg-secondary p,
.card-header.bg-secondary span:not(.badge),
.card-header.bg-secondary div:not(.btn),
.card-header.bg-secondary h1, .card-header.bg-secondary h2, .card-header.bg-secondary h3,
.card-header.bg-secondary h4, .card-header.bg-secondary h5, .card-header.bg-secondary h6,
.card-header.bg-secondary small,
.card-header.bg-secondary a:not(.btn) {
  color: #fff !important;
}

.card-header.bg-primary p,
.card-header.bg-primary span:not(.badge),
.card-header.bg-primary div:not(.btn),
.card-header.bg-primary h1, .card-header.bg-primary h2, .card-header.bg-primary h3,
.card-header.bg-primary h4, .card-header.bg-primary h5, .card-header.bg-primary h6,
.card-header.bg-primary small,
.card-header.bg-primary a:not(.btn):not(.badge) {
  color: #fff !important;
}

.card-header.bg-success p,
.card-header.bg-success span:not(.badge),
.card-header.bg-success div:not(.btn),
.card-header.bg-success h1, .card-header.bg-success h2, .card-header.bg-success h3,
.card-header.bg-success h4, .card-header.bg-success h5, .card-header.bg-success h6,
.card-header.bg-success small,
.card-header.bg-success a:not(.btn) {
  color: #fff !important;
}

.card-header.bg-danger p,
.card-header.bg-danger span:not(.badge),
.card-header.bg-danger div:not(.btn),
.card-header.bg-danger h1, .card-header.bg-danger h2, .card-header.bg-danger h3,
.card-header.bg-danger h4, .card-header.bg-danger h5, .card-header.bg-danger h6,
.card-header.bg-danger small,
.card-header.bg-danger a:not(.btn) {
  color: #fff !important;
}

.card-header.bg-warning p,
.card-header.bg-warning span:not(.badge),
.card-header.bg-warning div:not(.btn),
.card-header.bg-warning h1, .card-header.bg-warning h2, .card-header.bg-warning h3,
.card-header.bg-warning h4, .card-header.bg-warning h5, .card-header.bg-warning h6,
.card-header.bg-warning small,
.card-header.bg-warning a:not(.btn) {
  color: #000 !important; /* BLACK text on warning background */
}

.card-header.bg-info p,
.card-header.bg-info span:not(.badge),
.card-header.bg-info div:not(.btn),
.card-header.bg-info h1, .card-header.bg-info h2, .card-header.bg-info h3,
.card-header.bg-info h4, .card-header.bg-info h5, .card-header.bg-info h6,
.card-header.bg-info small,
.card-header.bg-info a:not(.btn) {
  color: #000 !important; /* BLACK text on info background */
}

.card-header.bg-dark p,
.card-header.bg-dark span:not(.badge),
.card-header.bg-dark div:not(.btn),
.card-header.bg-dark h1, .card-header.bg-dark h2, .card-header.bg-dark h3,
.card-header.bg-dark h4, .card-header.bg-dark h5, .card-header.bg-dark h6,
.card-header.bg-dark small,
.card-header.bg-dark a:not(.btn) {
  color: #fff !important;
}

/* Card body with background colors */
.card-body.bg-warning p,
.card-body.bg-warning span:not(.badge),
.card-body.bg-warning div:not(.btn),
.card-body.bg-warning h1, .card-body.bg-warning h2, .card-body.bg-warning h3,
.card-body.bg-warning h4, .card-body.bg-warning h5, .card-body.bg-warning h6 {
  color: #000 !important;
}

.card-body.bg-info p,
.card-body.bg-info span:not(.badge),
.card-body.bg-info div:not(.btn),
.card-body.bg-info h1, .card-body.bg-info h2, .card-body.bg-info h3,
.card-body.bg-info h4, .card-body.bg-info h5, .card-body.bg-info h6 {
  color: #000 !important;
}

.card.bg-warning p,
.card.bg-warning span:not(.badge),
.card.bg-warning div:not(.btn),
.card.bg-warning h1, .card.bg-warning h2, .card.bg-warning h3,
.card.bg-warning h4, .card.bg-warning h5, .card.bg-warning h6 {
  color: #000 !important;
}

.card.bg-info p,
.card.bg-info span:not(.badge),
.card.bg-info div:not(.btn),
.card.bg-info h1, .card.bg-info h2, .card.bg-info h3,
.card.bg-info h4, .card.bg-info h5, .card.bg-info h6 {
  color: #000 !important;
}

/* Badges - proper contrast based on background */
.badge.bg-secondary {
  color: #fff !important;
}

.badge.bg-light {
  color: #212529 !important;
}

.badge.bg-warning,
.badge.bg-warning * {
  color: #000 !important; /* BLACK text on warning badge */
}

.badge.bg-info,
.badge.bg-info * {
  color: #000 !important; /* BLACK text on info badge */
}

/* Bootstrap 4 style badges (backward compatibility) */
.badge-primary {
  background-color: var(--bs-primary);
  color: #fff !important;
}

.badge-secondary {
  background-color: #6c757d;
  color: #fff !important;
}

.badge-success {
  background-color: #198754;
  color: #fff !important;
}

.badge-danger {
  background-color: #dc3545;
  color: #fff !important;
}

.badge-warning {
  background-color: #ffc107;
  color: #000 !important; /* BLACK text on warning */
}

.badge-info {
  background-color: #0dcaf0;
  color: #000 !important; /* BLACK text on info */
}

.badge-light {
  background-color: #f8f9fa;
  color: #212529 !important;
}

.badge-dark {
  background-color: #212529;
  color: #fff !important;
}

/* Ensure badge base styles */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

/* Global gradient background helpers (used by cards/headers) */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* Gradient badges - proper contrast */
.badge.bg-gradient-primary,
.bg-gradient-primary.badge {
  color: #fff !important;
}

.badge.bg-gradient-secondary,
.bg-gradient-secondary.badge {
  color: #fff !important;
}

.badge.bg-gradient-success,
.bg-gradient-success.badge {
  color: #fff !important;
}

.badge.bg-gradient-danger,
.bg-gradient-danger.badge {
  color: #fff !important;
}

.badge.bg-gradient-warning,
.bg-gradient-warning.badge {
  color: #000 !important; /* BLACK text on warning gradient */
}

.badge.bg-gradient-info,
.bg-gradient-info.badge {
  color: #000 !important; /* BLACK text on info gradient */
}

.badge.bg-gradient-light,
.bg-gradient-light.badge {
  color: #212529 !important;
}

.badge.bg-gradient-dark,
.bg-gradient-dark.badge {
  color: #fff !important;
}

/* SUPER AGGRESSIVE - Force badge colors in tables and all contexts */
table .badge,
.table .badge,
tbody .badge,
td .badge,
th .badge,
table span.badge,
.table span.badge,
tbody span.badge,
td span.badge,
th span.badge {
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
    border-radius: 0.375rem !important;
}

/* Green success badges - WHITE text */
.badge.bg-success,
span.badge.bg-success,
table .badge.bg-success,
.table .badge.bg-success,
tbody .badge.bg-success,
td .badge.bg-success,
th .badge.bg-success,
table span.badge.bg-success,
.table span.badge.bg-success,
tbody span.badge.bg-success,
td span.badge.bg-success,
th span.badge.bg-success,
.badge-success,
table .badge-success,
.table .badge-success {
    background-color: #198754 !important;
    color: #fff !important;
}

/* Yellow warning badges - BLACK text */
.badge.bg-warning,
span.badge.bg-warning,
table .badge.bg-warning,
.table .badge.bg-warning,
tbody .badge.bg-warning,
td .badge.bg-warning,
th .badge.bg-warning,
table span.badge.bg-warning,
.table span.badge.bg-warning,
tbody span.badge.bg-warning,
td span.badge.bg-warning,
th span.badge.bg-warning,
.badge-warning,
table .badge-warning,
.table .badge-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Cyan info badges - BLACK text */
.badge.bg-info,
span.badge.bg-info,
table .badge.bg-info,
.table .badge.bg-info,
tbody .badge.bg-info,
td .badge.bg-info,
th .badge.bg-info,
table span.badge.bg-info,
.table span.badge.bg-info,
tbody span.badge.bg-info,
td span.badge.bg-info,
th span.badge.bg-info,
.badge-info,
table .badge-info,
.table .badge-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Blue primary badges - WHITE text */
.badge.bg-primary,
span.badge.bg-primary,
table .badge.bg-primary,
.table .badge.bg-primary,
tbody .badge.bg-primary,
td .badge.bg-primary,
th .badge.bg-primary,
table span.badge.bg-primary,
.table span.badge.bg-primary,
tbody span.badge.bg-primary,
td span.badge.bg-primary,
th span.badge.bg-primary,
.badge-primary,
table .badge-primary,
.table .badge-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* Red danger badges - WHITE text */
.badge.bg-danger,
span.badge.bg-danger,
table .badge.bg-danger,
.table .badge.bg-danger,
tbody .badge.bg-danger,
td .badge.bg-danger,
th .badge.bg-danger,
table span.badge.bg-danger,
.table span.badge.bg-danger,
tbody span.badge.bg-danger,
td span.badge.bg-danger,
th span.badge.bg-danger,
.badge-danger,
table .badge-danger,
.table .badge-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* Gray secondary badges - WHITE text */
.badge.bg-secondary,
span.badge.bg-secondary,
table .badge.bg-secondary,
.table .badge.bg-secondary,
tbody .badge.bg-secondary,
td .badge.bg-secondary,
th .badge.bg-secondary,
.badge-secondary,
table .badge-secondary,
.table .badge-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Button text colors - ensure readability */
.btn-primary,
.btn-success,
.btn-danger,
.btn-secondary,
.btn-dark {
    color: #fff !important;
}

.btn-warning,
.btn-info,
.btn-light {
    color: #000 !important;
}

.pagination .page-link {
    border-radius: 50% !important;
    margin: 0 3px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}
.pagination .page-link.active, .pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    color: white;
}

.catalog-sidebar-column .offcanvas-lg {
  border: none;
  background: transparent;
}

.catalog-sidebar-column .offcanvas-header {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.catalog-sidebar-column .offcanvas-body {
  padding: 0;
}

@media (min-width: 992px) {
  .catalog-sidebar-column .offcanvas-lg {
    position: sticky;
    top: 6.5rem;
    box-shadow: none;
    transform: none !important;
    visibility: visible !important;
  }
  .catalog-sidebar-column .offcanvas-body {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

/* ==================== MODERN FILTER PANEL DESIGN ==================== */

/* Legacy support - ocultar elementos antiguos */
.catalog-sidebar-column .offcanvas-lg,
.filter-stack,
.filter-active,
.filter-chips,
.filter-chip,
.filter-section,
.filter-section-toggle,
.filter-section-body {
  display: none !important;
}

/* Contenedor principal del panel moderno */
.modern-filter-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: sticky;
  top: 20px;
}

/* Header del panel */
.filter-panel-header {
  background: linear-gradient(135deg, #0b4aa2 0%, #073676 100%);
  color: #ffffff;
  padding: 20px 22px;
  border-radius: 18px 18px 0 0;
}

.filter-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.filter-panel-title i {
  font-size: 1.3rem;
  opacity: 0.9;
}

.btn-clear-all {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-clear-all:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Filtros activos modernos */
.active-filters-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modern-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
}

.modern-filter-badge.segment-badge {
  background: rgba(0, 74, 173, 0.15);
  border-color: rgba(0, 74, 173, 0.2);
  color: var(--brand-blue);
}

.modern-filter-badge:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modern-filter-badge button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.modern-filter-badge button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Formulario moderno */
.modern-filter-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Secciones del filtro */
.modern-filter-section {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-filter-section:hover {
  border-color: rgba(11, 74, 162, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-section-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-section-header:hover {
  background: #f1f5f9;
}

.filter-section-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 74, 162, 0.12);
  border-radius: 10px;
  color: #0b4aa2;
  margin-right: 12px;
  font-size: 0.95rem;
}

.filter-section-title {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.filter-section-count {
  background: rgba(255, 122, 26, 0.18);
  color: #b45309;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 12px;
}

.filter-section-indicator {
  color: #64748b;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.filter-section-header[aria-expanded="true"] .filter-section-indicator {
  transform: rotate(180deg);
}

.filter-section-content {
  padding: 12px 14px;
}

/* Búsqueda de categorías */
.category-search-container {
  margin-bottom: 16px;
}

.modern-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-search-input i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 2;
}

.modern-search-input input {
  width: 100%;
  padding: 10px 10px 10px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.modern-search-input input:focus {
  outline: none;
  border-color: #0052cc; /* brand blue */
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

/* Árbol de categorías moderno */
.modern-category-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-chip:hover {
  background: rgba(11, 74, 162, 0.08);
  border-color: rgba(11, 74, 162, 0.2);
  color: #0b4aa2;
}

.category-chip.active {
  background: #0b4aa2;
  border-color: #0b4aa2;
  color: #fff;
}

.category-chip-count {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
}

.category-chip.active .category-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-more {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 0.5rem;
}

.category-more summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b4aa2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.category-more summary::-webkit-details-marker {
  display: none;
}

.category-more summary::after {
  content: "▾";
  font-size: 0.75rem;
}

.category-more[open] summary::after {
  content: "▴";
}

.category-item-wrapper {
  display: flex;
  flex-direction: column;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.category-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(148, 163, 184, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-item:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.category-item.active {
  background: #0b4aa2;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(11, 74, 162, 0.25);
}

.category-item.all-categories {
  background: #ff7a1a;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-item.all-categories.active {
  background: linear-gradient(135deg, #e65a2c 0%, #f97316 100%);
}

.category-icon {
  margin-right: 10px;
  width: 14px;
  text-align: center;
  opacity: 0.75;
}

.category-name {
  flex: 1;
}

.category-toggle {
  background: none;
  border: none;
  color: inherit;
  padding: 4px;
  margin-left: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.category-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.category-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.category-children {
  margin-left: 28px;
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid #e2e8f0;
}

/* Sección de precios */
.price-quick-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.price-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.price-quick-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.price-quick-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.price-quick-btn i {
  margin-right: 8px;
  opacity: 0.7;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input-wrapper i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  z-index: 2;
}

.price-input {
  width: 100%;
  padding: 12px 12px 12px 28px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.price-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-range-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Grid de colores moderno */
.modern-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.color-option-wrapper {
  display: flex;
}

.color-checkbox {
  display: none;
}

.modern-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modern-color-option:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.color-checkbox:checked + .modern-color-option {
  background: white;
  border-color: #0b4aa2;
  box-shadow: 0 3px 10px rgba(11, 74, 162, 0.2);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.color-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: all 0.2s ease;
}

.color-checkbox:checked + .modern-color-option .color-check {
  opacity: 1;
}

.color-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.color-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.color-count {
  font-size: 0.65rem;
  color: #64748b;
}

/* Lista de opciones moderna */
.modern-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-option-item {
  display: flex;
}

.option-checkbox {
  display: none;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
}

.option-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.option-checkbox:checked + .option-label {
  background: white;
  border-color: #667eea;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-check {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.option-checkbox:checked + .option-label .option-check {
  background: #667eea;
  border-color: #667eea;
}

.option-text {
  flex: 1;
}

.option-count {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 400;
}

/* Botones de acción */
.filter-actions-panel {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 20px 20px;
}

.btn-apply-filters {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff6a1a 0%, #ff8a2a 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-apply-filters:hover {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff9a3a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 122, 26, 0.35);
}

/* Responsive design */
@media (max-width: 991.98px) {
  .modern-filter-panel {
    border-radius: 0;
    box-shadow: none;
    background: white;
    position: static;
  }
  
  .filter-panel-header {
    border-radius: 0;
  }
  
  .modern-filter-form {
    padding: 16px;
  }
  
  .filter-actions-panel {
    padding: 16px;
  }
}

@media (max-width: 575.98px) {
  .price-range-inputs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .price-range-separator {
    display: none;
  }
  
  .modern-color-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .color-swatch {
    width: 32px;
    height: 32px;
  }
}

/* ==================== COLLAPSIBLE FILTER PANEL & CATALOG HEADER ==================== */

/* Hero de bienvenida mejorado */
.hero-welcome {
  animation: fadeInUp 0.6s ease-out;
}

.hero-welcome .card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.3),
    0 8px 16px rgba(102, 126, 234, 0.2);
  overflow: hidden;
  position: relative;
}

.hero-welcome .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-icon i {
  font-size: 2.5rem;
  color: white;
  opacity: 0.9;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.hero-actions .btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-actions .btn-light {
  background: white;
  color: #667eea;
  border: none;
}

.hero-actions .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
}

/* Panel de filtros colapsible */
#filter-sidebar-container {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#catalog-content {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.catalog-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 32px) 24px;
  width: 100%;
}

.catalog-shell.catalog-ui {
  --catalog-surface: #ffffff;
  --catalog-border: rgba(226, 232, 240, 0.9);
  --catalog-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --catalog-shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
  --catalog-radius-lg: 20px;
  --catalog-radius-md: 14px;
  --catalog-accent: #0b4aa2;
  --catalog-accent-strong: #073676;
  --catalog-muted: #6b7280;
}

.catalog-shell.catalog-ui section {
  scroll-margin-top: 96px;
  animation: catalogFadeUp 0.6s ease both;
}

.catalog-shell.catalog-ui .card,
.catalog-shell.catalog-ui .home-section-card,
.catalog-shell.catalog-ui .product-card,
.catalog-shell.catalog-ui .home-kit-card,
.catalog-shell.catalog-ui .segment-benefit-card,
.catalog-shell.catalog-ui .home-testimonial-card,
.catalog-shell.catalog-ui .quote-item-card {
  background: var(--catalog-surface);
  border-radius: var(--catalog-radius-lg);
  border-color: var(--catalog-border);
  box-shadow: var(--catalog-shadow);
}

.catalog-shell.catalog-ui .catalog-animate {
  animation: catalogFadeUp 0.6s ease both;
}

.catalog-shell.catalog-ui .btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.catalog-shell.catalog-ui .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--catalog-shadow-hover);
}

.catalog-shell.catalog-ui .btn-primary {
  background: var(--catalog-accent);
  border-color: var(--catalog-accent);
}

.catalog-shell.catalog-ui .btn-primary:hover,
.catalog-shell.catalog-ui .btn-primary:focus {
  background: var(--catalog-accent-strong);
  border-color: var(--catalog-accent-strong);
}

.catalog-shell.catalog-ui .form-control,
.catalog-shell.catalog-ui .form-select {
  border-radius: var(--catalog-radius-md);
  border-color: rgba(203, 213, 225, 0.9);
}

.catalog-shell.catalog-ui .form-control:focus,
.catalog-shell.catalog-ui .form-select:focus {
  border-color: rgba(11, 74, 162, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(11, 74, 162, 0.15);
}

.catalog-shell.catalog-ui .home-section-card.home-lead-section {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 17, 51, 0.25);
}

.catalog-shell.catalog-ui .home-section-card.home-lead-section .home-section-title,
.catalog-shell.catalog-ui .home-section-card.home-lead-section .home-eyebrow,
.catalog-shell.catalog-ui .home-section-card.home-lead-section .text-secondary {
  color: rgba(255, 255, 255, 0.85) !important;
}

.catalog-shell.catalog-ui .home-section-card.home-lead-section .home-section-title {
  color: #fff !important;
}

.catalog-shell.catalog-ui .home-section-card.home-cta-solo--blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 26px 70px rgba(0, 17, 51, 0.25);
}

.catalog-shell.catalog-ui .home-section-card.home-cta-solo--blue .home-eyebrow,
.catalog-shell.catalog-ui .home-section-card.home-cta-solo--blue .home-section-title,
.catalog-shell.catalog-ui .home-section-card.home-cta-solo--blue .text-secondary {
  color: rgba(255, 255, 255, 0.88) !important;
}

.catalog-shell.catalog-ui .home-section-card.home-cta-solo--blue .home-section-title {
  color: #fff !important;
}

@keyframes catalogFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-shell.catalog-ui section,
  .catalog-shell.catalog-ui .catalog-animate,
  .catalog-shell.catalog-ui .btn {
    animation: none;
    transition: none;
  }
}

@media (min-width: 1400px) {
  .catalog-shell {
    max-width: 1320px;
  }
}

/* Header del catálogo mejorado */
.catalog-header {
  position: sticky;
  top: 80px;
  z-index: 100;
  margin-bottom: 2rem;
}

.catalog-header .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.catalog-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón toggle de filtros */
.btn-toggle-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-toggle-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-toggle-filters:hover::before {
  left: 100%;
}

.btn-toggle-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-toggle-filters:active {
  transform: translateY(0);
}

.btn-toggle-filters.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-toggle-filters.active:hover {
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.filter-label {
  font-weight: 600;
}

.filter-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Selector de columnas */
.columns-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

.column-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
}

.column-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.column-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.column-btn span {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Toggle de vista (grid/vertical) */
.view-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.view-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón de cerrar panel en header */
.btn-close-panel {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.btn-close-panel:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* ==================== PRODUCT GRID LAYOUTS ==================== */

/* Grid base */
.products-grid {
  display: grid;
  gap: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.products-grid .product-card {
  min-width: 0;
}

/* Layouts de columnas */
.products-grid.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.products-grid.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.products-grid.grid-cols-5 .consultive-card {
  padding: 1rem;
}

.products-grid.grid-cols-5 .product-title {
  font-size: 0.95rem;
}

.products-grid.grid-cols-5 .product-actions {
  gap: 0.4rem;
}

.products-grid.grid-cols-5 .btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
}

.best-sellers-grid {
  gap: 1.75rem;
}

.best-seller-card {
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.best-seller-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.best-seller-badge {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.best-seller-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-align: right;
}

.best-seller-card .product-sku {
  font-size: 0.8rem;
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.best-seller-card .product-image-link {
  border-radius: 16px;
  background: #f1f5f9;
  padding: 0.5rem;
}

.best-seller-card .product-image-link img,
.best-seller-card .product-image {
  border-radius: 12px;
}

.best-seller-card .product-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.best-seller-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.products-grid.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Vista vertical */
.products-grid.vertical-view {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.products-grid.vertical-view .product-card {
  display: flex;
  flex-direction: row;
  max-width: none;
  width: 100%;
  padding: 1.5rem;
  align-items: center;
  gap: 1.5rem;
}

.products-grid.vertical-view .product-image {
  width: 35%;
  max-width: 220px;
  height: auto;
  flex-shrink: 0;
  margin-right: 0;
}

.products-grid.vertical-view .product-image-link {
  width: 35%;
  max-width: 220px;
  align-self: flex-start;
}

.products-grid.vertical-view .product-image-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.products-grid.vertical-view .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.products-grid.vertical-view .product-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.products-grid.vertical-view .product-description {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.products-grid:not(.vertical-view) .product-description {
  display: none;
}

.products-grid.vertical-view .product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* New Catalog Controls Card */
.catalog-controls-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.controls-info .catalog-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.controls-info .catalog-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.controls-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-filters-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6a1a 0%, #ff8a2a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filters-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 26, 0.35);
}

.control-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 12px;
}

.control-btn:hover {
    background: #e2e8f0;
}

.control-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn i {
    font-size: 1rem;
}

.sorting-container .card-body {
    padding: 0.75rem 1.5rem;
}


/* Estilos para los nuevos controles del catálogo */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===========================
   HOME EXPERIENCE COMPONENTS
   =========================== */
.home-preview-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 17, 51, 0.25);
}

.home-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-hero-line {
    font-size: 1.1rem;
    margin: 0;
}

.home-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-cta-group .btn {
    border-radius: 999px;
    font-weight: 600;
}

.home-hero-note {
    font-size: 0.95rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.home-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
}

.home-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-metric {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}

.home-metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.home-metric-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.home-lead-card {
    background: rgba(2, 6, 23, 0.35);
    border-radius: 22px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.home-lead-card--accent {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.home-lead-card--accent .home-lead-list {
    color: #fff;
}

.home-lead-card--accent .home-lead-form input,
.home-lead-card--accent .home-lead-form textarea,
.home-lead-card--accent .home-lead-form select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.home-lead-card--accent .home-lead-form input::placeholder,
.home-lead-card--accent .home-lead-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-card--accent .home-lead-form button {
    background: var(--brand-orange);
    color: #fff;
}

.home-lead-list {
    padding-left: 1.2rem;
    color: #fff;
}

.home-lead-form input,
.home-lead-form textarea,
.home-lead-form select {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.home-lead-form select {
    color: rgba(255, 255, 255, 0.85);
}

.home-lead-form input::placeholder,
.home-lead-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-form button {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    background: #fff;
    color: var(--brand-blue);
}

.home-section-card .home-lead-list {
    color: #0f172a;
}

.home-proof-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
}

.home-proof-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
}

.home-proof-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.home-proof-item span {
    font-size: 0.85rem;
    color: #475569;
}

.home-lead-media {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: center;
}

.home-lead-media img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.home-lead-media-caption {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.home-proof-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.home-proof-logos span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
}

.home-lead-section {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
}

.home-lead-section .home-section-title,
.home-lead-section .home-eyebrow,
.home-lead-section .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.home-lead-section .home-section-title {
    color: #fff !important;
}

.home-lead-section .home-lead-list {
    color: #fff;
}

.home-lead-section .home-proof-item {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-lead-section .home-proof-item strong {
    color: #fff;
}

.home-lead-section .home-proof-item span {
    color: rgba(255, 255, 255, 0.8);
}

.home-lead-section .home-lead-media {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-lead-section .home-lead-media-caption {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-section .home-lead-form input,
.home-lead-section .home-lead-form textarea,
.home-lead-section .home-lead-form select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.home-lead-section .home-lead-form input::placeholder,
.home-lead-section .home-lead-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-section .home-lead-form button {
    background: var(--brand-orange);
    color: #fff;
}

.home-lead-section .home-proof-logos span {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-lead-section .home-lead-layout {
    align-items: flex-start;
}

.home-lead-section .home-section-title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.home-lead-aside {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-lead-section .home-lead-list {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-lead-section .home-lead-list li {
    margin-bottom: 0.45rem;
}

.home-lead-section .home-lead-media {
    padding: 0.6rem;
}

.home-lead-section .home-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-lead-section .home-lead-form input,
.home-lead-section .home-lead-form textarea,
.home-lead-section .home-lead-form select {
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.6rem;
}

.home-lead-section .home-lead-form button {
    padding: 0.75rem 0.9rem;
}

.home-section-card .home-lead-form input,
.home-section-card .home-lead-form textarea,
.home-section-card .home-lead-form select {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.home-section-card .home-lead-form select {
    color: #0f172a;
}

.home-section-card .home-lead-form input::placeholder,
.home-section-card .home-lead-form textarea::placeholder {
    color: #94a3b8;
}

.home-section-card .home-lead-form button {
    background: var(--brand-blue);
    color: #fff;
}

.home-section-card.home-lead-section {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    border: none;
}

.home-section-card.home-lead-section .home-section-title,
.home-section-card.home-lead-section .home-eyebrow,
.home-section-card.home-lead-section .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.home-section-card.home-lead-section .home-section-title {
    color: #fff !important;
}

.home-section-card.home-lead-section .home-lead-list {
    color: #fff;
}

.home-section-card.home-lead-section .home-lead-form input,
.home-section-card.home-lead-section .home-lead-form textarea,
.home-section-card.home-lead-section .home-lead-form select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.home-section-card.home-lead-section .home-lead-form input::placeholder,
.home-section-card.home-lead-section .home-lead-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.home-section-card.home-lead-section .home-lead-form button {
    background: var(--brand-orange);
    color: #fff;
}

.home-trust-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
}

.home-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-trust-logos span {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

.home-section-card {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.home-section-header {
    margin-bottom: 1.5rem;
}

.segment-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.segment-link-intro {
    margin: 0 auto 1.25rem;
    color: #64748b;
    font-size: 0.98rem;
    text-align: center;
    max-width: 720px;
}

.segment-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segment-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
}

.segment-link-media {
    background: linear-gradient(135deg, rgba(11, 74, 162, 0.12), rgba(255, 122, 26, 0.12));
    border-radius: 14px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.segment-link-media img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.segment-link-body h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.segment-link-body p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.segment-link-cta {
    margin-top: auto;
    font-weight: 600;
    color: #0b4aa2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 992px) {
    .segment-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .segment-link-grid {
        grid-template-columns: 1fr;
    }
}

.home-cta-solo {
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    position: relative;
    overflow: hidden;
}

.home-cta-solo--blue {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 26px 70px rgba(0, 17, 51, 0.25);
}

.home-cta-solo--blue .home-eyebrow,
.home-cta-solo--blue .home-section-title,
.home-cta-solo--blue .text-secondary {
    color: rgba(255, 255, 255, 0.88) !important;
}

.home-cta-solo--blue .home-section-title {
    color: #fff !important;
}

.home-cta-solo--blue .btn-cta-orange {
    background: var(--brand-orange);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    box-shadow: 0 14px 30px rgba(255, 122, 26, 0.35);
}

.home-cta-solo--blue .btn-cta-orange:hover,
.home-cta-solo--blue .btn-cta-orange:focus {
    background: #ff7a1a;
    color: #fff;
}

.home-cta-solo--blue .btn-cta-orange {
    animation: ctaPulse 3.8s ease-in-out infinite;
}

.home-cta-solo--blue .btn-cta-orange:hover,
.home-cta-solo--blue .btn-cta-orange:focus {
    animation: none;
    transform: translateY(-1px);
}

@keyframes ctaPulse {
    0% { transform: translateY(0); box-shadow: 0 14px 30px rgba(255, 122, 26, 0.35); }
    50% { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(255, 122, 26, 0.5); }
    100% { transform: translateY(0); box-shadow: 0 14px 30px rgba(255, 122, 26, 0.35); }
}

.home-cta-solo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-cta-solo .home-eyebrow,
.home-cta-solo .home-section-title,
.home-cta-solo .text-secondary,
.home-cta-solo .home-cta-solo-list,
.home-cta-solo .btn-cta-orange {
    opacity: 0;
    transform: translateY(8px);
}

.home-cta-solo {
    opacity: 0;
    transform: translateY(10px);
}

.home-cta-solo.is-visible {
    animation: ctaReveal 0.8s ease both;
}

.home-cta-solo.is-visible .home-eyebrow,
.home-cta-solo.is-visible .home-section-title,
.home-cta-solo.is-visible .text-secondary,
.home-cta-solo.is-visible .home-cta-solo-list,
.home-cta-solo.is-visible .btn-cta-orange {
    animation: ctaTextReveal 0.9s ease both;
}

.home-cta-solo.is-visible .home-section-title {
    animation-delay: 0.05s;
}

.home-cta-solo.is-visible .text-secondary,
.home-cta-solo.is-visible .home-cta-solo-list {
    animation-delay: 0.12s;
}

.home-cta-solo.is-visible .btn-cta-orange {
    animation-delay: 0.18s;
}

.home-cta-solo-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.home-cta-solo-list li {
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .home-cta-solo-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-cta-solo .btn {
        width: 100%;
    }
}

.home-cta-band {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.home-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-cta-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.home-cta-card p,
.home-cta-card li {
    color: #475569;
    font-size: 0.95rem;
}

.home-cta-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.home-cta-card .btn {
    align-self: flex-start;
}

.home-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.home-cta-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-cta-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}

.home-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0b4aa2;
    background: rgba(11, 74, 162, 0.12);
    animation: ctaFloat 5.5s ease-in-out infinite;
}

.home-cta-card--quote .home-cta-icon {
    color: #0b4aa2;
    background: rgba(11, 74, 162, 0.12);
}

.home-cta-card--newsletter .home-cta-icon {
    color: #ff6a1a;
    background: rgba(255, 106, 26, 0.18);
}

.home-cta-card--welcome .home-cta-icon {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
}

@keyframes ctaFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@media (max-width: 992px) {
    .home-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-cta-icon {
        animation: none;
    }
    .home-cta-card {
        transition: none;
    }
    .home-cta-solo {
        animation: none;
    }
    .home-cta-solo .home-eyebrow,
    .home-cta-solo .home-section-title,
    .home-cta-solo .text-secondary,
    .home-cta-solo .home-cta-solo-list,
    .home-cta-solo .btn-cta-orange {
        animation: none;
    }
    .home-cta-solo--blue .btn-cta-orange {
        animation: none;
    }
}

@keyframes ctaReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ctaTextReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-category-grid,
.home-benefit-grid,
.home-client-grid,
.home-kits-grid,
.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.home-category-card,
.home-benefit-card,
.home-kit-card,
.home-testimonial-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-kit-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.home-kit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-kit-card--thumbs {
    padding-top: 3.75rem;
}

.home-kit-cover {
    width: 100%;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-kit-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-kit-cover.placeholder {
    color: #cbd5f5;
    font-size: 2rem;
}

.home-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 74, 173, 0.12);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 74, 173, 0.12);
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-client-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.home-client-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid #eaeef5;
    border-radius: 20px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.home-client-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 77, 0, 0.12);
    color: var(--brand-orange);
    font-size: 1.3rem;
}

.home-client-card .btn {
    margin-top: 0.25rem;
    border-radius: 999px;
    font-weight: 600;
}

.home-kit-budget {
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-kit-items {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kit-thumb-strip {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kit-thumb-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kit-thumb-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kit-thumb-bubble i {
    color: #94a3b8;
    font-size: 1.05rem;
}

.kit-thumb-plus {
    font-weight: 700;
    color: #94a3b8;
    font-size: 1.05rem;
}

.home-kit-card:hover .kit-thumb-bubble {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.home-kit-items li {
    border-left: 3px solid var(--brand-orange);
    padding-left: 0.75rem;
}

.home-kit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-kit-orange {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.btn-kit-orange:hover {
    background: #ea580c;
    color: #fff;
}

.btn-kit-primary {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.btn-kit-primary:hover {
    background: #0a54c4;
    color: #fff;
}

.home-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    background: #fff;
}

.home-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    gap: 1rem;
}

.home-faq summary i {
    color: var(--brand-blue);
}

.home-closing-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    border-radius: 22px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-closing-card .btn {
    min-width: 180px;
}

.catalog-control-bar .control-group {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.25rem;
}

.sort-select {
    border-radius: 999px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.insights-card {
    background: #0f172a;
    color: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
}

.consultive-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 1.25rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consultive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.consultive-card[data-product-card] {
    opacity: 0;
    transform: translateY(12px);
}

.consultive-card[data-product-card].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.consultive-card .product-sku {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-blue);
    text-transform: uppercase;
}

.product-image-link img,
.consultive-card .product-image.placeholder-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.consultive-card:hover .product-image-link img {
    transform: scale(1.04);
}

.consultive-card .product-tags {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.product-preview-trigger.active {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(0, 74, 173, 0.08);
}

.product-preview-tooltip {
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: none;
}

.product-preview-tooltip.active {
    display: block;
}

.product-preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-preview-actions .btn-link {
    color: var(--brand-blue);
    font-weight: 600;
}

.floating-quote-wrapper {
    position: fixed;
    bottom: 5.5rem; /* separado del botón flotante de Valentina */
    right: 1.5rem;
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .floating-quote-wrapper {
        display: none; /* el bottom-nav ya tiene el botón de cotización */
    }
}

.floating-quote-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    color: var(--brand-blue);
    box-shadow: 0 20px 50px rgba(0, 35, 96, 0.25);
    text-decoration: none;
}

.floating-quote-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.quote-feedback {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    background: var(--brand-blue);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 17, 51, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}

.quote-feedback.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-feedback.error {
    background: #dc3545;
}

.back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 35, 96, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.catalog-info h2 {
    margin: 0;
    font-size: 1.8rem;
}

.catalog-info p {
    margin: 0;
    color: #666;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-buttons {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 5px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.view-btn.active {
    background-color: #667eea;
    color: white;
}

.sorting-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

#sorting-form {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.form-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
}


.products-grid.vertical-view .product-price {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .products-grid.grid-cols-6 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .products-grid.grid-cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .catalog-header {
    top: 70px;
    margin-bottom: 1.5rem;
  }
  
  .catalog-title {
    font-size: 1.5rem;
  }
  
  .catalog-actions {
    gap: 0.75rem;
  }
  
  .btn-toggle-filters {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .columns-toggle {
    display: none !important;
  }
  
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid.vertical-view .product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .products-grid.vertical-view .product-image {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .catalog-header .card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .catalog-actions {
    justify-content: space-between;
  }
  
  .catalog-title {
    font-size: 1.3rem;
  }
  
  .catalog-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-quote-wrapper {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .floating-quote-button {
    width: 100%;
    justify-content: center;
  }

  .back-to-top-btn {
    left: auto;
    right: 1rem;
    bottom: 5rem;
  }
}

@media (max-width: 575.98px) {
  .catalog-header {
    top: 60px;
    margin-bottom: 1rem;
  }
  
  .btn-toggle-filters .filter-label {
    display: none;
  }
  
  .btn-toggle-filters {
    padding: 10px 12px;
    min-width: auto;
  }
  
  .view-btn {
    width: 36px;
    height: 36px;
  }
  
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-icon {
    display: none !important;
  }
}

.filter-option-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.filter-option-list .form-check {
  margin-bottom: 0.35rem;
}

.filter-option-list .form-check-label {
  font-size: 0.85rem;
  color: var(--bs-secondary);
}

.segment-section .form-check {
  margin-bottom: 0.35rem;
}

.segment-section .form-check-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================================
   HOME — USE CASES VISUALES (tarjetas con imagen de producto)
   ============================================================= */
.home-client-grid--visual {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.home-client-card--visual {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  gap: 0;
}

.home-client-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #e2e8f0;
}

.home-client-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.home-client-card--visual:hover .home-client-img img {
  transform: scale(1.06);
}

.home-client-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 20, 40, 0.35) 100%);
}

.home-client-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

/* =============================================================
   HOME — LIFESTYLE MOSAIC (mosaico de productos en uso real)
   ============================================================= */
.home-lifestyle-strip {
  background: var(--brand-gray);
  border-radius: 24px;
  padding: 2rem;
}

.lifestyle-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Primera imagen ocupa 2 columnas y 2 filas — imagen hero del mosaico */
.lifestyle-mosaic-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.lifestyle-mosaic-item {
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 1 / 1;
}

.lifestyle-mosaic-item:first-child {
  aspect-ratio: auto;
}

.lifestyle-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.lifestyle-mosaic-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 991.98px) {
  .lifestyle-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
  .lifestyle-mosaic-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .home-lifestyle-strip {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .lifestyle-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .lifestyle-mosaic-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .home-client-img {
    height: 150px;
  }
}

/* =============================================================
   HOME — CATEGORÍAS: mejor soporte de imagen real
   ============================================================= */
.home-category-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

/* Asegurar que el bg de imagen ocupe bien el card */
.category-card-img .category-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.segment-section .form-check-label small {
  font-weight: 600;
}

.segment-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 17, 51, 0.25);
}

.segment-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.segment-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.segment-hero-bullets i {
  color: var(--brand-orange);
}

.segment-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.segment-metric {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.segment-metric .value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.segment-section {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.segment-benefits-grid,
.segment-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.segment-benefit-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.segment-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 74, 173, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.segment-products-grid .product-card {
  height: 100%;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-actions .btn {
  width: 100%;
}

.filter-actions .btn-outline-secondary {
  border-color: rgba(52, 71, 103, 0.2);
  color: var(--bs-dark);
}

.filter-actions .btn-outline-secondary:hover {
  background: rgba(52, 71, 103, 0.08);
}

/* Detail Page Specific Styles */
.product-gallery .thumb {
    width: 60px;
    height: 60px;
    cursor: pointer;
}
.product-gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery .thumb.selected img {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Zoom cursor for main image */
.image-zoom {
    cursor: zoom-in;
}

/* Botones navegación galería */
.product-gallery .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #343a40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.product-gallery .gallery-prev { left: .5rem; }
.product-gallery .gallery-next { right: .5rem; }
.product-gallery .gallery-nav:focus { outline: 2px solid var(--bs-primary); }

/* Scroller de miniaturas tipo “rollo” */
.product-gallery .thumbs-scroll {
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}
.product-gallery .thumbs-scroll::-webkit-scrollbar { height: 6px; }
.product-gallery .thumbs-scroll::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 4px; }

#imageZoomModal .modal-body img {
    max-height: 80vh;
}

/* Navegación dentro del modal */
#imageZoomModal .modal-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:2.5rem;height:2.5rem;border-radius:50%;border:none;
  background:rgba(255,255,255,.9);color:#343a40;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}
#imageZoomModal .modal-prev{ left:.5rem; }
#imageZoomModal .modal-next{ right:.5rem; }
#imageZoomModal .modal-nav:focus{ outline:2px solid var(--bs-primary); }

#imageZoomModal .modal-thumbs{ overflow-x:auto; padding-bottom:.25rem; }
#imageZoomModal .modal-thumbs .thumb.selected img{ outline:2px solid var(--bs-primary); outline-offset:2px; border-radius:.5rem; }

.attribute-group h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #8392ab;
}

.nav-tabs .nav-link {
    color: var(--bs-dark);
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-color: #dee2e6 #dee2e6 var(--bs-white);
}

/* Table styles with proper text contrast */
.table {
    color: #212529 !important; /* Dark text for readability */
}
.table td, .table th {
    border-color: #e9ecef;
    color: #212529 !important; /* Ensure dark text in all cells */
}

/* Table hover state - ensure text remains dark */
.table-hover tbody tr:hover,
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    color: #000 !important; /* Even darker on hover for maximum contrast */
}

/* Table striped - ensure text is dark on both backgrounds */
.table-striped tbody tr:nth-of-type(odd) td,
.table-striped tbody tr:nth-of-type(odd) th {
    color: #212529 !important;
}

/* Table head variants - ensure proper text color */
thead.table-light,
thead.table-light th,
.table-light,
.table-light td,
.table-light th {
    background-color: #f8f9fa;
    color: #212529 !important;
    border-color: #dee2e6;
}

thead.table-dark,
thead.table-dark th {
    background-color: #212529;
    color: #fff !important;
}

/* Table foot */
tfoot.table-light,
tfoot.table-light td,
tfoot.table-light th {
    background-color: #f8f9fa;
    color: #212529 !important;
}

/* Table body cells - force dark text */
.table tbody td,
.table tbody th {
    color: #212529 !important;
}

/* Force dark text on ALL elements inside table cells */
.table tbody td *,
.table tbody th *,
.table thead th *,
.table td p,
.table td span,
.table td div,
.table th p,
.table th span,
.table th div {
    color: #212529 !important;
}

/* Override text utility classes inside tables */
.table .text-secondary,
.table .text-muted,
.table .text-dark,
.table td .text-secondary,
.table td .text-muted,
.table th .text-secondary {
    color: #212529 !important;
}

/* Table with various helper classes */
.table.align-items-center td,
.table.align-items-center th,
.table.align-middle td,
.table.align-middle th,
.table.table-sm td,
.table.table-sm th,
.table.table-hover td,
.table.table-hover th,
.table.table-striped td,
.table.table-striped th,
.table.mb-0 td,
.table.mb-0 th {
    color: #212529 !important;
}

/* Table borderless */
.table-borderless td,
.table-borderless th {
    color: #212529 !important;
}

/* Badges in tables */
.table .badge {
    font-size: 0.75rem;
}

/* Quote Page Specific Styles */
.avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.table .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: .75rem;
}

.table .btn-link {
    text-decoration: none;
}

.impression-selector {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6; /* Borde más sutil */
    border-radius: 0.5rem; /* Bordes redondeados consistentes */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.impression-selector:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

.impression-selector.selected {
    border-color: var(--bs-primary);
    background-color: #e7f1ff;
    box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11), 0 2px 4px -1px rgba(0, 0, 0, 0.07);
}

.impression-image {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    object-fit: contain; /* Asegura que el icono se ajuste sin deformarse */
}

.impression-text {
    display: flex;
}

.impression-desc {
    font-size: 0.9em;
    color: var(--bs-secondary);
}

/* Quantity Selector */
.quantity-selector .form-control {
    border-left: none;
    border-right: none;
}
.quantity-selector .btn {
    z-index: 1;
}
/* Ocultar las flechas por defecto del input number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}
.btn-whatsapp:hover {
    background-color: #1EBE57;
    color: white;
}

/* Legacy utility classes for compatibility with older templates */
/* These restore styles like text-xxs, font-weight-bolder, opacity-7, avatar-sm */
.text-xxs {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
}

.text-xs {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

.font-weight-bold {
  font-weight: 600 !important;
}

.font-weight-bolder {
  font-weight: 700 !important;
}

.opacity-7 {
  opacity: 0.7 !important;
}

.opacity-6 {
  opacity: 0.6 !important;
}

/* Avatar sizing utilities */
.avatar-sm {
  width: 36px !important;
  height: 36px !important;
}

/* Quote Finalize Page */
.quote-item-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}
.quote-item-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}
.quote-item-details {
    flex-grow: 1;
}
.quote-item-details h6 {
    margin-bottom: 0.25rem;
}
.quote-item-details p {
    font-size: 0.8rem;
    color: var(--bs-secondary);
    margin-bottom: 0;
}

.logo-suggestions {
    margin-top: 2rem;
}
.logo-suggestions .list-group-item {
    border-color: #e9ecef;
}
/* Selector Cards & Swatches (UX upgrades) */
.selector-card { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #dee2e6; border-radius:.5rem; cursor:pointer; transition:.2s; background:#fff; margin-bottom:8px; }
.selector-card:hover { border-color: var(--bs-primary); transform: translateY(-1px); }
.selector-card:has(input:checked), .selector-card.selected { border-color: var(--bs-primary); background:#f2f7ff; }
.selector-icon { font-size: 1.25rem; color: var(--bs-dark); opacity:.85; }
.selector-meta .title { display:block; font-weight:600; }
.selector-meta .desc { display:block; font-size:.85rem; color: var(--bs-secondary); }

.swatches { display:flex; gap:8px; flex-wrap:wrap; }
.swatch { position:relative; width:32px; height:32px; border-radius:50%; border:2px solid #e9ecef; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.swatch .dot { width:24px; height:24px; border-radius:50%; background: var(--swatch, #ccc); }

/* Admin AI helpers */
.ai-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-buttons .spinner-border {
  display: none;
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.ai-suggestions {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px dashed #ced4da;
  border-radius: 0.5rem;
}

.ai-suggestions .form-select {
  margin-bottom: 0.5rem;
}
.swatch:has(input:checked) { border-color: var(--bs-primary); }
.swatch .check { position:absolute; color:#fff; font-size:.75rem; display:none; }
.swatch:has(input:checked) .check { display:block; }

/* Price Panel */
.price-panel { position: sticky; top: 1rem; }
@media (max-width: 991px) { .price-panel { position: static; } }
/* Zoom overlay button */
.main-image { position: relative; }
.zoom-btn { position: absolute; right: 10px; bottom: 10px; border: none; border-radius: 999px; padding: 8px 10px; background: rgba(255,255,255,0.95); box-shadow: 0 6px 16px rgba(0,0,0,.12); color: var(--bs-dark); }
.zoom-btn:hover { transform: scale(1.04); color: var(--bs-primary); }

/* Assistant floating chat */
.assist-toggle{
  position: fixed !important; 
  right: 24px !important; 
  bottom: 24px !important; 
  z-index: 9999 !important;
  width: 52px; 
  height: 52px; 
  border-radius: 50%; 
  border: none;
  background: var(--bs-primary) !important; 
  color: #fff !important; 
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.assist-toggle:hover{
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.assist-toggle i{ font-size: 20px; }
.assist-panel{
  position: fixed; right: 24px; bottom: 88px; z-index: 9998; width: 360px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 14px; box-shadow: 0 20px 27px rgba(0,0,0,.15); overflow: hidden;
}
.assist-header{ padding: .6rem .75rem; font-weight: 600; background: rgba(13,110,253,.08); }
.assist-body{ padding: .5rem; }
.assist-messages{ height: 220px; overflow: auto; padding: .25rem; display: flex; flex-direction: column; gap: .5rem; }
.assist-msg.me{ align-self: flex-end; }
.assist-msg .assist-bubble{ background:#f1f3f5; border-radius: 12px; padding:.5rem .75rem; max-width: 85%; }
.assist-msg.me .assist-bubble{ background: rgba(13,110,253,.12); }
.assist-chips{ display:flex; flex-wrap:wrap; gap:.25rem; margin:.25rem 0 .5rem; }
.assist-input .btn{ min-width: 44px; }
.assist-cards{ display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: .25rem 0; }
.assist-card{ display:block; width: auto; border:1px solid #e9ecef; border-radius: 10px; overflow:hidden; text-decoration:none; color:inherit; }
.assist-card img,.assist-ph{ width:100%; height:96px; object-fit:cover; background:#f8f9fa; }
.assist-card-body{ padding:.4rem .5rem; }
.assist-card-title{ font-size:.85rem; line-height:1.2; height:2.1em; overflow:hidden; }
.assist-card-price{ font-weight:700; font-size:.9rem; color: var(--bs-primary); }
.assist-tips{ margin-top:.25rem; }
.assist-tips ul{ padding-left: 1rem; }

/* Bot estratégico - nuevos estilos */
.assist-card .badge { 
  font-size: 0.7rem; 
  margin: 2px; 
  display: inline-block; 
}

.assist-pitch { 
  font-style: italic; 
  font-size: 0.8rem; 
  line-height: 1.3; 
  padding: 4px 6px; 
  background: rgba(0, 123, 255, 0.05); 
  border-left: 2px solid #007bff; 
  border-radius: 0 4px 4px 0; 
  margin: 4px 0; 
  color: #495057;
}

.assist-bubble.bg-primary { 
  background: linear-gradient(135deg, #007bff, #0056b3) !important; 
  border: none; 
}

.assist-card:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  transition: all 0.2s ease; 
}

/* Grid mejorado para mejor visualización */
@media (min-width: 360px) {
  .assist-cards { 
    grid-template-columns: 1fr; 
    gap: .75rem; 
  }
  
  .assist-card-img { 
    height: 110px; 
  }
}
.product-image-link {
    display: block;
}

/* ================================================================
   HOME V2 — Sistema de diseño completo
   ================================================================ */

.home-v2 {
  --hv2-blue: #004aad;
  --hv2-blue-dark: #002d73;
  --hv2-orange: #ff4d00;
  --hv2-orange-hover: #e64500;
  --hv2-surface: #f7f8fa;
  --hv2-border: rgba(226,232,240,1);
  --hv2-shadow-sm: 0 4px 16px rgba(15,23,42,.06);
  --hv2-shadow-md: 0 12px 40px rgba(15,23,42,.10);
  --hv2-shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --hv2-radius: 24px;
  --hv2-radius-sm: 16px;
}

/* ── Utilitarios generales ── */
.home-v2 .hv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,77,0,.10);
  color: var(--hv2-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,0,.20);
  text-transform: uppercase;
}
.home-v2 .hv2-badge--light {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.30);
  color: #fff;
}

.home-v2 .hv2-section { }
.home-v2 .hv2-section-head { margin-bottom: 1.75rem; }
.home-v2 .hv2-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: .25rem 0 .5rem;
}
.home-v2 .hv2-section-sub {
  color: #64748b;
  font-size: .95rem;
  margin: 0;
}

/* ── Botones ── */
.home-v2 .hv2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hv2-orange);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,77,0,.28);
  transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}
.home-v2 .hv2-btn-primary:hover {
  background: var(--hv2-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,77,0,.38);
  color: #fff;
}

.home-v2 .hv2-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hv2-blue);
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid rgba(0,74,173,.22);
  text-decoration: none;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, transform .15s ease;
}
.home-v2 .hv2-btn-ghost:hover {
  border-color: var(--hv2-blue);
  background: rgba(0,74,173,.04);
  transform: translateY(-2px);
  color: var(--hv2-blue);
}
.home-v2 .hv2-btn-ghost--light {
  border-color: rgba(255,255,255,.45);
  color: #fff;
  background: transparent;
}
.home-v2 .hv2-btn-ghost--light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.70);
  color: #fff;
}

.home-v2 .hv2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hv2-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, #001d5c 0%, #003494 55%, #004aad 100%);
  border-radius: var(--hv2-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}
.hv2-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hv2-hero-copy { display: flex; flex-direction: column; gap: 1.25rem; }

.hv2-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
}
.hv2-hero-accent {
  color: var(--hv2-orange);
}
.hv2-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 460px;
}

/* Search bar */
.hv2-search-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: .4rem .4rem .4rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.hv2-search-input {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
}
.hv2-search-input i { color: #94a3b8; font-size: .9rem; flex-shrink: 0; }
.hv2-search-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: .92rem;
  color: #111827;
  background: transparent;
}
.hv2-search-btn {
  background: var(--hv2-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .6rem 1.2rem;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.hv2-search-btn:hover { background: var(--hv2-orange-hover); }

.hv2-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-size: .78rem;
  color: rgba(255,255,255,.70);
  font-weight: 600;
}
.hv2-trust-row i { color: #4ade80; margin-right: 3px; }

/* Hero visual / mosaic */
.hv2-hero-visual { display: flex; flex-direction: column; gap: 1rem; }

.hv2-hero-mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: .6rem;
  height: 300px;
}
.hv2-mosaic-main {
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  height: 100%;
}
.hv2-mosaic-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.hv2-mosaic-main:hover img { transform: scale(1.04); }

.hv2-mosaic-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
}
.hv2-mosaic-sm {
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  flex: 1;
}
.hv2-mosaic-sm img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hv2-mosaic-sm:hover img { transform: scale(1.05); }

.hv2-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.hv2-metric {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .75rem .6rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hv2-metric strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.hv2-metric span {
  font-size: .68rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  line-height: 1.3;
  display: block;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════
   SEGMENTOS
   ════════════════════════════════════════════════ */
.hv2-segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.hv2-seg-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hv2-border);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--hv2-shadow-sm);
}
.hv2-seg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hv2-shadow-lg);
  text-decoration: none;
}
.hv2-seg-card--wide {
  grid-column: span 2;
}
.hv2-seg-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}
.hv2-seg-card--wide .hv2-seg-img { height: 220px; }
.hv2-seg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.hv2-seg-card:hover .hv2-seg-img img { transform: scale(1.06); }

.hv2-seg-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.hv2-seg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,77,0,.10);
  color: var(--hv2-orange);
  font-size: 1.1rem;
}
.hv2-seg-body h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
  margin: 0;
  letter-spacing: -.01em;
}
.hv2-seg-body p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.hv2-seg-cta {
  font-size: .82rem;
  font-weight: 800;
  color: var(--hv2-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: .25rem;
}

/* ════════════════════════════════════════════════
   ACCESOS RÁPIDOS
   ════════════════════════════════════════════════ */
.hv2-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hv2-shortcut {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--hv2-radius-sm);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.hv2-shortcut:hover {
  transform: translateY(-3px);
  box-shadow: var(--hv2-shadow-md);
  text-decoration: none;
}
.hv2-shortcut > i:first-child {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.25);
}
.hv2-shortcut div { flex: 1; }
.hv2-shortcut strong { display: block; font-size: .95rem; font-weight: 900; line-height: 1.2; }
.hv2-shortcut span { font-size: .78rem; opacity: .82; font-weight: 500; }
.hv2-shortcut-arrow { font-size: .85rem; opacity: .7; flex-shrink: 0; }

.hv2-shortcut--orange { background: linear-gradient(135deg, #ff4d00, #ff7a3d); color: #fff; box-shadow: 0 8px 28px rgba(255,77,0,.28); }
.hv2-shortcut--blue   { background: linear-gradient(135deg, #004aad, #0066d6); color: #fff; box-shadow: 0 8px 28px rgba(0,74,173,.28); }
.hv2-shortcut--dark   { background: linear-gradient(135deg, #1e293b, #334155); color: #fff; box-shadow: 0 8px 28px rgba(15,23,42,.28); }

/* ════════════════════════════════════════════════
   CONCIERGE BANNER
   ════════════════════════════════════════════════ */
.hv2-concierge-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #001d5c 0%, #003494 60%, #004aad 100%);
  border-radius: var(--hv2-radius);
  overflow: hidden;
  position: relative;
}
.hv2-concierge-banner::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hv2-concierge-copy { color: #fff; }
.hv2-concierge-copy h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
  margin: .75rem 0 .5rem;
  color: #fff;
}
.hv2-concierge-copy p { color: rgba(255,255,255,.72); margin-bottom: 1.5rem; font-size: .95rem; }

.hv2-concierge-imgs {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.hv2-concierge-imgs img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--hv2-radius-sm);
  border: 2px solid rgba(255,255,255,.20);
  box-shadow: 0 8px 24px rgba(0,0,0,.30);
  transition: transform .3s ease;
}
.hv2-concierge-imgs img:hover { transform: scale(1.04); }

/* ════════════════════════════════════════════════
   LIFESTYLE GRID
   ════════════════════════════════════════════════ */
.hv2-lifestyle {
  background: var(--hv2-surface);
  border-radius: var(--hv2-radius);
  padding: 2rem;
  overflow: hidden;
}

.hv2-lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .75rem;
  margin-top: 1.5rem;
  /* sin height fijo — las celdas definen su propia altura */
}

/* Columna izquierda: imagen tall ocupa toda la altura del grid */
.hv2-life-tall {
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
}
.hv2-life-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.hv2-life-tall:hover img { transform: scale(1.04); }

/* Columna derecha: grid 2x2 con una fila ancha arriba */
.hv2-life-grid-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
}
.hv2-life-wide {
  grid-column: span 2;
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  width: 100%;
}
.hv2-life-sm {
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hv2-life-wide img,
.hv2-life-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.hv2-life-wide:hover img,
.hv2-life-sm:hover img { transform: scale(1.05); }

/* ════════════════════════════════════════════════
   BENEFICIOS
   ════════════════════════════════════════════════ */
.hv2-benefits {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--hv2-border);
  border-radius: var(--hv2-radius);
}
.hv2-benefit {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  border-radius: var(--hv2-radius-sm);
  transition: background .18s ease;
}
.hv2-benefit:hover { background: var(--hv2-surface); }
.hv2-benefit-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,77,0,.10);
  color: var(--hv2-orange);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv2-benefit h4 {
  font-size: .95rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
.hv2-benefit p {
  font-size: .85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════
   LEAD SECTION
   ════════════════════════════════════════════════ */
.hv2-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, #001d5c 0%, #003494 60%, #004aad 100%);
  border-radius: var(--hv2-radius);
  color: #fff;
}
.hv2-lead-copy h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  margin: .75rem 0 1rem;
  line-height: 1.2;
}
.hv2-lead-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hv2-lead-list li {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}
.hv2-lead-proof {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hv2-lead-proof div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv2-lead-proof strong { font-size: 1.3rem; font-weight: 900; color: #fff; }
.hv2-lead-proof span { font-size: .72rem; color: rgba(255,255,255,.60); font-weight: 600; }

.hv2-lead-form-wrap {
  background: #fff;
  border-radius: var(--hv2-radius-sm);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}
.hv2-lead-media {
  height: 180px;
  overflow: hidden;
}
.hv2-lead-media img { width: 100%; height: 100%; object-fit: cover; }

.hv2-lead-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.hv2-lead-form input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--hv2-border);
  border-radius: 10px;
  font-size: .9rem;
  outline: none;
  transition: border-color .18s ease;
}
.hv2-lead-form input:focus { border-color: var(--hv2-blue); }
.hv2-lead-form button {
  background: var(--hv2-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .75rem;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
}
.hv2-lead-form button:hover { background: var(--hv2-orange-hover); }
.hv2-lead-form small { font-size: .75rem; color: #94a3b8; text-align: center; }

.hv2-lead-logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--hv2-border);
}
.hv2-lead-logos span {
  font-size: .75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ════════════════════════════════════════════════
   CLOSING CTA
   ════════════════════════════════════════════════ */
.hv2-closing {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #001229 0%, #002d73 50%, #003494 100%);
  border-radius: var(--hv2-radius);
  color: #fff;
}
.hv2-closing h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: .75rem 0 .75rem;
  letter-spacing: -.02em;
}
.hv2-closing p { color: rgba(255,255,255,.65); margin-bottom: 2rem; font-size: 1rem; }
.hv2-closing .hv2-cta-row { justify-content: center; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .hv2-hero { padding: 2.5rem 2rem; gap: 2rem; }
  .hv2-hero-mosaic { height: 260px; }
  .hv2-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .hv2-segment-grid { grid-template-columns: repeat(2, 1fr); }
  .hv2-seg-card--wide { grid-column: span 2; }
  .hv2-lifestyle-grid { grid-template-columns: 1fr 1.5fr; }
}

@media (max-width: 991.98px) {
  .hv2-hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .hv2-hero-visual { display: none; }
  .hv2-shortcuts { grid-template-columns: 1fr; gap: .5rem; }
  .hv2-segment-grid { grid-template-columns: repeat(2, 1fr); }
  .hv2-seg-card--wide { grid-column: span 2; }
  .hv2-concierge-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .hv2-concierge-imgs { display: none; }
  .hv2-benefits { grid-template-columns: repeat(2, 1fr); }
  .hv2-lead { grid-template-columns: 1fr; padding: 2rem; }
  .hv2-lifestyle-grid { grid-template-columns: 1fr; }
  .hv2-life-tall { aspect-ratio: 16 / 7; }
  .hv2-life-sm { aspect-ratio: 4 / 3; }
}

@media (max-width: 767.98px) {
  .hv2-hero { padding: 1.5rem 1.25rem; border-radius: 18px; }
  .hv2-hero-title { font-size: 1.65rem; }
  .hv2-search-bar { flex-direction: column; padding: .5rem; gap: .5rem; }
  .hv2-search-btn { width: 100%; justify-content: center; padding: .65rem; }
  .hv2-segment-grid { grid-template-columns: 1fr; }
  .hv2-seg-card--wide { grid-column: span 1; }
  .hv2-benefits { grid-template-columns: 1fr; padding: 1.25rem; }
  .hv2-lead { border-radius: 18px; }
  .hv2-closing { padding: 2.5rem 1.25rem; border-radius: 18px; }
  .hv2-life-grid-right { grid-template-columns: repeat(2, 1fr); }
  .hv2-life-wide { grid-column: span 2; }
}

/* ================================================================
   CATÁLOGO V2 — Sistema de diseño completo (cv2-)
   ================================================================ */

/* ── Shell: sidebar + main ── */
.cv2-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── SIDEBAR ── */
.cv2-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.4) transparent;
}
.cv2-sidebar::-webkit-scrollbar { width: 4px; }
.cv2-sidebar::-webkit-scrollbar-track { background: transparent; }
.cv2-sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,.4); border-radius: 4px; }

.cv2-filter-panel {
  background: #fff;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,.06);
}

/* Header del filtro */
.cv2-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #002d73 0%, #004aad 100%);
  color: #fff;
}
.cv2-filter-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
}
.cv2-filter-head-left i { font-size: 1rem; opacity: .9; }
.cv2-filter-count-pill {
  background: rgba(255,77,0,.85);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cv2-filter-head-right { display: flex; gap: 6px; }
.cv2-btn-clear, .cv2-btn-close-sidebar {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.cv2-btn-clear:hover, .cv2-btn-close-sidebar:hover { background: rgba(255,255,255,.25); }

/* Chips activos */
.cv2-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,74,173,.04);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.cv2-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,74,173,.08);
  border: 1px solid rgba(0,74,173,.15);
  color: #004aad;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
}
.cv2-chip button {
  background: none; border: none;
  color: inherit; opacity: .7;
  padding: 0; margin: 0;
  cursor: pointer; font-size: .65rem;
  display: flex; align-items: center;
  transition: opacity .15s;
}
.cv2-chip button:hover { opacity: 1; }

/* Form */
.cv2-filter-form { padding: 12px; display: flex; flex-direction: column; gap: 6px; }

/* Grupos de filtro */
.cv2-filter-group {
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.cv2-filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: .875rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: background .15s;
  gap: 8px;
}
.cv2-filter-group-head:hover { background: #f8fafc; }
.cv2-filter-group-head span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.cv2-filter-group-head span i { color: #004aad; font-size: .85rem; }
.cv2-chevron {
  font-size: .7rem;
  color: #94a3b8;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.cv2-filter-group-head[aria-expanded="true"] .cv2-chevron { transform: rotate(180deg); }
.cv2-group-count {
  background: #ff4d00;
  color: #fff;
  font-style: normal;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}
.cv2-filter-body { padding: 10px 12px 14px; border-top: 1px solid rgba(226,232,240,.6); }

/* Búsqueda mini categorías */
.cv2-search-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.cv2-search-mini i { color: #94a3b8; font-size: .8rem; flex-shrink: 0; }
.cv2-search-mini input { border: none; outline: none; background: transparent; font-size: .82rem; width: 100%; }

/* Chips de categoría */
.cv2-cat-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 180px; overflow-y: auto; }
.cv2-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(226,232,240,1);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all .15s;
}
.cv2-cat-chip:hover { border-color: #004aad; color: #004aad; background: rgba(0,74,173,.04); }
.cv2-cat-chip.active { background: #004aad; border-color: #004aad; color: #fff; }
.cv2-cat-chip span { font-size: .7rem; opacity: .75; }
.cv2-cat-chip.active span { opacity: .85; }

/* Precio */
.cv2-price-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cv2-price-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(226,232,240,1);
  background: #fff;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all .15s;
}
.cv2-price-pill:hover { border-color: #004aad; color: #004aad; }
.cv2-price-pill.active { background: #004aad; border-color: #004aad; color: #fff; }
.cv2-price-inputs { display: flex; align-items: center; gap: 8px; }
.cv2-price-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
}
.cv2-price-input span { font-size: .8rem; color: #94a3b8; font-weight: 700; }
.cv2-price-input input { border: none; outline: none; width: 100%; font-size: .82rem; background: transparent; }
.cv2-price-sep { color: #94a3b8; font-weight: 700; font-size: .9rem; flex-shrink: 0; }

/* Opciones checkbox */
.cv2-option-list { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; }
.cv2-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.cv2-option:hover { background: #f8fafc; }
.cv2-option input { display: none; }
.cv2-option-check {
  width: 18px; height: 18px;
  border: 2px solid rgba(203,213,225,1);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.cv2-option-check i { font-size: .65rem; color: transparent; transition: color .15s; }
.cv2-option.active .cv2-option-check,
.cv2-option:has(input:checked) .cv2-option-check {
  background: #004aad;
  border-color: #004aad;
}
.cv2-option.active .cv2-option-check i,
.cv2-option:has(input:checked) .cv2-option-check i { color: #fff; }
.cv2-option-text { flex: 1; font-size: .82rem; color: #334155; font-weight: 500; }
.cv2-option-count { font-size: .72rem; color: #94a3b8; font-weight: 600; }

/* Colores */
.cv2-color-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cv2-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.cv2-swatch-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(226,232,240,1);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, border-color .15s;
}
.cv2-swatch-dot i { font-size: .65rem; color: transparent; transition: color .15s; }
.cv2-color-swatch.active .cv2-swatch-dot,
.cv2-color-swatch:has(input:checked) .cv2-swatch-dot {
  border-color: #004aad;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #004aad;
}
.cv2-color-swatch.active .cv2-swatch-dot i,
.cv2-color-swatch:has(input:checked) .cv2-swatch-dot i { color: #fff; }
.cv2-swatch-label { font-size: .65rem; color: #64748b; font-weight: 600; white-space: nowrap; max-width: 40px; overflow: hidden; text-overflow: ellipsis; }

/* Botón aplicar */
.cv2-btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: .75rem;
  background: #ff4d00;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, transform .12s;
  margin-top: 4px;
}
.cv2-btn-apply:hover { background: #e64500; transform: translateY(-1px); }

/* ── CONTENIDO PRINCIPAL ── */
.cv2-main { min-width: 0; }

/* Barra de control */
.cv2-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cv2-control-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cv2-control-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cv2-btn-toggle-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  background: #fff;
  font-size: .85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.cv2-btn-toggle-filters:hover { border-color: #004aad; color: #004aad; background: rgba(0,74,173,.03); }
.cv2-filters-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: #ff4d00;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.cv2-results-info {
  font-size: .85rem;
  color: #64748b;
}
.cv2-results-info strong { color: #1e293b; font-weight: 800; }
.cv2-results-info em { font-style: normal; color: #004aad; font-weight: 600; }

.cv2-view-btns { display: flex; gap: 3px; }
.cv2-view-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 9px;
  background: #fff;
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s;
}
.cv2-view-btn:hover { border-color: #004aad; color: #004aad; }
.cv2-view-btn.active { background: #004aad; border-color: #004aad; color: #fff; }

.cv2-sort-form { display: flex; align-items: center; gap: 6px; }
.cv2-select {
  padding: 6px 10px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.cv2-select:focus { border-color: #004aad; }
.cv2-select--sm { max-width: 110px; }

/* ── PRODUCT GRID ── */
.cv2-products-grid {
  display: grid;
  gap: 1rem;
}
.cv2-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cv2-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cv2-grid-vertical { grid-template-columns: 1fr; }

/* ── PRODUCT CARD ── */
.cv2-product-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}
.cv2-product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
}
.cv2-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15,23,42,.12);
  border-color: rgba(0,74,173,.18);
}

/* Imagen */
.cv2-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
}
.cv2-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cv2-product-card:hover .cv2-card-img-wrap img { transform: scale(1.05); }
.cv2-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
  font-size: 2rem;
}
.cv2-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.cv2-product-card:hover .cv2-card-img-overlay { opacity: 1; }
.cv2-quick-view-hint {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(0,0,0,.45);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* Cuerpo */
.cv2-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cv2-card-sku {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #004aad;
}
.cv2-card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cv2-card-title a { color: inherit; text-decoration: none; }
.cv2-card-title a:hover { color: #004aad; }

.cv2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cv2-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
}
.cv2-card-meta i { font-size: .65rem; color: #22c55e; }

.cv2-card-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: #004aad;
  letter-spacing: -.02em;
  margin-top: 2px;
}
.cv2-card-price-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Acciones */
.cv2-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.cv2-btn-quick {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s;
}
.cv2-btn-quick:hover { border-color: #004aad; color: #004aad; background: rgba(0,74,173,.04); }
.cv2-btn-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  background: #004aad;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.cv2-btn-main:hover { background: #002d73; transform: translateY(-1px); color: #fff; }
.cv2-btn-main--ghost {
  background: transparent;
  border: 1px solid rgba(0,74,173,.3);
  color: #004aad;
}
.cv2-btn-main--ghost:hover { background: rgba(0,74,173,.06); color: #004aad; }

/* Estado vacío */
.cv2-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: .75rem;
  text-align: center;
}
.cv2-empty-state i { font-size: 3rem; color: #cbd5e1; }
.cv2-empty-state h5 { font-size: 1.1rem; font-weight: 800; color: #334155; margin: 0; }
.cv2-empty-state p { color: #64748b; font-size: .9rem; margin: 0; }

/* Paginación */
.cv2-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226,232,240,.8);
}
.cv2-page-btn {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cv2-page-btn:hover:not(.disabled):not(.active) { border-color: #004aad; color: #004aad; background: rgba(0,74,173,.04); }
.cv2-page-btn.active { background: #004aad; border-color: #004aad; color: #fff; }
.cv2-page-btn.disabled { opacity: .4; pointer-events: none; }
.cv2-page-ellipsis { color: #94a3b8; font-size: .85rem; padding: 0 4px; line-height: 36px; }
.cv2-page-info { font-size: .78rem; color: #94a3b8; margin-left: 8px; white-space: nowrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .cv2-shell { grid-template-columns: 240px 1fr; gap: 1rem; }
  .cv2-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cv2-grid-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
  .cv2-shell { grid-template-columns: 1fr; }
  .cv2-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-height: 100vh;
    z-index: 1050;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 40px rgba(15,23,42,.18);
    border-radius: 0 20px 20px 0;
  }
  .cv2-sidebar.is-open { transform: translateX(0); }
  .cv2-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.4);
    z-index: 1049;
    backdrop-filter: blur(3px);
    display: none;
  }
  .cv2-sidebar-backdrop.is-open { display: block; }
  .cv2-grid-4, .cv2-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .cv2-grid-4, .cv2-grid-5 { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .cv2-card-body { padding: 10px; gap: 4px; }
  .cv2-card-price { font-size: .95rem; }
  .cv2-control-bar { padding: 10px 12px; gap: .75rem; }
}
