/* ==========================================================================
   DISCOUNT POP-UP STYLESHEET (OPTIMIZED FOR HIGH CONVERSION)
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary-green: #37ca37;
  --primary-green-hover: #2db32d;
  --accent-gold: #ffd914;
  --accent-red: #e93d3d;
  --dark-blue: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --overlay-bg: rgba(15, 23, 42, 0.75);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  overflow: hidden;
  background-color: var(--dark-blue);
}

/* 2. Background Image & Dark Overlay */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Opera Captura de pantalla_2026-08-07_182510_dailyfreshcomfort.com.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3. Pop-up Centered Container */
.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
}

.popup-modal {
  background: var(--white);
  width: 100%;
  max-width: 620px;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Top Badge */
.badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 61, 61, 0.1);
  border: 1px solid rgba(233, 61, 61, 0.3);
  color: var(--accent-red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(233, 61, 61, 0.7);
  animation: badgeDotPulse 1.5s infinite;
}

@keyframes badgeDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(233, 61, 61, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(233, 61, 61, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(233, 61, 61, 0);
  }
}

/* Headlines */
.popup-headline {
  color: var(--text-dark);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.highlight-discount {
  color: var(--accent-red);
  background: linear-gradient(120deg, rgba(255, 217, 20, 0.3) 0%, rgba(255, 217, 20, 0.6) 100%);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.popup-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Countdown Timer */
.countdown-container {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.timer-box {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* CTA Button */
.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(180deg, #37ca37 0%, #2bb02b 100%);
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 18px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(55, 202, 55, 0.5), 0 4px 6px -2px rgba(55, 202, 55, 0.2);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.cta-button:hover {
  background: linear-gradient(180deg, #32bf32 0%, #259e25 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(55, 202, 55, 0.6), 0 6px 10px -2px rgba(55, 202, 55, 0.3);
}

.cta-arrow {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* Pulse Animation */
.pulse-animation {
  animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(55, 202, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(55, 202, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(55, 202, 55, 0);
  }
}

/* Trust Badges & Guarantee */
.trust-footer {
  margin-bottom: 20px;
}

.security-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-tag {
  font-size: 0.785rem;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* Stock Scarcity Warning */
.stock-warning {
  font-size: 0.85rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
}

/* Mobile Responsive Tweaks */
@media (max-width: 480px) {
  .popup-modal {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .popup-headline {
    font-size: 1.45rem;
  }

  .popup-subtitle {
    font-size: 0.9rem;
  }

  .timer-box {
    font-size: 1.8rem;
  }

  .cta-button {
    font-size: 1.05rem;
    padding: 16px 16px;
  }

  .trust-icons {
    flex-direction: column;
    gap: 6px;
  }
}
