/*PALETA DE COLORES */
:root {
    --color-primary: #00273E;
    --color-secondary: #3596CE;
    --color-accent: #0076B9;
    --color-light: #C0DEEF;
    --color-bg: #EEF8FF;
    --color-success: #13824c;
    --color-offer: #d9534f;
    --color-disabled: #a7b4c2;
    --color-thumb-hover: #4589c6;
    --color-thumb-active: #1f5d8f;
    --layout-max-width: 1320px;
    --layout-side-padding: 1.5rem;

    /* Neutros y textos */
    --color-white: #fff;
    --color-text: #333;
    --color-text-secondary: #4a5460;
    --color-text-muted: #3f4a59;
    --color-muted: #6b7280;
    --color-muted-mid: #9aa6b2;
    --color-muted-strong: #7a8ca0;
    --color-gray-500: #777;

    /* Bordes y fondos neutros */
    --color-border: #d7e3ef;
    --color-border-soft: #edf2f7;
    --color-border-alt: #e5e7eb;
    --color-border-muted: #e4e7eb;
    --color-border-weak: #dfe3eb;
    --color-border-blue: #e9f0f7;
    --color-border-bright: #d7e6f3;
    --color-border-brighter: #d7e7f5;
    --color-surface: #f8f9fa;
    --color-surface-muted: #f3f4f6;
    --color-surface-neutral: #f0f4f8;
    --color-surface-soft: #f8fafc;
    --color-surface-blue: #f7fbff;
    --color-surface-blue-2: #f8fbff;
    --color-surface-pale: #e8f3ff;
    --color-border-foam: #e3e8ee;

    /* Estados */
    --color-success-strong: #0f7f46;
    --color-success-hover: #1eb85a;
    --color-danger: var(--color-offer);
    --color-whatsapp: #25D366;
}

