/* CTA Form Section - Donaciones */
.cta-form-section {
  padding: 80px 20px;
  width: 100%;
}

.cta-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-form-content {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Header */
.cta-form-header {
  text-align: left;
  padding: 50px;
  background: linear-gradient(135deg, #fff9fb 0%, #ffffff 100%);
}

.cta-icon {
  font-size: 32px;
  display: inline-block;
  margin-bottom: 15px;
}

.cta-form-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.cta-form-description {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.cta-form-description strong {
  color: #2c2c2c;
  font-weight: 600;
}

/* Form Wrapper */
.cta-form-wrapper {
  padding: 40px 50px 50px;
  background: #ffffff;
}

.cta-error {
  color: #e91e63;
  text-align: center;
  font-size: 16px;
  padding: 20px;
}

/* Contact Form 7 Styles */
.cta-form-wrapper .wpcf7 {
  width: 100%;
}

.cta-form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Labels */
.cta-form-wrapper label {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

/* Input Fields */
.cta-form-wrapper input[type="text"],
.cta-form-wrapper input[type="email"],
.cta-form-wrapper textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  color: #2c2c2c;
  background: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.cta-form-wrapper input[type="text"]:focus,
.cta-form-wrapper input[type="email"]:focus,
.cta-form-wrapper textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Textarea */
.cta-form-wrapper textarea {
  min-height: 100px;
  resize: vertical;
}

/* Form control wrap */
.cta-form-wrapper .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Submit Button / Donate Button */
.cta-form-wrapper input[type="submit"],
.cta-form-wrapper button[type="submit"],
.cta-form-wrapper .wpcf7-stripe button {
  width: 100%;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.cta-form-wrapper input[type="submit"]:hover,
.cta-form-wrapper button[type="submit"]:hover,
.cta-form-wrapper .wpcf7-stripe button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.cta-form-wrapper input[type="submit"]:active,
.cta-form-wrapper button[type="submit"]:active,
.cta-form-wrapper .wpcf7-stripe button:active {
  transform: translateY(0);
}

/* Validation Messages */
.cta-form-wrapper .wpcf7-not-valid-tip {
  color: #e91e63;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.cta-form-wrapper .wpcf7-validation-errors,
.cta-form-wrapper .wpcf7-acceptance-missing {
  border: 2px solid #e91e63;
  background: #fff5f8;
  color: #c2185b;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.cta-form-wrapper .wpcf7-mail-sent-ok {
  border: 2px solid #4caf50;
  background: #f1f8f4;
  color: #2e7d32;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

.cta-form-wrapper .wpcf7-spinner {
  margin-left: 10px;
}

/* Invalid Input */
.cta-form-wrapper .wpcf7-not-valid {
  border-color: #e91e63 !important;
  background: #fff5f8 !important;
}

/* Info Box - Opcional para mostrar info sobre la donación */
.donation-info {
  background: #f9f9fb;
  border-left: 4px solid #e91e63;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.donation-info strong {
  color: #2c2c2c;
  font-weight: 600;
}

/* Stripe container */
.cta-form-wrapper .wpcf7-stripe {
  margin-top: 10px;
}

/* Response output */
.cta-form-wrapper .wpcf7-response-output {
  border-radius: 8px;
}

/* ========== ESTILOS DEL MODAL ========== */

/* Botón principal */
.cta-form-wrapper .abrir-modal {
  background: linear-gradient(135deg, #e91e63, #ff6090);
  color: #fff;
  padding: 18px;
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.cta-form-wrapper .abrir-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

/* Modal fondo */
.modal-pago {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.6);

  /* CENTRADO PERFECTO */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Oculto por defecto */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Cuando está activo */
.modal-pago.activo {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Contenido del modal */
.modal-contenido {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Título del modal */
.modal-contenido h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 20px 0;
  padding-right: 30px;
}

/* Párrafos del modal */
.modal-contenido p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.modal-contenido p strong {
  color: #e91e63;
  font-weight: 700;
  font-size: 18px;
}

.modal-contenido .seguridad {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  padding: 10px;
  background: #f5f7fa;
  border-radius: 6px;
  text-align: center;
}

/* Cerrar modal */
.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.cerrar-modal:hover {
  background: #f5f5f5;
  color: #333;
  transform: rotate(90deg);
}

/* Stripe dentro del modal */
.modal-contenido .wpcf7-stripe {
  margin-top: 20px;
}

.modal-contenido .wpcf7-stripe button {
  background: linear-gradient(135deg, #e91e63, #ff6090);
  color: #fff;
  padding: 18px 30px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.modal-contenido .wpcf7-stripe button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

/* Campo de cantidad personalizada */
.modal-contenido .donation-amount-field {
  margin-bottom: 20px;
}

.modal-contenido .donation-amount-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 12px;
}

/* Grid de botones de Stripe */
.donation-amount-field {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stripe-btn-wrapper {
  width: 100%;
}

/* Estilos para los botones de Stripe */
.stripe-btn-wrapper .wpcf7-stripe,
.modal-contenido .wpcf7-stripe {
  margin: 0;
}

.stripe-btn-wrapper .wpcf7-stripe button,
.modal-contenido .donation-amount-field .wpcf7-stripe button {
  width: 100%;
  padding: 18px 16px;
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  background: #f5f7fa;
  border: 2px solid #e3e3e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

.stripe-btn-wrapper .wpcf7-stripe button:hover,
.modal-contenido .donation-amount-field .wpcf7-stripe button:hover {
  background: #ffffff;
  border-color: #e91e63;
  color: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* Botones de cantidad predefinida (mantener por compatibilidad) */
.amount-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.amount-btn,
.custom-amount-btn {
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  background: #f5f7fa;
  border: 2px solid #e3e3e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.amount-btn:hover,
.custom-amount-btn:hover {
  background: #ffffff;
  border-color: #e91e63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.amount-btn.active,
.custom-amount-btn.active {
  background: linear-gradient(135deg, #e91e63, #ff6090);
  color: #ffffff;
  border-color: #e91e63;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.amount-btn .currency {
  font-size: 16px;
  font-weight: 400;
  margin-left: 2px;
}

.custom-amount-input {
  display: none;
  margin-top: 15px;
}

.custom-amount-input input[type="number"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #e91e63;
  background: #ffffff;
  border: 2px solid #e91e63;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.custom-amount-input input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15);
}

/* Campo oculto de donation-amount */
.modal-contenido input[name="donation-amount"] {
  display: none;
}

.modal-contenido .donation-amount-field input[type="number"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;

  .donation-amount-field {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stripe-btn-wrapper .wpcf7-stripe button {
    padding: 16px 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modal-contenido {
    max-width: 95%;
    padding: 25px 20px;
  }

  .modal-contenido h3 {
    font-size: 22px;
  }

  .donation-amount-field {
    grid-template-columns: repeat(2, 1fr);
  }

  .stripe-btn-wrapper .wpcf7-stripe button {
    padding: 14px 10px;
    font-size: 15.donation-amount-field input[type="number"]:focus {
  outline: none;
  background: #ffffff;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-contenido {
    max-width: 90%;
    padding: 30px 25px;
  }

  .modal-contenido h3 {
    font-size: 24px;
  }

  .modal-contenido p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-contenido {
    max-width: 95%;
    padding: 25px 20px;
  }

  .modal-contenido h3 {
    font-size: 22px;
  }
}

/* ========== FIN ESTILOS DEL MODAL ========== */

/* Responsive */
@media (max-width: 768px) {
  .cta-form-section {
    padding: 60px 15px;
  }

  .cta-form-header {
    padding: 40px 30px;
  }

  .cta-form-title {
    font-size: 28px;
  }

  .cta-form-description {
    font-size: 16px;
  }

  .cta-form-wrapper {
    padding: 30px 25px 40px;
  }

  .cta-form-wrapper input[type="text"],
  .cta-form-wrapper input[type="email"],
  .cta-form-wrapper textarea {
    padding: 12px 15px;
    font-size: 14px;
  }

  .cta-form-wrapper input[type="submit"],
  .cta-form-wrapper button[type="submit"],
  .cta-form-wrapper .wpcf7-stripe button {
    padding: 16px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cta-form-section {
    padding: 50px 15px;
  }

  .cta-form-header {
    padding: 35px 25px;
  }

  .cta-form-title {
    font-size: 24px;
  }

  .cta-form-description {
    font-size: 15px;
  }

  .cta-form-wrapper {
    padding: 25px 20px 35px;
  }

  .cta-icon {
    font-size: 28px;
  }
}
