@media screen and (max-width: 600px) {
  ul.products::before,
  ul.products::after {
    display: none !important;
    content: none !important;
  }
}
@media screen and (max-width: 600px) {
  .products.columns-3 {
    grid-template-columns: 1fr 1fr !important;
    display: grid !important;
    gap: 1rem !important;
    padding-left: 0 !important;
  }
  .products.columns-3 > .product {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
@media screen and (max-width: 600px) {
  .area-productos-contenido .productos .producto:nth-last-child(1):nth-child(odd),
  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto:nth-last-child(1):nth-child(odd),
  .woocommerce .area-productos-contenido .productos .producto:nth-last-child(1):nth-child(odd),
  .woocommerce .products .product:nth-last-child(1):nth-child(odd),
  .woocommerce-page .products .product:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / span 1 !important;
    justify-self: start !important;
  }
}
@media screen and (max-width: 600px) {
  .area-productos-contenido .productos,
  .contenedor-productos-con-filtros .area-productos-contenido .productos,
  .woocommerce .area-productos-contenido .productos,
  .woocommerce .products,
  .woocommerce-page .products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    grid-auto-flow: dense !important;
  }
  .area-productos-contenido .productos .producto,
  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
  .woocommerce .area-productos-contenido .productos .producto,
  .woocommerce .products .product,
  .woocommerce-page .products .product {
    width: 100% !important;
    margin: 0 !important;
  }
}
@media screen and (max-width: 600px) {
  .area-productos-contenido .productos,
  .contenedor-productos-con-filtros .area-productos-contenido .productos,
  .woocommerce .area-productos-contenido .productos,
  .woocommerce .products,
  .woocommerce-page .products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .area-productos-contenido .productos .producto,
  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
  .woocommerce .area-productos-contenido .productos .producto,
  .woocommerce .products .product,
  .woocommerce-page .products .product {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
@media screen and (max-width: 600px) {
  .area-productos-contenido .productos {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .area-productos-contenido .productos .producto {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
@media screen and (max-width: 600px) {
  .pagination .page-numbers,
  .woocommerce-pagination .page-numbers {
    display: none !important;
  }
  .pagination .page-numbers.current,
  .pagination .page-numbers.prev,
  .pagination .page-numbers.next,
  .pagination .page-numbers:last-child,
  .pagination .page-numbers.current + .page-numbers,
  .pagination .page-numbers.current + .page-numbers + .page-numbers,
  .woocommerce-pagination .page-numbers.current,
  .woocommerce-pagination .page-numbers.prev,
  .woocommerce-pagination .page-numbers.next,
  .woocommerce-pagination .page-numbers:last-child,
  .woocommerce-pagination .page-numbers.current + .page-numbers,
  .woocommerce-pagination .page-numbers.current + .page-numbers + .page-numbers {
    display: inline-block !important;
  }
}
@media screen and (min-width: 901px) {
  .breadcrumb-filtros {
    display: none !important;
  }
}
@media screen and (max-width: 600px) {
  .pagination .page-numbers,
  .woocommerce-pagination .page-numbers {
    display: none !important;
  }
  .pagination .page-numbers.current,
  .pagination .page-numbers.next,
  .pagination .page-numbers:first-child,
  .pagination .page-numbers:last-child,
  .woocommerce-pagination .page-numbers.current,
  .woocommerce-pagination .page-numbers.prev,
  .woocommerce-pagination .page-numbers.next,
  .woocommerce-pagination .page-numbers:first-child,
  .woocommerce-pagination .page-numbers:last-child {
    display: inline-block !important;
    height: auto !important;
    min-height: 2.8em !important;
    max-height: none !important;
  }
}
@media screen and (max-width: 600px) {
  .pagination,
  .woocommerce-pagination {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 1em !important;
    text-align: center;
    margin: 1.5rem 0 1rem 0;
  }
}
@media screen and (max-width: 900px) {
    .breadcrumb-filtros {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      background: #f3f6fa;
      color: #404F90;
      border: none;
      padding: 1rem 1.2rem 1rem 1.2rem;
      font-size: 1.1rem;
      font-weight: bold;
      margin-bottom: 1rem;
      cursor: pointer;
      border-radius: 8px;
      box-shadow: 0 1px 4px rgba(64,79,144,0.06);
      text-decoration: none;
      transition: background 0.2s;
    }
    .breadcrumb-filtros:hover {
      background: #e9eef5;
    }
    .breadcrumb-flecha {
      display: flex;
      align-items: center;
      color: #404F90;
      font-size: 1.2em;
      transition: transform 0.3s;
    }
    .breadcrumb-flecha-svg {
      transition: transform 0.3s;
    }
    .breadcrumb-flecha-svg.abierta {
      transform: rotate(90deg);
    }
    .breadcrumb-flecha {
      display: flex;
      align-items: center;
      color: #404F90;
      font-size: 1.2em;
    }
    .breadcrumb-texto {
      color: #404F90;
      font-size: 1.1rem;
      font-weight: bold;
      letter-spacing: 0.01em;
    }
  .sidebar-filtros .filtros-wrapper {
    display: none;
  }
  .sidebar-filtros.filtros-abiertos .filtros-wrapper {
    display: block;
    animation: fadeInFiltros 0.3s;
  }
  @keyframes fadeInFiltros {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.titulo-marcas {
  text-transform: uppercase;
}
/* Fondos alternados para filas de productos (solo en Home) */
/* Keep these backgrounds scoped to the front page to avoid affecting other templates */
body.home .fondo-blanco {
  background: #f9f9f9; /* gris claro, no blanco puro */
}
body.home .fondo-gris {
  background: #ededed; /* color usado actualmente */
}

/* Make product carousel rows full-bleed (a lo largo) only on the home page */
body.home .contenedor-filas-productos .fila-productos {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding-left: calc((100vw - 100%) / 2);
  padding-right: calc((100vw - 100%) / 2);
  box-sizing: border-box;
}

/* Apply alternating backgrounds across the full width */
body.home .contenedor-filas-productos .fila-productos.fondo-blanco,
body.home .contenedor-filas-productos .fila-productos:nth-child(odd) {
  background: #f9f9f9;
}
body.home .contenedor-filas-productos .fila-productos.fondo-gris,
body.home .contenedor-filas-productos .fila-productos:nth-child(even) {
  background: #ededed;
}
@media screen and (max-width: 768px) {
  .carousel-marcas {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
  }
  .contenedor-filas-productos .fila-productos {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 3.2em !important;
    max-height: none !important;
    line-height: 1.2 !important;
    padding-bottom: 0.5em !important;
    margin-left: calc(-1 * (100vw - 100%) / 2) !important;
    margin-right: calc(-1 * (100vw - 100%) / 2) !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .contenedor-filas-productos .fila-productos .productos {
    width: 100vw !important;
    max-width: 100vw !important;
    /* Mantener margen lateral en mobile para que las cards no queden pegadas al borde */
    padding: 0 clamp(12px, 4vw, 16px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .producto {
    min-height: 410px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .producto .precios {
    margin-top: auto !important;
  }

  .productos .slick-arrow {
    display: none !important;
  }

  /* Ocultar flechas del banner principal en móvil */
  .slider-principal .slick-prev,
  .slider-principal .slick-next,
  .slider-principal .slick-arrow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Extra specificity: if Slick has initialized, ensure arrows are hidden for this slider */
  .slider-principal.slick-initialized .slick-prev,
  .slider-principal.slick-initialized .slick-next,
  .slider-principal.slick-initialized .slick-arrow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}
@media screen and (max-width: 768px) {
  .carousel-marcas .slick-arrow {
    display: none !important;
  }
}
/* Marca del producto en negrita */
.producto .marca,
.producto .product-brand {
  font-weight: bold !important;
  font-size: 0.95rem;
  margin: 0.4rem 0 0.2rem 0;
  text-align: center;
  line-height: 1.2;
}

/* Marca del producto arriba del título */
.producto .marca-producto {
  font-weight: 700 !important;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
  margin: 0.4rem 0 0.15rem 0;
  line-height: 1.2;
}

/* Precio de producto más grande y en negrita */
.producto .precio,
.producto .product-price {
  font-size: 24px !important;
  font-weight: bold !important;
  color: black;
  margin: 0.3rem 0 0.5rem 0;
  text-align: left !important;
  line-height: 1;
}

/* --- Cards Unificadas --- */
.product-card {
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
}

.product-card .add-to-cart-btn:hover {
  background: #e53935;
}

/* Ajuste de border-radius para consistencia */
.product-card,
.product-card .add-to-cart-btn {
  border-radius: 16px;
}

/* Carrusel principal */
.slider-principal {
  max-width: 1400px;
  width: 90%;
  margin: 1rem auto 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

.slider-principal .slick-list,
.slider-principal .slick-track {
  border-radius: 15px;
}

.slider-principal .slide {
  border-radius: 15px;
}

.producto .acciones .btn-agregar-carrito a:hover {
  background-color: #263366 !important;
}

/*
    Theme Name: Centro bulonero
    Template: storefront  
*/
/* Variables */
html,
body {
  margin: 0;
  .beneficio-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
  }
  padding: 0;
  overflow-x: hidden;
  background-color: #ebebeb !important;
}

body {
  background-color: #ebebeb !important;
}

h1 {
  padding: 0;
  font-size: 1.2rem;
}

h2 {
  padding: 0;
  font-size: 1.1rem;
}

h3 {
  padding: 0;
  font-size: 1.09rem;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #404F90;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  margin-top: 1rem;
  color: #404F90;
  font-size: 1rem;
  font-weight: 500;
}

/* Estilos generales */
.contenedor {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.archive,
.pagina-busqueda,
.woocommerce-page {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

#primary {
  width: 100%;
}

.site-content {
  min-height: 650px;
  margin-top: 0;
  margin-bottom: 20px;
}

a {
  outline: none !important;
  text-decoration: none !important;
  color: black;
}

button {
  border-radius: 15px !important;
}

button:focus {
  outline-color: none !important;
  outline: 0px !important;
}

input {
  border-bottom: 2px solid #e0e0e0 !important;
  padding: 10px 40px 10px 16px !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 20px !important;
}

input:focus {
  outline-color: none !important;
  outline: 0px !important;
}

textarea {
  border-radius: 15px !important;
  border-bottom: 3px solid #404F90 !important;
}

textarea:focus {
  outline-color: none !important;
  outline: 0px !important;
}

select {
  border-radius: 0 !important;
  border-bottom: none !important;
  border: 1px solid #ddd !important;
}

select:focus {
  outline-color: none !important;
  outline: 0px !important;
  border-color: #404F90 !important;
}

/* Thank-you toast overlay */
.thankyou-toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

.thankyou-toast-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.thankyou-toast {
  background: #ffffff;
  padding: 2rem;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.35);
}

.thankyou-toast__title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #404f90;
}

.thankyou-toast__body {
  margin: 0 0 1.25rem;
  color: #333333;
  font-size: 0.95rem;
}

.thankyou-toast__close {
  border: none;
  background: #404f90;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.thankyou-toast__close:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

/* Cross-sell block on thank-you page */
.thankyou-suggestions {
  margin: 3rem auto 2rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
}

.thankyou-suggestions .section-heading {
  margin-bottom: 1.5rem;
}

.thankyou-suggestions h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #2d2d2d;
}

.thankyou-suggestions p {
  margin: 0.25rem 0 0;
  color: #555;
}

.thankyou-suggestions .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.suggested-product {
  border: 1px solid #e5e5f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggested-product a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.suggested-product img {
  max-width: 100%;
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.suggested-product h4 {
  margin: 0.8rem 0 0.25rem;
  font-size: 1rem;
}

.suggested-product .price {
  font-weight: 700;
  color: #404f90;
}

.suggested-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 25px rgba(64, 79, 144, 0.15);
}

/* Slick slider */
.slick-dots button {
  background-color: transparent !important;
}

/* Loader */
.loader {
  margin-left: 45%;
  width: 30px;
  height: 30px;
  border: 5px solid #FFF;
  border-bottom-color: #404F90;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  display: none;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Ensure product title (h4.nombre-producto) uses the smaller size and clamps to 2 lines
   This overrides other theme files that set a larger `font-size` on `.nombre-producto`. */
.producto h4.nombre-producto,
.producto .nombre-producto,
.producto .product-title,
.product-card .product-title {
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  text-align: left !important;
  max-height: 2.6em !important;
  height: auto !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  line-clamp: 2 !important;
  white-space: normal !important;
  color: #000000 !important;
}

/* Force brand name bold (some templates use .marca or .product-brand) */
.producto .marca,
.producto .product-brand,
.producto .marca *,
.producto .product-brand * {
  font-weight: 700 !important;
}

/* Marca visible en la card (nombre de la marca sobre el título) */
/* Marca del producto en negrita */
.producto .marca,
.producto .product-brand {
  font-weight: bold !important;
  font-size: 0.95rem;
  margin: 0.4rem 0 0.2rem 0;
  text-align: center;
  line-height: 1.2;
}

/* Paginacion */
.page-numbers {
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  font-weight: bold;
  margin: 10px 0px;
  cursor: pointer;
}

.current {
  background-color: #404F90;
  color: white;
}

#encabezado-descuentos {
  width: 100vw;
  background-color: #404F90;
  text-align: center;
  color: white;
  font-weight: bold;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

@media screen and (min-width: 769px) {
  #encabezado-descuentos {
    position: fixed;
    top: 0;
    z-index: 900;
  }
}

  .beneficio-medios-pago .beneficio-texto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
@media screen and (max-width: 500px) {
  #encabezado-descuentos {
    font-size: 0.8rem;
    height: 50px;
  }
}

#masthead {
  padding: 0px;
  margin: 0px;
  width: 100vw;
  position: fixed !important;
  top: 31px !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 1000;
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

@media screen and (min-width: 769px) {
  .site-content {
    padding-top: 150px;
  }
}

@media screen and (max-width: 768px) {
  .site-content {
    margin-top: 100px;
  }
}

/* Banner superior de envíos */
.top-banner {
  background-color: #404F90;
  width: 100%;
  padding: 6px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.top-banner.visible {
  opacity: 1;
}

.top-banner-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.top-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-banner-left .social-icon {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s;
  text-decoration: none;
}

.top-banner-left .social-icon:hover {
  opacity: 0.7;
}

.top-banner-center {
  flex: 1;
  text-align: center;
}

.top-banner-right {
  display: flex;
  align-items: center;
}

.top-banner-right .sobre-nosotros-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-size: 13px;
  font-weight: 400 !important;
  transition: opacity 0.2s;
}

.top-banner-right .sobre-nosotros-link:hover {
  opacity: 0.7;
}

#masthead .contenedor-masthead {
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 30px;
}

.product-card .product-title {
  font-size: 0.78rem;
  color: #444;
}




/* Contenedor derecha - Ya no se usa */
#masthead .contenedor-derecha {
  display: none;
}

/* Nivel superior - Ya no se usa */
#masthead .nivel-superior {
  display: none;
}

/* Nivel inferior - Ya no se usa */
#masthead .nivel-inferior {
  display: none;
}

/* Cart icon badge (item count) */
#masthead .contenedor-masthead-inner .iconos .carrito {
  position: relative;
}

#masthead .contenedor-masthead-inner .iconos .carrito .count,
#masthead .contenedor-masthead-inner .iconos .carrito .cart-count,
#masthead .contenedor-masthead-inner .iconos .carrito #cantidad-productos-carrito {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #FE0000;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
}

@media screen and (max-width: 768px) {
  #masthead .contenedor-masthead-inner {
    width: 90%;
  }
}
  .beneficio-texto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

#masthead .contenedor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  flex-shrink: 0;
}

@media screen and (max-width: 950px) {
  #masthead .contenedor-logo {
    width: 150px;
  }
}