/*ESTILOS BASE */
body {
    background-color: var(--color-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

/* === Botones principales (override bootstrap) === */
.btn-primary {
    background: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 6px 12px rgba(0, 39, 62, 0.18);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 8px 14px rgba(53, 150, 206, 0.24);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    box-shadow: none;
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--color-disabled) !important;
    border-color: var(--color-disabled) !important;
    box-shadow: none;
}

/* ================= HEADER ================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

header.bg-light {
    background-color: var(--color-light) !important;
}

header.scrolled {
    background-color: rgba(192, 222, 239, 0.85) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    background-color: transparent !important;
    box-shadow: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-primary) !important;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    font-size: 2rem;
    font-weight: 700;
  color: var(--color-danger);
    letter-spacing: 0.5px;
    line-height: 1;
}

.navbar-nav .nav-item {
    margin: 0 6px;
}

.navbar .container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--layout-side-padding);
}

.nav-link {
    color: var(--color-primary) !important;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
}

.nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

.nav-link:active {
    transform: scale(0.97);
}

/* ================= BUSCADOR ================= */
.search-form {
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.search-icon {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-right: 8px;
    opacity: 0.85;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.95rem;
    width: 200px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--color-gray-500);
    opacity: 0.8;
}

.search-input:focus {
    width: 240px;
}

.search-form:focus-within .search-icon {
  color: var(--color-secondary);
  opacity: 1;
}

/* ========== BÚSQUEDA / SPOTLIGHT ========== */
.search-wrapper {
  position: relative;
  width: auto;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.search-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: var(--color-surface-muted);
}

.search-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-body {
  min-width: 0;
}

.search-title {
  font-size: 14px;
  margin: 0 0 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.search-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.search-price {
  font-size: 12px;
  color: var(--color-thumb-hover);
  font-weight: 600;
}

.search-empty {
  padding: 12px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

/* Modal tipo spotlight */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 2000;
  overflow-y: auto;
}

.search-modal {
  background: var(--color-white);
  border-radius: 14px;
  width: min(1100px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.search-modal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-alt);
}

.search-modal-header input {
  border: 1px solid var(--color-border-alt);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  width: 100%;
  outline: none;
}

.search-close-btn {
  width: auto;
  background: var(--color-light) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-light) !important;
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.search-close-btn:hover {
  background: var(--color-light) !important;
  color: var(--color-primary) !important;
}

.search-modal-results {
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px;
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.search-result-card {
  min-height: auto;
  display: flex;
  flex-direction: row !important; /* fuerza layout horizontal sobre p-card */
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
}

.search-result-card .p-thumb {
  height: 70px;
  width: 90px;
  flex: 0 0 90px;
  border-radius: 10px;
}

.search-result-card .p-body {
  padding: 10px;
  gap: 0.15rem;
  flex: 1;
}

.search-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-result-card .p-cta {
  width: auto;
  padding: 6px 12px;
}
/* ====== FIN BÚSQUEDA / SPOTLIGHT ====== */

@media (max-width: 720px) {
  .search-modal-results {
    grid-template-columns: 1fr;
  }
}

.modal-open {
  overflow: hidden;
}


/* ================= FOOTER ================= */
footer.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: none;
  box-shadow: none;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
}

.footer .col-md-4 {
  flex: 1 1 30%;
  min-width: 260px;
}

.footer .brand-footer {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer .brand-footer img {
  height: 55px;
  margin-right: 10px;
}

.footer .brand-footer h5 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-light);
  margin: 0;
}

.footer p {
  font-size: 0.95rem;
  color: var(--color-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer h6 {
  color: var(--color-light);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  font-size: 1.3rem;
}

.footer h6::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.footer-link {
  color: var(--color-light);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--color-secondary);
  transform: translateX(4px);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-light);
  color: var(--color-primary);
  border-radius: 10px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-light);
  margin-top: 1rem;
  max-width: var(--layout-max-width);
  padding: 0 var(--layout-side-padding);
  margin-left: auto;
  margin-right: auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .navbar-nav .nav-item {
    margin: 8px 0;
  }

  .navbar-nav .nav-link {
    display: block;
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 10px;
  }

  .search-form {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .search-input {
    width: 100%;
  }

  /* Footer en 2 columnas */
  .footer .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    text-align: left;
    padding: 0 1rem;
  }

  .footer .brand-footer {
    justify-content: flex-start;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .footer .container {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 1rem;
  }

  .footer .brand-footer {
    justify-content: flex-start;
  }

  .footer h6::after {
    left: 0;
    transform: none;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

/* ================= INICIO ================= */

/* ====== CARRUSEL PRINCIPAL ===== */
#hero-carousel {
  margin-top: 0;
}

/* NO forzar display aquí: Bootstrap lo maneja */
#hero-carousel .carousel-item {
  background-color: var(--color-primary); /* “barras” de fondo si hace falta */
  overflow: hidden;
}

/* ESCRITORIO (llena y puede recortar bordes) */
#hero-carousel .carousel-item img {
  width: 100%;
  height: 60vh;                /* alto cómodo en desktop */
  object-fit: cover;           /* puede recortar */
  border-radius: 0 0 10px 10px;
  display: block;
}

/* TABLET: NO recortes, respeta proporción 1920x620 */
@media (max-width: 992px) {
  #hero-carousel .carousel-item img {
    height: auto;              /* clave para no recortar */
    max-height: none;
    object-fit: contain;       /* muestra entera la imagen */
    aspect-ratio: 1920 / 620;  /* mantiene proporción */
  }
}

/* MÓVIL: igual que tablet, sin recortes */
@media (max-width: 576px) {
  #hero-carousel .carousel-item img {
    height: auto;
    max-height: none;
    object-fit: contain;
    aspect-ratio: 1920 / 620;
  }
}

/* Flechas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 39, 62, 0.7);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-size: 60%;
}

/* Puntos */
.carousel-indicators [data-bs-target] {
  background-color: var(--color-secondary);
}
.carousel-indicators .active {
  background-color: var(--color-accent);
}


/* ================= card de productos ================= */

/* ============ Secciones ============ */
.section-title {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: .3px;
}

