@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(to bottom right, #1f1f2e, #343a40);
  font-family: 'Comic Neue', cursive;
  color: #f4f4f8;
  height: 100vh;
}

.cabecera {
  height: 60px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #6ec3ff, #ff6ec7);
  padding: 0 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cabecera a, .cabecera h1 {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.cabLadoIzquierdo, .cabLadoDerecho {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cabLadoIzquierdo div,
.cabLadoDerecho div {
  font-family: 'Comic Neue', cursive;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.cabLadoIzquierdo div:hover,
.cabLadoDerecho div:hover {
  border-bottom: 2px solid white;
}

.cabCentro h1 {
  font-size: 28px;
  margin-top: 5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.anuncio-bar {
  background: #ff6ec7;
  color: white;
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 10px;
}

.barraAnuncioMensa {
  animation: scroll-left 60s linear infinite;
  white-space: nowrap;
  font-size: 14px;
  color: white;
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.fila-imagenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 40px 20px;
  gap: 20px;
}

.imagenConhover {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
  flex: 1 1 220px;
  min-width: 180px;
  cursor: pointer;
}

.imagenConhover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
  position: absolute;
  top: 0;
  left: 0;
}

.imagenConhover img.hover-img {
  opacity: 0;
  z-index: 2;
}

.imagenConhover:hover img.hover-img {
  opacity: 1;
}

.imagenConhover:hover img:not(.hover-img) {
  opacity: 0;
}



.imagenConhover:hover {
  transform: scale(1.03);
}

.imagenConhover:hover img:first-child {
  opacity: 0;
}

/* Imagen principal y video adaptativos */
.imagen-grande1, .video-grande1 {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    object-fit: cover;
}
.productos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}
.producto-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1rem;
    height: 100%;
}
.producto-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.producto-card:hover {
  transform: translateY(-5px);
}

.producto-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f4f4f8;
  transition: transform 0.2s;
}

.producto-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 4px;
}

.producto-card p {
  font-size: 0.9rem;
  color: #555;
}

.producto-precio {
  font-weight: bold;
  color: #1a8917;
  margin: 8px 0;
  font-size: 1.1rem;
}

.form-cesta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.input-cantidad {
  width: 56px;
  padding: 6px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #f0f0f0;
  text-align: center;
}

.input-cantidad:focus {
  border-color: #1a8917;
  box-shadow: 0 0 4px #1a891780;
  outline: none;
}

.btn-cesta {
  padding: 7px 18px;
  background: linear-gradient(90deg, #1a8917, #2ecc40);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-cesta:hover {
  background: linear-gradient(90deg, #166d13, #27ae60);
  transform: scale(1.03);
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 18px 10px;
  font-family: 'Comic Neue', cursive;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cabecera {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
  }

  .fila-imagenes {
    flex-direction: column;
    align-items: center;
  }

  .producto-card {
    height: auto;
  }

  .form-cesta {
    flex-direction: column;
    gap: 6px;
  }
}
