.home{
  display: flex;
  width: 100%;
  margin: 0 10px;
  justify-content: center;
  align-items: center;
}

#home__section{
  box-sizing: border-box;
  width: 100%;
  padding: 10px 10px 10px 10px;
  margin: auto;
}

.flash{
  background: linear-gradient(135deg, #ff4d94, #ff8a00);
  padding: 20px 20px 40px 20px;
  border-radius: 20px;
  margin: 10px 0;
}

.flash__title__container{
  background-color: black;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.flash h2{
  text-align: center;
  color: aliceblue;
  background-color: black;
  width: 50%;
  height: auto;
  margin: 7px  auto 30px auto;
  padding: 10px 10px;
  border-radius: 50px;
}

.flash__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.flash__card {
  background: white;
  border-radius: 15px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  position: relative;

  /* No cortar la imagen sobresaliente */
  overflow: visible;

  animation: aparecer 0.5s ease;
}

.flash__card h3{
  font-size: 1.5rem;
  margin: 35px 20px;
}


.flash__badge{
  position: absolute;
  top: 10px;
  left: 10px;

  background: red;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Área reservada para la imagen */
.flash__media {
  width: 100%;
  height: 260px;

  display: grid;
  place-items: center;

  position: relative;
  margin: 4px 0 12px;
}

/* Imagen que sobresale de forma controlada */
.flash__img {
  width: auto;
  max-width: 112%;
  max-height: 280px;

  display: block;
  object-fit: contain;

  position: relative;
  z-index: 2;

  transform: translateY(10px);

  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.18));
}

.flash__price {

  position: relative;
  z-index: 3;

  font-size: 2rem;
  font-weight: 700;
}

.flash__button_container {
  width: 50%;
  margin-top: auto;

  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;

  position: relative;
  z-index: 3;
}

.flash__card__container{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.flash__card button{
  cursor: pointer;
  border: none;
  border-radius: 10px;
  margin: auto;
  padding: 10px 20px;
}

.flash__button__compra{
  background-color: #28a745;
  color: aliceblue;
  transition: background-color 0.3s ease,
              font-weight 0.3 ease;
}
.flash__button__compra:hover{
  background-color: #40c057;
  font-weight: 500;
}

.flash__button__reserva{
  background-color: #44c;
  color: aliceblue;
  transition: background-color 0.3s ease,
              font-weight 0.3 ease;
}
.flash__button__reserva:hover{
  background-color: #7788dd;
  font-weight: 500;
}

@keyframes aparecer{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.flash__card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: 0.3s;
}

@media (max-width: 700px) {
  .flash__grid {
    gap: 22px;
  }

  .flash__media {
    height: 210px;
  }

  .flash h2{
  width: 90%;
  }

  .flash__img {
    max-width: 104%;
    max-height: 225px;
    transform: translateY(6px);
  }
}