/* Estilos para modal de email mejorado */
.modal-email-current {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.modal-email-current p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.modal-email-change {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-email-change:hover {
    background: #0056b3;
}

.pago-tarjeta-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.pago-tarjeta-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  animation: pago-tarjeta-fadein 0.3s;
}
@keyframes pago-tarjeta-fadein {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pago-tarjeta-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.pago-tarjeta-cerrar:hover {
  color: #d32f2f;
}
.pago-tarjeta-contenido {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pago-tarjeta-monto {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 0.5rem;
}
.pago-tarjeta-instrucciones {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.pago-tarjeta-elementos {
  margin: 1rem 0 0.5rem 0;
}
.pago-tarjeta-errores {
  color: #d32f2f;
  min-height: 1.2em;
  font-size: 0.95rem;
}
.pago-tarjeta-boton {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.pago-tarjeta-boton:disabled {
  background: #b0bec5;
  cursor: not-allowed;
}
.pago-tarjeta-boton:not(:disabled):hover {
  background: #1565c0;
}
.pago-tarjeta-seguridad {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pago-tarjeta-boton-confirmar {
  background: #43a047;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  width: 100%;
  box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}
.pago-tarjeta-boton-confirmar:hover {
  background: #388e3c;
}

/* Estilos para modal de cancelación con CAPTCHA */
.modal-captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: modal-captcha-fadein 0.3s;
}

@keyframes modal-captcha-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-captcha-content {
  background: #fff;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modal-captcha-slidein 0.3s;
}

@keyframes modal-captcha-slidein {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-captcha-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-captcha-close:hover {
  color: #dc3545;
}

.modal-captcha-content h2 {
  color: #000C34;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-captcha-content p {
  color: #333;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-captcha-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #856404;
  font-size: 0.95rem;
}

.modal-captcha-warning strong {
  color: #856404;
}

.simple-captcha-container {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 8px;
}

.simple-captcha-question {
  text-align: center;
  margin-bottom: 1rem;
}

.simple-captcha-question strong {
  color: #000C34;
  font-size: 1rem;
}

.captcha-input:focus {
  outline: none;
  border-color: #00A9FA;
  box-shadow: 0 0 0 3px rgba(0, 169, 250, 0.1);
}

.captcha-refresh-btn {
  display: block;
  margin: 0.5rem auto 0;
  background: none !important;
  border: none !important;
  color: #00A9FA;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0.5rem;
  transition: color 0.2s;
}

.captcha-refresh-btn:hover {
  color: #0088cc;
}

/* Spinner de carga global */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: spinner-fadein 0.3s;
}

@keyframes spinner-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.spinner-content {
  background: white;
  border-radius: 15px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: spinner-slidein 0.3s;
}

@keyframes spinner-slidein {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.spinner-content .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00A9FA;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}


.spinner-message {
  color: #000C34;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-captcha-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-captcha-actions .button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.modal-captcha-actions .button-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e0e0e0;
}

.modal-captcha-actions .button-secondary:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.modal-captcha-actions .button-danger {
  background: #dc3545;
  color: white;
}

.modal-captcha-actions .button-danger:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.modal-captcha-actions .button:disabled {
  background: #b0bec5;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Mensaje de éxito animado */
@keyframes exitoFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes exitoBounce {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.pago-kiosko-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.pago-kiosko-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  animation: pago-tarjeta-fadein 0.3s;
}
.pago-kiosko-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.pago-kiosko-cerrar:hover {
  color: #d32f2f;
}
.pago-kiosko-contenido {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.kiosko-modal-img {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.kiosko-instrucciones {
  text-align: left;
  margin: 0 0 1rem 0;
  padding-left: 1.2em;
  font-size: 1rem;
  color: #444;
}
.kiosko-instrucciones li {
  margin-bottom: 0.7em;
}
.kiosko-num-cliente {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 1.3em;
  margin-top: 8px;
  margin-bottom: 4px;
}
.kiosko-dudas {
  margin-top: 1.2em;
  font-size: 0.98em;
  color: #1976d2;
  text-align: center;
}

/* Estilos para validación de email */
.modal-email-error {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    min-height: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.modal-email-error.error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #fecaca;
}

.modal-email-error.warning {
    color: #f59e0b;
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
}

.modal-email-error.subscription-active {
    color: #dc2626;
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    margin-top: 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: pulse-subscription-warning 2s ease-in-out infinite;
}

.modal-email-error.subscription-active strong {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

@keyframes pulse-subscription-warning {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3), 0 2px 4px -1px rgba(220, 38, 38, 0.2), 0 0 0 4px rgba(220, 38, 38, 0.1);
    }
}

.modal-email-error.info {
    color: #3b82f6;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.modal-email-error.success {
    color: #059669;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

/* Estilos para advertencia bancaria en modal de confirmación */
.advertencia-bancaria {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
    animation: advertencia-pulse 2s ease-in-out infinite;
}

.advertencia-icono {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.advertencia-texto {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #8b4513;
}

.advertencia-texto strong {
    color: #d35400;
    font-weight: 600;
}

@keyframes advertencia-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
    }
    50% {
        box-shadow: 0 6px 16px rgba(243, 156, 18, 0.25);
    }
}
