
/* ===== CCEM Suscripción – Estilos completos ===== */

/* Ocultar modal por defecto */
#ccemModal.ccem-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.ccem-modal.is-open {
  display: block;
}

/* Backdrop */
.ccem-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Diálogo centrado */
.ccem-modal__dialog {
  position: relative;
  max-width: 720px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 5px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Encabezado del modal */
.ccem-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.ccem-modal__header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}
.ccem-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ===== Botón externo (abre el modal) ===== */
.ccem-open-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px; /* forma píldora */
  background: linear-gradient(90deg, #25D366, #075E54); /* verde WhatsApp */
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 22px rgba(7, 94, 84, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.ccem-open-modal:hover {
  background: linear-gradient(90deg, #128C7E, #075E54);
  transform: translateY(-2px);
}
.ccem-open-modal:active {
  transform: scale(0.98);
}

/* ===== Fila horizontal País + WhatsApp ===== */
.wa-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.wa-row .wa-country {
  flex: 0 0 40%;
  min-width: 220px;
}
.wa-row .wa-number {
  flex: 1;
  min-width: 220px;
}
@media (max-width: 480px) {
  .wa-row {
    flex-direction: column;
  }
}

/* ===== Campos (fallback simple) ===== */
.nex-forms-container {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.nf-field {
  margin: 12px 0;
}
.nf-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.nf-field input,
.nf-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* ===== Botón interno (submit) ===== */
.nf-submit,
.nf-button,
#ccemModal button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #25D366, #075E54);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.92rem 1.5rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(7, 94, 84, 0.35);
  transition: all 0.3s ease;
}
.nf-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.nf-submit:active {
  transform: scale(0.98);
}
.nf-submit[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Spinner y check */
.btn-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-check {
  width: 1.2rem;
  height: 1.2rem;
  display: none;
}
.success .btn-check {
  display: inline-block;
}

/* ===== Caja de éxito ===== */
.ccem-success {
  margin-top: 12px;
  background: #f3fafc;
  border: 1px solid #d6eef7;
  border-radius: 10px;
  padding: 10px 12px;
  color: #0a2430;
  font-size: 0.95rem;
}
.ccem-success strong {
  color: #075E54;
}
.ccem-success em {
  color: #065b9e;
}
