.button,
.btn-comprar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  border-radius: var(--radius-full);
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.button--primary,
.btn-comprar {
  background: var(--rojo);
  color: #ffffff;
  border: 2px solid transparent;
}

.button--primary::before,
.btn-comprar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.button--primary:hover::before,
.btn-comprar:hover::before {
  left: 150%;
}

.button--primary:hover,
.btn-comprar:hover {
  background: var(--rojo-oscuro);
  box-shadow: var(--shadow-rojo);
  transform: translateY(-2px);
}

.button--primary:active,
.btn-comprar:active {
  transform: translateY(0);
}

.button--ghost {
  border: 1px solid var(--borde-strong);
  background: var(--bg-card);
  color: var(--texto-sec);
}

.button--ghost:hover {
  color: var(--texto);
  border-color: var(--rojo);
  background: var(--rojo-suave);
}

.button--light,
.btn-comprar-blanco {
  background: #ffffff;
  color: var(--rojo);
}

.button--light:hover,
.btn-comprar-blanco:hover {
  background: var(--oro-claro);
  color: #000000;
  transform: translateY(-3px) scale(1.02);
}

.button--danger {
  border: 1px solid var(--rojo-glow);
  background: var(--rojo-suave);
  color: var(--rojo-vivo);
}

.button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.pulsando,
.button--pulse {
  animation: pulse-rojo 2.5s ease-in-out infinite;
}

.badge-live,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--rojo-suave);
  border: 1px solid var(--rojo-glow);
  color: var(--rojo-vivo);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.badge-live::before,
.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rojo-vivo);
  animation: blink 1.4s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--rojo-vivo);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  width: min(100%, var(--container));
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section-heading h2 {
  margin-top: var(--space-3);
  color: var(--texto);
  font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: var(--space-3) auto 0;
  color: var(--texto-sec);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--borde-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-sec);
  background: var(--bg-card);
  transition: all var(--dur-fast);
}

.theme-toggle:hover {
  border-color: var(--rojo);
  color: var(--rojo);
  background: var(--rojo-suave);
}

.theme-toggle [data-icon="light"] {
  display: none;
}

[data-theme="light"] .theme-toggle [data-icon="dark"] {
  display: none;
}

[data-theme="light"] .theme-toggle [data-icon="light"] {
  display: block;
}

.premio-card,
.prize-card {
  background: var(--bg-card);
  border: 1px solid var(--borde);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}

.premio-card:hover,
.prize-card:hover {
  border-color: var(--rojo);
  box-shadow: 0 0 0 1px var(--rojo), var(--shadow-lg);
  transform: translateY(-4px);
}

.premio-card__img,
.prize-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.premio-card__body,
.prize-card > div {
  padding: var(--space-6);
}

.premio-card__nombre,
.prize-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--texto);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
  font-weight: 400;
}

.premio-card__desc,
.prize-card p {
  font-size: var(--text-sm);
  color: var(--texto-sec);
  line-height: 1.6;
}

.premio-card__badge,
.prize-card__order {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--oro);
  color: #000000;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.form-feedback {
  min-height: 1.4em;
  color: var(--texto-sec);
  font-size: var(--text-sm);
}

.empty-state {
  width: min(100%, 680px);
  border: 1px solid var(--borde);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
  margin-bottom: var(--space-3);
}

.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: var(--z-modal);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--verde-whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--dur-base) var(--ease-spring);
  animation: wsp-entrada 0.6s var(--ease-spring) 2s both;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 28px;
  height: 28px;
}

@media (min-width: 640px) {
  .whatsapp-float {
    bottom: 28px;
    right: 28px;
  }
}
