:root {
  --color1: #1d1d1b;
  --color2: #4e4e4e;
  --color3: #d1ccca;
  --color4: #fbdcd9;
  --color5: #ac988f;
  --color6: #e8dacf;
  --color7: #ffffff;

  --color8: #f6f6b3;
  --color9: #b08f43;

  --color10: #f1f1f3;
  --color11: #b4b6b9;

  --gradient-start: #e1ba70;
  --gradient-mid: #aa7648;
  --gradient-end: #a57c51;

  --hover-gradient-start: #f7d488;
  --hover-gradient-mid: #e1b35d;
  --hover-gradient-end: #d19c4b;
}

/* Letra */

body {
  background: var(--color7);
  font-family: "Kalnia", serif;
}

/* Contenedor Principal */
#contenedorP {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.2rem;
}

/* InicioP */

#div-principal {
  background-color: transparent;
}

#inicioP {
  width: 100%;
  height: 100vh;
  background-image: url("../img/PG_Principal/PrincipalBackground.jpg");
  background-size: cover; /* Hace que la imagen cubra todo el div */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que se repita */
  position: relative; /* necesario para posicionar contenido encima */

  /* Contenido */
  color: var(--color7);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Productos */

#productos {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0rem;
}

#tituloP {
  width: 97%;
  font-size: 2rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Buscador */
#contenedorBuscador {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}

#buscador {
  padding: 0.5rem 1rem;
  border: 2px solid black;
  font-size: 1rem;
  border-radius: 5px;
  flex: 1;
  max-width: 300px;
}

/* ContenedorProductos */

.link-producto {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

#contenedorProductos {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Imagen Producto */

.producto {
  width: 25%;
  padding: 0.3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  color: inherit; /* hereda el color para que los textos no se pongan azules */
}

.imagen-contenedor {
  position: relative;
  width: 100%;
  padding-top: 135%;
  overflow: hidden;
}

.imgProducto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /*transition: opacity 0.4s ease;*/
  display: block;
  pointer-events: none;
}

.imgProducto.principal {
  opacity: 1;
  z-index: 2;
}

.imgProducto.hover {
  opacity: 0;
  z-index: 1;
}

.producto:hover .imgProducto.principal {
  opacity: 0;
}

.producto:hover .imgProducto.hover {
  opacity: 1;
}

.productoContenido {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "Kalnia", serif;
}

p {
  margin: 0;
  padding: 0;
}

.nombreProducto {
  font-weight: 600;
}

.precioProducto {
  font-size: 0.8rem;
}

/* Banner */

#banner2 {
  width: 100%;
  height: 100vh;
  background-image: url("../img/PG_Principal/BannerNo1.jpg");
  background-size: cover; /* Hace que la imagen cubra todo el div */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que se repita */
  position: relative; /* necesario para posicionar contenido encima */

  /* Contenido */
  color: var(--color7);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Hoodies */

#hoodies {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0rem;
}

/* Accesorios */

#accesorios {
  width: 98%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}

#accesorios div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgACC {
  transition: transform 0.4s ease;
  width: 100%; /* O usa un valor fijo como 300px si lo prefieres */
  height: 100dvh; /* Ajusta según necesites */
  object-fit: cover; /* Recorta la imagen manteniendo proporción */
  display: block;
}

.imgACC:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
  cursor: pointer;
}
/* Footer */

footer {
  width: 100%;
  background: var(--color2);
  color: var(--color7);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding-bottom: 3rem;
}

#logMagnoRD {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

#opcionesFooter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

#opcionesFooter > div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#fOpciones {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* Links a */
a {
  display: block;
  color: var(--color7);
  text-decoration: none;
  margin: 0.3rem 0;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Logos MAGNO */

#logoMagno {
  z-index: 99;
  width: 13rem;
  height: auto;
  transition: top 0.3s ease, transform 0.3s ease;
  padding: 10rem 0 1.5rem 1rem;
}

.fijo {
  transform: scale(1.05);
  position: fixed;
  top: -10rem;
  z-index: 100;
}

#logoMagnoF {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

/* Media Queries */

/* Pantallas medianas: tablets (≤1024px) */
@media (max-width: 1024px) {
  .producto {
    width: 50%; /* 2 productos por fila */
  }

  #opcionesFooter {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Pantallas pequeñas: móviles (≤768px) */
@media (max-width: 768px) {
  #inicioP {
    height: 100vh; /* Ajusta la altura para móviles */
  }

  #menu {
    flex-direction: column;
    font-size: 1.5rem;
    gap: 0.5rem;
  }

  #hoodies {
    gap: 0rem;
  }

  #tituloP {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .producto {
    width: 50%; /* 2 producto por fila */
  }

  #accesorios {
    flex-wrap: wrap;
 
  }

  .imgACC {
    width: 95%;
    height: 70dvh;
  }
  #logMagnoRD,
  #opcionesFooter {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer h1 {
    font-size: 1.2rem;
  }

  a {
    font-size: 0.95rem;
  }

  .nombreProducto {
    font-size: 0.8rem;
  }

  .precioProducto {
    font-size: 0.75rem;
  }

  .productoContenido {
  gap: 0.2rem;
  }

  #contenedorP {
  gap: 0.3rem;
  }

  .fijo {
    top: -9.2rem;
    transform: scale(0.89);
  }

  #logoMagno {
    width: 9rem;
    padding: 10rem 0 1.5rem 0rem;
  }
}