.section-sub {
  color: var(--color-white)f;
  font-size: .95rem;
}

.see-all {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.see-all:hover {
  text-decoration: underline;
}

/* ============ Card de producto ============ */
.p-card {
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .10);
}

.p-card--offer .p-thumb {
  position: relative;
}

/* BEGIN: etiqueta de oferta */
.offer-ribbon {
  position: absolute;
  top: 10px;
  left: -12px;
  background: linear-gradient(135deg, var(--color-danger), var(--color-danger));
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 16px;
  transform: rotate(-12deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
}
/* END: etiqueta de oferta */

.p-thumb {
  width: 100%;
  height: 180px;      
  background: var(--color-white); /* color de fondo de la imagen*/
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* ← NADA se corta */
  object-position: center;
  padding: 0;             /* ← IMPORTANTE */
}

/* Cuerpo */
.p-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.p-name {
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
  font-weight: 600;
}
.p-name a {
  color: var(--color-primary);
  text-decoration: none;
}
.p-name a:hover {
  color: var(--color-accent);
}

/* Precio */
.p-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  margin-top: .3rem;
  margin-bottom: .4rem;
}
.p-now {
  order: 2;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.08rem;
}
.p-old {
  order: 1;
  color: var(--color-muted-mid);
  text-decoration: line-through;
  font-size: .88rem;
}
.p-off {
  background: rgba(0,118,185,0.08);
  color: var(--color-primary);
  font-weight: 700;
  font-size: .78rem;
  padding: .15rem .4rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Botón */
.p-cta {
  width: 100%;
  border-radius: 10px;
  background: var(--color-primary);
  border: none;
}
.p-cta:hover {
  background: var(--color-secondary);
}

/* Título con línea inferior (como la captura) */
.section-title.underline {
  position: relative;
  color: var(--color-primary);              /* texto claro si usas fondo oscuro; ajusta si es claro */
}
.section-title.underline::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: .35rem;
  border-radius: 6px;
  background: var(--color-secondary);
}


/* Grid spacing */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

.product-grid > .product-card {
  width: 100%;
}

/* ================= CATEGORÍAS ================= */
.category-sidebar {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
}
.cat-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.category-list { list-style: none; margin: 0; padding: 0; }
.category-item { margin-bottom: 0.5rem; border-radius: 10px; overflow: hidden; }

