@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@300;400;600;900&display=swap');
/* Corregido: fuente válida de Google Fonts (antes "Epunda Slab" no existía) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;/*PARA QUE NO PRESENTE LAS LINEAS DE ABAJO */
  font-family: "Epilogue", serif;
}

body {
background-image: url(../IMAGENES/FONDO.png);
background-size: cover; /* Escala la imagen para cubrir todo el espacio */
}

html {
scroll-behavior: smooth;
}

#productos, #categorias, #contactos {
scroll-margin-top: 100px;
}

header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 80px;
background: white;
box-shadow: 0 4px 25px -22px black;
z-index: 10;
}

.header-content {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.logo {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo h1 b {
  color: blue;
}

.menu {
  height: 80px;
  margin-right: 60px;
}

.menu nav {
  height: 100%;
}

.menu nav ul {
  height: 100%;
  display: flex;
  list-style: none;
}

.menu nav ul li {
  height: 100%;
  margin: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.menu-select::before {
  content: '';
  width: 100%;
  height: 4px;
  background: blue;
  position: absolute;
  top: 0;
  left: 0;
}

.menu nav ul li a {
  color: #777;
  font-size: 18px;
  transition: color 300ms;
}

.menu nav ul li a:hover,
.menu .text-menu-select {
  color: blue;
}

/* Portada */
.container-cover {
  width: 100%;
  height: 700px;
  position: relative;
  background-image: url("../IMAGENES/AMAZON.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.container-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 172, 255, 0.466);
  z-index: 0;
}

.container-info-cover {
  max-width: 800px;
  height: 100%;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.container-info-cover h1 {
  font-size: 40px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.container-info-cover p {
  color: blanchedalmond;
  font-size: 20px;
  font-weight: 300;
}

/* Contenedor de categorías */
input[type="radio"] {
  display: none;
}

.container-category {
  width: 100%;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container-category label {
  padding: 6px 20px;
  margin: 10px;
  font-size: 20px;
  background: #e2e2e2;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.container-category label:hover {
  opacity: 0.8;
}

/* Publicaciones */
.container-post {
  max-width: 1200px;
  margin: auto;
}

.posts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
}

.posts .post {
  background: white;
  box-shadow: 0 0 20px -20px black;
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 20px;
}

.post .ctn-img {
  width: 100%;
}

.post .ctn-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post h2 {
  font-size: 18px;
  margin-top: 20px;
  padding: 20px;
}

.ctn-tag {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 0 16px;
}

.ctn-tag li {
  list-style: none;
  font-size: 14px;
  margin: 4px;
  padding: 6px 10px;
  background: rgba(232, 232, 232, 0.9);
  cursor: default;
}

.ctn-buy {
  margin-top: 15px;
}

.ctn-buy a {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid black;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.ctn-buy a:hover {
  background: rgb(32, 218, 224);
  color: black;
}

/* Buscador */
#ctn-icon-search {
  position: absolute;
  right: 20px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ctn-icon-search i {
  font-size: 18px;
  color: #777;
  cursor: pointer;
  transition: all 300ms;
}

#ctn-icon-search i:hover,
#ctn-icon-search i.active {
  color: #45a3fd;
}

#ctn-bars-search {
  position: fixed;
  top: -10px;
  width: 100%;
  background: #fff;
  padding: 20px;
  z-index: 9;
  transition: all 300ms;
}

#ctn-bars-search input {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 8px;
  font-size: 18px;
  outline: none;
}

/* Caja de búsqueda */
#box-search {
  position: fixed;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  background: white;
  z-index: 8;
  overflow: hidden;
  display: none;
}

#box-search li a {
  display: block;
  color: #777;
  padding: 12px 20px;
}

#box-search li a:hover {
  background: #f3fef3;
}

#box-search li a i {
  margin-right: 10px;
  color: #777;
}

#cover-ctn-search {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 7;
  display: none;
}

/* Footer */
.container-footer {
  background: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.container-footer h4 {
  color: black;
  font-size: 16px;
  margin-top: 15px;
}

.redes-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.redes-footer img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
  cursor: pointer;
}

.redes-footer img:hover {
  transform: scale(1.2);
}

/* Sistema de filtrado */
[value="TODOS"]:checked ~ .posts .post {
  display: block;
}

[value="ZAPATOS"]:checked ~ .posts .post:not([data-category="ZAPATOS"]),
[value="ROPA DEPORTIVA"]:checked ~ .posts .post:not([data-category="ROPA DEPORTIVA"]),
[value="AFEITADORA"]:checked ~ .posts .post:not([data-category="AFEITADORA"]),
[value="CONJUNTO"]:checked ~ .posts .post:not([data-category="CONJUNTO"]),
[value="BELLEZA"]:checked ~ .posts .post:not([data-category="BELLEZA"]),
[value="LIMPIEZA"]:checked ~ .posts .post:not([data-category="LIMPIEZA"]),
[value="TECNOLOGIA"]:checked ~ .posts .post:not([data-category="TECNOLOGIA"]) {
  display: none;
}

[value="TODOS"]:checked ~ .container-category [for="TODOS"],
[value="ZAPATOS"]:checked ~ .container-category [for="ZAPATOS"],
[value="ROPA DEPORTIVA"]:checked ~ .container-category [for="ROPA DEPORTIVA"],
[value="AFEITADORA"]:checked ~ .container-category [for="AFEITADORA"],
[value="CONJUNTO"]:checked ~ .container-category [for="CONJUNTO"],
[value="BELLEZA"]:checked ~ .container-category [for="BELLEZA"],
[value="LIMPIEZA"]:checked ~ .container-category [for="LIMPIEZA"],
[value="TECNOLOGIA"]:checked ~ .container-category [for="TECNOLOGIA"] {
  background: rgba(0, 60, 255, 0.753);
  color: white;
}

/* Responsivo */
@media screen and (max-width: 1200px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 580px) {
  .posts {
    grid-template-columns: repeat(1, 1fr);
  }
}
