238 lines
12 KiB
HTML
238 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Eliminación de Cuenta y Datos | SiboPay</title>
|
|
<link rel="icon" type="image/png" href="/img/sibopay-emblem.png">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
<meta name="theme-color" content="#0284c7">
|
|
|
|
<!-- Google Fonts: Plus Jakarta Sans -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
|
|
|
|
<!-- Tailwind CSS CDN -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script>
|
|
tailwind.config = {
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['Plus Jakarta Sans', 'system-ui', '-apple-system', 'sans-serif'],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
body {
|
|
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
|
|
background-color: #f8fafc;
|
|
color: #334155;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
.paper-sheet {
|
|
background: #ffffff;
|
|
box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="min-h-screen py-10 px-4 sm:px-6 lg:px-8 flex flex-col justify-between">
|
|
|
|
<!-- CONTENEDOR PRINCIPAL -->
|
|
<main class="max-w-3xl mx-auto w-full">
|
|
|
|
<!-- CABECERA DE MARCA -->
|
|
<header class="text-center mb-8">
|
|
<a href="/" class="inline-flex items-center gap-3 group">
|
|
<div class="w-12 h-12 rounded-xl bg-sky-50 border border-sky-100 flex items-center justify-center p-2 shadow-sm transition-transform group-hover:scale-105">
|
|
<img src="/img/sibopay-emblem.png" alt="SiboPay" class="w-full h-full object-contain">
|
|
</div>
|
|
<div class="text-left">
|
|
<span class="text-2xl font-black tracking-tight text-slate-900 block leading-tight">Sibo<span class="text-sky-600">Pay</span></span>
|
|
<span class="text-xs font-bold text-slate-500 uppercase tracking-wider block">Privacidad y Protección de Datos</span>
|
|
</div>
|
|
</a>
|
|
<h1 class="text-2xl sm:text-3xl font-black text-slate-900 mt-6 tracking-tight">
|
|
Eliminación de Cuenta y Supresión de Datos
|
|
</h1>
|
|
<p class="text-sm sm:text-base text-slate-600 mt-2 max-w-xl mx-auto">
|
|
Transparencia y control absoluto sobre tu información conforme a las políticas de privacidad y requisitos de Google Play Store y Apple App Store.
|
|
</p>
|
|
</header>
|
|
|
|
<!-- TARJETA INFORMATIVA PRINCIPAL -->
|
|
<div class="paper-sheet p-6 sm:p-10 space-y-8">
|
|
|
|
<!-- SECCIÓN 1: CÓMO ELIMINAR DIRECTAMENTE DESDE LA APP -->
|
|
<section class="border-b border-slate-100 pb-8">
|
|
<div class="flex items-center gap-3 mb-4">
|
|
<div class="w-8 h-8 rounded-lg bg-sky-100 text-sky-700 flex items-center justify-center font-black text-sm">
|
|
1
|
|
</div>
|
|
<h2 class="text-lg font-black text-slate-900">
|
|
¿Cómo eliminar tu cuenta desde la app móvil SiboPay?
|
|
</h2>
|
|
</div>
|
|
<p class="text-sm text-slate-600 leading-relaxed mb-4">
|
|
Si tienes acceso a tu cuenta activa, puedes solicitar la baja inmediata directamente desde tu celular en 3 sencillos pasos:
|
|
</p>
|
|
<ol class="space-y-3 text-sm text-slate-700 list-decimal list-inside pl-2">
|
|
<li class="pl-1">
|
|
<span class="font-bold text-slate-900">Abre SiboPay</span> e ingresa a tu perfil o panel (Portal de Padres o Estudiante).
|
|
</li>
|
|
<li class="pl-1">
|
|
Toca el botón o icono de <span class="font-bold text-slate-900">⚙️ Mi Cuenta / Ajustes de Privacidad</span>.
|
|
</li>
|
|
<li class="pl-1">
|
|
En la sección inferior, presiona el botón rojo <span class="font-bold text-rose-700">"Eliminar Cuenta y Datos"</span> y confirma tu contraseña de acceso para verificar tu identidad.
|
|
</li>
|
|
</ol>
|
|
<div class="mt-4 p-3.5 bg-sky-50/70 border border-sky-100 rounded-xl text-xs text-sky-800 flex items-start gap-2.5">
|
|
<svg class="w-4 h-4 text-sky-600 mt-0.5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
|
|
<span>El borrado se ejecuta de forma instantánea en nuestros servidores y cerrarás sesión automáticamente en todos tus dispositivos.</span>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- SECCIÓN 2: FORMULARIO WEB SI DESINSTALASTE LA APP -->
|
|
<section class="border-b border-slate-100 pb-8">
|
|
<div class="flex items-center gap-3 mb-4">
|
|
<div class="w-8 h-8 rounded-lg bg-amber-100 text-amber-800 flex items-center justify-center font-black text-sm">
|
|
2
|
|
</div>
|
|
<h2 class="text-lg font-black text-slate-900">
|
|
¿Ya desinstalaste la app? Solicita el borrado aquí
|
|
</h2>
|
|
</div>
|
|
<p class="text-sm text-slate-600 leading-relaxed mb-5">
|
|
Si ya no tienes la aplicación instalada en tu teléfono o no recuerdas tu contraseña, ingresa los datos con los que te registraste y nuestro equipo de seguridad procesará la eliminación:
|
|
</p>
|
|
|
|
<form id="formWebDeletion" onsubmit="enviarSolicitudWeb(event)" class="bg-slate-50 border border-slate-200/80 rounded-2xl p-5 sm:p-6 space-y-4">
|
|
<div>
|
|
<label class="block text-xs font-bold text-slate-700 mb-1.5 uppercase tracking-wide">
|
|
Nombre de Usuario, Correo o Teléfono Registrado:
|
|
</label>
|
|
<input type="text" id="delIdentificador" required placeholder="Ej: maria.padre o 8888-8888 o [email protected]" class="w-full px-4 py-2.5 bg-white border border-slate-200 rounded-xl text-sm font-semibold text-slate-900 focus:outline-none focus:ring-2 focus:ring-sky-500/20 focus:border-sky-500">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-xs font-bold text-slate-700 mb-1.5 uppercase tracking-wide">
|
|
Motivo de la solicitud (Opcional):
|
|
</label>
|
|
<select id="delMotivo" class="w-full px-4 py-2.5 bg-white border border-slate-200 rounded-xl text-sm font-semibold text-slate-900 focus:outline-none focus:ring-2 focus:ring-sky-500/20 focus:border-sky-500">
|
|
<option value="cambio_institucion">Mi hijo(a) ya no asiste a esta institución</option>
|
|
<option value="ya_no_uso">Ya no utilizo el servicio de soda escolar</option>
|
|
<option value="privacidad">Preferencia de privacidad y protección de datos</option>
|
|
<option value="otro">Otro motivo</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="pt-2">
|
|
<button type="submit" id="btnSubmitWebDel" class="w-full sm:w-auto px-6 py-3 bg-rose-600 hover:bg-rose-700 text-white font-black text-sm rounded-xl shadow-sm transition-all flex items-center justify-center gap-2">
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/></svg>
|
|
<span>Solicitar Eliminación Definitiva</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div id="msgWebResult" class="hidden p-4 rounded-xl text-xs font-bold mt-3"></div>
|
|
</form>
|
|
</section>
|
|
|
|
<!-- SECCIÓN 3: POLÍTICA DE RETENCIÓN Y QUÉ DATOS SE SUPRIMEN -->
|
|
<section class="space-y-4">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-8 h-8 rounded-lg bg-emerald-100 text-emerald-800 flex items-center justify-center font-black text-sm">
|
|
3
|
|
</div>
|
|
<h2 class="text-lg font-black text-slate-900">
|
|
Detalle de Datos Suprimidos y Retención Legal
|
|
</h2>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 pt-1">
|
|
<div class="bg-rose-50/70 border border-rose-100 rounded-xl p-4">
|
|
<h3 class="text-xs font-black text-rose-800 uppercase tracking-wider mb-2 flex items-center gap-1.5">
|
|
<span>🗑️</span> Datos que se eliminan de inmediato
|
|
</h3>
|
|
<ul class="text-xs text-rose-950/80 space-y-1.5 list-disc list-inside">
|
|
<li>Nombre completo y credenciales de acceso</li>
|
|
<li>Contraseña cifrada (hash)</li>
|
|
<li>Correo electrónico y teléfono personal</li>
|
|
<li>Vinculación y permisos de supervisión parental</li>
|
|
<li>Tokens de notificaciones Web Push de tus celulares</li>
|
|
<li>Preferencias de diseño y personalización</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="bg-slate-50 border border-slate-200/80 rounded-xl p-4">
|
|
<h3 class="text-xs font-black text-slate-700 uppercase tracking-wider mb-2 flex items-center gap-1.5">
|
|
<span>⚖️</span> Retención contable y tributaria
|
|
</h3>
|
|
<p class="text-xs text-slate-600 leading-relaxed">
|
|
Conforme a la legislación comercial y tributaria de Costa Rica y normativas de auditoría escolar, los comprobantes de transacciones financieras y recargas previas se conservan de forma disociada y completamente anónima como respaldo contable de la soda concesionaria, sin ningún enlace a tu identidad personal.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<!-- PIE DE PÁGINA -->
|
|
<footer class="text-center text-xs text-slate-400 mt-8 space-y-2">
|
|
<p>SiboPay Costa Rica • Sistema inteligente de billetera online</p>
|
|
<p>Consultas sobre privacidad y derechos ARCO: <a href="mailto:[email protected]" class="text-sky-600 hover:underline font-bold">[email protected]</a></p>
|
|
<div class="pt-2">
|
|
<a href="/legal" class="text-slate-500 hover:text-slate-800 underline mx-2 font-semibold">Términos y Condiciones</a>
|
|
<span>•</span>
|
|
<a href="/privacidad" class="text-slate-500 hover:text-slate-800 underline mx-2 font-semibold">Política de Privacidad</a>
|
|
</div>
|
|
</footer>
|
|
|
|
</main>
|
|
|
|
<script>
|
|
async function enviarSolicitudWeb(e) {
|
|
e.preventDefault();
|
|
const btn = document.getElementById('btnSubmitWebDel');
|
|
const msg = document.getElementById('msgWebResult');
|
|
const id = document.getElementById('delIdentificador').value.trim();
|
|
const motivo = document.getElementById('delMotivo').value;
|
|
|
|
if (!id) return;
|
|
|
|
btn.disabled = true;
|
|
btn.innerHTML = 'Procesando solicitud...';
|
|
msg.className = 'hidden';
|
|
|
|
try {
|
|
const res = await fetch('/api/public/solicitar-eliminacion-cuenta', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({ identificador: id, motivo: motivo, confirmacion: true })
|
|
});
|
|
const data = await res.json();
|
|
|
|
msg.className = 'p-4 rounded-xl text-xs font-bold mt-3 ' + (res.ok ? 'bg-emerald-50 text-emerald-800 border border-emerald-200' : 'bg-rose-50 text-rose-800 border border-rose-200');
|
|
msg.textContent = data.mensaje || data.error || 'Solicitud procesada correctamente.';
|
|
|
|
if (res.ok) {
|
|
document.getElementById('formWebDeletion').reset();
|
|
}
|
|
} catch (err) {
|
|
msg.className = 'p-4 rounded-xl text-xs font-bold mt-3 bg-rose-50 text-rose-800 border border-rose-200';
|
|
msg.textContent = 'Error de conexión: ' + err.message;
|
|
} finally {
|
|
btn.disabled = false;
|
|
btn.innerHTML = '<span>Solicitar Eliminación Definitiva</span>';
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|