/* Contenedor principal */
.index-container {
  margin: 0 auto;
  padding: 1rem;
  max-width: 1200px;
}


/* Sección destacado */

.destacado{
    margin-top: 2rem;
}

.destacado__video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow-first);
}

.destacado__video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.destacado__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6); /* fondo translúcido para contraste */
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  max-width: 80%; /* evita que se extienda demasiado en mobile */
}

.destacado__overlay h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.destacado__overlay p {
  font-size: 1rem;
  margin: 0;
}
.producto-principal{
    position: absolute;
    top: 40%;
    left: 70.5%;
    width: 56%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: .5rem .5rem;
    border-radius: 8px;
}

.producto-principal h2 {
    font-size: 1rem;
    margin-bottom: .5rem;
    font-weight: bold;
}

.producto-principal p {
    font-size: .8rem;
    margin: 0;
}

/* Cards recomendadas */

.recomendados{
    margin-bottom: 5rem;
}
.recomendados__titulo {
  text-align: center;
  color: var(--first-color);
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.recomendados__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow-black);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.25);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card__body {
  padding: 1rem;
  text-align: center;
}

.card__price {
  font-weight: bold;
  color: var(--first-color);
  margin-top: .5rem;
}

.card__boton {
  display: inline-block;
  margin-top: 1rem;
  padding: .5rem 1rem;
  background: var(--first-color);
  color: var(--white-color);
  border-radius: 4px;
  text-decoration: none;
  transition: background .3s ease;
}

/* Animaciones */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
  animation: fadeUp .8s ease forwards;
}

/* Cards hover */
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.25);
}
