/* =========================
   HOME – CONTENEDOR GENERAL
   ========================= */

body.home {
  overflow-x: clip; /* evita scroll horizontal por subpíxeles/100vw */
}

body.home .gns-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #fff;
}

/* =========================
   SLIDER FULL WIDTH (HERO)
   ========================= */

body.home .home-banner-full {
  width: 100%;
  margin: 0 0 80px 0;
  padding: 0;
}

body.home .home-banner-full .gns-slider {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  height: 650px;
}

body.home .gns-slider-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  will-change: transform; /* ayuda a suavizar y evitar glitches */
}

body.home .gns-slider-item {
  min-width: 100%;
}

body.home .gns-slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Flechas */
body.home .gns-slider-prev,
body.home .gns-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
}

body.home .gns-slider-prev:hover,
body.home .gns-slider-next:hover {
  background: rgba(0,0,0,0.7);
}

body.home .gns-slider-prev { left: 20px; }
body.home .gns-slider-next { right: 20px; }

/* =========================
   HOME – CUATRO CATEGORÍAS
   ========================= */

body.home .home-four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin: 0 auto 100px;
  padding: 0 60px; /* mismo “aire” que el gap */
}

body.home .home-four-columns .column {
  position: relative;
  aspect-ratio: 1 / 1;      /* 🔥 cuadrado perfecto */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;

  /* ahora es <a>, así que lo dejamos “como card” */
  display: block;
  text-decoration: none;
  color: inherit;

  /* Neón base (inactivo) */
  border: 1px solid rgba(34,34,34,1);
  transition:
    transform 0.4s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


/* Imagen de fondo */
body.home .home-four-columns .column::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.4s ease;
}

/* Overlay oscuro */
body.home .home-four-columns .column::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  transition: background 0.3s ease;
}

/* Texto */
body.home .column-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.1;
  width: 80%;
}

/* Hover: zoom + overlay + neón */
body.home .home-four-columns .column:hover::before {
  transform: scale(1.06);
}

body.home .home-four-columns .column:hover::after {
  background: rgba(0,0,0,0.36);
}

body.home .home-four-columns .column:hover {
  border-color: #3ecbff;
  box-shadow:
    0 0 0 1px rgba(62,203,255,0.7) inset,
    0 0 10px #3ecbff,
    0 0 18px rgba(62,203,255,0.55),
    0 0 28px rgba(62,203,255,0.35);
}

/* Hover: texto más elegante (premium, no “gaming”) */
body.home .home-four-columns .column:hover .column-label {
  text-shadow:
    0 0 6px #3ecbff,
    0 0 12px rgba(62,203,255,0.55);
}

/* =========================
   IMÁGENES CATEGORÍAS HOME
   (actualizado a slugs WooCommerce)
   ========================= */

body.home .column-lo-nuevo::before {
  background-image: url('/wp-content/themes/gnsStore/images/cat-lonuevo.webp');
}

body.home .column-mas-vendido::before {
  background-image: url('/wp-content/themes/gnsStore/images/cat-masvendido.webp');
}

body.home .column-destacados::before {
  background-image: url('/wp-content/themes/gnsStore/images/cat-destacados.webp');
}

body.home .column-favoritos::before {
  background-image: url('/wp-content/themes/gnsStore/images/cat-favoritos.webp');
}



/* =========================
   HOME – BENEFICIOS
   ========================= */

body.home .home-benefits {
  margin-top: 160px;
  margin-bottom: 160px;
  text-align: center;
}

body.home .home-benefits h2 {
  margin-bottom: 30px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

body.home .benefit-list {
  display: flex;
  gap: 20px;
  text-align: center;
}

body.home .benefit {
  flex: 1;
  font-size: 22px;
  font-weight: 600;
  padding: 23px 0;
  color: #fff;
  letter-spacing: 0.5px;
}

/* =========================
   HOME – BANNER MARCAS (FULL BLEED, CENTRADO, MÁS BAJO)
   ========================= */

body.home .brands-banner-section{
  width: 100%;
  margin: 40px 0;   /* aire arriba y abajo, ajustable */
  padding: 0;
  overflow: hidden;
}

body.home .brands-banner-img{
  width: 100%;
  height: auto;     /* clave: NO se recorta */
  display: block;
}

/* =========================
   HOME – FAQ
   ========================= */

body.home .faq-section {
  max-width: 1600px;
  margin: 80px auto;
  padding: 0 20px;
  color: #fff;
}

body.home .faq-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: 1px;
}

body.home .faq-accordion {
  width: 100%;
}

body.home .faq-item {
  background: transparent;
  border: 1px solid #222;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.home .faq-item.active {
  border-color: #3ecbff;
  box-shadow: 0 0 8px #3ecbff, 0 0 16px #3ecbff;
}

body.home .faq-question {
  width: 100%;
  background: transparent;
  color: #fff;
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

body.home .faq-question:hover {
  background: #0d0d0d;
}

body.home .faq-icon {
  font-size: 22px;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
}

body.home .faq-answer {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0 0 10px 10px;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

body.home .faq-answer p {
  margin: 15px 0 20px;
  font-size: 18px;
  color: #ddd;
  line-height: 1.4;
}

body.home .faq-item.active .faq-answer {
  max-height: 300px;
}

body.home .faq-item.active .faq-question {
  background: #111;
}

body.home .faq-item.active .faq-icon {
  transform: rotate(90deg);
  color: #3ecbff;
  text-shadow: 0 0 6px #3ecbff, 0 0 12px #3ecbff, 0 0 18px #3ecbff;
}

/* =========================
   HOME – RESPONSIVE
   ========================= */

@media (max-width: 768px) {

  body.home .home-banner-full .gns-slider {
    height: 220px;
  }

  body.home .gns-slider-prev,
  body.home .gns-slider-next {
    font-size: 26px;
    padding: 6px 10px;
  }

  body.home .home-four-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  body.home .home-four-columns .column {
    height: 220px;
  }

  body.home .benefit-list {
    flex-direction: column;
  }

  body.home .faq-section h2 {
    font-size: 28px;
  }

  body.home .faq-question {
    font-size: 18px;
    padding: 18px;
  }

  body.home .faq-answer p {
    font-size: 16px;
  }

  body.home .brands-banner-img{
    height: 260px; /* en mobile mejor fijo */
  }
}