#masthead .contenedor-logo .anchor-logo {
  width: 100%;
  height: 50px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 950px) {
  #masthead .contenedor-logo .anchor-logo {
    height: 60px;
  }
}

#masthead .contenedor-logo .anchor-logo .logo {
  width: 100%;
  height: 60px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#masthead .buscador {
  flex: 1;
  max-width: 100%;
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 12px;
  right: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  #search-suggestions,
  .search-suggestions {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px;
  }
}

.suggestions-title {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background-color: #f8f9fa;
}

.suggestion-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1rem;
  border: 1px solid #e0e0e0;
}

.suggestion-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.suggestion-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.suggestion-price {
  font-size: 0.85rem;
  color: #404F90;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  #masthead .buscador {
    max-width: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .search-suggestions {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }

  .search-suggestion-item {
    padding: 1rem;
  }
}

#masthead .contenedor-masthead-inner .buscador .inputs {
  position: relative;
  display: flex;
  align-items: center;
}

#masthead .contenedor-masthead-inner .buscador .inputs input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 14px;
  outline: none;
  background-color: #ffffff !important;
}

#masthead .contenedor-masthead-inner .buscador .inputs input:focus {
  border-color: #404F90 !important;
  box-shadow: 0 0 0 2px rgba(64, 79, 144, 0.1) !important;
}

@media screen and (max-width: 950px) {
  #masthead .contenedor-masthead-inner .buscador {
    width: 100%;
  }
}

#masthead .contenedor-masthead-inner .buscador #contenedor-checkbox {
  display: flex;
  justify-content: center;
}

#masthead .contenedor-masthead-inner .buscador #contenedor-checkbox input {
  margin: 0px 5px;
}

#masthead .buscador .inputs {
  display: flex;
  align-items: center;
  position: relative;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  height: 40px;
}

#masthead .buscador .inputs:focus-within {
  background-color: white;
  border-color: #404F90;
  box-shadow: 0 0 0 3px rgba(64, 79, 144, 0.1);
}

#masthead .contenedor-masthead-inner .buscador .inputs {
  display: flex;
  align-items: center;
}

#masthead .buscador {
  flex: 1;
  max-width: 800px;
  position: relative;
  margin-right: auto;
}

#masthead .buscador .inputs #buscador-productos {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  box-sizing: border-box;
}

#masthead .buscador .inputs #buscador-productos:focus {
  outline: none;
}

/* Separador vertical */
#masthead .buscador .search-divider {
  width: 1px;
  height: 24px;
  background-color: #e0e0e0;
  margin: 0 8px;
}

/* Botón de lupa */
#masthead .buscador .search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #404F90;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

#masthead .buscador .search-icon-btn:hover {
  opacity: 0.7;
}

#masthead .buscador .search-icon-btn svg {
  display: block;
}

#masthead .buscador-old .inputs #buscador-productos {
  width: calc(100% - 24px);
  margin-right: 0px;
  border-radius: 0;
  outline: none;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 36px 10px 12px;
  background-image: url('../assets/magnify.svg');
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 18px;
  box-sizing: border-box;
}

#masthead .iconos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: white;
  flex-shrink: 0;
}

@media screen and (max-width: 950px) {
  #masthead .iconos {
    gap: 12px;
  }
}

#masthead .iconos .carrito,
#masthead .iconos .peril {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  background-repeat: no-repeat;
  position: relative;
}

/* Aplicar filtro solo al ícono usando pseudo-elemento */
#masthead .contenedor-masthead-inner .iconos .carrito::before,
#masthead .contenedor-masthead-inner .iconos .peril::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0);
  z-index: 1;
}

/* Cart icon badge (item count) - FORZAR ESTILOS */
.carrito {
  position: relative !important;
}

.cantidad-productos,
#cantidad-productos-carrito {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background-color: #FE0000 !important;
  background: #FE0000 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  display: block !important;
  min-width: 20px !important;
  height: auto !important;
  text-align: center !important;
  z-index: 1000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  filter: none !important;
}

#masthead .iconos .carrito {
  position: relative !important;
}

#masthead .contenedor-masthead-inner .iconos .carrito .count,
#masthead .contenedor-masthead-inner .iconos .carrito .cart-count,
#masthead .contenedor-masthead-inner .iconos .carrito #cantidad-productos-carrito,
#masthead .contenedor-masthead-inner .iconos .carrito .cantidad-productos {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: #FE0000 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  display: block !important;
  min-width: 20px !important;
  text-align: center !important;
  z-index: 1000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Botón Categorías (antiguo con fondo) - oculto */
.header-categorias-btn {
  display: none;
}

/* Icono de categorías - hamburguesa azul sin fondo */
.header-categorias-icon {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  transition: all 0.2s;
  border-radius: 8px;
}

.header-categorias-icon:hover {
  background-color: rgba(64, 79, 144, 0.08);
}

.header-categorias-icon .btn-hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #404F90;
  position: relative;
}

.header-categorias-icon .btn-hamburger::before,
.header-categorias-icon .btn-hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #404F90;
  position: absolute;
  left: 0;
}

.header-categorias-icon .btn-hamburger::before {
  top: -8px;
}

.header-categorias-icon .btn-hamburger::after {
  top: 8px;
}

.btn-label {
  display: none;
}

/* Contenedor de botón Promociones */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón Promociones - Estilo secundario */
.header-promociones-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 2px solid #404F90;
  color: #404F90 !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-promociones-btn svg {
  flex-shrink: 0;
}

.header-promociones-btn:hover {
  background: #404F90 !important;
  box-shadow: 0 2px 8px rgba(64, 79, 144, 0.3);
  color: #ffffff !important;
}

.header-promociones-btn:hover .promociones-text {
  color: #ffffff !important;
}

.promociones-text {
  color: #404F90 !important;
}

.producto .acciones .btn-agregar-carrito {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}
.producto .acciones .btn-agregar-carrito a,
.producto .acciones .btn-agregar-carrito button {
  min-height: 44px;
  box-sizing: border-box;
}
/* bloque huérfano eliminado */

/* Subheader de Categorías Horizontal - OCULTO */
.subheader-categorias {
  display: none !important;
  width: 100vw;
  background-color: #404F90 !important; /* site blue */
  color: #ffffff;
  position: fixed;
  top: 96px;
  left: 0;
  z-index: 9999; /* por debajo del panel de categorías pero por encima del header */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-height: 56px;
}

@media screen and (max-width: 768px) {
  .subheader-categorias {
    position: relative;
    top: 0;
  }
  
  /* Ocultar botones de Promociones y Agroferretería en móvil */
  .header-actions {
    display: none;
  }

  /* Ocultar botón de promociones en header */
  .header-promociones-btn {
    display: none !important;
  }

  /* Ajustar contenedor del masthead en mobile */
  #masthead .contenedor-masthead {
    padding: 0 10px;
    gap: 6px;
  }

  /* Reducir tamaño del logo */
  #masthead .contenedor-logo {
    width: 90px !important;
  }

  #masthead .contenedor-logo .anchor-logo {
    height: 40px !important;
  }

  #masthead .contenedor-logo .anchor-logo .logo {
    height: 40px !important;
  }

  /* Ajustar buscador para que sea más compacto */
  #masthead .buscador {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin-right: 0;
  }

  #masthead .buscador .inputs {
    height: 36px;
    width: 100%;
    display: flex;
    overflow: hidden;
  }

  #masthead .buscador .inputs #buscador-productos {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 6px 8px;
  }

  #masthead .buscador .search-divider {
    display: none;
  }

  #masthead .buscador .search-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    padding: 6px !important;
    flex-shrink: 0;
  }

  #masthead .buscador .search-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Ajustar contenedor de iconos */
  #masthead .iconos {
    gap: 10px;
    flex-shrink: 0;
  }

  #masthead .iconos .carrito,
  #masthead .iconos .peril {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  /* Ajustar botón de categorías en móvil */
  .header-categorias-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .btn-label {
    display: none; /* Solo mostrar icono en móvil */
  }
}

.contenedor-subheader {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.subheader-bar-inner {
  /* Match header inner container sizing exactly but left-aligned */
  width: 80%;
  max-width: 1440px;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 6px 16px;
  gap: 20px;
  margin: 0 0 0 0; /* no auto centering: keep left-aligned */
  justify-content: flex-start;
  box-sizing: border-box;
  padding-left: 20px; /* align with header inner padding */
}

/* Asegurar que los botones estén centrados verticalmente dentro del subheader */
.subheader-categorias .contenedor-subheader,
.subheader-categorias .subheader-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.subheader-categorias .subheader-btn {
  align-self: center;
}

@media screen and (max-width: 768px) {
  .subheader-bar-inner {
    width: 90%;
    padding: 8px 16px;
  }
}

.subheader-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff; /* white background for Categorías button */
  border: 1px solid rgba(64,79,144,0.08);
  color: #404F90; /* site blue text */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  transition: background 0.15s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.subheader-btn:hover,
.subheader-btn:focus {
  background: #f5f7ff;
  box-shadow: 0 2px 6px rgba(64,79,144,0.06);
  outline: none;
}

.subheader-hamburger {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #404F90; /* blue hamburger lines */
  position: relative;
}
.subheader-hamburger:before,
.subheader-hamburger:after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #404F90; /* blue hamburger lines */
}
.subheader-hamburger:before { top: -6px; }
.subheader-hamburger:after { top: 6px; }

