/* === RESET GLOBAL === */
/* === productos.css === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* === BODY === */
body {
    background-color: #000; 
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
  
  body{
    position: relative;
  }

/* === MANCHAS DE FONDO === */
/* Mancha superior derecha */
body::before {
    content: "";
    position: absolute;
    top: -250px;
    right: -100px;
    width: 1000px;
    height: 1800px;
    background-image:
        radial-gradient(circle at top right, rgba(243,179,52,0.5) 0%, rgba(243,179,52,0.35) 25%, rgba(243,179,52,0.2) 50%, transparent 70%),
        radial-gradient(circle at 80% 10%, rgba(243,179,52,0.25) 0%, transparent 60%),
        radial-gradient(circle at 60% 20%, rgba(243,179,52,0.15) 0%, transparent 50%);
    filter: blur(25px);
    z-index: -1;
}

/* Mancha inferior izquierda */
.productos-container::after {
    content: "";
    position: absolute;
    left: -100px;
    bottom: -200px;
    width: 1000px;
    height: 1800px;
    background-image:
        radial-gradient(circle at bottom left, rgba(243,179,52,0.5) 0%, rgba(243,179,52,0.35) 25%, rgba(243,179,52,0.2) 50%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(243,179,52,0.25) 0%, transparent 60%),
        radial-gradient(circle at 40% 90%, rgba(243,179,52,0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(243,179,52,0.1) 0%, transparent 50%);
    filter: blur(25px);
    z-index: -1;
}

body::before,
.productos-container::after{
  max-width: 100vw;
  overflow: hidden;
  pointer-events: none;
}

/* Contenedor de productos */
.productos-container {
    position: relative;
    overflow: hidden;
}

/* === RESPONSIVE BACKGROUND === */
@media (max-width: 768px) {
    body::before,
    .productos-container::after {
        width: 800px;
        height: 1200px;
        filter: blur(18px);
    }

    body::before {
        top: -150px;
        right: -50px;
    }

    .productos-container::after {
        left: -50px;
        bottom: -100px;
    }
}

/* === TITULO === */
.productos {
    padding: 50px 5%;
    text-align: center;
}

.productos h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

/* === BOTÓN DE FILTRO === */
.filtro-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-filtro {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-filtro:hover {
  background-color: #f3b334;
  color: #000;
  transform: translateY(-2px);
}

/* Contenedor del botón de filtro y menú */
.filtro-container {
    position: relative;
}

/* Contenedor de filtros activos */
.filtros-activos-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
   align-items: center;
}

/* Cada filtro activo */
.filtro-activo {
    background-color: #f3b334;
    color: #000;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.filtro-activo .close-filtro {
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.filtro-activo .close-filtro:hover {
    transform: scale(1.2);
}

/* === Menu desplegable del filtro === */
.filtro-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 110%; 
  left: 0;
  background: #fff;
  color: #000;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
  min-width: 180px;
  z-index: 200;
  transform: rotateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
}

.filtro-menu li {
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filtro-menu li:hover {
  background: linear-gradient(90deg, #f3b334 0%, #f3b33499 100%);
  color: #000;
}

/* Mostrar menú activo */
.filtro-container.active .filtro-menu {
  transform: translateY(0);
  max-height: 500px;
  opacity: 1;
  padding: 10px 0;
}

/* Flecha */
.filtro-menu li::after {
    content: '➤';
    float: right;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.filtro-menu li:hover::after {
    transform: translateX(5px);
    opacity: 1;
}


/* Responsive */
@media (max-width: 768px) {
  .filtro-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

  .btn-filtro {
    width: 80%;
    justify-content: center;
  }

  .filtros-activos-container {
    max-width: 100%;
    margin-top: 10px;
    overflow-x: auto;
  }

  .productos-grid{
    gap: 15px;
  }
  .producto-img-container {
    width: 150px;
    height: 150px;
  }
}

/* === PRODUCTOS === */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.producto-card{
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  
    /* ✅ hace que todas las cards mantengan estructura
       y que el botón no “suba/baje” por textos largos */
    min-height: 420px;
  
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ✅ área de acciones al fondo */
.producto-actions{
    width: 100%;
    margin-top: auto;            /* 👈 empuja esta sección al fondo */
    display: flex;
    justify-content: center;     /* 👈 centra horizontalmente */
    padding-top: 10px;
}

/* ✅ contenedor tipo “card” como la imagen */
.producto-btn-container{
    width: 180px;                 /* igual que tu contenedor de imagen */
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    display: flex;
    justify-content: center;
}

.producto-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.producto-img-container{
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
  
    /* ✅ centra la imagen horizontal y vertical */
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* opcional: un fondo suave para que se vea pro */
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
  }

  .producto-img-container img{
    /* ✅ todas con el mismo alto visual */
    height: 160px;           /* ajusta a tu gusto: 150–170 */
    width: 100%;
    max-width: 170px;
  
    /* ✅ sin recorte, centrada */
    object-fit: contain;
    object-position: center;
  
    /* ✅ esquinas redondeadas */
    border-radius: 12px;
  
    display:block;
  }

.producto-card h3 {
    margin-bottom: 6px;
}

.producto-card p {
    margin-bottom: 12px;
}

/*.producto-card button {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: #f3b334;
    color: #000;
    cursor: pointer;
    margin: 5px 0;
    width: 80%;
    transition: 0.3s ease;
}

.producto-card button:hover {
    background: #d49c25;
}*/

/* === FOOTER === */
.footer {
    position: relative;
    background: #000;
    color: #fff;
    padding: 40px 5%;
    font-family: Arial, sans-serif;
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, #266b58, #959e3c) 1;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 25px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}

.footer-links h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #fff;
}

.footer-links.small-col h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-links.small-col .footer-payments h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #eee;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #f3b334;
    padding: 2px 6px;
    border-radius: 4px;
}

.footer-links.small-col .social-link a {
    margin-right: 10px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    transition: 0.3s ease;
}

.footer-links.small-col .social-link a:hover {
    transform: scale(1.3);
    background: #f3b334;
    color: #000;
}

.footer-payments {
    margin-top: 20px;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-icons div {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-icons div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.payment-icons div img:hover {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #ccc;
}

.footer-bottom .direccion {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === RESPONSIVE GENERAL === */
@media (max-width: 768px) {
    .banner-nav nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #222;
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    #nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-links.small-col {
        margin: 0 auto;
    }

    .footer-links ul {
        display: inline-block;
    }

    .footer-links ul li {
        margin-bottom: 8px;
    }

    .footer-payments {
        margin-top: 15px;
    }

    .payment-icons {
        justify-content: center;
    }

    .footer-links.small-col .social-link a {
        margin: 0 6px;
        margin-bottom: 10px;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}




  @media (max-width: 768px){
    .producto-img-container{
      width: 150px;
      height: 150px;
    }
    .producto-img-container img{
      height: 130px;
      max-width: 140px;
    }
  }

  @media (max-width: 768px){
    .producto-btn-container{
      width: 150px;   /* mismo ancho que tu imagen en móvil */
    }
  }



/* =========================================
   FIX: botón SIEMPRE pegado abajo
   (pegar AL FINAL del CSS)
========================================= */

/* 1) Forzamos que la card sea flex (por si otra regla la deja en block) */
.producto-card{
    display:flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  
    padding-bottom: 0 !important;   /* 👈 elimina el “aire” abajo */
    height: 440px;                  /* si quieres altura uniforme */
  }
  
  /* 3) Evita que títulos largos empujen el botón:
        máximo 2 líneas y reservamos espacio */
  .producto-card h3{
    margin-bottom: 6px;
    line-height: 1.2;
  
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   /* máximo 2 líneas */
    overflow: hidden;
  
    min-height: 2.4em;       /* reserva espacio para 2 líneas */
  }
  
  /* SKU con altura estable */
  .producto-card .sku{
    margin-bottom: 12px;
    min-height: 1.2em;
  }
  
  /* 4) Esta sección es la clave: se empuja al fondo */
.producto-actions{
    width: 100%;
    margin-top: auto !important;
    padding-top: 10px;
  
    /* ✅ respiro abajo de toda la zona del botón */
    padding-bottom: 12px;     /* ajusta 8–16px a gusto */
    display: flex;
    justify-content: center;
  }
  
  /* Contenedor del botón tipo “card” */
.producto-btn-container{
    width: 180px;
    padding: 10px;
  
    background: rgba(255,255,255,0.04);
    display:flex;
    justify-content:center;
    align-items: center;
  
    border-radius: 14px;
  
    /* opcional: un pelín de separación extra */
    margin-bottom: 0;
  }
  
  
  /* Botón (más angosto, centrado) */
.btn-carrito{
    width: 66%;               /* ✅ 2/3 aprox */
    margin: 0 auto !important;/* ✅ centrado dentro del contenedor */
    padding: 10px 14px;
  
    border: none;
    border-radius: 10px;
    background: #f3b334;
    color: #000;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease;
  }
  .btn-carrito:hover{ background: #d49c25; }
  
  /* Responsive */
@media (max-width: 768px){
    .producto-btn-container{ width: 150px; }
    .btn-carrito{ width: 70%; } /* en móvil un poquito más ancho */
  }

/* ================================
   PAGINACIÓN (override final)
   ================================ */

   .pager{
    margin-top: 22px;
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
  }
  
  /* Forzar TODOS los estados del link para evitar azul/morado */
  .pager .pager-btn,
  .pager .pager-btn:link,
  .pager .pager-btn:visited{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
  
    background: rgba(255,255,255,0.10);     /* blanco suave */
    border: 1px solid rgba(255,255,255,0.18);
  
    color: #fff !important;                  /* 👈 fuerza blanco */
    text-decoration: none !important;
    font-weight: 800;
  
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
  }
  
  /* Hover: un poco más “gris/oscuro” */
  .pager .pager-btn:hover{
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-1px);
  }
  
  /* Focus accesible (teclado) */
  .pager .pager-btn:focus,
  .pager .pager-btn:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(243,179,52,.35);
  }
  
  /* Activo: dorado (tu marca) */
  .pager .pager-btn.active{
    background: #f3b334;
    border-color: #f3b334;
    color: #000 !important;
    transform: none;
  }
  
  /* Opcional: deshabilitados si en algún momento los usas */
  .pager .pager-btn.is-disabled{
    opacity: .45;
    pointer-events: none;
  }

/* ================================
   FILTRO SIMPLE (pegado a la izquierda)
================================ */
.productos{ text-align:left; }              /* 👈 ya no centrado */
.productos h2{ text-align:left; }           /* por si aún existe */

/* barra del filtro */
.filter-bar{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom: 16px;
}

.filter-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}

.filter-btn:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}

.filter-ico{
  width:18px;
  height:18px;
  display:block;
  filter: brightness(0) invert(1); /* si tu SVG es oscuro */
  opacity: .95;
}

/* menú desplegable */
.filter-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  max-height: 360px;
  overflow:auto;

  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);

  padding: 8px;
  display:none;
  z-index: 999;
}

.filter-menu.open{ display:block; }

.filter-item{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;

  padding: 10px 12px;
  border-radius: 12px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  opacity:.95;
}

.filter-item:hover{
  background: rgba(255,255,255,0.10);
}

.filter-item.active{
  background: rgba(243,179,52,0.22);
  border: 1px solid rgba(243,179,52,0.35);
  color:#fff;
}

/* ====== FIX: MENU OCULTO SIEMPRE ====== */
.filter-menu{ display:none !important; }
.filter-menu.open{ display:block !important; }

/* ====== FIX: LINKS NO AZULES ====== */
.filter-menu a,
.filter-menu a:link,
.filter-menu a:visited{
  color:#fff !important;
  text-decoration:none !important;
}
.filter-menu a:hover{
  color:#fff !important;
}

/* SOLO MÓVIL/TABLET: cards más bajitas + texto más pequeño + ocultar SKU */
@media (max-width: 768px){

    .producto-card{
      min-height: 0 !important;
      height: 250px !important;      
      padding: 10px !important;
    }
  
    .producto-img-container{
      width: 120px !important;
      height: 120px !important;
      margin-bottom: 6px !important;
    }
  
    .producto-img-container img{
      height: 100px !important;
      max-width: 110px !important;
    }
  
    /* título más pequeño */
    .producto-card h3{
      font-size: 0.85rem !important;
      line-height: 1.12 !important;
      margin-bottom: 6px !important;
  
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
  
      min-height: 2.0em !important;
    }
  
    .producto-actions{
      padding-top: 6px !important;
      padding-bottom: 8px !important;
    }
  
    .producto-btn-container{
      width: 120px !important;
      padding: 6px !important;
    }
  
    .btn-carrito{
      width: 86% !important;
      padding: 7px 8px !important;
      font-size: 0.85rem !important;
    }
  
    /* ocultar SKU solo en móvil */
    .producto-card .sku{
      display: none !important;
    }
  }

  @media (max-width: 768px){
    .filter-menu{
      position: fixed !important;
      left: 12px !important;
      right: 12px !important;
      top: 120px !important;     /* ajusta según tu header */
      min-width: 0 !important;
      width: auto !important;
      max-width: calc(100vw - 24px) !important;
    }
  }