Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
408 lines (361 loc) · 25 KB
/
Copy pathindex.html
File metadata and controls
408 lines (361 loc) · 25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scanner de Clientes — Black & Orange</title>
<!-- Scripts de React y Babel para procesar JSX en el navegador -->
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- Tailwind CSS para el diseño responsivo -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;600;700&family=Inter:wght@300;400;500;600&display=swap');
body {
background-color: #000000;
color: #ffffff;
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
margin: 0;
overflow-x: hidden;
}
h1, h2, h3, .font-serif {
font-family: 'Fraunces', serif;
}
.glass-card {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.gradient-blob-1 {
background: radial-gradient(circle, rgba(254,131,1,0.2) 0%, rgba(0,0,0,0) 70%);
}
.gradient-blob-2 {
background: radial-gradient(circle, rgba(237,139,250,0.15) 0%, rgba(0,0,0,0) 70%);
}
.gradient-blob-3 {
background: radial-gradient(circle, rgba(255,237,2,0.1) 0%, rgba(0,0,0,0) 70%);
}
.custom-scrollbar::-webkit-scrollbar {
width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(254, 131, 1, 0.4);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(15px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect } = React;
// --- CONFIGURACIÓN DE DATOS ---
const CHALLENGES = [
{ text: "Se generan leads, pero no hay crecimiento predecible o de forma consistente", path: "BOOMS" },
{ text: "No existe una estrategia clara de crecimiento", path: "BOOMS" },
{ text: "Se está implementando HubSpot, pero aún no se percibe el verdadero valor", path: "BOOST" },
{ text: "El equipo no usa correctamente el CRM", path: "BOOST" },
{ text: "Necesitamos ayuda para configurar / optimizar HubSpot", path: "BOOST" }
];
const ICP_BOOMS = [
{
question: "¿Cuál es el modelo de ventas y ciclo comercial del cliente?",
options: [
{ text: "Venta B2B consultiva con ciclos de venta largos (Alto valor)", score: 10 },
{ text: "Venta B2B transaccional o ciclos medios", score: 6 },
{ text: "Venta B2C o volumen masivo sin seguimiento complejo", score: 2 }
]
},
{
question: "¿Qué tamaño tiene el equipo comercial y de marketing?",
options: [
{ text: "Equipos estructurados (>5 personas) que necesitan alineación", score: 10 },
{ text: "Equipo pequeño pero en etapa de crecimiento", score: 7 },
{ text: "Operación de 1-2 personas sin roles definidos", score: 3 }
]
},
{
question: "¿Cuál es la disposición de inversión en crecimiento?",
options: [
{ text: "Presupuesto definido buscando un partner estratégico integral", score: 10 },
{ text: "Presupuesto medio, priorizando tácticas sobre estrategia", score: 6 },
{ text: "Presupuesto muy limitado o buscando bajo costo", score: 2 }
]
}
];
const ICP_BOOST = [
{
question: "¿Qué nivel de licenciamiento tienen o están adquiriendo?",
options: [
{ text: "Enterprise (o múltiples Hubs Pro)", score: 10 },
{ text: "Professional (1 o 2 Hubs)", score: 7 },
{ text: "Starter o Free", score: 3 }
]
},
{
question: "¿Cuál es el nivel de complejidad de sus procesos actuales?",
options: [
{ text: "Múltiples pipelines, integraciones y procesos operativos complejos", score: 10 },
{ text: "Procesos estándar comerciales, buscando automatización básica", score: 6 },
{ text: "Sin procesos documentados, empezando desde cero", score: 3 }
]
},
{
question: "¿Cómo es la disposición interna para adoptar la herramienta?",
options: [
{ text: "Tienen un líder de proyecto, pero les falta capacidad técnica", score: 10 },
{ text: "El equipo está frustrado con la herramienta actual", score: 8 },
{ text: "No hay nadie asignado internamente para empujar la adopción", score: 2 }
]
}
];
const MICROCOPIES = [
"Analizando nivel de madurez...",
"Evaluando alineación comercial...",
"Calculando fit estratégico..."
];
function App() {
const [step, setStep] = useState(0);
const [clientName, setClientName] = useState('');
const [evalType, setEvalType] = useState('');
const [path, setPath] = useState('');
const [icpStep, setIcpStep] = useState(0);
const [scores, setScores] = useState([]);
const handleNext = () => setStep(prev => prev + 1);
const handleChallengeSelect = (selectedPath) => {
setPath(selectedPath);
setScores([]);
setIcpStep(0);
handleNext();
};
const handleIcpSelect = (score) => {
const newScores = [...scores, score];
setScores(newScores);
const questions = path === 'BOOMS' ? ICP_BOOMS : ICP_BOOST;
if (icpStep < questions.length - 1) {
setIcpStep(prev => prev + 1);
} else {
setStep(4);
}
};
const finalScore = scores.length > 0 ? (scores.reduce((a, b) => a + b, 0) / scores.length).toFixed(1) : 0;
const getFitLevel = (score) => {
if (score >= 8) return { level: 'Alto fit', color: 'text-green-400', indicator: '🟢' };
if (score >= 5) return { level: 'Fit medio', color: 'text-[#FFED02]', indicator: '🟡' };
return { level: 'Bajo fit', color: 'text-red-400', indicator: '🔴' };
};
const fitInfo = getFitLevel(parseFloat(finalScore));
const mailtoLink = `mailto:jairo@black-n-orange.com?subject=${encodeURIComponent(`Evaluación — ${clientName}`)}&body=${encodeURIComponent(`Hola equipo,\n\nEvaluación de: ${clientName}\nTipo: ${evalType}\nResultado: ${path} | Score: ${finalScore}/10`)}`;
return (
<div className="relative min-h-screen bg-black text-white flex flex-col items-center justify-center p-6 md:p-12">
{/* Fondos dinámicos (Blobs) */}
<div className="absolute top-[-10%] left-[-10%] w-[80vw] h-[80vw] gradient-blob-1 rounded-full pointer-events-none blur-3xl opacity-40" />
<div className="absolute bottom-[-10%] right-[-10%] w-[70vw] h-[70vw] gradient-blob-2 rounded-full pointer-events-none blur-3xl opacity-30" />
<div className="relative z-10 w-full max-w-md md:max-w-3xl lg:max-w-4xl transition-all duration-500">
{/* Header con Logo */}
<div className="flex justify-center md:justify-start mb-12 opacity-90">
<div className="flex items-center gap-3">
<div className="w-5 h-5 bg-[#FE8301] rounded-sm shadow-[0_0_15px_rgba(254,131,1,0.3)]"></div>
<span className="font-serif font-bold text-xl tracking-wider uppercase">Black & Orange</span>
</div>
</div>
{/* Área de Contenido Dinámico */}
<div className="min-h-[500px] flex flex-col justify-center">
{/* PASO 0: Pantalla de Bienvenida */}
{step === 0 && (
<div className="animate-fade-in flex flex-col md:flex-row items-center gap-12 text-center md:text-left">
<div className="flex-1">
<h1 className="text-5xl md:text-7xl font-serif mb-6 leading-tight text-white">
¿Es este el cliente <span className="text-[#FE8301]">ideal?</span>
</h1>
<p className="text-gray-400 text-xl font-light max-w-lg mx-auto md:mx-0">
Analiza la oportunidad en 60 segundos con nuestro scanner de fit estratégico.
</p>
</div>
<div className="w-full max-w-sm glass-card p-8 rounded-3xl shadow-2xl">
<label className="text-xs text-gray-500 uppercase tracking-widest mb-4 block">Identificar Prospecto</label>
<input
type="text"
value={clientName}
onChange={(e) => setClientName(e.target.value)}
placeholder="Nombre de la empresa..."
className="w-full bg-white/5 border border-white/10 rounded-2xl px-6 py-5 text-white placeholder-white/20 focus:outline-none focus:border-[#FE8301] transition-all mb-6"
/>
<button
onClick={handleNext}
disabled={clientName.trim() === ''}
className="w-full bg-[#FE8301] hover:bg-[#ff9526] hover:scale-[1.02] active:scale-[0.98] disabled:opacity-20 text-black font-bold rounded-2xl px-8 py-5 transition-all text-lg shadow-xl"
>
Empezar Evaluación
</button>
</div>
</div>
)}
{/* PASO 1: Contexto de Evaluación */}
{step === 1 && (
<div className="animate-fade-in text-center max-w-2xl mx-auto w-full">
<h2 className="text-4xl font-serif mb-4 italic text-white">¿Cuál es el contexto de {clientName}?</h2>
<p className="text-gray-500 mb-10">Selecciona el equipo que lidera la cuenta</p>
<div className="grid md:grid-cols-2 gap-6">
<button
onClick={() => { setEvalType('Sales'); handleNext(); }}
className="glass-card hover:bg-[#FE8301]/5 hover:border-[#FE8301] p-10 rounded-3xl transition-all group text-left"
>
<div className="w-12 h-12 bg-[#FE8301]/10 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
<svg className="w-6 h-6 text-[#FE8301]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" /></svg>
</div>
<span className="block text-2xl font-serif text-white mb-2">Nuevo Prospecto</span>
<span className="text-gray-500 text-sm">Validación para equipo de Ventas</span>
</button>
<button
onClick={() => { setEvalType('CS'); handleNext(); }}
className="glass-card hover:bg-[#ED8BFA]/5 hover:border-[#ED8BFA] p-10 rounded-3xl transition-all group text-left"
>
<div className="w-12 h-12 bg-[#ED8BFA]/10 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
<svg className="w-6 h-6 text-[#ED8BFA]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" /></svg>
</div>
<span className="block text-2xl font-serif text-white mb-2">Cliente Actual</span>
<span className="text-gray-500 text-sm">Validación para Customer Success</span>
</button>
</div>
</div>
)}
{/* PASO 2: Selección de Desafío */}
{step === 2 && (
<div className="animate-fade-in w-full max-w-4xl mx-auto">
<div className="text-center md:text-left mb-10 flex flex-col md:flex-row md:items-end justify-between gap-4">
<div>
<span className="text-[#FE8301] text-xs font-bold uppercase tracking-[0.3em] mb-4 block">Paso 01</span>
<h2 className="text-3xl md:text-5xl font-serif text-white leading-tight">¿Principal desafío hoy?</h2>
</div>
<p className="text-gray-500 text-sm border-l border-white/10 pl-4">Selecciona una de las opciones</p>
</div>
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-4">
{CHALLENGES.map((item, index) => (
<button
key={index}
onClick={() => handleChallengeSelect(item.path)}
className="glass-card hover:bg-white/5 border border-white/5 hover:border-white/30 text-left p-6 rounded-2xl transition-all text-sm leading-relaxed text-gray-300 hover:text-white"
>
{item.text}
</button>
))}
</div>
</div>
)}
{/* PASO 3: Cuestionario ICP */}
{step === 3 && (
<div className="animate-fade-in max-w-2xl mx-auto w-full">
<div className="flex justify-between items-center mb-6">
<span className="text-[#ED8BFA] text-xs font-bold uppercase tracking-widest">Scanner Estratégico</span>
<span className="text-gray-500 text-xs font-mono">{icpStep + 1} / 3</span>
</div>
<div className="w-full bg-white/5 h-1 rounded-full mb-12 overflow-hidden">
<div
className="bg-gradient-to-r from-[#FE8301] to-[#ED8BFA] h-full transition-all duration-700 ease-in-out"
style={{ width: `${((icpStep + 1) / 3) * 100}%` }}
/>
</div>
<h2 className="text-3xl md:text-4xl font-serif text-white mb-10 leading-tight">
{(path === 'BOOMS' ? ICP_BOOMS : ICP_BOOST)[icpStep].question}
</h2>
<div className="flex flex-col gap-4">
{(path === 'BOOMS' ? ICP_BOOMS : ICP_BOOST)[icpStep].options.map((option, index) => (
<button
key={index}
onClick={() => handleIcpSelect(option.score)}
className="glass-card hover:bg-white/10 hover:translate-x-2 text-left p-6 rounded-2xl transition-all text-gray-300 hover:text-white flex justify-between items-center group"
>
<span>{option.text}</span>
<svg className="w-5 h-5 opacity-0 group-hover:opacity-100 transition-opacity" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9 5l7 7-7 7" /></svg>
</button>
))}
</div>
</div>
)}
{/* PASO 4: Resultados Finales */}
{step === 4 && (
<div className="animate-fade-in w-full max-w-4xl mx-auto">
<div className="glass-card rounded-[40px] p-8 md:p-16 relative overflow-hidden border-white/10 shadow-2xl">
<div className={`absolute top-0 left-0 w-full h-2 ${path === 'BOOMS' ? 'bg-[#FE8301]' : 'bg-[#ED8BFA]'}`}></div>
<div className="grid md:grid-cols-2 gap-12 items-center">
{/* Columna de Datos de Evaluación */}
<div>
<div className="mb-8">
<span className="text-gray-500 text-xs font-bold uppercase tracking-widest">Reporte de Fit</span>
<h2 className="text-5xl font-serif text-white mt-4">{clientName}</h2>
</div>
<div className="space-y-6">
<div className="p-6 bg-white/5 rounded-3xl border border-white/5">
<div className="text-[10px] uppercase text-gray-500 mb-3 tracking-widest">Metodología Ideal</div>
<h3 className={`text-3xl font-serif font-bold mb-3 ${path === 'BOOMS' ? 'text-[#FE8301]' : 'text-[#ED8BFA]'}`}>
{path}
</h3>
<p className="text-gray-400 text-sm leading-relaxed">
{path === 'BOOMS'
? 'Servicios de Marketing para generación de demanda.'
: 'Servicios de implementación y adopción de CRM'}
</p>
</div>
<div className="flex gap-4">
<div className="flex-1 p-6 bg-white/5 rounded-3xl text-center">
<div className="text-[10px] uppercase text-gray-500 mb-2 tracking-widest">Score</div>
<div className="text-3xl font-serif">{finalScore}<span className="text-sm text-gray-600">/10</span></div>
</div>
<div className="flex-1 p-6 bg-white/5 rounded-3xl text-center">
<div className="text-[10px] uppercase text-gray-500 mb-2 tracking-widest">Nivel</div>
<div className={`text-sm font-bold uppercase ${fitInfo.color}`}>{fitInfo.level}</div>
</div>
</div>
</div>
</div>
{/* Columna de Llamada a la Acción */}
<div className="bg-white/5 p-8 md:p-12 rounded-[32px] border border-white/10 flex flex-col justify-center text-center">
<div className="mb-8">
<div className="text-4xl mb-4">{fitInfo.indicator}</div>
<p className="text-gray-300 italic">
{parseFloat(finalScore) >= 8
? "Oportunidad de alto valor. Recomendamos sesión estratégica inmediata."
: "Oportunidad con matices. Requiere análisis detallado antes de avanzar."}
</p>
</div>
<a href={mailtoLink} className="w-full bg-white text-black hover:bg-[#FE8301] hover:text-white font-bold rounded-2xl px-6 py-5 transition-all flex items-center justify-center gap-3 mb-6">
Enviar a Jairo
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M14 5l7 7m0 0l-7 7m7-7H3" /></svg>
</a>
<button
onClick={() => { setStep(0); setClientName(''); setScores([]); }}
className="text-xs text-gray-600 hover:text-white transition-colors"
>
Escanear otra cuenta
</button>
</div>
</div>
</div>
</div>
)}
</div>
</div>
</div>
);
}
// Renderizado de la aplicación
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
</script>
</body>
</html>