.category-toggle {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  font-weight: 600;
  color: var(--color-primary);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.category-toggle:hover {
  background-color: var(--color-light);
  color: var(--color-accent);
}
.category-item.active > .category-toggle {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.category-item.active > .category-toggle i {
  transform: rotate(180deg);
}
.subcategory-list {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.category-item.active .subcategory-list {
  height: auto;
  opacity: 1;
  margin-top: 0.4rem;
}
.subcategory-list a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  padding: 6px 10px;
  display: block;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.subcategory-list a:hover {
  background-color: var(--color-light);
  color: var(--color-accent);
}

/* ================= OFERTAS ================= */
.oferta-filter {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.oferta-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.oferta-filter-item {
  display: flex;
}
.oferta-filter-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
/* Caja del check */
.oferta-filter-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--color-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Estilo del icono */
.oferta-filter-check i {
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Cuando est� activo */
.oferta-filter-item.active .oferta-filter-check {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Mostrar el ícono Cuando est� activo */
.oferta-filter-item.active .oferta-filter-check i {
  opacity: 1;
}

.oferta-filter-item.active .oferta-filter-link {
  color: var(--color-secondary);
}
.oferta-filter-item:hover .oferta-filter-link {
  color: var(--color-secondary);
}



/* ================= SORT SELECT OFERTAS ================= */
.sort-select-wrapper {
  position: relative;
}
.brand-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
}
.brand-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sort-button {
  background: var(--color-white);
  border: 1px solid var(--color-border-weak);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sort-button:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.sort-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: none;
  z-index: 10;
  min-width: 220px;
}
.sort-options.show { display: block; }
.sort-options li {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 2px 8px;
}
.sort-options li i {
  color: var(--color-accent);
  opacity: 0;
  font-size: 1.1rem;
}
.sort-options li:hover {
  background-color: var(--color-surface-neutral);
  color: var(--color-primary);
}
.sort-options li.active i {
  opacity: 1;
  color: var(--color-accent);
}
.sort-options li.active {
  background-color: var(--color-bg);
  color: var(--color-primary);
  box-shadow: none;
}

.filters-bar {
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }
  .filters-bar .section-title {
    width: 100%;
  }
  .filters-bar .brand-filter-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .filters-bar .brand-label {
    margin: 0;
    text-align: center;
    width: 100%;
  }
  .filters-bar .sort-select-wrapper {
    width: 100%;
  }
  .filters-bar .sort-button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1.05rem;
  }
  .filters-bar .sort-options {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
  .filters-bar .brand-filter-form + .brand-filter-form {
    margin-top: -0.15rem;
  }
}




/* ================= CONTACTO ================= */

.contacto-section {
  max-width: 1300px;
  margin: 0 auto;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* CARD */
.contact-card {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;

  /* Línea separadora superior */
  border-top: 5px solid var(--color-border-foam);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

/* MAPA */
.contact-card__map {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.contact-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* BODY */
.contact-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* LISTA CON LÍNEAS */
.contact-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-muted);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-top: 2px;
}

/* WHATSAPP */
.contact-card__whatsapp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem;
}

.contact-card__whatsapp .btn {
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

/* Botón WhatsApp (uso general) */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white) !important;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--color-success-hover);
  color: var(--color-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp.btn-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.contact-card__whatsapp .btn i {
  font-size: 1.2rem;
}

.contact-card__whatsapp.wa-cols-1 {
  grid-template-columns: 1fr;
}

.contact-card__whatsapp.wa-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card__whatsapp.wa-last-span > *:last-child {
  grid-column: span 2;
}



/* ================= CONOCÉNOS ================= */
.conocenos-hero {
  position: relative;
  background: linear-gradient(0deg, var(--color-secondary) 0%, var(--color-primary) 85%);
  color: var(--color-white);
  padding: 80px 0 150px;
  overflow: hidden;
}

.conocenos-hero--img {
  background: linear-gradient(0deg, var(--color-secondary) 0%, var(--color-primary) 85%);
}

.conocenos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 30%),
              radial-gradient(circle at 50% 80%, rgba(255,255,255,0.06), transparent 28%);
}

.conocenos-hero .hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.conocenos-hero .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.conocenos-hero .hero__content {
  position: relative;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  z-index: 1;
}

.conocenos-hero .hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 10px;
}

.conocenos-hero .hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.conocenos-hero .hero__tagline {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.92;
}

.conocenos-hero .hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: var(--color-bg);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

.conocenos-quote {
  margin-top: 10px;
  margin-bottom: 50px;
}

.quote-card {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.quote-card__marks {
  font-size: 2.8rem;
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1;
}

.quote-card__text p {
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  color: var(--color-text-muted);
}

.quote-card__text > * {
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  color: var(--color-text-muted);
}

.quote-card__text > *:last-child {
  margin-bottom: 0;
}

.quote-card__text p:last-child {
  margin-bottom: 0;
}

.conocenos-mision-vision {
  padding: 10px 0 70px;
}

.conocenos-highlight {
  padding: 20px 0 40px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.highlight-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,118,185,0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.highlight-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 700;
}

.highlight-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.mv-card {
  background: var(--color-white);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mv-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,118,185,0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
}

.mv-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.mv-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-secondary);
}