.subheader-label { text-transform: none; }
.subheader-caret { opacity: 0.9; margin-left: 0.25rem; }
.subheader-categorias.override-important {
  background-color: #404F90 !important;
  color: #ffffff !important;
  padding: 0.75rem 0 !important;
  min-height: 68px !important;
  top: 96px !important;
}

/* Extra high-specificity override in case other stylesheets (e.g. style_campo.css)
   are loaded after this file. Uses element selector + class and !important. */
html body .subheader-categorias {
  background-color: #404F90 !important;
  color: #ffffff !important;
  padding: 0.75rem 0 !important;
  min-height: 68px !important;
  top: 96px !important;
}

/* Safety overrides: force the subheader inner and buttons to remain visible
   even if inline JS sets fixed/absolute positioning that pushes them out of view. */
html body .subheader-categorias .subheader-bar-inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  transform: none !important;
}

html body .subheader-categorias .subheader-btn {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}



/* Masthead should be white; subheader sits below as site blue */
#masthead, #masthead .contenedor-masthead, .contenedor-masthead-inner {
  background: #ffffff !important;
  color: #333333 !important;
}

/* Ensure masthead inner elements use dark icons/text for contrast on white */
#masthead .contenedor-masthead-inner a,
#masthead .contenedor-masthead-inner .iconos,
#masthead .contenedor-masthead-inner .buscador {
  color: #333 !important;
}

.menu-categorias-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

.item-categoria-horizontal {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.item-categoria-horizontal:last-child {
  border-right: none;
}

.item-categoria-horizontal:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
}

/* Panel Dropdown */
.panel-dropdown-categorias {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  max-height: 0; /* keep hidden by default */
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.24s ease, opacity 0.18s ease;
  z-index: 10000; /* por encima del header (z-index: 1000) */
}

/* Añadir scroll-margin para las categorías dentro del dropdown */
.panel-dropdown-categorias .categoria-dropdown-item,
.panel-dropdown-categorias .titulo-categoria-dropdown,
.panel-dropdown-categorias .subcategoria-dropdown-link {
  scroll-margin-top: 180px; /* header (96px) + subheader (68px) + margen extra (16px) */
}

/* If you later need to open top dropdown, add `.panel-dropdown-categorias.open` */
.panel-dropdown-categorias.open {
  max-height: 600px;
  opacity: 1;
}

/* Ajustar max-height cuando está abierto para evitar que las categorías queden detrás del header */
@media screen and (min-width: 769px) {
  .panel-dropdown-categorias.open {
    max-height: calc(100vh - 180px); /* Altura de viewport menos header + subheader */
  }
}

/* Ensure dropdown children/mega panels are above site overlays */
.panel-dropdown-categorias,
.panel-dropdown-categorias .contenedor-panel-dropdown,
.panel-dropdown-categorias .grid-categorias-dropdown,
.group-children {
  z-index: 2300 !important;
}

/* Remove any internal semi-transparent overlays inside the dropdown that darken category cards */
.panel-dropdown-categorias .categoria-item,
.panel-dropdown-categorias .categoria-dropdown-item,
.panel-dropdown-categorias .categoria-item .overlay,
.panel-dropdown-categorias .categoria-imagen::after {
  background: transparent !important;
  mix-blend-mode: normal !important;
}

/* Removed hover-triggered opening. Panel should open only via JS click toggle. */

.contenedor-panel-dropdown {
  padding: 25px 20px;
  max-height: inherit;
  overflow-y: auto;
  overflow-x: hidden;
}

.contenido-dropdown-grupo {
  display: none;
}

