/* ============================================
   ESTRUCTURA PRINCIPAL
   ============================================ */
#main-content {
  padding: 40px 0;
  margin: 0 auto;
  min-height: 100vh;
}

section.lotes-section {
  min-height: 100vh !important;
  height: auto !important;
  padding: 2rem 0;
}

/* ============================================
   CARRUSEL
   ============================================ */
.carousel-inner {
  padding: 0;
}

.carousel-item {
  position: relative;
  transition: transform 1.1s ease-out, opacity 1s ease-out !important;
  opacity: 1;
  padding: 3rem 1rem 8rem;
  min-height: 80vh;
}

.carousel-item img {
  margin: 0 auto;
  max-height: 60vh;
  max-width: 100%;
  object-fit: contain;
}

/* Indicadores */
.carousel-indicators button {
  background-color: black !important;
  height: 15px !important;
  width: 15px !important;
  border-radius: 50% !important;
}

.carousel-indicators {
  bottom: -3rem !important;
}

/* ============================================
   ETIQUETA DE DESCUENTO
   ============================================ */
.tag-discount {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background-color: #ff3b3b;
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-item:hover .tag-discount {
  animation: heartBeat 2.5s;
}

/* ============================================
   TÍTULO DEL PRODUCTO
   ============================================ */
.title-absolute {
  font-size: 3rem !important;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 2rem;
  color: var(--primary-color, #333);
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 1rem;
}

/* ============================================
   CONTENEDOR DE DESCRIPCIÓN
   ============================================ */
.descripcion-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.descripcion-izquierda,
.descripcion-derecha {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.text-description {
  font-size: 1rem;
  color: #fff;
  background-color: #204136 !important;
  padding: 12px 20px;
  border-radius: 25px;
  opacity: 1;
  transition: all 0.3s ease;
  animation: text-appear 0.8s ease-out forwards;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.text-description:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
  cursor: default;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes text-appear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BOTÓN DE COMPRA
   ============================================ */
.boton-compra-container {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.boton-compra-container button {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--secondary-color, #204136);
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.boton-compra-container button:hover {
  background: var(--secondary-color-hover, #204136) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.boton-compra-container button:active {
  transform: translateY(0);
}

.boton-compra-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
.falling-box-animation {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 9999;
  background-color: transparent;
  pointer-events: none;
}

.falling-box {
  width: 150px;
  animation: box-fall 5s ease-in-out forwards;
}

@keyframes box-fall {
  0% {
    transform: translateY(-100%) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(40vh) scale(1.5);
  }
  100% {
    transform: translateY(46vh) scale(3.3);
  }
}

.cortain-drop-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

.logo-iberikos {
  width: 600px;
  height: auto;
}

.drop {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--green-color, #4caf50);
  animation: drop-fall 3s ease-in-out forwards;
}

@keyframes drop-fall {
  0% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

@keyframes fade-in-zoom {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.main-content {
  animation: fade-in-zoom 1s ease-out forwards;
  transform-origin: center;
}

/* ============================================
   TOAST DE NOTIFICACIÓN
   ============================================ */
.toast-success {
  position: fixed;
  top: 13%;
  right: 2rem;
  background: var(--green-color, #4caf50);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s, transform 0.3s ease-out;
}

.toast-success.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* ============================================
   MODAL MÓVIL
   ============================================ */
.modal-body p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE - TABLETS
   ============================================ */
@media (max-width: 992px) {
  .title-absolute {
    font-size: 2.5rem !important;
  }

  .tag-discount {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }

  .descripcion-container {
    padding: 0 1rem;
  }

  .text-description {
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  .boton-compra-container button {
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
  }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */
@media (max-width: 768px) {
  section.lotes-section {
    min-height: auto !important;
  }

  .carousel-item {
    padding: 2rem 0.5rem 6rem;
    min-height: auto;
  }

  .title-absolute {
    font-size: 2rem !important;
    margin-bottom: 1.5rem;
  }

  .tag-discount {
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
  }

  .carousel-item img {
    max-height: 40vh;
  }

  /* En móvil, ocultamos las descripciones flotantes */
  .descripcion-container {
    display: none;
  }

  /* Mostramos el botón de ver descripción */
  .btn-ver-descripcion {
    display: block !important;
    margin: 1rem auto;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .boton-compra-container {
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .boton-compra-container button {
    font-size: 1.2rem;
    padding: 0.9rem 1.5rem;
  }

  .carousel-indicators {
    bottom: -2rem !important;
  }

  .logo-iberikos {
    width: 250px;
  }

  @keyframes box-fall {
    0% {
      transform: translateY(-100%) scale(0.5);
      opacity: 0;
    }
    50% {
      opacity: 1;
      transform: translateY(20vh) scale(1.2);
    }
    100% {
      transform: translateY(24vh) scale(1.95);
    }
  }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ============================================ */
@media (max-width: 576px) {
  .title-absolute {
    font-size: 1.5rem !important;
  }

  .boton-compra-container button {
    font-size: 1.1rem;
  }

  .carousel-indicators button {
    height: 12px !important;
    width: 12px !important;
  }
}