/* === Estilo de inicio.css === */


/* === RESET GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body{
  background-color: #000;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

/* 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;
}

/* ✅ Candado anti “scroll lateral” por manchas */
body::before,
.productos-container::after{
  max-width: 100vw;
  overflow: hidden;
  pointer-events: none;
}

/* Contenedor principal (clave) */
.productos-container{
  position: relative;
  overflow: hidden; /* 👈 importante */
}

/* 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;
  }
}

/* ============ HERO SWIPER (1500x500 aprox, responsive) ============ */
.hero-swiper{
    position: relative;
    padding: 0;
    margin: 0 0 clamp(28px, 6vw, 60px);
  }
  .hero-swiper .swiper.hero{
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
  }

  .hero-swiper,
  .hero-swiper .swiper.hero{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Cada slide mantiene look 3:1; en móvil toma alto útil */
  .hero-swiper .swiper-slide{
    position: relative;
    aspect-ratio: 3 / 1;                      /* 1500x500 */
    min-height: clamp(240px, 40vw, 520px);    /* responsive */
  }
  
  /* Imagen */
  .hero-swiper .slide-media,
  .hero-swiper .slide-media img{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
  }
  .hero-swiper .slide-media img{
    object-fit: cover;
    object-position: var(--obj-pos, 50% 50%); /* foco ajustable por slide */
    transform: scale(1.06);
    transition: transform 1200ms ease, filter 1200ms ease;
    filter: brightness(.92) contrast(1.02);
  }
  .hero-swiper .swiper-slide-active .slide-media img{
    transform: scale(1.0);
    filter: brightness(.98) contrast(1.03);
  }
  
  /* Overlay con negro + acento marca */
  .hero-swiper .slide-overlay{
    position: absolute; inset: 0;
    background:
      linear-gradient( to right, rgba(0,0,0,.65) 12%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.05) 72% ),
      radial-gradient(800px 420px at 16% 44%, rgba(243,179,52,.18), transparent 60%),
      radial-gradient(700px 380px at 10% 80%, rgba(38,107,88,.18), transparent 70%);
    pointer-events: none;
  }
  
  /* Contenido */
  .hero-swiper .slide-content{
    position: absolute; inset: 0;
    display: grid; align-content: center; justify-items: start;
    padding: 0 5%;
    max-width: 1280px; margin: 0 auto;
  }
  .hero-swiper .slide-title{
    font-size: clamp(1.6rem, 3.6vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: .2px;
  }
  .hero-swiper .slide-sub{
    max-width: 720px;
    color: #e9e9e9;
    margin: 0 0 16px;
    font-size: clamp(.95rem, 1.5vw, 1.15rem);
    line-height: 1.55;
  }
  
  /* CTA */
  .hero-swiper .slide-cta{
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; text-decoration: none;
    background: #f3b334; color: #000; font-weight: 800;
    letter-spacing: .3px; border-radius: 10px;
    padding: 12px 22px; min-width: 200px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(243,179,52,.25);
  }
  .hero-swiper .slide-cta:hover{
    background: #d49c25; transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(243,179,52,.35);
  }
  
  /* Flechas */
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next{
    width: 46px; height: 46px;
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    transition: transform .2s ease, background .2s ease;
  }
  .hero-swiper .swiper-button-prev:hover,
  .hero-swiper .swiper-button-next:hover{
    background: #f3b334; transform: scale(1.05);
  }
  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after{
    font-size: 18px; color: #000; font-weight: 900;
  }
  
  /* Bullets */
  .hero-swiper .swiper-pagination{
    bottom: 10px !important;
  }
  .hero-swiper .swiper-pagination-bullet{
    width: 10px; height: 10px; opacity: .7;
    background: #fff; border: 2px solid rgba(0,0,0,.35);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
  }
  .hero-swiper .swiper-pagination-bullet-active{
    background: #f3b334; opacity: 1; transform: scale(1.15);
  }
  
  /* Responsive tweaks (tablet) */
  @media (max-width: 900px){
    .hero-swiper .swiper-slide{
      aspect-ratio: 2 / 1;
      min-height: 56vw;
    }
  }
  
  /* Responsive tweaks (móvil) */
  @media (max-width: 600px){
    .hero-swiper .swiper-slide{
      aspect-ratio: 16 / 9;
      min-height: 58vw;
    }
    .hero-swiper .slide-content{
      justify-items: center; text-align: center; align-content: end;
      padding: 0 18px 22px;
    }
    .hero-swiper .slide-title{
      font-size: clamp(1.3rem, 6.5vw, 2rem);
      line-height: 1.15;
    }
    .hero-swiper .slide-sub{
      font-size: clamp(.9rem, 3.8vw, 1.05rem);
      margin-bottom: 12px; max-width: 90%;
    }
    .hero-swiper .slide-cta{
      width: 100%; min-width: 0; padding: 12px 18px;
    }
    /* overlay un poco más oscuro en móvil para legibilidad */
    .hero-swiper .slide-overlay{
      background:
        linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.05) 100%),
        radial-gradient(600px 360px at 50% 15%, rgba(243,179,52,.18), transparent 65%),
        radial-gradient(520px 320px at 50% 85%, rgba(38,107,88,.16), transparent 70%);
    }
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next{
      width: 38px; height: 38px;
    }
    .hero-swiper .swiper-pagination{ bottom: 6px !important; }
  }
  
  /* Teléfonos muy pequeños: prioriza título + botón */
  @media (max-width: 380px){
    .hero-swiper .slide-sub{ display: none; }
  }


