/* ══════════════════════════════════════════
   OFERTAS CSS
   ══════════════════════════════════════════ */

/* HERO OVERRIDES */
.ofertas-hero {
  /* Inherits from .internal-hero */
}

.ofertas-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.ofertas-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* MAIN CONTAINER */
.ofertas-main {
  background-color: var(--bg-body);
  min-height: 50vh;
  padding-bottom: 80px;
}

.ofertas-loader-state, .ofertas-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}

.ofertas-empty-state svg {
  margin-bottom: 16px;
  color: var(--border-color);
}

.ofertas-empty-state h3 {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* GRID */
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-top: 32px;
}

/* CARD DESIGN */
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

/* IMAGE AREA */
.promo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.dark-mode .promo-img-wrap {
  background: #0f172a;
}

.promo-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.promo-card:hover .promo-img-wrap img {
  transform: scale(1.05);
}

/* BADGES */
.promo-badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff3b30;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* INFO AREA */
.promo-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.promo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PRICES */
.promo-price-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
}

.dark-mode .promo-price-box {
  background: rgba(37, 99, 235, 0.08);
}

.promo-price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
  font-weight: 500;
}

.promo-price-new {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563eb;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dark-mode .promo-price-new {
  color: #60a5fa;
}

.promo-price-new span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* COUNTDOWN TIMER */
.promo-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timer-box {
  display: flex;
  gap: 4px;
}

.timer-segment {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--text-color);
  min-width: 32px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* ADD TO CART BUTTON */
.btn-promo-cart {
  margin-top: auto;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-promo-cart:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.btn-promo-cart:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .ofertas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* SPINNER PARA EL LOADER */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-left-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
