/* Componentes CSS: Gradiente de Oro y Contenedores */

/* --- 1. EFECTO GRADIENTE DE ORO EN TEXTO --- */
.text-gold {
  background-image: var(--gradient-gold);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* --- 2. CONTENEDOR DEL FORMULARIO --- */
.form-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* --- 3. ANULACIÓN TOTAL DE ESTILOS DE SENDPULSE --- */

/* Mostrar el formulario (sobreescribir sp-force-hide) */
.sp-form-outer.sp-force-hide {
  display: block !important;
}

/* Contenedor principal del form SP */
.sp-form-outer .sp-form {
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--font-body) !important;
  border-radius: 0 !important;
}

.sp-form-outer .sp-form-fields-wrapper {
  width: 100% !important;
  margin: 0 !important;
}

.sp-form-outer .sp-element-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

/* Ocultar labels (usamos placeholder) */
.sp-form-outer .sp-control-label {
  display: none !important;
}

/* Inputs nativos estilizados */
.sp-form-outer .sp-form-control {
  width: 100% !important;
  padding: 0.95rem 1.4rem !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 30px !important;
  color: #ffffff !important;
  outline: none !important;
  height: auto !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.sp-form-outer .sp-form-control::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.sp-form-outer .sp-form-control:focus {
  border-color: #cb9b51 !important;
  background-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 0 12px rgba(203, 155, 81, 0.25) !important;
}

/* Contenedor del botón */
.sp-form-outer .sp-button-container {
  width: 100% !important;
  text-align: center !important;
  margin-top: 0.25rem !important;
}

/* Botón nativo dorado */
.sp-form-outer .sp-button {
  width: 100% !important;
  padding: 0.95rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #1a0a28 !important;
  background: var(--gradient-gold) !important;
  border: none !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(203, 155, 81, 0.35) !important;
  font-family: var(--font-accent) !important;
}

.sp-form-outer .sp-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(203, 155, 81, 0.55) !important;
}

.sp-form-outer .sp-button:active {
  transform: translateY(0) !important;
}

/* Ocultar branding de SendPulse */
.sp-form-outer .sp-link-wrapper,
.sp-form-outer .sp-brandname__left,
.sp-form-outer .sp-link,
.sp-form-outer [href*="sendpulse.com"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Ocultar mensajes de SendPulse (usaremos la tarjeta nativa) */
.sp-form-outer .sp-message {
  display: none !important;
}

/* --- 4. MENSAJE DE VALIDACIÓN DE EMAIL --- */
#email-validation-msg {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  padding-left: 1.2rem;
  text-align: left;
  min-height: 1.2rem;
}

#email-validation-msg.error {
  color: #ff6b6b;
}

#email-validation-msg.suggestion {
  color: #ffd200;
}

/* --- 5. TARJETA DE CONFIRMACIÓN / ÉXITO --- */
.success-message {
  text-align: center;
  padding: 2.2rem 1.8rem;
  background: rgba(23, 13, 36, 0.85);
  border: 1px solid rgba(203, 155, 81, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInSuccess 0.5s ease forwards;
}

.success-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  animation: bounceIcon 1.2s infinite alternate ease-in-out;
}

.success-message h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #f6e27a;
  margin-bottom: 1rem;
}

.success-main-text {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.success-sub-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-align: center;
}

.email-highlight {
  color: #f6e27a;
  font-weight: 700;
  word-break: break-all;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIcon {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