.contenido-dropdown-grupo.activo {
  display: block;
  animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-categorias-dropdown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.categoria-dropdown-item {
  display: flex;
  flex-direction: column;
}

.titulo-categoria-dropdown {
  font-weight: 700;
  font-size: 0.95rem;
  color: #404F90;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color 0.2s ease;
}

.titulo-categoria-dropdown:hover {
  color: #FE0000;
  text-decoration: underline;
}

.lista-subcategorias-dropdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subcategoria-dropdown-link {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.subcategoria-dropdown-link:hover {
  color: #404F90;
  padding-left: 15px;
  border-left-color: #FE0000;
}

@media screen and (max-width: 950px) {
  .menu-categorias-horizontal {
    flex-wrap: wrap;
  }

  .item-categoria-horizontal {
    font-size: 0.7rem;
    padding: 10px 8px;
  }

  .grid-categorias-dropdown {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .item-categoria-horizontal {
    font-size: 0.65rem;
    padding: 8px 5px;
  }

  .grid-categorias-dropdown {
    grid-template-columns: 1fr;
  }
  
  /* En móvil, ajustar el scroll-margin */
  .panel-dropdown-categorias .categoria-dropdown-item,
  .panel-dropdown-categorias .titulo-categoria-dropdown,
  .panel-dropdown-categorias .subcategoria-dropdown-link {
    scroll-margin-top: 100px; /* Menor margen en móvil */
  }
  
  .panel-dropdown-categorias.open {
    max-height: calc(100vh - 120px); /* Ajuste para móvil */
  }
}

/* Estilos antiguos - mantener por compatibilidad */
.lista-categorias-jerarquica {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  padding: 20px 0;
}

@media screen and (max-width: 768px) {
  .lista-categorias-jerarquica {
    grid-template-columns: 1fr;
  }
}

.categoria-principal-item {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.categoria-principal-item:nth-child(4n) {
  border-right: none;
}

@media screen and (max-width: 768px) {
  .categoria-principal-item {
    border-right: none;
  }
}

.categoria-principal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background-color: white;
  transition: background-color 0.2s ease;
}

.categoria-principal-header:hover {
  background-color: #f5f5f5;
}

.categoria-principal-link {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.categoria-principal-link:hover {
  color: #404F90;
}

.toggle-subcategorias {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1.5rem;
  color: #666;
  transition: transform 0.3s ease, color 0.2s ease;
  outline: none;
  line-height: 1;
}

.toggle-subcategorias:hover {
  color: #404F90;
}

.toggle-subcategorias .flecha {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle-subcategorias.activo .flecha {
  transform: rotate(90deg);
}

.subcategorias-lista {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fafafa;
}

.subcategorias-lista.expandido {
  max-height: 500px;
  border-top: 1px solid #e0e0e0;
}

.subcategoria-item {
  display: block;
  padding: 10px 15px 10px 30px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.subcategoria-item:hover {
  background-color: #404F90;
  color: white;
  border-left-color: #FE0000;
  padding-left: 35px;
}

/* Estilos antiguos - mantener por compatibilidad */
.lista-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  .lista-categorias {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

.categoria-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  text-align: center;
}

.categoria-item:hover {
  background-color: #404F90;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.categoria-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.categoria-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.entry-header {
  background-color: #404F90 !important;
  color: white !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem !important;
}

.entry-header .entry-title {
  color: white !important;
  margin: 0 !important;
  padding: 0.5rem 1rem;
}

.single-producto {
  display: flex;
  margin: 2rem 0rem;
  justify-content: space-between;
  flex-direction: row;
}

@media screen and (max-width: 950px) {
  .single-producto {
    flex-direction: column;
  }
}

.single-producto .detalles-producto {
  height: max-content;
  background-color: white;
  width: 58%;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 2rem;
}

@media screen and (max-width: 950px) {
  .single-producto .detalles-producto {
    width: 100%;
  }
}

.single-producto .detalles-producto .etiqueta-descuento {
  height: 25px;
  width: 20rem;
  background-color: #00A650;
  text-align: center;
  font-weight: bold;
  color: white;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  margin: 0rem 0rem 1rem 0rem;
}

.single-producto .detalles-producto .titulo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.single-producto .detalles-producto hr {
  border: 0px;
  background-color: #FE0000;
  height: 3px;
}

.single-producto .detalles-producto .acciones {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  margin-top: 1.5rem;
}

/* Reducir el line-height del título de producto */
.producto .titulo,
.producto .product-title {
  font-size: 0.78rem;
  line-height: 1.1;
  margin: 0.2rem 0 0.3rem 0;
  text-align: center;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  /* Add standard property for compatibility */
  line-clamp: 2;
}

/* Precios */

@media screen and (max-width: 950px) {
  .single-producto .detalles-producto .acciones {
    flex-direction: column;
  }
}

.single-producto .detalles-producto .acciones .contenedor-consultar-wp a {
  width: 150px;
  background-color: #25D366;
  color: white;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  border-radius: 15px;
  padding: 0.5rem;
  cursor: pointer;
  transition: 0.5s transform;
  text-transform: uppercase;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.single-producto .detalles-producto .acciones .contenedor-consultar-wp a:hover {
  transform: scale(1.02);
}

.single-producto .detalles-producto .acciones .contenedor-agregar-carrito {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.single-producto .detalles-producto .acciones .contenedor-agregar-carrito input {
  width: 30%;
  padding: 0.75rem 0.5rem !important;
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background-color: #f9f9f9 !important;
  transition: all 0.2s ease;
}

.single-producto .detalles-producto .acciones .contenedor-agregar-carrito input:focus {
  border-color: #404F90 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(64, 79, 144, 0.1) !important;
}

.single-producto .detalles-producto .acciones .contenedor-agregar-carrito a {
  width: 68%;
  background-color: #404F90;
  color: white;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  border-radius: 15px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}

.single-producto .detalles-producto .acciones .contenedor-agregar-carrito a:hover {
  background-color: #2f3a6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 79, 144, 0.3);
}

.single-producto .detalles-producto .acciones .precios {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin: 1rem 0 0.5rem 0;
  gap: 1rem;
}

.single-producto .detalles-producto .acciones .precios .precio-descuento {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #999;
  font-weight: 500;
}

.single-producto .detalles-producto .acciones .precios .precio {
  color: #404F90;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.single-producto .detalles-producto .acciones .nota-impuestos {
  font-size: 0.85rem;
  color: #666;
  margin: 0.5rem 0 1rem 0;
  font-style: italic;
}

.single-producto .detalles-producto .acciones .envios-info {
  margin-top: 1.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
}

.single-producto .detalles-producto .acciones .logos-envios {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.single-producto .detalles-producto .acciones .logo-envio {
  height: 30px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

.single-producto .detalles-producto .acciones .logo-envio.oca-logo {
  max-width: 80px;
}

.single-producto .detalles-producto .dimensiones {
  color: black;
}

.single-producto .imagenes-producto {
  width: 40%;
  height: 100%;
  display: flex;
  gap: 1rem;
}

@media screen and (max-width: 950px) {
  .single-producto .imagenes-producto {
    width: 100%;
    flex-direction: column-reverse;
    margin-bottom: 1.25rem;
  }
}

.single-producto .imagenes-producto .thumbnails-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 80px;
}

@media screen and (max-width: 950px) {
  .single-producto .imagenes-producto .thumbnails-container {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
}

.single-producto .imagenes-producto .thumbnail {
  width: 80px;
  height: 80px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.single-producto .imagenes-producto .thumbnail:hover {
  border-color: #404F90;
  transform: scale(1.05);
}

.single-producto .imagenes-producto .thumbnail.active {
  border-color: #404F90;
  box-shadow: 0 0 10px rgba(64, 79, 144, 0.3);
}

.single-producto .imagenes-producto .main-image-container {
  flex: 1;
  position: relative;
  display: flex;
  gap: 1rem;
}

.single-producto .imagenes-producto .main-image {
  width: 100%;
  height: 500px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 15px;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: crosshair;
  background-color: white;
}

@media screen and (max-width: 950px) {
  .single-producto .imagenes-producto .main-image {
    height: 400px;
  }
}

.single-producto .imagenes-producto .zoom-lens {
  position: absolute;
  border: 2px solid #404F90;
  background-color: rgba(64, 79, 144, 0.1);
  cursor: crosshair;
  pointer-events: none;
  display: none;
}

.single-producto .imagenes-producto .zoom-result {
  position: absolute;
  left: calc(100% + 1rem);
  top: 0;
  width: 400px;
  height: 500px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: white;
  background-repeat: no-repeat;
  display: none;
  z-index: 100;
}

@media screen and (max-width: 1400px) {
  .single-producto .imagenes-producto .zoom-result {
    display: none !important;
  }
}

.productos-relacionados .fila-productos {
  background-color: transparent;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  box-shadow: none;
  border-bottom: none;
  margin: 3rem 0rem;
}

.productos-relacionados .fila-productos .titulo-fila-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.productos-relacionados .fila-productos .titulo-fila-wrapper .titulo-line {
  flex: 1;
  border: none;
  border-top: 2px solid #ddd;
  margin: 0;
}

.productos-relacionados .fila-productos .titulo-fila {
  background-color: transparent;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  padding: 0;
  color: #333;
  font-weight: bold;
  font-size: 1.8rem;
  border-bottom: none;
  margin: 0;
  white-space: nowrap;
}

.productos-relacionados .fila-productos .productos {
  padding: 0.5rem 0;
}

/* Overlay oscuro con blur - compartido para carrito y categorías */
.cart-overlay,
.categories-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000; /* por encima del subheader (9999) para aplicar blur sobre él */
  transition: opacity 0.3s ease;
}

.cart-overlay.active,
.categories-overlay.active {
  display: block;
}

/* Neutralizar únicamente overlays/pseudo-elementos dentro de `#side-categories`.
   Evitamos usar el selector universal para no romper fondos legítimos dentro del contenedor. */
#side-categories .overlay,
#side-categories .categoria-item .overlay,
#side-categories .categoria-imagen::after,
#side-categories .panel-dropdown-categorias::before,
#side-categories .panel-dropdown-categorias::after {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Asegurar que el panel de categorías lateral quede por encima de overlays */
#side-categories .panel-dropdown-categorias,
#side-categories .panel-dropdown-categorias .contenedor-panel-dropdown,
#side-categories .panel-dropdown-categorias .grid-categorias-dropdown {
  z-index: 2500 !important;
  position: relative !important;
}

/* Carrito lateral derecho */
.sidenav {
  height: 100vh;
  width: 0;
  position: fixed;
  z-index: 10001; /* por encima del panel de categorías (10000) y del header (1000) */
  top: 0;
  right: 0;
  background-color: rgba(235, 235, 235, 0.95);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  max-width: 450px;
}

/* Responsive para carrito lateral */
@media screen and (max-width: 768px) {
  .sidenav {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .sidenav .cart-header {
    padding: 15px;
  }
  
  .sidenav .productos-carrito {
    padding: 10px;
  }
  
  .sidenav .productos-carrito .producto-carrito {
    padding: 12px 10px;
  }
  
  .sidenav .cart-footer {
    padding: 15px;
  }
}

/* Header del carrito */
.sidenav .cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background-color: transparent;
}

.sidenav .cart-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.sidenav .cart-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.sidenav .cart-close:hover {
  color: #666;
}

/* Separador */
.sidenav .cart-separator {
  height: 1px;
  background-color: #ccc;
  margin: 0 1.5rem;
}

/* Área de productos - Diseño Minimalista */
.sidenav .productos-carrito {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.sidenav .productos-carrito .producto-carrito {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: background-color 0.2s;
}

.sidenav .productos-carrito .producto-carrito:hover {
  background-color: #fafafa;
}

.sidenav .productos-carrito .producto-carrito .cart-item-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidenav .productos-carrito .producto-carrito .cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.sidenav .productos-carrito .producto-carrito .cart-item-name {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidenav .productos-carrito .producto-carrito .cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidenav .productos-carrito .producto-carrito .cart-item-price {
  font-weight: 600;
  color: #404F90;
  font-size: 0.9rem;
}

/* Controles de cantidad minimalistas */
.sidenav .productos-carrito .producto-carrito .mini-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 2px;
}

.sidenav .productos-carrito .producto-carrito .qty-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #404F90;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.sidenav .productos-carrito .producto-carrito .qty-btn:hover:not(:disabled) {
  color: #FE0000;
}

.sidenav .productos-carrito .producto-carrito .qty-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.sidenav .productos-carrito .producto-carrito .qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

/* Botón eliminar minimalista */
.sidenav .productos-carrito .producto-carrito .item-remove {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.sidenav .productos-carrito .producto-carrito .item-remove:hover {
  color: #FE0000;
}

/* Loader minimalista */
.sidenav .productos-carrito .producto-carrito .item-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sidenav .productos-carrito .producto-carrito.removing .item-loader,
.sidenav .productos-carrito .producto-carrito.updating .item-loader {
  display: flex;
}

.sidenav .productos-carrito .producto-carrito .loader-spin {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top-color: #404F90;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.sidenav .productos-carrito .producto-carrito.removing,
.sidenav .productos-carrito .producto-carrito.updating {
  pointer-events: none;
}

/* Footer del carrito */
.sidenav .cart-footer {
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.sidenav .cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.sidenav .cart-subtotal span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
}

.sidenav .cart-subtotal .subtotal-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #404F90;
}

.sidenav .cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidenav .cart-buttons a {
  display: block;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1rem;
  border: 2px solid transparent;
}

.sidenav .btn-ver-carrito {
  background-color: #f5f5f5;
  color: #404F90;
  border-color: #e0e0e0;
}

.sidenav .btn-ver-carrito:hover {
  background-color: #404F90;
  color: #fff;
  border-color: #404F90;
}

.sidenav .btn-finalizar-compra {
  background-color: #00A650;
  color: #fff;
  border-color: #00A650;
}

.sidenav .btn-finalizar-compra:hover {
  background-color: #008c42;
  border-color: #008c42;
}

.slider-principal {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .slider-principal {
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 1200px) {
  .slider-principal {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
  }
}

.slider-principal .slick-list {
  border-radius: 15px;
}

@media screen and (max-width: 1200px) {
  .slider-principal .slick-list {
    border-radius: 0;
  }
}

.slider-principal .slick-track {
  display: flex;
}

.slider-principal .slide {
  border-radius: 0;
  border-bottom: none;
  background-image: var(--bg-desktop);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
  .slider-principal .slide {
    background-image: var(--bg-mobile, var(--bg-desktop));
  }
}

.slider-principal .slide:before {
  content: "";
  display: block;
  padding-top: 22%;
}

@media screen and (max-width: 1200px) {
  .slider-principal .slide:before {
    padding-top: 28%;
  }
}

@media screen and (max-width: 900px) {
  .slider-principal .slide:before {
    padding-top: 32%;
  }
}

@media screen and (max-width: 768px) {
  .slider-principal .slide:before {
    padding-top: 40%;
  }
}

@media screen and (max-width: 500px) {
  .slider-principal .slide:before {
    padding-top: 50%;
  }
}

.slider-principal .slick-dots {
  bottom: 25px;
}

.slider-principal .slick-dots button {
  background-color: transparent !important;
}

.slider-principal .slick-dots .slick-active button:before {
  font-size: 0.8rem;
  color: #404F90;
  opacity: 1;
}

.slider-principal .slick-dots li button:before {
  font-size: 0.8rem;
  color: #404F90;
}

/* Flechas del Slider */
.slider-principal .slick-prev,
.slider-principal .slick-next {
  width: 56px !important;
  height: 56px !important;
  z-index: 100;
  background-color: white !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ddd !important;
  background-size: 35px 35px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
}

.slider-principal .slick-prev {
  left: 20px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-left-svgrepo-com.svg') !important;
}

.slider-principal .slick-next {
  right: 20px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-right-svgrepo-com.svg') !important;
}

.slider-principal .slick-prev:before,
.slider-principal .slick-next:before {
  content: '' !important;
  display: none !important;
  opacity: 0 !important;
}

.slider-principal .slick-prev:hover,
.slider-principal .slick-prev:focus,
.slider-principal .slick-next:hover,
.slider-principal .slick-next:focus {
  background-color: #f5f5f5 !important;
  border-color: #999 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

@media screen and (max-width: 768px) {

  .slider-principal .slick-prev,
  .slider-principal .slick-next {
    width: 40px !important;
    height: 40px !important;
  }

  .slider-principal .slick-prev:before,
  .slider-principal .slick-next:before {
    font-size: 18px !important;
  }

  .slider-principal .slick-prev {
    left: 10px !important;
  }

  .slider-principal .slick-next {
    right: 10px !important;
  }
}

/* Beneficios */
.beneficios-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.beneficios-wrapper {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* tres columnas iguales */
  gap: 1.5rem; /* separación uniforme entre los 3 elementos */
  align-items: center; /* centrar verticalmente dentro de la sección */
  justify-items: center; /* centrar los elementos dentro de la grid */
}

@media screen and (max-width: 1200px) {
  .beneficios-wrapper {
    justify-items: center;
  }
}

.beneficio-item {
  display: flex;
  align-items: center !important; /* vertically center contents inside each grid cell */
  gap: 1rem;
  padding: 1rem;
  justify-content: flex-start; /* mantener icono y texto alineados a la izquierda dentro del item */
  height: 100%;
  box-sizing: border-box;
  width: auto !important;
  max-width: 420px !important;
  margin: 0 auto !important; /* centrar el bloque dentro de la sección */
}

.beneficio-icono {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404F90;
}

.beneficio-icono svg {
  width: 40px;
  height: 40px;
}

.beneficio-texto {
  flex: 1;
  text-align: left !important; /* asegurar texto alineado a la izquierda */
}

/* Center each beneficio-item within the wrapper (grid or flex) without changing text alignment */
.beneficios-wrapper .beneficio-item {
  justify-self: center !important; /* for grid layout */
  width: 50% !important; /* reduced to 50% as requested */
  box-sizing: border-box !important;
  justify-content: flex-start !important; /* ensure inner content is left-aligned */
}

@media (min-width:1241px) {
  .beneficios-wrapper .beneficio-item {
    width: 100% !important;
    max-width: none !important;
  }
}

@media screen and (max-width: 768px) {
  .beneficios-wrapper .beneficio-item {
    width: 92% !important; /* responsive width on mobile so it fits */
    max-width: none !important;
    margin: 0 auto !important;
  }
}

.beneficio-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.beneficio-descripcion {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.2;
}

.beneficio-item:nth-child(3) .beneficio-descripcion {
  color: #404F90;
  text-decoration: underline;
  cursor: pointer;
}

/* Tarjetas de medios de pago en beneficios */
.beneficio-tarjetas {
  width: auto !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.beneficio-tarjetas img {
  height: 24px !important;
  width: auto !important;
  max-width: 45px !important;
  object-fit: contain !important;
}

/* Alinear 'Todos los medios de pago' con las cards: centrar verticalmente y emparejar alturas */
.beneficio-medios-pago {
  display: flex !important;
  align-items: center !important; /* centra icono y texto */
  gap: 12px !important;
  padding: 0.8rem 1rem !important; /* similar padding a las cards */
}

.beneficio-medios-pago .beneficio-icono {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}

.beneficio-medios-pago .beneficio-tarjetas {
  gap: 10px !important;
}

.beneficio-medios-pago .beneficio-titulo {
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important; /* evitar salto debajo de los iconos */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media screen and (max-width: 768px) {
  .beneficio-medios-pago {
    flex-direction: row !important;
    gap: 8px !important;
  }

  .beneficio-medios-pago .beneficio-titulo {
    white-space: normal !important; /* permitir wrap en móvil */
  }
}

@media screen and (max-width: 1200px) {
  .beneficios-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .beneficio-item {
    padding: 0.75rem;
  }
  
  .beneficio-icono svg {
    width: 32px;
    height: 32px;
  }
  
  .beneficio-titulo {
    font-size: 0.9rem;
  }
  
  .beneficio-descripcion {
    font-size: 0.8rem;
  }

  .beneficio-medios-pago {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .beneficio-medios-pago .beneficio-icono {
    width: 100% !important;
  }

  .beneficio-medios-pago .beneficio-tarjetas {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

@media screen and (max-width: 768px) {
  .beneficios-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* centrar elementos en columna */
  }
  .beneficio-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* mantener icono y texto alineados a la izquierda dentro del item */
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
  
  .beneficio-item {
    padding: 0.75rem;
    margin: 0 auto !important; /* asegurar centrado del bloque en mobile */
  }

  /* Force beneficio-item width to 50% on mobile as requested */
  .beneficios-wrapper .beneficio-item {
    width: 65% !important;
    max-width: 65% !important;
  }
  
  .beneficio-icono svg {
    width: 32px;
    height: 32px;
  }
  
  .beneficio-titulo {
    font-size: 0.9rem;
  }
  
  .beneficio-descripcion {
    font-size: 0.8rem;
  }
}

/* Carousel de Marcas */
.carousel-marcas-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #ebebeb !important;
  padding: 3rem 0;
  margin-top: 0;
}

.carousel-marcas-container .titulo-marcas-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 2rem auto;
}

.carousel-marcas-container .titulo-marcas-wrapper .titulo-line {
  flex: 1;
  border: none;
  border-top: 2px solid #ddd;
  margin: 0;
}

.carousel-marcas-container .titulo-marcas {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.carousel-marcas {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-marcas .marca-item {
  padding: 1rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  outline: none;
}

.carousel-marcas .marca-item a {
  display: block;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.carousel-marcas .marca-item a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.carousel-marcas .marca-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-marcas .marca-item a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.carousel-marcas .slick-arrow {
  width: 50px !important;
  height: 50px !important;
  z-index: 2 !important;
  background-color: white !important;
  background-size: 30px 30px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  opacity: 0.8 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.carousel-marcas .slick-arrow:hover {
  background-color: #f5f5f5 !important;
  border-color: #999 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  opacity: 1 !important;
}

.carousel-marcas .slick-prev {
  left: 10px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-left-svgrepo-com.svg') !important;
}

.carousel-marcas .slick-next {
  right: 10px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-right-svgrepo-com.svg') !important;
}

.carousel-marcas .slick-arrow:before {
  content: '' !important;
  display: none !important;
}

@media screen and (max-width: 768px) {
  .carousel-marcas {
    padding: 0 50px;
  }

  .carousel-marcas .slick-arrow {
    width: 40px !important;
    height: 40px !important;
    background-size: 24px 24px !important;
  }

  .carousel-marcas .marca-item img {
    max-height: 60px;
  }

  .carousel-marcas-container .titulo-marcas {
    font-size: 1.5rem;
  }
}

/* Estilos de 'Explorar por Categorías' eliminados: sección fue retirada del template */

.contenedor-filas-productos {
  overflow: visible !important;
}

.contenedor-filas-productos .imagen-separador {
  height: 80px;
  background-position: center;
  border-radius: 15px;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.contenedor-filas-productos {
  overflow: visible !important;
}

.contenedor-filas-productos .imagen-separador .background {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 15px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 3rem;
}

@media screen and (max-width: 950px) {
  .contenedor-filas-productos .imagen-separador .background {
    font-size: 1.5rem;
  }
}

.contenedor-filas-productos .fila-productos {
  background-color: transparent;
  border-radius: 0;
  margin: 3rem 0rem;
}

.contenedor-filas-productos .fila-productos .titulo-fila-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.contenedor-filas-productos .fila-productos .titulo-fila-wrapper .titulo-line {
  flex: 1;
  border: none;
  border-top: 2px solid #ddd;
  margin: 0;
}

.contenedor-filas-productos .fila-productos .titulo-fila {
  background-color: transparent;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  padding: 0;
  color: #333;
  font-weight: bold;
  font-size: 1.8rem;
  border-bottom: none;
  margin: 0;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .contenedor-filas-productos .fila-productos .titulo-fila {
    font-size: 1.4rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  
  .productos-relacionados .fila-productos .titulo-fila {
    font-size: 1.4rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}

@media screen and (max-width: 600px) {
  .contenedor-filas-productos .fila-productos .titulo-fila {
    font-size: 1.2rem !important;
  }
  
  .productos-relacionados .fila-productos .titulo-fila {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 480px) {
  .contenedor-filas-productos .fila-productos .titulo-fila {
    font-size: 1.1rem !important;
  }
  
  .productos-relacionados .fila-productos .titulo-fila {
    font-size: 1.1rem !important;
  }
  
  .contenedor-filas-productos .fila-productos .titulo-fila-wrapper {
    gap: 0.8rem !important;
  }
  
  .productos-relacionados .fila-productos .titulo-fila-wrapper {
    gap: 0.8rem !important;
  }
}

.contenedor-filas-productos .fila-productos .titulo-fila::after {
  content: attr(data-subtitle);
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #666;
  margin-top: 0.3rem;
}

.contenedor-filas-productos .fila-productos .productos {
  padding: 0.5rem 60px;
  position: relative;
  overflow: visible !important;
  margin: 0;
}

.contenedor-filas-productos .fila-productos {
  overflow: visible !important;
  position: relative;
}

/* Flechas de navegación para carouseles de productos */
.productos .slick-arrow {
  width: 50px !important;
  height: 50px !important;
  z-index: 100 !important;
  background-color: white !important;
  background-size: 30px 30px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.productos .slick-arrow:hover {
  background-color: #f5f5f5 !important;
  border-color: #999 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  opacity: 1 !important;
}

.productos .slick-prev {
  left: 10px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-left-svgrepo-com.svg') !important;
}

.productos .slick-next {
  right: 10px !important;
  background-image: url('/wp-content/uploads/2025/11/chevron-right-svgrepo-com.svg') !important;
}

.productos .slick-arrow:before {
  content: '' !important;
  display: none !important;
  opacity: 0 !important;
}

.productos .slick-disabled {
  opacity: 0.3 !important;
  cursor: default !important;
}

/* Ensure arrows are always visible (not disabled state) */
.productos .slick-arrow:not(.slick-disabled) {
  opacity: 1 !important;
  display: flex !important;
  visibility: visible !important;
}

.productos .slick-dots {
  position: relative !important;
  left: -30px !important;
  width: calc(100% + 60px) !important;
  text-align: center !important;
}

/* Asegurar que dentro de los sliders las cards tengan altura uniforme */
.productos .slick-slide {
  display: flex !important;
  justify-content: center !important;
}

.productos .slick-slide .producto,
.producto {
  height: 450px;
  box-sizing: border-box;
}

/* Cuando slick tenga elementos activos, aseguramos que el botón esté fijado */
.productos .slick-slide .producto .acciones {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.producto {
  margin: 0.7rem 0.3rem;
  width: 280px;
  height: 450px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-bottom: none;
  transition: box-shadow 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  display: flex;
  position: relative;
  flex-direction: column;
  background: #fff;
  padding: 8px 16px 16px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.producto:hover {
  box-shadow: 0 6px 18px rgba(64, 79, 144, 0.12);
}

.producto .acciones {
  z-index: 3; /* keep actions above images/overlays */
}

.producto .acciones .btn-agregar-carrito a,
.producto .acciones .btn-agregar-carrito button {
  color: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0.6rem 0 !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  font-weight: 600 !important;
}

.producto .acciones .btn-agregar-carrito a:hover,
.producto .acciones .btn-agregar-carrito button:hover {
  background: #3581e5 !important;
}

.producto .porcentaje-descuento {
  position: absolute;
  background-color: #00A650;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 10px;
  top: 10px;
  font-size: 0.55rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  z-index: 2;
}

.producto .porcentaje-descuento strong {
  font-size: 1rem;
}

producto .imagen {
  height: 200px;
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.15rem 0 0 !important;
  margin-bottom: 12px !important;
  flex-shrink: 0;
}


/* Product card images: make both images absolute and fill the image container
   so the hover image cleanly replaces the primary without changing layout */
/* Strongly contain product images so they never cover title or actions */
.producto .imagen {
  position: relative !important; /* ensures absolutely positioned images are contained */
  height: 170px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  padding: 0.15rem 0 0 !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.producto .imagen img,
.producto .imagen .imagen-principal {
  position: relative !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transition: opacity 0.4s ease, transform 0.25s ease !important;
}

.producto .imagen .imagen-principal {
  z-index: 1;
  opacity: 1;
}

.producto .imagen .imagen-hover {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease !important;
}

/* Hover behavior: show hover image only when product has second image */
.producto[data-has-hover="1"]:hover .imagen .imagen-hover,
.producto.con-imagen-hover:hover .imagen .imagen-hover {
  opacity: 1 !important;
}

.producto[data-has-hover="1"]:hover .imagen .imagen-principal,
.producto.con-imagen-hover:hover .imagen .imagen-principal {
  opacity: 0 !important;
}

/* Remove unnecessary gap above product image */
.producto .imagen {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  box-sizing: border-box;
}


/* El bloque anterior tenía propiedades sueltas sin selector y una llave de cierre sobrante. Eliminado para restaurar la sintaxis CSS válida. */

.producto .acciones .btn-consultar-wp {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto .acciones .btn-consultar-wp a {
  background-color: #25D366;
  color: white !important;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.5rem;
  border-radius: 15px;
}

.producto .acciones .btn-agregar-carrito {
  cursor: pointer;
  width: 100%;
  margin-bottom: 0.2rem;
}

.producto .acciones .btn-agregar-carrito a {
  background-color: #404F90;
  width: 100%;
}

.producto .acciones .ir-detalle {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.producto .acciones .ir-detalle a {
  background: transparent !important;
  color: #404F90 !important;
  font-weight: bold !important;
  border-radius: 15px !important;
  padding: 0.5rem !important;
  text-align: center;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  display: inline-block;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.producto .acciones .ir-detalle a:hover {
  color: #404F90 !important;
  background: #f2f2f2 !important;
}

.producto .acciones .btn-agregar-carrito {
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto .acciones .btn-agregar-carrito a {
  text-align: center;
}

.page-container {
  width: 60%;
  margin: auto;
  background-color: white;
  border-radius: 15px;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 950px) {
  .productos .slick-slide .producto,
  .producto {
    height: 360px;
  }

  .producto .imagen {
    height: 110px;
  }

  .producto {
    padding: 8px 12px 84px 12px;
  }

  .producto .acciones {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* Responsive fix at 1500px: ensure arrows remain visible */
@media screen and (max-width: 1500px) {
  .productos .slick-arrow {
    z-index: 100 !important;
    opacity: 1 !important;
  }
}

@media screen and (max-width: 768px) {
  .contenedor-filas-productos .fila-productos .productos {
    padding: 0 clamp(12px, 4vw, 16px) !important;
    box-sizing: border-box !important;
  }
  
  .productos .slick-arrow {
    width: 40px !important;
    height: 40px !important;
    background-size: 24px 24px !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .productos .slick-prev {
    left: 5px !important;
  }
  
  .productos .slick-next {
    right: 5px !important;
  }
}

@media screen and (max-width: 480px) {
  .contenedor-filas-productos .fila-productos .productos {
    padding: 0 clamp(10px, 4vw, 14px) !important;
    box-sizing: border-box !important;
  }
  
  .productos .slick-arrow {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px 20px !important;
  }
  
  .productos .slick-prev {
    left: 3px !important;
  }
  
  .productos .slick-next {
    right: 3px !important;
  }
}

@media screen and (max-width: 950px) {
  .page-container {
    width: 100%;
  }
}

.page-container iframe {
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}

.page-container h1 {
  text-align: center;
  color: #404F90;
  font-weight: bold;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 1rem 0rem;
}

.page-container .redes {
  padding: 2rem;
}

.page-container .redes .red {
  display: flex;
  align-items: center;
  margin: 0.15px 0px;
}

.page-container .redes .red div {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 1.5rem;
  width: 1.5rem;
  margin-right: 5px;
}

.page-container .contenido {
  padding: 2rem;
}

.page-container .contenido h3 {
  color: #404F90;
  font-weight: bold;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.page-container .imagen {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}

.page-container .imagen:before {
  content: "";
  display: block;
  padding-top: 30%;
}

.page-container .formulario {
  padding: 2rem;
  width: 100%;
  margin: auto;
}

.page-container .formulario input,
.page-container .formulario textarea {
  width: 100%;
  border-radius: 15px;
}

.page-container .formulario textarea {
  border-radius: 15px;
  resize: none;
  outline: none;
}

#page-carrito table.cart td.product-remove a.remove {
  position: absolute;
  font-size: 1.41575em;
  top: -0.618047em;
  right: 0.3em;
}

/* Loader en celda de eliminar */
#page-carrito table.cart td.product-remove {
  position: relative;
}

#page-carrito table.cart td.product-remove .cart-item-loader {
  display: none;
  text-align: center;
}

#page-carrito table.cart td.product-remove .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #404F90;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Efecto gris en fila cuando se está eliminando o actualizando */
#page-carrito table.cart tr.removing,
#page-carrito table.cart tr.updating {
  opacity: 0.5;
  pointer-events: none;
  background-color: #f5f5f5;
}

/* Input de cantidad en el carrito */
.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quantity-controls .qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.quantity-controls .qty-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.quantity-controls .qty-btn:active {
  background-color: #e0e0e0;
}

table.cart .product-quantity .qty-input,
.woocommerce-cart-form table.cart input[type="number"].qty-input,
.woocommerce table.cart input[type="number"].qty-input {
  width: 60px !important;
  max-width: 60px !important;
  text-align: center !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 5px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333 !important;
  background-color: #fff !important;
  margin: 0 !important;
  display: block !important;
}

.stock-notice {
  color: #d63638;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  text-align: center;
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alertas visuales en carrito y página de producto */
.cart-alert,
.product-alert,
.checkout-alert,
.mini-cart-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.cart-alert-error,
.product-alert-error,
.checkout-alert-error,
.mini-cart-alert-error {
  background-color: #fef2f2;
  border: 2px solid #fca5a5;
  color: #991b1b;
}

.cart-alert-info,
.product-alert-info,
.checkout-alert-info,
.mini-cart-alert-info {
  background-color: #eff6ff;
  border: 2px solid #93c5fd;
  color: #1e40af;
}

.cart-alert .alert-icon,
.product-alert .alert-icon,
.checkout-alert .alert-icon,
.mini-cart-alert .alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cart-alert .alert-message,
.product-alert .alert-message,
.checkout-alert .alert-message,
.mini-cart-alert .alert-message {
  flex: 1;
  line-height: 1.5;
}

.cart-alert .alert-close,
.product-alert .alert-close,
.checkout-alert .alert-close,
.mini-cart-alert .alert-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-alert .alert-close:hover,
.product-alert .alert-close:hover,
.checkout-alert .alert-close:hover,
.mini-cart-alert .alert-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para alertas */
@media screen and (max-width: 768px) {
  .cart-alert,
  .product-alert,
  .checkout-alert,
  .mini-cart-alert {
    padding: 14px 16px;
    font-size: 14px;
    gap: 10px;
  }
  
  .cart-alert .alert-icon,
  .product-alert .alert-icon,
  .checkout-alert .alert-icon,
  .mini-cart-alert .alert-icon {
    font-size: 20px;
  }
}

.field-error,
.field-error:focus-visible,
.field-error:focus {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
}

.field-error-message {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #b91c1c;
}


#page-carrito .auxiliares-carrito {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 680px) {
  #page-carrito .auxiliares-carrito {
    flex-direction: column;
  }

  #page-carrito .auxiliares-carrito input,
  #page-carrito .auxiliares-carrito button {
    width: 100%;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 680px) {
  #page-carrito .auxiliares-carrito .coupon {
    margin-bottom: 15px;
  }
}

#page-carrito .auxiliares-carrito .coupon #coupon_code {
  margin-right: 15px;
}

/* Cart Page Layout - Two Columns */
.page-title, 
.woocommerce-cart .entry-title, 
.woocommerce-cart h1.entry-title {
  display: none !important;
}

/* Ocultar título grande en búsqueda */
.search .page-title,
.search-results .page-title,
.search .entry-title,
.search-results .entry-title,
.search h1.page-title,
.search-results h1.page-title {
  display: none !important;
}

.cart-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.cart-left-column {
  width: 100%;
}

.cart-right-column {
  position: sticky;
  top: 150px;
}

.cart-right-column .cart-collaterals {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
}

.cart-collaterals .cart_totals {
  width: 100%;
}

.cart-collaterals .cart_totals h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.cart-collaterals .cart_totals table {
  width: 100% !important;
  margin-bottom: 1rem;
  table-layout: fixed;
}

.cart-collaterals .cart_totals .woocommerce-shipping-calculator {
  width: 100%;
}

.cart-collaterals .cart_totals .shipping-calculator-form {
  width: 100%;
}

/* Override Storefront cart widths */
.cart-collaterals .cart_totals,
.cart-collaterals .shipping_calculator {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.page-template-template-fullwidth-php .cart-collaterals .cart_totals,
.page-template-template-fullwidth-php .cart-collaterals .shipping_calculator {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.cart-collaterals .cart_totals th,
.cart-collaterals .cart_totals td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.cart-collaterals .cart_totals .order-total th,
.cart-collaterals .cart_totals .order-total td {
  font-size: 1.25rem;
  font-weight: bold;
  border-top: 2px solid #333;
  border-bottom: none;
  padding-top: 1rem;
}

.cart-collaterals .wc-proceed-to-checkout {
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
  background-color: #404F90 !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: block;
  margin-bottom: 0 !important;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
  background-color: #303d70 !important;
}

@media (max-width: 768px) {
  .cart-page-wrapper {
    grid-template-columns: 1fr;
  }
  
  .cart-right-column {
    position: static;
  }
}

/* Ocultar título de Checkout */
.woocommerce-checkout .entry-title,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .page-title,
.woocommerce-checkout .entry-header {
  display: none !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  display: none !important;
}

.woocommerce-checkout .form-row {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.woocommerce-checkout .form-row label {
  color: #2c2c2c;
  font-weight: 600;
  transition: color 0.2s ease;
}

.woocommerce-checkout .form-row:focus-within label {
  color: #404f90;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  border-bottom-color: #e0e0e0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout .form-row:focus-within input,
.woocommerce-checkout .form-row:focus-within textarea,
.woocommerce-checkout .form-row:focus-within select {
  border-bottom-color: #404f90;
  box-shadow: 0 2px 0 0 rgba(64, 79, 144, 0.35);
}

.woocommerce-checkout .form-row select[name=payway_gateway_cc_doc_type] {
  height: 42.92px !important;
}


.woocommerce-checkout .form-row payway_gateway_cc_number input[name=payway_gateway_cc_number] {
  width: 100%;
}

.woocommerce-checkout #ship-to-different-address {
  margin: 0.8rem 0;
}

/* Breadcrumbs */
.breadcrumbs-container {
  width: 100%;
  margin: 1rem 0 1rem 0;
  padding-left: 20px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.woocommerce-breadcrumb {
  font-size: 0.9rem;
  color: #666;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media screen and (max-width: 900px) {
  .breadcrumbs-container {
    margin: 1.2rem 0 1.5rem 0 !important;
    padding: 0 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .woocommerce-breadcrumb {
    font-size: 0.85rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
  }
  
  .woocommerce-breadcrumb ol.breadcrumb {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.woocommerce-breadcrumb ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.woocommerce-breadcrumb li.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.woocommerce-breadcrumb li.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin-left: 0.5rem;
  color: #999;
}

.woocommerce-breadcrumb a {
  color: #404F90;
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
  color: #FE0000;
  text-decoration: underline;
}

/* Product Tabs */
.woocommerce-tabs {
  margin: 3rem 0;
  max-width: 1200px;
}

.woocommerce-tabs .tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #e0e0e0;
  gap: 0;
}

.woocommerce-tabs .tabs li {
  margin: 0;
  padding: 0;
  background: transparent;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  top: 2px;
}

.woocommerce-tabs .tabs li a:hover {
  color: #404F90;
  background-color: #f5f5f5;
}

.woocommerce-tabs .tabs li a.active {
  color: #404F90;
  border-bottom-color: #404F90;
  background-color: transparent;
}

.woocommerce-tabs .wc-tab-content-wrapper {
  padding: 2rem 0;
}

.woocommerce-tabs .wc-tab {
  animation: fadeIn 0.3s ease-in-out;
}

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

.woocommerce-tabs .wc-tab h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.woocommerce-tabs .wc-tab p {
  line-height: 1.8;
  color: #666;
  margin-bottom: 1rem;
}

.woocommerce-tabs .wc-tab ul,
.woocommerce-tabs .wc-tab ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.woocommerce-tabs .wc-tab li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive tabs */
@media (max-width: 768px) {
  .woocommerce-tabs .tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .woocommerce-tabs .tabs li {
    border-bottom: 1px solid #e0e0e0;
  }

  .woocommerce-tabs .tabs li a {
    padding: 1rem;
    border-bottom: none;
    top: 0;
  }

  .woocommerce-tabs .tabs li a.active {
    background-color: #404F90;
    color: white;
  }

  .woocommerce-tabs .wc-tab-content-wrapper {
    padding: 1rem 0;
  }
}

.woocommerce-breadcrumb li.breadcrumb-item:last-child {
  color: #333;
  font-weight: 500;
}

.archive .woocommerce-products-header__title {
  background-color: #404F90;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  padding: 0.5rem 2rem;
  color: white;
  font-weight: bold;
}

.archive .woocommerce-result-count {
  display: none;
}

/* Toolbar (Ordenar por + Paginación en la misma fila) */
.archive .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 10px 0 15px 0;
  width: 100%;
}

.archive .shop-toolbar .woocommerce-ordering {
  margin: 0;
  margin-right: auto;
}

.archive .shop-toolbar .pagination {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.archive .shop-toolbar .pagination .page-numbers {
  margin: 0;
}

/* Si algún plugin/tema imprime un paginado duplicado fuera del toolbar, ocultarlo */
.archive .storefront-sorting > .pagination:not(.shop-pagination) {
  display: none !important;
}

/* Si el paginado aparece arriba, ocultarlo y mantener solo el del toolbar de abajo */
.archive .storefront-sorting .pagination.shop-pagination {
  display: none !important;
}

.archive .shop-toolbar .storefront-sorting .pagination.shop-pagination {
  display: flex !important;
}

.archive .woocommerce-ordering,
.search .woocommerce-ordering,
.search-results .woocommerce-ordering,
body.search .woocommerce-ordering,
.pagina-busqueda .woocommerce-ordering {
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  line-height: 1.2;
  max-width: max-content;
}

@media screen and (max-width: 768px) {
  .archive .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .archive .shop-toolbar .woocommerce-ordering {
    justify-content: space-between;
    max-width: none;
    width: 100%;
  }

  .archive .shop-toolbar .pagination {
    justify-content: center;
  }
}

.archive .woocommerce-ordering::before,
.search .woocommerce-ordering::before,
.search-results .woocommerce-ordering::before,
body.search .woocommerce-ordering::before,
.pagina-busqueda .woocommerce-ordering::before {
  content: "Ordenar por:";
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
}

.archive .woocommerce-ordering select,
.search .woocommerce-ordering select,
.search-results .woocommerce-ordering select,
body.search .woocommerce-ordering select,
.pagina-busqueda .woocommerce-ordering select {
  border: none !important;
  background-color: transparent !important;
  padding: 0 16px 0 0 !important;
  font-size: 0.9rem;
  color: #404F90;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23404F90' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  background-size: 12px !important;
  transition: color 0.2s ease;
  width: auto !important;
  max-width: 180px !important;
}

.archive .woocommerce-ordering select:hover,
.search .woocommerce-ordering select:hover,
.search-results .woocommerce-ordering select:hover,
body.search .woocommerce-ordering select:hover,
.pagina-busqueda .woocommerce-ordering select:hover {
  color: #FE0000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FE0000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}

.archive .woocommerce-ordering select option,
.search .woocommerce-ordering select option,
.search-results .woocommerce-ordering select option,
body.search .woocommerce-ordering select option,
.pagina-busqueda .woocommerce-ordering select option {
  background-color: white;
  color: #333;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.archive .storefront-sorting {
  font-size: 1rem;
  margin: 1.5rem auto;
  border-bottom: none;
  max-width: 1000px;
}

@media screen and (max-width: 900px) {
  .archive .storefront-sorting {
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
  }
}

.archive .current {
  border-bottom: none;
}

.archive .products {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5%;
}

.archive .products .producto {
  width: 22%;
  background-color: white;
}

@media screen and (max-width: 1450px) {
  .archive .products .producto {
    width: 30%;
  }
}

@media screen and (min-width: 601px) and (max-width: 1200px) {
  .archive .products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }
  .archive .products .producto {
    width: 48% !important;
    margin: 0 0 1rem 0 !important;
  }
}

@media screen and (max-width: 400px) {
  .archive .products .producto {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0.7rem auto;
  }
  
  /* Asegurar que todos los elementos sean visibles en mobile */
  .producto .nombre-producto,
  .producto .marca-producto,
  .producto .precio,
  .producto .precio-sin-impuestos {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.pagina-busqueda .titulo-busqueda {
  display: none !important;
}

.pagina-busqueda .titulo-busqueda .search {
  margin-left: 5px;
  font-weight: bold;
  color: #404F90;
}

/* Empty state búsqueda */
.empty-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 680px;
  margin: 1.5rem auto 0;
}

.empty-search-logo {
  width: 160px;
  max-width: 60vw;
  filter: grayscale(1) opacity(0.6);
}

.empty-search-text {
  color: #666;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Breadcrumb en búsqueda */
.search .breadcrumbs-container,
.search-results .breadcrumbs-container,
body.search .breadcrumbs-container,
.pagina-busqueda .breadcrumbs-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0.5rem 0 0.5rem 0 !important;
  padding-left: 20px !important;
}

/* Ordenar por en búsqueda - mismos estilos que archive */
.search .storefront-sorting,
.search-results .storefront-sorting,
body.search .storefront-sorting,
.pagina-busqueda .storefront-sorting,
.pagina-busqueda .area-productos-contenido .storefront-sorting {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1rem !important;
  margin: 1.5rem auto !important;
  border-bottom: none !important;
  max-width: 1000px !important;
}

.pagina-busqueda .area-productos-contenido .storefront-sorting {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.pagina-busqueda .area-productos-contenido .woocommerce-ordering {
  margin: 0 !important;
}

.search .woocommerce-ordering,
.search-results .woocommerce-ordering,
body.search .woocommerce-ordering,
.pagina-busqueda .woocommerce-ordering,
.pagina-busqueda .area-productos-contenido .woocommerce-ordering {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


@media screen and (max-width: 900px) {
  .search .storefront-sorting,
  .search-results .storefront-sorting,
  body.search .storefront-sorting,
  .pagina-busqueda .storefront-sorting {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
    padding: 0 1rem !important;
  }
}

/* Productos en búsqueda - mismo layout que archive */
.search .products,
.search-results .products,
body.search .products,
.pagina-busqueda .productos {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 1.5%;
}

.search .products .producto,
.search-results .products .producto,
.search .products .product,
.search-results .products .product,
body.search .products .product,
.pagina-busqueda .productos .producto {
  width: 22% !important;
  background-color: white !important;
}

@media screen and (max-width: 1450px) {
  .search .products .producto,
  .search-results .products .producto,
  .search .products .product,
  .search-results .products .product,
  body.search .products .product,
  .pagina-busqueda .productos .producto {
    width: 30% !important;
  }
}

.pagina-busqueda .productos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5%;
}

.pagina-busqueda .productos .producto {
  width: 22%;
  float: left;
  background-color: white;
}

@media screen and (max-width: 1450px) {
  .pagina-busqueda .productos .producto {
    width: 30%;
  }
}

@media screen and (max-width: 1200px) {
  .pagina-busqueda .productos .producto {
    width: 47% !important;
  }
}

@media screen and (max-width: 700px) {
  .pagina-busqueda .productos .producto {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0.7rem auto;
  }
  
  /* Asegurar que todos los elementos sean visibles en mobile */
  .pagina-busqueda .producto .nombre-producto,
  .pagina-busqueda .producto .marca-producto,
  .pagina-busqueda .producto .precio,
  .pagina-busqueda .producto .precio-sin-impuestos {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Filtros Laterales en Búsqueda */
/* ============================================
   FILTROS UNIFICADOS - Todas las páginas de productos
   Usado en: search.php, archive-product.php, promociones.php, campo.php
   ============================================ */

.contenedor-productos-con-filtros,
.pagina-busqueda .contenedor-busqueda-con-filtros,
.contenedor-archivo-productos-con-filtros {
  display: flex;
  gap: 20px;
  margin-top: 0;
  align-items: flex-start;
}

.contenedor-productos-con-filtros .sidebar-filtros,
.pagina-busqueda .sidebar-filtros {
  width: 260px;
  flex-shrink: 0;
}

.contenedor-productos-con-filtros .filtros-wrapper,
.pagina-busqueda .filtros-wrapper {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contenedor-productos-con-filtros .titulo-filtros,
.pagina-busqueda .titulo-filtros {
  font-size: 1.2rem;
  font-weight: bold;
  color: #404F90;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.contenedor-productos-con-filtros .filtro-grupo,
.pagina-busqueda .filtro-grupo {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.contenedor-productos-con-filtros .filtro-grupo:last-of-type,
.pagina-busqueda .filtro-grupo:last-of-type {
  border-bottom: none;
}

.contenedor-productos-con-filtros .filtro-titulo,
.pagina-busqueda .filtro-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.contenedor-productos-con-filtros .filtro-contenido,
.pagina-busqueda .filtro-contenido {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contenedor-productos-con-filtros .filtro-checkbox,
.pagina-busqueda .filtro-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  transition: color 0.2s;
}

.contenedor-productos-con-filtros .filtro-checkbox:hover,
.pagina-busqueda .filtro-checkbox:hover {
  color: #404F90;
}

.contenedor-productos-con-filtros .filtro-checkbox input[type="checkbox"],
.pagina-busqueda .filtro-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #404F90;
}

/* Marcas ocultas - inicialmente ocultas */
.contenedor-productos-con-filtros .marca-oculta,
.pagina-busqueda .marca-oculta {
  display: none;
}

/* Botón Ver más marcas */
.contenedor-productos-con-filtros .btn-ver-mas-marcas,
.pagina-busqueda .btn-ver-mas-marcas {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  background-color: transparent;
  color: #404F90;
  border: 1px solid #404F90;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.contenedor-productos-con-filtros .btn-ver-mas-marcas:hover,
.pagina-busqueda .btn-ver-mas-marcas:hover {
  background-color: #404F90;
  color: white;
}

.contenedor-productos-con-filtros .inputs-precio,
.pagina-busqueda .inputs-precio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contenedor-productos-con-filtros .input-precio,
.pagina-busqueda .input-precio {
  flex: 1;
  min-width: 0;
  padding: 8px 4px 8px 8px !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: left;
}

.contenedor-productos-con-filtros .input-precio:focus,
.pagina-busqueda .input-precio:focus {
  border-color: #404F90;
}

.contenedor-productos-con-filtros .separador-precio,
.pagina-busqueda .separador-precio {
  color: #999;
  font-weight: bold;
}

/* Botón Aplicar - Azul con hover rojo (UNIFICADO) */
.contenedor-productos-con-filtros .btn-aplicar-precio,
.pagina-busqueda .btn-aplicar-precio {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background-color: #404F90;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contenedor-productos-con-filtros .btn-aplicar-precio:hover,
.pagina-busqueda .btn-aplicar-precio:hover {
  background-color: #FE0000;
}

.contenedor-productos-con-filtros .select-orden,
.pagina-busqueda .select-orden {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.contenedor-productos-con-filtros .select-orden:focus,
.pagina-busqueda .select-orden:focus {
  border-color: #404F90;
}

.contenedor-productos-con-filtros .filtro-acciones,
.pagina-busqueda .filtro-acciones {
  margin-top: 20px;
}

/* Botón Limpiar Filtros - Gris (UNIFICADO) */
.contenedor-productos-con-filtros .btn-limpiar-filtros,
.pagina-busqueda .btn-limpiar-filtros {
  width: 100%;
  padding: 10px;
  background-color: #f8f8f8;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.contenedor-productos-con-filtros .btn-limpiar-filtros:hover,
.pagina-busqueda .btn-limpiar-filtros:hover {
  background-color: #e9ecef;
  color: #333;
  border-color: #bbb;
}

.contenedor-productos-con-filtros .area-productos-contenido,
.pagina-busqueda .area-productos {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.contenedor-productos-con-filtros .area-productos-contenido .productos,
.pagina-busqueda .area-productos .productos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
.pagina-busqueda .area-productos .productos .producto {
  width: calc(25% - 15px);
  float: none;
  background-color: white;
  margin: 0;
}

@media screen and (max-width: 1450px) {
  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
  .pagina-busqueda .area-productos .productos .producto {
    width: calc(33.333% - 14px);
  }
}

@media screen and (max-width: 1100px) {
  .contenedor-productos-con-filtros,
  .pagina-busqueda .contenedor-busqueda-con-filtros {
    flex-direction: column;
  }

  .contenedor-productos-con-filtros .sidebar-filtros,
  .pagina-busqueda .sidebar-filtros {
    width: 100%;
  }

  .contenedor-productos-con-filtros .filtros-wrapper,
  .pagina-busqueda .filtros-wrapper {
    position: static;
  }

  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
  .pagina-busqueda .area-productos .productos .producto {
    width: calc(50% - 10px);
  }
}

@media screen and (max-width: 700px) {
  .contenedor-productos-con-filtros .area-productos-contenido .productos .producto,
  .pagina-busqueda .area-productos .productos .producto {
    width: 100%;
  }
}

/* Compatibilidad temporal con clases antiguas - redirige a estilos unificados */
.contenedor-archivo-productos-con-filtros {
  display: flex;
  gap: 25px;
  margin-top: 0;
}

.area-productos-archivo {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

@media screen and (max-width: 1100px) {
  .contenedor-archivo-productos-con-filtros {
    flex-direction: column;
  }
}

/* ========================================
   FAQs - Diseño Minimalista Moderno
   ======================================== */

/* Título principal con líneas */
.faq-titulo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

.faq-titulo-wrapper .titulo-line {
  flex: 1;
  border: none;
  border-top: 2px solid #ddd;
  margin: 0;
}

.faq-titulo-principal {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin: 0;
  white-space: nowrap;
}

/* Container de FAQs */
.preguntas-frecuentes .faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: transparent;
}

/* Item individual de FAQ */
.preguntas-frecuentes .faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  overflow: hidden;
}

.preguntas-frecuentes .faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.preguntas-frecuentes .faq-item.faq-active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Botón de pregunta */
.preguntas-frecuentes .faq-pregunta {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background-color: #404F90;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s ease;
}




/* Icono de pregunta */
.preguntas-frecuentes .faq-icono {
  flex-shrink: 0;
  color: #FFFFFF;
  opacity: 0.7;
}

/* Texto de pregunta */
.preguntas-frecuentes .faq-pregunta-texto {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
}

/* Icono chevron */
.preguntas-frecuentes .faq-chevron {
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.preguntas-frecuentes .faq-active .faq-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Respuesta (acordeón) */
.preguntas-frecuentes .faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease;
  background: #404F90;
}

.preguntas-frecuentes .faq-respuesta-contenido {
  padding: 0 1.5rem 1.5rem 3.5rem;
  color: #f3f4f6;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.preguntas-frecuentes .faq-respuesta-contenido p {
  margin: 0 0 1rem;
}

.preguntas-frecuentes .faq-respuesta-contenido p:last-child {
  margin-bottom: 0;
}

.preguntas-frecuentes .faq-respuesta-contenido a {
  color: #dbe5ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.preguntas-frecuentes .faq-respuesta-contenido a:hover {
  color: #ffffff;
}

.preguntas-frecuentes .faq-respuesta-contenido ul,
.preguntas-frecuentes .faq-respuesta-contenido ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.preguntas-frecuentes .faq-respuesta-contenido li {
  margin-bottom: 0.5rem;
}

.preguntas-frecuentes .faq-respuesta-contenido strong {
  font-weight: 600;
  color: #ffffff;
}

/* Mensaje vacío */
.preguntas-frecuentes .faq-vacio {
  text-align: center;
  color: #9ca3af;
  font-size: 1rem;
  padding: 3rem 1rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .preguntas-frecuentes .faq-container {
    padding: 0 1rem 2.5rem;
  }

  .preguntas-frecuentes .faq-pregunta {
    padding: 1.25rem 1.25rem;
    gap: 0.875rem;
  }

  .preguntas-frecuentes .faq-pregunta-texto {
    font-size: 1rem;
  }

  .preguntas-frecuentes .faq-respuesta-contenido {
    padding: 0 1.25rem 1.25rem 3.25rem;
    font-size: 0.9375rem;
  }

  .preguntas-frecuentes .faq-icono,
  .preguntas-frecuentes .faq-chevron {
    width: 18px;
    height: 18px;
  }
}

/* Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preguntas-frecuentes .faq-item {
  animation: fadeInUp 0.5s ease-out backwards;
}

.preguntas-frecuentes .faq-item:nth-child(1) { animation-delay: 0.05s; }
.preguntas-frecuentes .faq-item:nth-child(2) { animation-delay: 0.1s; }
.preguntas-frecuentes .faq-item:nth-child(3) { animation-delay: 0.15s; }
.preguntas-frecuentes .faq-item:nth-child(4) { animation-delay: 0.2s; }
.preguntas-frecuentes .faq-item:nth-child(5) { animation-delay: 0.25s; }
.preguntas-frecuentes .faq-item:nth-child(n+6) { animation-delay: 0.3s; }

/* Estados de alta contraste para accesibilidad */
@media (prefers-contrast: high) {
  .preguntas-frecuentes .faq-item {
    border-width: 2px;
  }

  .preguntas-frecuentes .faq-pregunta:focus {
    outline-width: 3px;
  }
}

/* Modo oscuro opcional */
@media (prefers-color-scheme: dark) {
  .preguntas-frecuentes .faq-item {
    background: #404F90;
  }

  .preguntas-frecuentes .faq-titulo {
    color: #f9fafb;
  }

  .preguntas-frecuentes .faq-descripcion {
    color: #d1d5db;
  }

  .preguntas-frecuentes .faq-pregunta-texto {
    color: #f3f4f6;
  }

  .preguntas-frecuentes .faq-respuesta-contenido {
    color: #d1d5db;
  }

}


/* Estilos legacy - mantener para retrocompatibilidad */
.preguntas-frecuentes .contenedor-pregunta {
  padding: 0.2rem 2rem;
}

.preguntas-frecuentes .contenedor-pregunta .pregunta {
  color: #404F90;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: bold;
}

.preguntas-frecuentes .contenedor-pregunta .respuesta {
  font-size: 1rem;
}

.btn-whatsapp {
  transition: 0.5s transform;
  width: 60px;
  height: 60px;
  border: 50%;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 120px;
  bottom: 80px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: pulse-whatsapp 2s infinite;
}

@media screen and (max-width: 950px) {
  .btn-whatsapp{
  right: 30px;
}
}




@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}

.btn-whatsapp a {
  height: 40px;
  width: 40px;
  filter: invert(100%);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

/* Permitir que el footer se desborde del contenedor padre */
#page.contenedor,
.hfeed.site.contenedor,
.archive,
.woocommerce-page {
  overflow: visible !important;
}

.site-footer {
  border-top: none;
  border-radius: 0;
  padding: 3rem 0 2rem 0;
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

body .site-footer .footer-container {
  max-width: 1440px !important;
  width: 80% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
  padding: 3rem 1rem !important;
}

@media screen and (max-width: 1024px) {
  body .site-footer .footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media screen and (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 !important;
  }
  
  body .site-footer .footer-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 2.5rem !important;
    width: 90% !important;
    padding: 2rem 1rem !important;
  }
  
  /* Forzar columnas individuales en orden vertical */
  .site-footer .footer-column,
  .site-footer .footer-info-column,
  .site-footer .footer-links-column,
  .site-footer .footer-social-column {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Ajustar títulos en mobile */
  .site-footer .footer-column h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0 !important;
  }
  
  /* Ajustar separadores en mobile */
  .site-footer .footer-separator {
    margin: 0 0 1rem 0 !important;
  }
  
  /* Sección de contacto */
  .site-footer .footer-contact-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .site-footer .footer-contact-item {
    display: flex !important;
    font-size: 0.95rem !important;
    align-items: flex-start !important;
  }
  
  .site-footer .footer-contact-item .contact-icon {
    margin-top: 2px !important;
  }
  
  /* Enlaces útiles */
  .site-footer .footer-links-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  
  .site-footer .footer-links-list a {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  /* Redes sociales */
  .site-footer .footer-social-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
    margin-bottom: 2rem !important;
  }
  
  .site-footer .social-icon {
    width: 44px !important;
    height: 44px !important;
  }
  
  /* Medios de pago */
  .site-footer .footer-payment-methods {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 0.6rem !important;
      margin-bottom: 1.5rem !important;
    }

  .site-footer .payment-icon {
      width: 36px !important;
      height: auto !important;
      padding: 0.4rem 0.5rem !important;
      border-radius: 10px !important;
      border: 1px solid rgba(255, 255, 255, 0.25) !important;
      background-color: rgba(255, 255, 255, 0.06) !important;
    }
  
  /* Data fiscal */
  .site-footer .footer-data-fiscal {
    margin-bottom: 0 !important;
  }
  
  .site-footer .footer-data-fiscal img {
    width: 70px !important;
    height: auto !important;
  }
  
  /* Copyright section */
  .site-footer > div:last-child {
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
  }
}

/* Columnas del Footer */
.site-footer .footer-column {
  display: flex;
  flex-direction: column;
}
.site-footer .footer-separator {
  border: none;
  height: 1px;
  background-color: #333333;
  margin: 0 0 1.2rem 0;
  width: 100%;
}

/* Logo Column */
.site-footer .footer-logo-column .logo {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: brightness(0) invert(1); /* No change */
  width: 100%;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
  .site-footer .footer-logo-column .logo {
    background-position: center;
    height: 80px;
  }
}

/* Contact Info Column */
.site-footer .footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Links Column */
.site-footer .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer .footer-links-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
}

.site-footer .footer-links-list a:hover {
  color: #FE0000;
  padding-left: 5px;
}

/* Social Media Icons */
.site-footer .footer-social-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: #FE0000;
  text-decoration: none;
}

.site-footer .informacion-contacto,
.site-footer .utiles,
.site-footer .red {
  display: none;
  /* Hide old structure elements */
}



.pagina-promociones .productos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5%;
}

.pagina-promociones .productos .producto {
  width: 22%;
  float: left;
  background-color: white;
}

@media screen and (max-width: 1450px) {
  .pagina-promociones .productos .producto {
    width: 30%;
  }
}

@media screen and (max-width: 1100px) {
  .pagina-promociones .productos .producto {
    width: 47%;
  }
}

@media screen and (max-width: 700px) {
  .pagina-promociones .productos .producto {
    width: 100%;
  }
}

.pagina-promociones .buscador-promociones {
  width: 96%;
  background-color: white;
  display: flex;
  flex-direction: column;
  margin-left: 2%;
  border-radius: 15px;
  align-items: center;
  padding: 20px;
  border-bottom: 3px solid #00A650;
}

.pagina-promociones .buscador-promociones h1 {
  font-weight: bold;
  font-size: 2em !important;
  margin-bottom: 25px;
}

.pagina-campo .productos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5%;
}

.pagina-campo .productos .producto {
  width: 22%;
  float: left;
  background-color: white;
}

@media screen and (max-width: 1450px) {
  .pagina-campo .productos .producto {
    width: 30%;
  }
}

@media screen and (max-width: 1100px) {
  .pagina-campo .productos .producto {
    width: 47%;
  }
}

@media screen and (max-width: 700px) {
  .pagina-campo .productos .producto {
    width: 100%;
  }
}

.pagina-campo .buscador-campo {
  width: 96%;
  background-color: white;
  display: flex;
  flex-direction: column;
  margin-left: 2%;
  border-radius: 15px;
  align-items: center;
  padding: 20px;
}

.pagina-campo .buscador-campo h1 {
  font-weight: bold;
  font-size: 2em !important;
  margin-bottom: 25px;
}

/* Footer Styles */
.site-footer {
  border-top: none;
  border-radius: 0;
  padding: 3rem 0 2rem 0;
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.site-footer .footer-container {
  max-width: 1440px;
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media screen and (max-width: 1024px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 90%;
  }
}

/* Columnas del Footer */
.site-footer .footer-column {
  display: flex;
  flex-direction: column;
}

.site-footer .footer-column h3 {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.site-footer .footer-separator {
  border: none;
  height: 1px;
  background-color: #333333;
  margin: 0 0 1.2rem 0;
  width: 100%;
}

/* Logo Column */
.site-footer .footer-logo-column .logo {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  height: 100px;
  width: 100%;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
  .site-footer .footer-logo-column .logo {
    background-position: center;
    height: 80px;
  }
}

/* Contact Info Column */
.site-footer .footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer .footer-contact-item .contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background-color: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.site-footer .footer-contact-item .contact-icon.contact-icon--headset {
  width: 46px;
  height: 46px;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, 0.05);
}

.site-footer .footer-contact-item .contact-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.site-footer .footer-contact-item .contact-icon.contact-icon--headset img {
  filter: brightness(0) invert(1);
}

/* Links Column */
.site-footer .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer .footer-links-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
}

.site-footer .footer-links-list a:hover {
  color: #FE0000;
  padding-left: 5px;
}

/* Social Media Icons */
.site-footer .footer-social-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1a1a1a;
}

.site-footer .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.site-footer .social-icon.facebook:hover {
  background-color: #1877f2;
  color: #ffffff;
}

.site-footer .social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.site-footer .social-icon.tiktok:hover {
  background-color: #000000;
  color: #ffffff;
}

.site-footer .social-icon.youtube:hover {
  background-color: #ff0000;
  color: #ffffff;
}

.site-footer .social-icon.whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
}

/* Payment Methods */
.site-footer .footer-payment-methods {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer .payment-icon {
  height: 28px;
  width: auto;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .payment-icon svg {
  height: 100%;
  width: auto;
}

.site-footer .payment-icon:hover {
  transform: scale(1.05);
}

/* Data Fiscal */
.site-footer .footer-data-fiscal {
  margin-top: 0.5rem;
}

.site-footer .footer-data-fiscal a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-footer .footer-data-fiscal img {
  height: 60px;
  width: auto;
  border-radius: 4px;
}

.site-footer .footer-data-fiscal a:hover {
  transform: scale(1.02);
}

/* Old styles - keep for backward compatibility */
.site-footer p,
.site-footer a {
  color: #ffffff;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #FE0000;
  text-decoration: none;
}

.site-footer .informacion-contacto,
.site-footer .utiles,
.site-footer .red {
  display: none;
  /* Hide old structure elements */
}

/* source map removed */

/* Strong overrides to keep Add-to-cart button inside the card */
.producto {
  overflow: hidden !important; /* prevent children from escaping the card */
}

.producto .acciones {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: calc(100% - 32px) !important;
  box-sizing: border-box !important;
}

.producto .acciones .btn-agregar-carrito a,
.producto .acciones .btn-agregar-carrito button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure slick slides preserve card height so actions stay inside */
.productos .slick-slide {
  display: flex !important;
}

.productos .slick-slide .producto {
  height: 450px !important;
}

@media screen and (max-width: 950px) {
  .productos .slick-slide .producto,
  .producto {
    height: 360px !important;
  }
  .producto .acciones {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* Side categories drawer + subcategorías (bloque consolidado) */
.side-categories {
  position: fixed !important;
  top: 0 !important;
  left: -100vw !important;
  height: 100vh !important;
  width: 420px !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
  transition: left 0.28s ease !important;
  z-index: 10001 !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  padding: 1rem 0.5rem !important;
  pointer-events: auto !important;
}

.side-categories.open {
  left: 0 !important;
}

body #side-categories {
  left: -100vw !important;
}

body #side-categories.open {
  left: 0 !important;
}

.side-categories-close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  padding: 8px 12px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  color: #333;
  line-height: 1;
}

.side-categories-nav {
  padding: 0 12px;
}

.groups-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-group-item {
  position: relative;
  border-bottom: 1px solid #eee;
}

.side-group-item .group-link {
  display: block;
  padding: 12px 8px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.side-group-item .group-link:hover {
  background: #f0f0f0;
}

.group-children {
  position: fixed !important;
  top: 0 !important;
  left: 320px !important;
  width: 720px !important;
  max-width: 60vw !important;
  height: 100vh !important;
  background: #fff !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
  padding: 2rem !important;
  z-index: 10002 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.group-children.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.group-children .group-children {
  left: 100% !important;
  top: 0 !important;
  z-index: 10010 !important;
}

.group-children-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #404F90;
}

.group-children-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #404F90;
  font-weight: 700;
}

.group-children-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 1rem;
}

.group-children .child-link {
  display: block;
  padding: 8px 12px;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.group-children .child-link:hover {
  background: #f0f0f0;
  color: #404F90;
  padding-left: 16px;
}

.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 9999;
}

.side-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-overlay.open.debug-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media screen and (max-width: 1200px) {
  .group-children {
    width: 500px !important;
  }

  .group-children-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1000px) {
  #side-categories {
    width: 85vw !important;
  }
}

@media screen and (max-width: 768px) {
  #side-categories {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100vw !important;
  }
}

@media screen and (max-width: 600px) {
  #side-categories {
    width: 100vw !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    max-width: 100vw !important;
  }

  .side-categories-close {
    position: sticky;
    top: 0;
    background: transparent !important;
    z-index: 100;
    font-size: 2rem;
    padding: 20px;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
  }

  .side-categories-close::before {
    content: '←';
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    left: 20px;
    color: #333;
  }

  .group-children {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    z-index: 10003 !important;
    padding: 0 !important;
    background: white !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .group-children-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 20px;
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .group-children-header::before {
    content: '←';
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
  }

  .group-children-header h3 {
    margin: 0 !important;
    font-size: 1.3rem !important;
    flex: 1;
  }

  .group-children-inner {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    gap: 0 !important;
  }

  .group-children .child-link {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem !important;
    border-radius: 0 !important;
  }
}



/* Mantener visible la paginación después de los productos */
ul.products + .woocommerce-pagination {
  display: block !important;
}

@media screen and (max-width: 600px) {
  .nombre-producto, h4.nombre-producto {
    display: block !important;
    visibility: visible !important;
    font-size: 1rem !important;
    color: #222 !important;
    text-align: center !important;
    margin: 0.5em 0 0.2em 0 !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.2 !important;
  }
}

@media screen and (max-width: 600px) {
  .nombre-producto, h4.nombre-producto {
    display: block !important;
    visibility: visible !important;
    font-size: 1rem !important;
    color: #222 !important;
    text-align: center !important;
    margin: 0.5em 0 0.2em 0 !important;
    white-space: normal !important;
    overflow: visible !important;
  }
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container {
  position: relative;
  width: 90%;
  height: 90%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.lightbox-image-container.dragging {
  cursor: grabbing;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 1000001;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 1000001;
}

.main-image {
  cursor: zoom-in !important;
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .lightbox-counter {
    bottom: 20px;
    font-size: 14px;
    padding: 8px 16px;
  }
}