
/* =====================================
   RECARGAS ASTORE
   DISEÑO GAMER RESPONSIVE
===================================== */

:root {
  --cyan: #00eaff;
  --blue: #008cff;
  --bg: #020b18;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

/* =====================================
   FONDO DE PRODUCTOS
===================================== */

.home {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;

  padding: 40px 15px 70px;

  background:
    linear-gradient(
      180deg,
      rgba(2,11,24,.15),
      rgba(2,11,24,.40)
    ),
    url("imaje/fondo-productos.png")
    center center / cover no-repeat;
}

/* =====================================
   CUADRICULA DE PRODUCTOS
===================================== */

.products,
#productos {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
  align-items: stretch;
}

/* =====================================
   TARJETAS DE PRODUCTOS
===================================== */

.product {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 285px;
  min-height: 285px;
  min-width: 0;

  padding: 12px;

  border-radius: 15px;
  overflow: hidden;

  background: rgba(3,15,30,.92);

  border: 1px solid #00d9ff99;

  color: var(--white);
  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(0,0,0,.45),
    0 0 15px rgba(0,234,255,.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

/* EFECTO AL PASAR EL MOUSE */

.product:hover {
  transform: translateY(-5px);

  border-color: var(--cyan);

  box-shadow:
    0 0 30px rgba(0,234,255,.35);
}

/* =====================================
   TODAS LAS PORTADAS IGUALES
===================================== */

.product-art {
  display: block;

  width: 100%;

  height: 145px;
  min-height: 145px;
  max-height: 145px;

  flex-shrink: 0;

  padding: 0;
  overflow: hidden;

  border-radius: 10px;

  background: #061522;
}

.product-art img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .4s ease;
}

/* ZOOM SUAVE */

.product:hover .product-art img {
  transform: scale(1.04);
}

/* PUBG MOBILE */

.product:has(img[src*="pubg-mobile"])
.product-art img {
  object-position: center 28%;
}

/* =====================================
   NOMBRE DEL PRODUCTO
===================================== */

.product h2 {
  display: -webkit-box;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  overflow: hidden;

  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;

  min-height: 45px;

  margin: 12px 0 5px;

  color: #ffffff;
}

/* =====================================
   PAQUETES DISPONIBLES
===================================== */

.product p {
  color: #a8cde0;

  font-size: 12px;
  line-height: 1.3;

  margin: 0 0 10px;
}

/* =====================================
   BOTON VER PAQUETES
===================================== */

.product-action {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  height: 36px;
  min-height: 36px;

  flex-shrink: 0;

  margin-top: auto;
  padding: 8px;

  border-radius: 8px;

  background:
    linear-gradient(
      90deg,
      #00eaff,
      #008cff
    );

  color: #001525;

  font-size: 12px;
  font-weight: 900;

  text-align: center;

  box-shadow:
    0 0 15px rgba(0,234,255,.20);

  transition: .3s ease;
}

.product:hover .product-action {
  box-shadow:
    0 0 25px rgba(0,234,255,.50);
}

/* =====================================
   TABLETS
===================================== */

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

  .home {
    padding: 35px 15px 60px;
  }

  .products,
  #productos {
    max-width: 650px;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 15px;
  }

  .product {
    height: 285px;
    min-height: 285px;
  }

}

/* =====================================
   TELEFONOS
   MANTENER DISEÑO COMPACTO
===================================== */

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

  .home {
    padding: 25px 10px 50px;

    background-position: center;
    background-size: cover;
  }

  /* DOS PRODUCTOS POR FILA */

  .products,
  #productos {
    width: 100%;
    max-width: 100%;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  /* CUADROS IGUALES */

  .product {
    width: 100%;

    height: 195px;
    min-height: 195px;

    padding: 7px;

    border-radius: 10px;
  }

  /* PORTADAS */

  .product-art {
    width: 100%;

    height: 92px;
    min-height: 92px;
    max-height: 92px;

    border-radius: 7px;
  }

  .product-art img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  /* NOMBRES */

  .product h2 {
    font-size: 12px;
    line-height: 1.2;

    min-height: 29px;

    margin: 8px 0 4px;
  }

  /* PAQUETES */

  .product p {
    font-size: 9px;
    line-height: 1.3;

    margin: 0 0 7px;
  }

  /* BOTONES */

  .product-action {
    width: 100%;

    height: 28px;
    min-height: 28px;

    padding: 5px;

    font-size: 9px;

    border-radius: 6px;
  }

}

/* =====================================
   TELEFONOS MUY PEQUEÑOS
===================================== */

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

  .home {
    padding-left: 7px;
    padding-right: 7px;
  }

  .products,
  #productos {
    gap: 7px;
  }

  .product {
    padding: 6px;
  }

  .product h2 {
    font-size: 11px;
  }

  .product p {
    font-size: 8px;
  }

  .product-action {
    font-size: 8px;
  }

}
