/* Custom styles for Cupones ML */

.pb-safe {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Custom fade-in transition for the dynamic coupon grids */
.coupon-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

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

/* Tendencias cards */
.trend-card-orange {
  background: linear-gradient(180deg, #FF7A1A 0%, #FF9A3C 55%, #FFB04D 100%);
  min-height: 200px;
}

.trend-card-orange::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 1;
}

.trend-card-orange-title {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: 1.25rem 42% 1.25rem 1.25rem;
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.38);
  text-shadow: none;
}

.trend-card-orange-img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

@media (min-width: 768px) {
  .trend-card-orange-title {
    padding: 1.5rem 45% 1.5rem 2rem;
    font-size: 2.15rem;
  }
}

.trend-card-blue {
  background: linear-gradient(135deg, #2F6BFF 0%, #1E4FD6 55%, #173DB8 100%);
  min-height: 140px;
}

.trend-card-remates {
  background: linear-gradient(135deg, #FFF8DC 0%, #F7F3C8 45%, #E8F5E0 100%);
  min-height: 150px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.trend-card-remates::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 230, 100, 0.35);
  pointer-events: none;
}

/* Float continuo para box.png */
.box-float {
  animation: boxFloat 2.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes boxFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .box-float {
    animation: none;
  }
}

/* Banner 3: imagen completa sin recortar */
.trend-banner-3-img {
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  width: 100%;
  height: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
