/* Página Ofertas - estilos específicos de página */

html {
  scroll-behavior: smooth;
}

/* Hero personalizado para ofertas */
.hero-ofertas {
  background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 40%, var(--lego-yellow) 100%);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-ofertas::before {
  content: '🎁';
  position: absolute;
  font-size: 120px;
  opacity: 0.08;
  top: -20px;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-ofertas::after {
  content: '🎉';
  position: absolute;
  font-size: 100px;
  opacity: 0.08;
  bottom: -10px;
  right: 15%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-ofertas .container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-ofertas h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-ofertas p {
  margin: 0 auto;
  font-size: 1.125rem;
  color: #ffffff;
  max-width: 720px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Estadísticas de ofertas */
.stats-ofertas {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sección de filtros específica para ofertas */
.section-filtros-ofertas {
  padding-bottom: 0;
}

.filters-container {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.filters-container select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}

.filters-container select:hover {
  border-color: var(--primary);
}

.filters-container select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-filtros {
  margin-left: auto;
  cursor: pointer;
}

.btn-filtros-reset {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  margin-left: 8px;
}

.btn-filtros-reset:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* Ajustes visuales para la lista de ofertas */
.products-row {
  gap: 20px;
  padding: 24px 0;
  min-height: 300px;
}

/* Mantener secciones alternadas si se usan */
.section.alt {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Responsive para ofertas */
@media (min-width: 768px) {
  .hero-ofertas h1 {
    font-size: 3rem;
  }

  .hero-ofertas p {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-container select,
  .btn-filtros {
    width: 100%;
  }

  .btn-filtros {
    margin-left: 0;
  }

  .stats-ofertas {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* Transiciones de vista */
@view-transition {
  transition: cross-fade(0.5s);
}

/* Modo oscuro para ofertas */
[data-theme="dark"] .hero-ofertas {
  background: linear-gradient(120deg, #d97706 0%, #f59e0b 40%, var(--lego-yellow) 100%);
}

[data-theme="dark"] .hero-ofertas h1,
[data-theme="dark"] .hero-ofertas p {
  color: #ffffff;
}

[data-theme="dark"] .section.alt {
  background: linear-gradient(135deg, #181b21 0%, #0f1115 100%);
}

[data-theme="dark"] .stat-number {
  color: var(--secondary);
}

/* Contenedor de precios con descuento */
.product-price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* Precio original tachado */
.product-price-original {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Badge de oferta con descuento */
.badge-oferta {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: white;
  font-weight: 700;
}