/* === 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;
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}
.producto-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}
.producto-img-container {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
}
.producto-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.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;
    }
}

/* =========================
   CTA: Ver Catálogos (Home)
   ========================= */
.cta-catalogos{
  position: relative;
  padding: clamp(42px, 7vw, 90px) 5%;
  margin: clamp(24px, 6vw, 60px) 0;
  overflow: visible;
}
/* Fondo con manchas doradas */
.cta-catalogos__bg{
  position: absolute;
  inset: -40px 0 -40px 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(243,179,52,0.22), transparent 60%),
    radial-gradient(700px 420px at 15% 80%, rgba(243,179,52,0.18), transparent 65%);
  filter: blur(10px);
}
/* Tarjeta central */
.cta-catalogos__card{
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  text-align: center;
  color: #fff;
}
/* Badge superior */
.cta-catalogos__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #266b58, #959e3c);
  color: #000;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
}
.cta-catalogos__title{
  margin: 14px 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: #fff;
}
.cta-catalogos__text{
  margin: 0 auto 18px;
  max-width: 700px;
  color: #ddd;
  line-height: 1.6;
  font-size: clamp(.95rem, 1.7vw, 1.05rem);
}
/* Botón principal */
.cta-catalogos__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #f3b334;
  color: #000;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 10px;
  padding: 12px 24px;
  min-width: 220px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(243,179,52,0.25);
}
.cta-catalogos__btn:hover{
  background: #d49c25;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243,179,52,0.35);
}
/* Responsive CTA */
@media (max-width: 640px){
  .cta-catalogos__card{ padding: 22px 18px; }
  .cta-catalogos__btn{ width: 100%; min-width: 0; }
}

/* ✅ FIX anti-scroll lateral (Swiper / transforms) */
body{
  overflow-x: hidden;
  overflow-x: clip; /* iOS friendly */
}

.hero-swiper,
.hero-swiper .swiper,
.hero-swiper .swiper-wrapper{
  max-width: 100%;
  overflow: hidden;
}

/* Por si algún slide se sale por 1px */
.hero-swiper .swiper-slide{
  overflow: hidden;
}


/* =========================================
   FIX DEFINITIVO: quitar scroll lateral en inicio
   (pegar al FINAL de inicio.css)
========================================= */

/* 1) Candado general */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* 2) El contenedor NO debe “crear ancho” */
.productos-container{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 3) Swiper: evitar que wrapper/slide creen ancho extra */
.hero-swiper,
.hero-swiper .swiper,
.hero-swiper .swiper-wrapper{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 4) OJO: la clase real de Swiper es .swiper-slide (no .hero-swiper .swiper-slide siempre alcanza) */
.swiper-slide{
  max-width: 100%;
  overflow: hidden;
}
.hero-swiper .swiper-button-next{ left: auto; right: 12px; }

/* 6) Imágenes: evita cualquier overflow raro */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px){
  .lead-grid{
    grid-template-columns: 1fr !important;
  }
}


/* ✅ FIX REAL: botones Swiper sin overflow */
.hero-swiper .swiper-button-prev{
  left: 12px !important;
  right: auto !important;
}
.hero-swiper .swiper-button-next{
  right: 12px !important;
  left: auto !important;
}

/* ✅ Aislar Swiper para que transforms NO agranden el body */
.hero-swiper{
  overflow: hidden;
  contain: paint;          /* clave: evita que el paint afecte el layout afuera */
}

.hero-swiper .swiper-wrapper{
  transform: translate3d(0,0,0); /* fuerza compositor */
}

/* Parallax: evita que el contenido salga lateralmente */
.hero-swiper .slide-content{
  max-width: 100%;
  overflow: hidden;
}

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.productos-container{
  position: relative;
  overflow: hidden;
}

/* ===== FIX DEFINITIVO: Swiper no debe poder agrandar el documento ===== */

/* 1) Asegura que el hero recorta todo */
.hero-swiper,
.hero-swiper .swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide,
.hero-swiper .slide-media{
  overflow: hidden !important;
}

/* 2) IMPORTANTÍSIMO: el contenedor del <img> debe ser el que manda el ancho */
.hero-swiper .slide-media{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* 3) Y el IMG nunca debe poder exceder el contenedor */
.hero-swiper .slide-media img{
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Honeypot seguro: NO usar left:-9999px (provoca overflow en iOS) */
.hp{
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}