.mv-copy {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.mv-copy p:last-child {
  margin-bottom: 0;
}

.mv-card--brand {
  background: linear-gradient(135deg, var(--color-surface-blue-2), var(--color-surface-pale));
  border: 1px solid var(--color-border-brighter);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.mv-brand-circle {
  width: 90px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 auto 10px;
}

.mv-brand-note {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

@media (max-width: 992px) {
  .conocenos-hero {
    padding: 60px 0 90px;
  }
  .conocenos-hero .hero__title {
    font-size: 2rem;
  }
  .conocenos-hero .hero__wave {
    height: 80px;
  }
  .conocenos-hero .hero__content {
    padding: 0 16px;
  }
  .quote-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quote-card__marks {
    display: none;
  }
}

@media (max-width: 576px) {
  .conocenos-hero {
    padding: 52px 0 70px;
  }
  .conocenos-hero .hero__title {
    font-size: 1.7rem;
  }
  .conocenos-hero .hero__tagline {
    font-size: 1rem;
    padding: 0 8px;
  }
  .conocenos-hero .hero__wave {
    height: 60px;
    border-top-left-radius: 65% 90%;
    border-top-right-radius: 65% 90%;
  }
  .conocenos-quote {
    margin-top: 18px;
    margin-bottom: 34px;
  }
  .quote-card {
    padding: 22px 18px;
  }
  .mv-card {
    padding: 18px;
  }
}


/* ================= PRODUCTO DETALLE ================= */

.product-page {
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.product-page .row {
  margin: 0;
}

.product-surface {
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-hero .card-body {
  padding: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-primary);
  box-shadow: 0 6px 12px rgba(0, 39, 62, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(53, 150, 206, 0.24);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-image-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.product-thumbs--strip {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.product-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--color-white);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.product-thumb:hover {
  border-color: var(--color-secondary);
}

.product-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,118,185,0.15);
}

.product-title {
  color: var(--color-primary);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-lead {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  max-width: 90%;
}

.price-tag {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.stock-chip--ok {
  background: rgba(24, 160, 88, 0.12);
  color: var(--color-success);
  border-color: rgba(24, 160, 88, 0.25);
}

.stock-chip--empty {
  background: rgba(217, 83, 79, 0.1);
  color: var(--color-danger);
  border-color: rgba(217, 83, 79, 0.25);
}

.brand-pill {
  background: rgba(0,118,185,0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0,118,185,0.2);
}

.type-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--color-secondary);
  color: var(--color-secondary);
  font-weight: 600;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.meta-tile {
  background: var(--color-surface-blue);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.meta-label {
  font-size: 0.85rem;
  color: var(--color-muted-strong);
}

.meta-value {
  display: block;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.meta-sub {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.cta-slab {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  padding: 16px 18px;
  border-radius: 14px;
}

.cta-slab .text-muted {
  color: rgba(255,255,255,0.7) !important;
}

.spec-list {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-blue);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
}

.spec-value {
  color: var(--color-primary);
  font-weight: 700;
  text-align: right;
}

.stock-table thead th {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.stock-table tbody td {
  border-color: var(--color-border-soft);
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.stock-pill--ok {
  background: rgba(37, 211, 102, 0.12);
  color: var(--color-success-strong);
  border-color: rgba(37, 211, 102, 0.25);
}

.stock-pill--empty {
  background: rgba(217, 83, 79, 0.1);
  color: var(--color-danger);
  border-color: rgba(217, 83, 79, 0.25);
}

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.cta-icon {
  font-size: 1.4rem;
}

.cta-text p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .product-main-image {
    min-height: 280px;
  }
  .product-title {
    font-size: 1.45rem;
  }
  .price-tag {
    font-size: 1.55rem;
  }
}

@media (max-width: 576px) {
  .product-hero .card-body {
    padding: 18px;
  }
  .product-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
  .product-page {
    padding-top: 10px;
  }
}

.old-price span {
  text-decoration: line-through;
  color: var(--color-muted-strong);
  font-weight: 700;
}

.savings-text {
  color: var(--color-success);
  font-weight: 700;
}

.badge-oferta {
  background: var(--color-offer);
  color: var(--color-white);
}

.spec-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-bright);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.spec-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.stock-table thead th {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.stock-table tbody td {
  border-color: var(--color-border-soft);
}
