:root {
  --color-primary: #d28a19;
  --color-primary-hover: #b87413;
  --color-success: #59c26f;
  --color-error: #c62828;
  --color-text: #333;
  --color-border: #ccc;
  --radius: 8px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* --- UTILIDADES --- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

/* --- MODAL WRAPPER --- */
.otp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  /* Centrado vertical flex */
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.otp-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* --- CAJA DEL MODAL --- */
.otp-modal-box {
  background: #ffffff;
  width: 630px;
  max-width: 92%;
  padding: 30px 25px;
  border-radius: 14px;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.otp-modal-overlay.active .otp-modal-box {
  transform: translateY(0);
}

.otp-close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  background: #f4f4f4;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  border-radius: 50%;
}

.otp-close-btn:hover {
  color: #000;
}

.otp-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #303b27;
  text-transform: uppercase;
}

.otp-desc {
  margin: 0 0 4px;
  font-size: 14px;
  color: #555;
}

.otp-info-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 15px;
  border-radius: var(--radius);
}

/* --- INPUTS OTP --- */
.otp-inputs-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.otp-input {
  width: 37px;
  height: 37px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  font-size: 22px;
  text-align: center;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(210, 138, 25, 0.15);
}

/* --- MENSAJES Y BOTONES --- */
.otp-message {
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.otp-message.error {
  color: var(--color-error);
}

.otp-message.success {
  color: var(--color-success);
}

.btn-primary {
  width: auto;
  padding: 12px 24px;
  border-radius: 40px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.otp-timer-area {
  margin-top: 15px;
  font-size: 14px;
}

.otp-resend-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

/* --- FORMULARIO FEDEPALMA --- */
#fedepalmaForm {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  /* Importante para padding */
}

.form-error-text {
  color: var(--color-error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  align-self: center;
  margin-top: 10px;
}

.fedepalma-feedback {
  margin-top: 10px;
  text-align: center;
}

/* Responsive */
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .otp-input {
    width: 38px;
    height: 44px;
    font-size: 18px;
  }
}
