/* Overlay */
.wa-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 11000;
}

/* Contenedor Principal */
.wa-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 500px;
  max-width: 90vw;
  border-radius: 20px;
  overflow: hidden;
  z-index: 11001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

/* Header con Gradiente Verde */
.wa-header {
  background: linear-gradient(90deg, #128c7e 0%, #25d366 100%);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wa-icon-main {
  font-size: 2.5rem;
}

.wa-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.wa-subtitle {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.wa-close-x {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Cuerpo del Modal */
.wa-content {
  padding: 30px;
}

/* Caja de Info */
.wa-info-box {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.wa-info-icon {
  color: #38a169;
  font-size: 1.2rem;
  margin-top: 2px;
}

.wa-info-title {
  margin: 0 0 8px 0;
  color: #2f855a;
  font-weight: 700;
  font-size: 0.875rem;
}

.wa-info-list {
  margin: 0;
  padding-left: 18px;
  color: #2f855a;
  font-size: 0.875rem;
  list-style-type: disc;
}

.wa-info-list li {
  margin-bottom: 5px;
}

/* Input y Formulario */
.wa-form-group {
  margin-bottom: 25px;
}

.wa-label {
  display: block;
  font-weight: 800;
  color: #100e35;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.wa-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.wa-input-icon {
  position: absolute;
  left: 15px;
  color: #94a3b8;
  font-size: 1.2rem;
}

.wa-input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wa-input:focus {
  outline: none;
  border-color: #25d366;
}

.wa-input-help {
  margin: 8px 0 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Botón Final */
.wa-btn-submit {
  width: 100%;
  background: #94a3b8; /* Gris por defecto como en la captura */
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s;
}

.wa-btn-submit i {
  font-size: 1.2rem;
}

.wa-btn-submit:hover {
  background: #64748b;
}

/* Estilos Paso 2 */
.wa-code-sent-container {
  text-align: center;
  margin-bottom: 25px;
}

.wa-msg-icon {
  background: #f0fff4;
  color: #38a169;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
}

.wa-code-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #100e35;
  margin: 0 0 5px 0;
}

.wa-code-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 15px;
}

.wa-highlight-num {
  color: #d84b74; /* Color rosa del logo para resaltar */
}

.wa-demo-badge {
  background: #f0fff4;
  color: #2f855a;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}

.wa-code-input {
  text-align: center;
  letter-spacing: 10px;
  font-size: 1.8rem !important;
  font-weight: 800;
  color: #94a3b8;
}

.wa-code-input::placeholder {
  letter-spacing: 5px;
  opacity: 0.3;
}

.wa-code-footer {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.wa-link-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.wa-link-btn.wa-resend {
  color: #d84b74;
}

.wa-separator {
  color: #e2e8f0;
}

.text-center { text-align: center; }

/* Centrar el input de código y darle estilo de "casillas" */
.wa-code-input {
  text-align: center;
  letter-spacing: 8px; /* Espaciado entre números */
  font-size: 1.8rem !important;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
}

.wa-code-input::placeholder {
  color: #cbd5e1;
  letter-spacing: 8px;
}

/* Resaltar el número enviado en rosa */
.wa-highlight-num {
  color: #d84b74;
  font-size: 1.1rem;
}

/* Badge de ayuda en modo demo */
.wa-demo-badge {
  background: #f0fff4;
  color: #166534;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #dcfce7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Enlaces inferiores */
.wa-code-footer {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.wa-link-btn {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 5px;
}

.wa-link-btn.wa-resend {
  color: #d84b74;
}

.wa-link-btn:hover {
  text-decoration: underline;
}