221 lines
14 KiB
HTML
221 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Planes de Protección - IntegraRepara</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://unpkg.com/lucide@latest"></script>
|
|
<style>
|
|
.fade-in { animation: fadeIn 0.2s ease-in-out; }
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
|
|
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
|
|
|
|
/* Estilos de pestañas estilo IntegraRepara */
|
|
.tab-btn { transition: all 0.3s ease; border-bottom: 2px solid transparent; }
|
|
.tab-btn.active { color: #2563eb; border-color: #2563eb; background-color: #eff6ff; }
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-100 text-gray-800 font-sans h-screen overflow-hidden flex">
|
|
|
|
<div id="sidebar-container" class="h-full shrink-0"></div>
|
|
|
|
<div class="flex-1 flex flex-col h-full min-w-0">
|
|
|
|
<div id="header-container"></div>
|
|
|
|
<main class="flex-1 flex flex-col overflow-hidden relative p-6 space-y-6">
|
|
|
|
<div class="flex flex-col md:flex-row md:items-center justify-between gap-4 bg-white p-6 rounded-2xl shadow-sm border border-gray-200 shrink-0">
|
|
<div class="flex items-center gap-4">
|
|
<div class="w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center text-white shadow-lg">
|
|
<i data-lucide="shield-check" class="w-7 h-7"></i>
|
|
</div>
|
|
<div>
|
|
<h1 class="text-xl font-black text-gray-800 tracking-tight">Servicio de Protección Eléctrica</h1>
|
|
<p class="text-gray-400 text-xs font-bold uppercase tracking-widest">Gestión de Seguros y Mantenimiento</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex bg-gray-100 p-1 rounded-xl">
|
|
<button onclick="switchTab('clients')" id="btn-tab-clients" class="tab-btn active px-6 py-2 rounded-lg text-[10px] font-black uppercase tracking-widest flex items-center gap-2">
|
|
<i data-lucide="users" class="w-3 h-3"></i> Suscriptores
|
|
</button>
|
|
<button onclick="switchTab('config')" id="btn-tab-config" class="tab-btn px-6 py-2 rounded-lg text-[10px] font-black uppercase tracking-widest flex items-center gap-2">
|
|
<i data-lucide="settings" class="w-3 h-3"></i> Configuración
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="tab-clients" class="tab-content flex-1 flex flex-col min-h-0 fade-in">
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6 shrink-0">
|
|
<div class="bg-white p-4 rounded-2xl border border-gray-200 shadow-sm">
|
|
<p class="text-[9px] font-black text-gray-400 uppercase mb-1">Total Asegurados</p>
|
|
<p class="text-xl font-black text-gray-800">124</p>
|
|
</div>
|
|
<div class="bg-white p-4 rounded-2xl border border-gray-200 shadow-sm">
|
|
<p class="text-[9px] font-black text-gray-400 uppercase mb-1">Ingresos MRR</p>
|
|
<p class="text-xl font-black text-blue-600">855,60€</p>
|
|
</div>
|
|
<div class="bg-white p-4 rounded-2xl border border-gray-200 shadow-sm">
|
|
<p class="text-[9px] font-black text-gray-400 uppercase mb-1">Urgencias/Bricos Mes</p>
|
|
<p class="text-xl font-black text-amber-500">8 / 14</p>
|
|
</div>
|
|
<div class="bg-white p-4 rounded-2xl border border-gray-200 shadow-sm">
|
|
<p class="text-[9px] font-black text-gray-400 uppercase mb-1">Pagos Fallidos</p>
|
|
<p class="text-xl font-black text-rose-500">2</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex-1 bg-white rounded-2xl shadow-sm border border-gray-200 flex flex-col overflow-hidden">
|
|
<div class="p-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50">
|
|
<div class="relative w-72">
|
|
<i data-lucide="search" class="w-4 h-4 absolute left-3 top-2.5 text-gray-400"></i>
|
|
<input type="text" placeholder="Buscar asegurado..." class="w-full pl-10 pr-4 py-2 bg-white border border-gray-200 rounded-lg text-xs font-bold outline-none focus:ring-2 focus:ring-blue-500">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex-1 overflow-y-auto no-scrollbar">
|
|
<table class="w-full text-left">
|
|
<thead class="sticky top-0 bg-white shadow-sm text-[10px] font-black text-gray-400 uppercase tracking-widest">
|
|
<tr>
|
|
<th class="px-6 py-4">Socio / Datos</th>
|
|
<th class="px-6 py-4">Plan / Cuota</th>
|
|
<th class="px-6 py-4 text-center">Uso (Bricos/Urg)</th>
|
|
<th class="px-6 py-4">Estado Pago</th>
|
|
<th class="px-6 py-4 text-right">Contrato</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="text-sm font-bold text-gray-600 divide-y divide-gray-50">
|
|
<tr class="hover:bg-blue-50/50 transition-colors">
|
|
<td class="px-6 py-4">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-8 h-8 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center text-xs">JP</div>
|
|
<div class="flex flex-col">
|
|
<span>Juan Pérez García</span>
|
|
<span class="text-[9px] font-medium text-gray-400">DNI: 12345678X • 600112233</span>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="px-6 py-4 text-xs">
|
|
<span class="bg-blue-50 text-blue-700 px-2 py-1 rounded-md">ANUAL (59,95€)</span>
|
|
</td>
|
|
<td class="px-6 py-4">
|
|
<div class="flex flex-col items-center gap-1">
|
|
<span class="text-[10px] text-gray-400">Bricos: 0/1 | Urg: 1/2</span>
|
|
<div class="w-24 h-1.5 bg-gray-100 rounded-full overflow-hidden">
|
|
<div class="w-1/3 h-full bg-blue-500"></div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="px-6 py-4">
|
|
<span class="text-emerald-600 flex items-center gap-1.5"><div class="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"></div> PAGADO</span>
|
|
</td>
|
|
<td class="px-6 py-4 text-right">
|
|
<button class="p-2 text-gray-400 hover:text-blue-600 transition-colors"><i data-lucide="file-down" class="w-4 h-4"></i></button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="tab-config" class="tab-content hidden flex-1 min-h-0 fade-in overflow-y-auto no-scrollbar pb-10">
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
|
|
|
<div class="lg:col-span-1 space-y-6">
|
|
<div class="bg-white p-6 rounded-2xl border border-gray-200 shadow-sm">
|
|
<h3 class="text-xs font-black text-gray-800 uppercase tracking-widest mb-4 flex items-center gap-2 border-b pb-3">
|
|
<i data-lucide="tag" class="w-4 h-4 text-blue-600"></i> Precios 1º Año (Oferta)
|
|
</h3>
|
|
<div class="space-y-4">
|
|
<div>
|
|
<label class="text-[10px] font-black text-gray-400 uppercase">Cuota Mensual (€)</label>
|
|
<input type="number" step="0.01" value="6.90" class="w-full px-4 py-2.5 bg-gray-50 border rounded-xl font-bold text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="text-[10px] font-black text-gray-400 uppercase">Cuota Anual (€)</label>
|
|
<input type="number" step="0.01" value="59.95" class="w-full px-4 py-2.5 bg-gray-50 border rounded-xl font-bold text-sm">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bg-white p-6 rounded-2xl border border-gray-200 shadow-sm">
|
|
<h3 class="text-xs font-black text-gray-800 uppercase tracking-widest mb-4 flex items-center gap-2 border-b pb-3 text-amber-600">
|
|
<i data-lucide="refresh-cw" class="w-4 h-4"></i> Renovaciones (PVP Real)
|
|
</h3>
|
|
<div class="space-y-4">
|
|
<div>
|
|
<label class="text-[10px] font-black text-gray-400 uppercase">Mensual tras 12 meses (€)</label>
|
|
<input type="number" step="0.01" value="8.90" class="w-full px-4 py-2.5 bg-gray-50 border rounded-xl font-bold text-sm text-amber-700">
|
|
</div>
|
|
<div>
|
|
<label class="text-[10px] font-black text-gray-400 uppercase">Anual tras 12 meses (€)</label>
|
|
<input type="number" step="0.01" value="89.00" class="w-full px-4 py-2.5 bg-gray-50 border rounded-xl font-bold text-sm text-amber-700">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bg-white p-6 rounded-2xl border border-gray-200 shadow-sm">
|
|
<h3 class="text-xs font-black text-gray-800 uppercase tracking-widest mb-4 flex items-center gap-2 border-b pb-3 text-blue-600">
|
|
<i data-lucide="gift" class="w-4 h-4"></i> Fidelización
|
|
</h3>
|
|
<div>
|
|
<label class="text-[10px] font-black text-gray-400 uppercase">Dto. Clientes de Cartera (%)</label>
|
|
<input type="number" value="10" class="w-full px-4 py-2.5 bg-gray-50 border rounded-xl font-bold text-sm">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="lg:col-span-2">
|
|
<div class="bg-white p-6 rounded-2xl border border-gray-200 shadow-sm h-full flex flex-col">
|
|
<div class="flex justify-between items-center mb-4 border-b pb-3">
|
|
<h3 class="text-xs font-black text-gray-800 uppercase tracking-widest flex items-center gap-2">
|
|
<i data-lucide="file-signature" class="w-4 h-4 text-blue-600"></i> Clausulado del Contrato
|
|
</h3>
|
|
<button onclick="saveProtectionConfig()" class="bg-blue-600 text-white px-4 py-2 rounded-lg text-[10px] font-black uppercase tracking-widest shadow-md hover:bg-blue-700 transition-all flex items-center gap-2">
|
|
<i data-lucide="save" class="w-3.5 h-3.5"></i> Guardar Cambios
|
|
</button>
|
|
</div>
|
|
<textarea class="flex-1 w-full p-6 bg-gray-50 border rounded-2xl text-xs font-medium leading-relaxed text-gray-500 focus:ring-2 focus:ring-blue-500 outline-none min-h-[400px]">
|
|
1. OBJETO: Prestación de servicios de urgencia y manitas...
|
|
2. COBERTURAS: Máximo 2 urgencias al año...
|
|
3. BRICOLAJE: Un servicio de 2 horas anual incluido...
|
|
4. CARENCIA: 15 días naturales desde firma...
|
|
... (puedes modificar este texto y se aplicará a los nuevos contratos)
|
|
</textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
<script src="js/layout.js"></script>
|
|
<script>
|
|
// Lógica de pestañas
|
|
function switchTab(tab) {
|
|
document.querySelectorAll('.tab-content').forEach(el => el.classList.add('hidden'));
|
|
document.querySelectorAll('.tab-btn').forEach(el => el.classList.remove('active'));
|
|
|
|
document.getElementById('tab-' + tab).classList.remove('hidden');
|
|
document.getElementById('btn-tab-' + tab).classList.add('active');
|
|
|
|
if (window.lucide) lucide.createIcons();
|
|
}
|
|
|
|
async function saveProtectionConfig() {
|
|
alert("✅ Configuración de Protección guardada correctamente.");
|
|
}
|
|
|
|
// Inicializar iconos
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
if (window.lucide) lucide.createIcons();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |