/* ======================================
   SKIN DE HALLOWEEN PARA POPUP DE BIENVENIDA
   Tema 1: Calabaza Centrada (exactamente como el demo)
   ====================================== */

/* Variables CSS para Halloween */
:root {
  --halloween-orange: #ff6b35;
  --halloween-dark-orange: #e55a2b;
  --halloween-purple: #8b5cf6;
  --halloween-dark-purple: #7c3aed;
  --halloween-black: #1a1a1a;
  --halloween-gray: #2d2d2d;
  --halloween-green: #22c55e;
  --halloween-red: #ef4444;
  --halloween-yellow: #fbbf24;
  --halloween-white: #f8fafc;
}

/* Override de estilos base para Halloween - Tema 1 exacto */
.popup-bienvenida-content {
  max-width: 450px;
  width: 90%;
  background: 
    url('/images/halloween/fondo-popup.png'),
    linear-gradient(135deg, #301934, #1a0d1a);
  background-size: cover, cover;
  background-position: center top, center;
  background-repeat: no-repeat, no-repeat;
  border: 2px solid #FF7F50;
  border-radius: 15px;
  padding: 0;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 127, 80, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
  /* Mantener centrado */
  margin: 0 auto;
}

/* Patrón sutil para tema 1 con imagen de fondo */
.popup-bienvenida-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px, 25px 25px, 35px 35px, 28px 28px, 32px 32px;
  opacity: 0.3;
  animation: float-pattern 12s ease-in-out infinite;
}

@keyframes float-pattern {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.popup-header {
  background: rgba(48, 25, 52, 0.8);
  padding: 15px 30px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  border-radius: 13px 13px 0 0;
  border-bottom: 2px solid #FF7F50;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(48, 25, 52, 0.3);
}

.popup-body {
  padding: 40px 30px;
  position: relative;
  z-index: 1;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
  font-weight: bold;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.popup-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #FF7F50;
  text-shadow: 2px 2px 4px rgba(48, 25, 52, 0.7), 0 0 10px rgba(255, 127, 80, 0.5);
  font-family: 'Creepster', cursive, Arial, sans-serif;
}

.popup-subtitle {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(48, 25, 52, 0.7);
}



.popup-message {
  font-size: 18px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(48, 25, 52, 0.7);
  position: relative;
  z-index: 1;
}

.popup-discount {
  background: rgba(48, 25, 52, 0.8);
  color: #FFFFFF;
  padding: 25px;
  border-radius: 15px;
  margin: 25px 0;
  text-align: center;
  border: 2px solid #FF7F50;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(255, 127, 80, 0.3);
}

.discount-percent {
  font-size: 48px;
  font-weight: 900;
  margin: 0;
  color: #FF7F50;
  text-shadow: 2px 2px 4px rgba(48, 25, 52, 0.7), 0 0 15px rgba(255, 127, 80, 0.6);
  font-family: 'Creepster', cursive, Arial, sans-serif;
}

.discount-text {
  font-size: 16px;
  margin: 8px 0 0 0;
  opacity: 0.9;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(48, 25, 52, 0.7);
}

.popup-email-form {
  margin: 25px 0;
  position: relative;
  z-index: 1;
}

.popup-email-group {
  position: relative;
  margin-bottom: 15px;
}

.popup-email-input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #FF7F50;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(48, 25, 52, 0.8);
  color: #FFFFFF;
  box-sizing: border-box;
  font-family: inherit;
  backdrop-filter: blur(10px);
}

.popup-email-input:focus {
  outline: none;
  border-color: #FFA07A;
  background: rgba(48, 25, 52, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.3), 0 0 15px rgba(255, 127, 80, 0.2);
}

.popup-email-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.popup-newsletter-text {
  color: #FFFFFF;
  padding: 0;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(48, 25, 52, 0.7);
  position: relative;
  z-index: 1;
}

.popup-newsletter-info {
  background: rgba(255, 255, 255, 0.9);
  color: #301934;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-weight: 500;
  text-shadow: none;
  border: 2px solid rgba(255, 127, 80, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.5;
}

.popup-privacy-link {
  color: #FF7F50;
}

.popup-privacy-link:hover {
  color: #FF6347;
}

.popup-submit-btn {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #FF7F50, #FF6347);
  color: #301934;
  border: 2px solid #FF7F50;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(255, 127, 80, 0.4), 0 0 20px rgba(255, 127, 80, 0.2);
  position: relative;
  z-index: 1;
  font-family: 'Creepster', cursive, Arial, sans-serif;
}

.popup-submit-btn:hover {
  background: linear-gradient(135deg, #FFA07A, #FF7F50);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 127, 80, 0.5), 0 0 30px rgba(255, 127, 80, 0.3);
  border-color: #FFA07A;
}

.popup-submit-btn:active {
  transform: translateY(0px);
  box-shadow: 0 4px 15px rgba(255, 127, 80, 0.4), 0 0 20px rgba(255, 127, 80, 0.2);
}

.popup-footer {
  padding: 0;
  background: transparent;
  text-align: center;
  border-top: none;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.popup-footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(48, 25, 52, 0.7);
}

/* Responsive general */
@media (max-width: 768px) {
  .popup-bienvenida-content {
    max-width: 75%;
    width: 75%;
  }

  .popup-title {
    font-size: 24px;
  }

  .popup-message {
    font-size: 16px;
  }

  .discount-percent {
    font-size: 36px;
  }

  .popup-header {
    padding: 12px 20px;
  }

  .popup-body {
    padding: 30px 20px;
  }
}