body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}




header {
  position: relative;
}

.marquesina {
  background-color: #ffffff;
  color: #1aff00;
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  font-family: 'Press Start 2P', monospace;
}

.marquesina p {
  white-space: nowrap;
  padding-left: 100%;
  animation: mover 20s linear infinite;
  font-size: 14px;
}

@keyframes mover {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 20px;
  background-color: #1aff00;
  position: relative;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* Agrupa la lupa y el menú horizontalmente */
.derecha-nav {
  display: flex;
  align-items: center;
  gap: 15px; /* separación entre la lupa y las 3 rayas */
}

/* Menú hamburguesa */
.menu-hamburguesa {
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Bloque de búsqueda */
.busqueda {
  display: flex;
  align-items: center;
  position: relative;
}

.icono-busqueda {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.input-busqueda {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  z-index: 999;
}

.input-busqueda.activa {
  display: block;
}

/* Menú desplegable */
.menu-desplegable {
  display: none;
  position: absolute;
  top: 100px; /* justo debajo del nav */
  right: 20px;
  background-color: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 999;
}

.menu-desplegable li {
  margin: 10px 0;
}

.menu-desplegable li a {
  text-decoration: none;
  color: black;
  font-family: "Press Start 2P", system-ui;
  font-size: 12px;
}
main {
  padding: 40px 20px;
}

main + main {
  margin-top: -40px;   /* o 0 si no quieres nada */
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.producto {
  background: #1aff00;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: left; /* ahora alineado a la izquierda */
  transition: transform 0.2s ease;
  font-family: "Quicksand", sans-serif; /* tipografía cambiada */
  font-size: 12px; /* tamaño base */
  line-height: 1.4;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.producto h3 {
  margin: 0 0 5px;
  font-weight: 400; /* fuerza a que no sea bold */
}

.producto p {
  margin: 0;
  font-weight: bold;
  color: #333;
}



.producto .imagen-container {
  position: relative;
  overflow: hidden;
}

.producto .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.producto .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* oscurece */
  color:  #1aff00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-transform: uppercase;
}

.producto:hover .img-original {
  opacity: 0;
}

.producto:hover .img-hover,
.producto:hover .overlay {
  opacity: 1;
}

.texto-hover,
.precio-hover {
  display: none;
}

.producto:hover .texto-original,
.producto:hover .precio-original {
  display: none;
}

.producto:hover .texto-hover,
.producto:hover .precio-hover {
  display: inline;
}


.overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  color:  #1aff00;
  background-color: rgba(0, 0, 0, 0.6); 
  padding: 4px;
  border-radius: 4px;
}


footer {
  margin-top: auto; /* empuja el footer al fondo */
  background-color: #ffffff;
  color: #1aff00;
  padding-top: 30px;
  padding-bottom: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-align: left;
}


.img-wrapper {
  position: relative;
  display: inline-block;
}

.img-wrapper img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.icono-corazon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  cursor: pointer;
}