feat: initial commit from existing container
No files matched your search
@@ -0,0 +1,19 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Error</title>
|
||||||
|
<style>
|
||||||
|
html { color-scheme: light dark; }
|
||||||
|
body { width: 35em; margin: 0 auto;
|
||||||
|
font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>An error occurred.</h1>
|
||||||
|
<p>Sorry, the page you are looking for is currently unavailable.<br/>
|
||||||
|
Please try again later.</p>
|
||||||
|
<p>If you are the system administrator of this resource then you should check
|
||||||
|
the error log for details.</p>
|
||||||
|
<p><em>Faithfully yours, nginx.</em></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,438 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||||
|
<title>Collina Cash Monitor — Demo</title>
|
||||||
|
<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=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root{
|
||||||
|
--wa-green:#075e54;
|
||||||
|
--wa-green-2:#128c7e;
|
||||||
|
--wa-bar:#008069;
|
||||||
|
--wa-bg:#ece5dd;
|
||||||
|
--wa-in:#ffffff;
|
||||||
|
--wa-out:#d9fdd3;
|
||||||
|
--wa-tick:#53bdeb;
|
||||||
|
--wa-time:#667781;
|
||||||
|
--ink:#0b1411;
|
||||||
|
--accent:#10b981;
|
||||||
|
--gold:#e7b75f;
|
||||||
|
--font-ui:'Bricolage Grotesque',system-ui,sans-serif;
|
||||||
|
--font-chat:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
|
||||||
|
--font-serif:'Instrument Serif',Georgia,serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
|
||||||
|
html,body{height:100%;}
|
||||||
|
body{font-family:var(--font-ui);background:transparent;color:#0b1411;overflow:hidden;min-height:100vh;}
|
||||||
|
|
||||||
|
.stage{position:relative;z-index:3;height:100vh;display:flex;flex-direction:column;align-items:center;
|
||||||
|
padding:0 16px 14px;gap:14px;}
|
||||||
|
|
||||||
|
.phone-wrap{flex:1;width:100%;display:flex;align-items:flex-start;justify-content:center;min-height:0;overflow:hidden;}
|
||||||
|
.phone{
|
||||||
|
width:390px;height:844px;flex:none;position:relative;border-radius:56px;
|
||||||
|
background:linear-gradient(160deg,#1c1c1e,#0b0b0c);
|
||||||
|
padding:13px;transform-origin:center top;
|
||||||
|
box-shadow:
|
||||||
|
0 2px 0 1px rgba(255,255,255,.06) inset,
|
||||||
|
0 0 0 2px #2a2a2c;
|
||||||
|
}
|
||||||
|
.screen{position:relative;width:100%;height:100%;border-radius:44px;overflow:hidden;background:var(--wa-bg);
|
||||||
|
display:flex;flex-direction:column;font-family:var(--font-chat);}
|
||||||
|
.island{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:118px;height:34px;background:#000;
|
||||||
|
border-radius:20px;z-index:30;}
|
||||||
|
|
||||||
|
.statusbar{height:46px;flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:flex-end;
|
||||||
|
justify-content:space-between;padding:0 26px 7px;font-size:14px;font-weight:600;}
|
||||||
|
.statusbar .icons{display:flex;align-items:center;gap:6px;}
|
||||||
|
.statusbar svg{display:block;}
|
||||||
|
|
||||||
|
.wa-head{flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:center;gap:10px;padding:6px 12px 10px;}
|
||||||
|
.wa-head .back{font-size:24px;line-height:1;opacity:.95;}
|
||||||
|
.avatar{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;
|
||||||
|
background:#fbfaf7;box-shadow:0 0 0 2px rgba(255,255,255,.3),0 1px 3px rgba(0,0,0,.2);
|
||||||
|
font-family:var(--font-serif);font-size:18px;color:#075e54;font-weight:700;}
|
||||||
|
.who{flex:1;min-width:0;}
|
||||||
|
.who .nm{font-size:16px;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.who .st{font-size:12.5px;opacity:.85;line-height:1.2;height:15px;}
|
||||||
|
.who .st.typing{color:#bff3df;font-style:italic;}
|
||||||
|
.wa-head .hicons{display:flex;gap:18px;opacity:.95;}
|
||||||
|
|
||||||
|
.chat{flex:1;min-height:0;overflow-y:auto;padding:14px 12px 8px;scroll-behavior:smooth;
|
||||||
|
background:
|
||||||
|
linear-gradient(rgba(236,229,221,.92),rgba(236,229,221,.92)),
|
||||||
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23b9ad9c' stroke-width='1' opacity='.5'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Cpath d='M55 12h10M60 7v10'/%3E%3Cpath d='M12 58c4-4 8-4 12 0'/%3E%3Crect x='52' y='52' width='9' height='9' rx='2'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
background-size:auto,160px 160px;}
|
||||||
|
.chat::-webkit-scrollbar{width:0;}
|
||||||
|
|
||||||
|
.day{align-self:center;margin:2px auto 10px;background:#d6e7e0;color:#4a635b;font-size:11px;font-weight:600;
|
||||||
|
padding:4px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.05);}
|
||||||
|
|
||||||
|
.row{display:flex;margin-bottom:8px;animation:pop .26s cubic-bezier(.2,.8,.3,1.2);}
|
||||||
|
.row.in{justify-content:flex-start;}
|
||||||
|
.row.out{justify-content:flex-end;}
|
||||||
|
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
|
||||||
|
|
||||||
|
.bubble{position:relative;max-width:80%;padding:7px 10px 18px;border-radius:11px;font-size:13.3px;line-height:1.42;
|
||||||
|
color:#111b21;white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px .5px rgba(11,20,26,.13);}
|
||||||
|
.bubble strong{font-weight:700;}
|
||||||
|
.row.in .bubble{background:var(--wa-in);border-top-left-radius:3px;}
|
||||||
|
.row.out .bubble{background:var(--wa-out);border-top-right-radius:3px;}
|
||||||
|
.bubble .meta{position:absolute;right:9px;bottom:5px;font-size:10.5px;color:var(--wa-time);
|
||||||
|
display:flex;align-items:center;gap:3px;}
|
||||||
|
.bubble .meta .tick{color:var(--wa-tick);font-size:12px;}
|
||||||
|
.row.in .bubble:after{content:"";position:absolute;top:0;left:-7px;border:7px solid transparent;
|
||||||
|
border-top-color:var(--wa-in);border-right:0;}
|
||||||
|
.row.out .bubble:after{content:"";position:absolute;top:0;right:-7px;border:7px solid transparent;
|
||||||
|
border-top-color:var(--wa-out);border-left:0;}
|
||||||
|
|
||||||
|
.typing .bubble{padding:11px 14px;}
|
||||||
|
.dots{display:flex;gap:4px;}
|
||||||
|
.dots i{width:7px;height:7px;border-radius:50%;background:#9aa6a0;animation:bln 1.2s infinite;}
|
||||||
|
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
|
||||||
|
@keyframes bln{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
|
||||||
|
|
||||||
|
.quick{flex:none;background:var(--wa-bg);padding:8px 10px 6px;display:flex;gap:8px;overflow-x:auto;
|
||||||
|
border-top:1px solid rgba(0,0,0,.04);}
|
||||||
|
.quick::-webkit-scrollbar{height:0;}
|
||||||
|
.chip{flex:none;font-family:var(--font-chat);font-size:12.5px;font-weight:600;color:#075e54;
|
||||||
|
background:#fff;border:1px solid #cfe3da;border-radius:999px;padding:7px 13px;cursor:pointer;white-space:nowrap;
|
||||||
|
transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,translate .35s ease,rotate .35s ease,scale .12s ease;
|
||||||
|
animation:chipDance 2.8s ease-in-out infinite;will-change:translate,rotate;}
|
||||||
|
.chip:nth-child(1){animation-delay:0s}
|
||||||
|
.chip:nth-child(2){animation-delay:.15s}
|
||||||
|
.chip:nth-child(3){animation-delay:.30s}
|
||||||
|
.chip:nth-child(4){animation-delay:.45s}
|
||||||
|
.chip:nth-child(5){animation-delay:.60s}
|
||||||
|
.chip:nth-child(6){animation-delay:.75s}
|
||||||
|
.chip:hover{animation:none;translate:0 0;rotate:0deg;
|
||||||
|
background:#cdeede;border-color:#7cc7ad;color:#064a43;box-shadow:0 4px 12px -4px rgba(8,128,105,.5);}
|
||||||
|
.chip:active{animation:none;scale:.96;background:#a9ddc7;border-color:#5bb695;color:#053a34;
|
||||||
|
box-shadow:inset 0 2px 5px rgba(0,0,0,.14);}
|
||||||
|
@keyframes chipDance{
|
||||||
|
0%,100%{translate:0 0;rotate:0deg}
|
||||||
|
22%{translate:0 -3px;rotate:-1.5deg}
|
||||||
|
52%{translate:0 -1px;rotate:0deg}
|
||||||
|
78%{translate:0 -3px;rotate:1.5deg}
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce){ .chip{animation:none} }
|
||||||
|
|
||||||
|
.inputbar{flex:none;background:var(--wa-bg);padding:7px 9px 12px;display:flex;align-items:center;gap:8px;}
|
||||||
|
.field{flex:1;background:#fff;border-radius:22px;display:flex;align-items:center;gap:8px;padding:9px 14px;
|
||||||
|
box-shadow:0 1px .5px rgba(0,0,0,.08);}
|
||||||
|
.field input{flex:1;border:0;outline:0;font-family:var(--font-chat);font-size:13.5px;color:#111b21;background:transparent;}
|
||||||
|
.field input::placeholder{color:#8a9690;}
|
||||||
|
.field .em{font-size:17px;opacity:.55;}
|
||||||
|
.send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--wa-bar);color:#fff;
|
||||||
|
display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(8,128,105,.4);transition:transform .12s;}
|
||||||
|
.send:active{transform:scale(.92);}
|
||||||
|
|
||||||
|
.controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;position:relative;z-index:5;}
|
||||||
|
.ctrl{font-family:var(--font-ui);font-size:13px;font-weight:600;border:0;border-radius:999px;
|
||||||
|
padding:10px 18px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;
|
||||||
|
transition:transform .12s ease,box-shadow .15s ease,filter .15s ease;}
|
||||||
|
.ctrl:active{transform:scale(.97);}
|
||||||
|
#restartBtn{color:#0b3b32;background:#fff;border:1px solid rgba(8,128,105,.25);
|
||||||
|
box-shadow:0 6px 16px -10px rgba(0,0,0,.5);}
|
||||||
|
#restartBtn:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(0,0,0,.45);}
|
||||||
|
.hint{font-size:12px;color:#7fa395;letter-spacing:.02em;}
|
||||||
|
.hint b{color:#bff3df;font-weight:600;}
|
||||||
|
|
||||||
|
@media (max-height:620px){ .caption{display:none;} }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="stage">
|
||||||
|
|
||||||
|
<div class="phone-wrap">
|
||||||
|
<div class="phone">
|
||||||
|
<div class="island"></div>
|
||||||
|
<div class="screen">
|
||||||
|
|
||||||
|
<div class="statusbar">
|
||||||
|
<span id="barClock">9:41</span>
|
||||||
|
<span class="icons">
|
||||||
|
<svg width="18" height="12" viewBox="0 0 18 12" fill="#fff"><rect x="0" y="8" width="3" height="4" rx="1"/><rect x="5" y="5" width="3" height="7" rx="1"/><rect x="10" y="2.5" width="3" height="9.5" rx="1"/><rect x="15" y="0" width="3" height="12" rx="1"/></svg>
|
||||||
|
<svg width="17" height="12" viewBox="0 0 17 12" fill="#fff"><path d="M8.5 2.2c2.6 0 5 1 6.8 2.6l-1.4 1.5A7.7 7.7 0 0 0 8.5 4.2 7.7 7.7 0 0 0 3.1 6.3L1.7 4.8A10 10 0 0 1 8.5 2.2Zm0 3.6c1.6 0 3.1.6 4.2 1.6l-1.5 1.5a4 4 0 0 0-5.4 0L4.3 7.4A6 6 0 0 1 8.5 5.8Zm0 3.5c.8 0 1.5.3 2 .8l-2 2-2-2c.5-.5 1.2-.8 2-.8Z"/></svg>
|
||||||
|
<svg width="26" height="13" viewBox="0 0 26 13"><rect x="1" y="1" width="21" height="11" rx="3" fill="none" stroke="#fff" stroke-opacity=".5"/><rect x="3" y="3" width="16" height="7" rx="1.5" fill="#fff"/><rect x="23" y="4" width="2" height="5" rx="1" fill="#fff" fill-opacity=".6"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wa-head">
|
||||||
|
<span class="back">‹</span>
|
||||||
|
<span class="avatar">CS</span>
|
||||||
|
<span class="who">
|
||||||
|
<span class="nm">Collina Cash Monitor</span>
|
||||||
|
<span class="st" id="status">en línea</span>
|
||||||
|
</span>
|
||||||
|
<span class="hicons">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M17 10.5V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3.5l5 4v-11l-5 4Z"/></svg>
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M20 15.5a12.8 12.8 0 0 1-3.9-.6 1.1 1.1 0 0 0-1.1.3l-2.2 2.2a16.5 16.5 0 0 1-7.2-7.2l2.2-2.2a1.1 1.1 0 0 0 .3-1.1A12.8 12.8 0 0 1 7.5 3 1 1 0 0 0 6.5 2H3.5a1 1 0 0 0-1 1A17.5 17.5 0 0 0 20 20.5a1 1 0 0 0 1-1V16.5a1 1 0 0 0-1-1Z"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat" id="chat">
|
||||||
|
<div class="day">HOY</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick" id="quick"></div>
|
||||||
|
|
||||||
|
<div class="inputbar">
|
||||||
|
<div class="field">
|
||||||
|
<span class="em">😊</span>
|
||||||
|
<input id="freeInput" type="text" placeholder="Escribe un mensaje" autocomplete="off">
|
||||||
|
<span class="em">📎</span>
|
||||||
|
</div>
|
||||||
|
<button class="send" id="sendBtn" aria-label="Enviar">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M3 11.5 21 3l-4 9 4 9-18-8.5 9-1-9-1Z"/></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="controls">
|
||||||
|
<span class="hint">▶ Reproducción automática — toca un botón o escribe para tomar el control</span>
|
||||||
|
<button class="ctrl ghost" id="restartBtn">↻ Reiniciar conversación</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
"use strict";
|
||||||
|
var chat = document.getElementById('chat');
|
||||||
|
var quick = document.getElementById('quick');
|
||||||
|
var statusEl = document.getElementById('status');
|
||||||
|
var restartBtn = document.getElementById('restartBtn');
|
||||||
|
var freeInput = document.getElementById('freeInput');
|
||||||
|
var sendBtn = document.getElementById('sendBtn');
|
||||||
|
var hintEl = document.querySelector('.hint');
|
||||||
|
|
||||||
|
var RESP = {
|
||||||
|
help: {
|
||||||
|
user:"ayuda",
|
||||||
|
bot:"👋 Hola, soy *Collina Cash Monitor*.\n\nMonitoreo *todas tus estaciones en tiempo real* — ventas, litros y transacciones por bomba, turno y sucursal. Escríbeme natural, por ejemplo:\n\n🏢 *Todas tus estaciones*\n• \"cómo van mis sucursales\"\n\n🔎 *Filtra una estación*\n• \"ver Valle Norte\"\n• \"Puerto Sur\"\n\n📊 *El día de una estación*\n• \"cómo va el día\"\n\n🛢️ *Por combustible*\n• \"ingresos por tipo\"\n\n⛽ *Por bomba o turno*\n• \"cuánto vendió la bomba 6\"\n\n⚠️ Solo *monitoreo y reporto*. No muevo dinero ni edito registros.\n\nEscribe *ayuda* cuando quieras."
|
||||||
|
},
|
||||||
|
sucursales: {
|
||||||
|
user:"cómo van todas mis estaciones",
|
||||||
|
bot:"🏢 *MIS ESTACIONES — EN VIVO {HORA}*\n3 estaciones · {FECHA}\n─────────────────────\n1️⃣ *Reserva Territorial*\n 💵 $59,547 · ⛽ 2,232 L\n 🎯 87.4% · 🧾 412 transacc.\n2️⃣ *Valle Norte*\n 💵 $44,310 · ⛽ 1,690 L\n 🎯 92.1% · 🧾 318 transacc.\n3️⃣ *Puerto Sur*\n 💵 $38,905 · ⛽ 1,488 L\n 🎯 79.3% ⚠️ · 🧾 191 transacc.\n─────────────────────\n💰 Total grupo: *$142,762 MXN*\n⛽ Total: *5,410 L* · 🧾 921 transacc.\n🏆 Mejor cumplimiento: *Valle Norte*\n⚠️ *Puerto Sur* por debajo de meta\n─────────────────────\n🔎 Escribe el nombre de una estación (ej. *Valle Norte*) para ver su detalle."
|
||||||
|
},
|
||||||
|
valle: {
|
||||||
|
user:"y Valle Norte?",
|
||||||
|
bot:"🏢 *VALLE NORTE — EN VIVO {HORA}*\n{FECHA} · corte al momento\n─────────────────────\n💵 Ingreso: *$44,310 MXN*\n⛽ Litros: *1,690 L*\n🧾 Transacciones: *318*\n🎟️ Ticket promedio: *$139.3*\n🟢 Bombas activas: 4 / 4\n─────────────────────\n🏆 Bomba más activa: *#03 · 612 L* (Magna)\n🎯 Cumplimiento: *92.1%* ✅ (la mejor del grupo)\n📈 vs ayer: *+8.4%*\n─────────────────────\n🔎 Escribe *Reserva* o *Puerto Sur* para cambiar de estación."
|
||||||
|
},
|
||||||
|
puerto: {
|
||||||
|
user:"ver Puerto Sur",
|
||||||
|
bot:"🏢 *PUERTO SUR — EN VIVO {HORA}*\n{FECHA} · corte al momento\n─────────────────────\n💵 Ingreso: *$38,905 MXN*\n⛽ Litros: *1,488 L*\n🧾 Transacciones: *191*\n🎟️ Ticket promedio: *$203.7*\n🟡 Bombas activas: 4 / 5 ⚠️\n─────────────────────\n🎯 Cumplimiento: *79.3%* ⚠️ (debajo de meta)\n🔻 Bomba *#02 sin actividad* desde las 11:40\n📉 vs ayer: *−5.1%*\n─────────────────────\n💡 Revisa la bomba #02: posible fuera de servicio.\n🔎 Escribe *Reserva* o *Valle Norte* para cambiar."
|
||||||
|
},
|
||||||
|
hoy: {
|
||||||
|
user:"cómo va el día",
|
||||||
|
bot:"📊 *CORTE EN VIVO — {HORA} hrs*\n🏢 *Reserva Territorial* · 1 de 3 estaciones · {FECHA}\n─────────────────────\n⛽ Litros despachados: *2,232 L*\n💵 Ingreso total: *$59,547 MXN*\n🧾 Transacciones: *412*\n🎟️ Ticket promedio: *$144.5*\n🟢 Bombas activas: 6 / 6\n─────────────────────\n🏆 Más activa: *Bomba #06 · 523 L* (Diésel)\n🎯 Cumplimiento vs meta: *87.4%*\n📈 vs ayer a esta hora: *+6.2%*\n─────────────────────\n🔎 Escribe *Valle Norte* o *Puerto Sur* para otra estación · o *sucursales* para el grupo."
|
||||||
|
},
|
||||||
|
combustible: {
|
||||||
|
user:"ingresos por tipo de combustible",
|
||||||
|
bot:"🛢️ *INGRESOS POR COMBUSTIBLE*\n🏢 *Reserva Territorial* (1/3) · en vivo · {HORA}\n─────────────────────\n🟢 *Magna*\n $26,289 MXN · 44.1%\n🔵 *Premium*\n $19,876 MXN · 33.4%\n🟡 *Diésel*\n $13,382 MXN · 22.5%\n─────────────────────\n💰 Total del día: *$59,547 MXN*\n📊 Mayor ingreso: *Magna*\n📈 Premium sube *+4.1%* vs ayer\n─────────────────────\n🔎 Escribe otra estación (*Valle Norte*, *Puerto Sur*) para comparar."
|
||||||
|
},
|
||||||
|
bomba6: {
|
||||||
|
user:"cuánto vendió la bomba 6",
|
||||||
|
bot:"⛽ *BOMBA #06 — Diésel*\n🏢 Reserva Territorial · en vivo · {HORA}\n─────────────────────\n🛢️ Litros: *523 L*\n💵 Ingreso: *$13,118 MXN*\n🧾 Transacciones: *74*\n🎟️ Ticket promedio: *$177.3*\n🏆 #1 del día en litros\n─────────────────────\n🕐 Por turno\n ☀️ Matutino: 281 L · $7,049\n 🌙 Vespertino: 242 L · $6,069\n─────────────────────\n🎯 Meta diaria: 500 L → *104.6%* ✅\n📈 vs promedio 7 días: *+9%*\n\nEscribe otra bomba (1–6) para verla."
|
||||||
|
},
|
||||||
|
turnos: {
|
||||||
|
user:"compara los turnos de hoy",
|
||||||
|
bot:"🕐 *COMPARATIVO DE TURNOS — HOY*\n🏢 Reserva Territorial · en vivo · {HORA}\n─────────────────────\n☀️ *MATUTINO* (06:00–14:00)\n ⛽ 1,180 L\n 💵 $31,420 MXN\n 🧾 226 transacciones\n 👥 3 despachadores\n─────────────────────\n🌙 *VESPERTINO* (14:00–18:00)\n ⛽ 1,052 L\n 💵 $28,127 MXN\n 🧾 186 transacciones\n 👥 3 despachadores\n─────────────────────\n🏆 Mayor venta: *Matutino* (+$3,293)\n⚡ Hora pico: *13:00–14:00*"
|
||||||
|
},
|
||||||
|
limite: {
|
||||||
|
user:"puedes mover el dinero a mi cuenta?",
|
||||||
|
bot:"🤔 Por ahora solo *monitoreo y reporto*: ventas, litros, transacciones, turnos y cumplimiento por estación.\n\nNo muevo dinero, no hago retiros ni edito registros.\n\n¿Quieres ver el resumen del grupo o el detalle de una estación?"
|
||||||
|
},
|
||||||
|
fallback: {
|
||||||
|
bot:"🤔 No estoy seguro de qué necesitas. Puedo darte el resumen de *todas tus estaciones*, filtrar una (*Valle Norte*, *Puerto Sur*, *Reserva*), o ventas *por bomba*, *combustible* o *turno*.\n\nEscribe *ayuda* para ver ejemplos."
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var CHIPS = [
|
||||||
|
{key:'help', label:'ayuda'},
|
||||||
|
{key:'sucursales', label:'Mis sucursales'},
|
||||||
|
{key:'valle', label:'Valle Norte'},
|
||||||
|
{key:'puerto', label:'Puerto Sur'},
|
||||||
|
{key:'hoy', label:'Corte del día'},
|
||||||
|
{key:'combustible', label:'Ingresos por combustible'}
|
||||||
|
];
|
||||||
|
var SCRIPT = ['help','sucursales','puerto','hoy','combustible','limite'];
|
||||||
|
|
||||||
|
CHIPS.forEach(function(c){
|
||||||
|
var b=document.createElement('button');
|
||||||
|
b.className='chip';b.textContent=c.label;
|
||||||
|
b.addEventListener('click',function(){ userTrigger(c.key); });
|
||||||
|
quick.appendChild(b);
|
||||||
|
});
|
||||||
|
|
||||||
|
function esc(s){return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}
|
||||||
|
function fmt(s){return esc(s).replace(/\{HORA\}/g,nowHM()).replace(/\{FECHA\}/g,nowFecha()).replace(/\*(.+?)\*/g,'<strong>$1</strong>');}
|
||||||
|
function sleep(ms){return new Promise(function(r){setTimeout(r,ms);});}
|
||||||
|
function scrollDown(){chat.scrollTop=chat.scrollHeight;}
|
||||||
|
|
||||||
|
function nowHM(){
|
||||||
|
var d=new Date(), h=d.getHours(), m=d.getMinutes();
|
||||||
|
return h+':'+(m<10?'0':'')+m;
|
||||||
|
}
|
||||||
|
function nowFecha(){
|
||||||
|
var d=new Date(), M=['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'];
|
||||||
|
return d.getDate()+' '+M[d.getMonth()]+' '+d.getFullYear();
|
||||||
|
}
|
||||||
|
function tickClock(){
|
||||||
|
var el=document.getElementById('barClock');
|
||||||
|
if(el) el.textContent=nowHM();
|
||||||
|
}
|
||||||
|
function stamp(){ return nowHM(); }
|
||||||
|
|
||||||
|
function addRow(side, html, isTyping){
|
||||||
|
var row=document.createElement('div');
|
||||||
|
row.className='row '+side+(isTyping?' typing':'');
|
||||||
|
var bub=document.createElement('div'); bub.className='bubble';
|
||||||
|
if(isTyping){
|
||||||
|
bub.innerHTML='<span class="dots"><i></i><i></i><i></i></span>';
|
||||||
|
}else{
|
||||||
|
var tick = side==='out' ? '<span class="tick">✓✓</span>' : '';
|
||||||
|
bub.innerHTML = html + '<span class="meta">'+stamp()+tick+'</span>';
|
||||||
|
}
|
||||||
|
row.appendChild(bub); chat.appendChild(row); scrollDown();
|
||||||
|
return row;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setTyping(on){
|
||||||
|
statusEl.textContent = on ? 'escribiendo…' : 'en línea';
|
||||||
|
statusEl.classList.toggle('typing', on);
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearChat(){
|
||||||
|
chat.innerHTML='<div class="day">HOY</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
var READ_MS = 27;
|
||||||
|
var READ_MIN = 1500, READ_MAX = 7000;
|
||||||
|
function readingTime(text){
|
||||||
|
return Math.max(READ_MIN, Math.min(READ_MAX, text.length * READ_MS));
|
||||||
|
}
|
||||||
|
function smoothBottom(){
|
||||||
|
try { chat.scrollTo({ top: chat.scrollHeight, behavior:'smooth' }); }
|
||||||
|
catch(e){ chat.scrollTop = chat.scrollHeight; }
|
||||||
|
}
|
||||||
|
function removeTyping(){ var t=chat.querySelector('.row.typing'); if(t) t.remove(); }
|
||||||
|
|
||||||
|
var busy=false;
|
||||||
|
|
||||||
|
async function exchange(userText, botText){
|
||||||
|
if(busy) return; busy=true;
|
||||||
|
if(userText){ addRow('out', fmt(userText), false); smoothBottom(); await sleep(420); }
|
||||||
|
var typ=addRow('in','',true); setTyping(true); smoothBottom();
|
||||||
|
var dur=Math.min(2300, 650 + botText.length*7);
|
||||||
|
await sleep(dur);
|
||||||
|
typ.remove(); setTyping(false);
|
||||||
|
addRow('in', fmt(botText), false); smoothBottom();
|
||||||
|
busy=false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function classify(text){
|
||||||
|
var t=text.toLowerCase();
|
||||||
|
if(/(ayuda|menu|menú|inicio|hola)/.test(t)) return 'help';
|
||||||
|
if(/valle/.test(t)) return 'valle';
|
||||||
|
if(/puerto/.test(t)) return 'puerto';
|
||||||
|
if(/(reserva|territorial)/.test(t)) return 'hoy';
|
||||||
|
if(/(sucursal|sucursales|estaciones|grupo|todas)/.test(t)) return 'sucursales';
|
||||||
|
if(/(bomba|surtidor|dispensari)/.test(t)) return 'bomba6';
|
||||||
|
if(/(combustible|magna|premium|diésel|diesel|gasolina|tipo)/.test(t)) return 'combustible';
|
||||||
|
if(/(turno|matutino|vespertino|nocturno|jornada)/.test(t)) return 'turnos';
|
||||||
|
if(/(día|dia|hoy|corte|vend|resumen|total|llevo)/.test(t)) return 'hoy';
|
||||||
|
if(/(mov|pag|cobr|transfer|depósit|deposit|retir|saca)/.test(t)) return 'limite';
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function userTrigger(key){
|
||||||
|
stopAuto();
|
||||||
|
if(busy) return;
|
||||||
|
var r=RESP[key];
|
||||||
|
await exchange(r.user, r.bot);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function freeSend(){
|
||||||
|
stopAuto();
|
||||||
|
if(busy) return;
|
||||||
|
var text=freeInput.value.trim();
|
||||||
|
if(!text) return;
|
||||||
|
freeInput.value='';
|
||||||
|
var key=classify(text);
|
||||||
|
var bot = key ? RESP[key].bot : RESP.fallback.bot;
|
||||||
|
await exchange(text, bot);
|
||||||
|
}
|
||||||
|
|
||||||
|
var auto=false, autoToken=0;
|
||||||
|
|
||||||
|
function setHint(txt){ if(hintEl) hintEl.textContent = txt; }
|
||||||
|
|
||||||
|
function stopAuto(){
|
||||||
|
if(!auto) return;
|
||||||
|
auto=false; autoToken++;
|
||||||
|
removeTyping(); setTyping(false);
|
||||||
|
setHint('✋ Modo manual — toca un botón o escribe tu pregunta');
|
||||||
|
}
|
||||||
|
|
||||||
|
async function autoplay(){
|
||||||
|
var token=++autoToken; auto=true; busy=false;
|
||||||
|
setHint('▶ Reproducción automática — toca un botón o escribe para tomar el control');
|
||||||
|
clearChat();
|
||||||
|
await sleep(600); if(token!==autoToken || !auto) return;
|
||||||
|
|
||||||
|
while(token===autoToken && auto){
|
||||||
|
for(var i=0;i<SCRIPT.length;i++){
|
||||||
|
if(token!==autoToken || !auto) return;
|
||||||
|
var r=RESP[SCRIPT[i]];
|
||||||
|
if(r.user){
|
||||||
|
addRow('out', fmt(r.user), false); smoothBottom();
|
||||||
|
await sleep(700); if(token!==autoToken || !auto) return;
|
||||||
|
}
|
||||||
|
var typ=addRow('in','',true); setTyping(true); smoothBottom();
|
||||||
|
await sleep(Math.min(1500, 500 + r.bot.length*3));
|
||||||
|
if(token!==autoToken || !auto){ typ.remove(); setTyping(false); return; }
|
||||||
|
typ.remove(); setTyping(false);
|
||||||
|
addRow('in', fmt(r.bot), false); smoothBottom();
|
||||||
|
await sleep(readingTime(r.bot)); if(token!==autoToken || !auto) return;
|
||||||
|
}
|
||||||
|
await sleep(3500); if(token!==autoToken || !auto) return;
|
||||||
|
clearChat();
|
||||||
|
await sleep(500); if(token!==autoToken || !auto) return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(restartBtn) restartBtn.addEventListener('click', function(){ autoplay(); });
|
||||||
|
if(sendBtn) sendBtn.addEventListener('click', freeSend);
|
||||||
|
if(freeInput){
|
||||||
|
freeInput.addEventListener('focus', stopAuto);
|
||||||
|
freeInput.addEventListener('keydown', function(e){ if(e.key==='Enter') freeSend(); });
|
||||||
|
}
|
||||||
|
['wheel','touchstart'].forEach(function(ev){
|
||||||
|
chat.addEventListener(ev, stopAuto, {passive:true});
|
||||||
|
});
|
||||||
|
|
||||||
|
function fit(){
|
||||||
|
var wrap=document.querySelector('.phone-wrap');
|
||||||
|
var phone=document.querySelector('.phone');
|
||||||
|
var w=wrap.clientWidth, h=wrap.clientHeight;
|
||||||
|
var s=Math.min((w-12)/390,(h-12)/844);
|
||||||
|
phone.style.transformOrigin='center top';
|
||||||
|
phone.style.transform='scale('+s+')';
|
||||||
|
}
|
||||||
|
window.addEventListener('resize', fit);
|
||||||
|
|
||||||
|
window.addEventListener('load', function(){ fit(); tickClock(); setInterval(tickClock,30000); autoplay(); });
|
||||||
|
fit();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 3.4 MiB |
@@ -0,0 +1,698 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<!-- Collina Contract Maker — Demo interactiva (formato iPhone) -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>Collina Contract Maker · Demo</title>
|
||||||
|
<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=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:root{
|
||||||
|
/* Marca / stage */
|
||||||
|
--bg-0:#08120d; --bg-1:#0c1c14; --bg-2:#0f241a;
|
||||||
|
--emerald:#16a35a; --emerald-d:#0f7c44; --emerald-l:#3ddb86;
|
||||||
|
--paper:#f4efe7; --ink:#0c130f; --muted:#7c857e;
|
||||||
|
/* WhatsApp */
|
||||||
|
--wa-header:#075e54; --wa-header2:#0a7d6e; --wa-bg:#efeae2;
|
||||||
|
--wa-out:#d9fdd3; --wa-in:#ffffff; --wa-link:#1f7ae0; --wa-check:#34b7f1;
|
||||||
|
/* tipografía */
|
||||||
|
--serif:"Fraunces",Georgia,serif;
|
||||||
|
--sans:"Hanken Grotesk",system-ui,-apple-system,sans-serif;
|
||||||
|
--ios:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
*{box-sizing:border-box}
|
||||||
|
html,body{margin:0;height:100%}
|
||||||
|
body{
|
||||||
|
font-family:var(--sans);
|
||||||
|
color:#0c130f;
|
||||||
|
background:transparent;
|
||||||
|
min-height:100vh;
|
||||||
|
-webkit-font-smoothing:antialiased;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shell{
|
||||||
|
position:relative;z-index:1;
|
||||||
|
margin:0 auto;padding:0 0 8px;
|
||||||
|
display:flex;flex-direction:column;align-items:center;
|
||||||
|
gap:8px;height:100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Teléfono ---------- */
|
||||||
|
.device-col{flex:1;width:100%;display:flex;align-items:flex-start;justify-content:center;min-height:0;overflow:hidden;}
|
||||||
|
.phone{
|
||||||
|
--w:332px;width:var(--w);height:calc(var(--w) * 2.164);
|
||||||
|
position:relative;border-radius:54px;flex:none;
|
||||||
|
background:linear-gradient(160deg,#3a3a3e,#0c0c0d 30%,#1c1c1f 70%,#0a0a0b);
|
||||||
|
padding:13px;transform-origin:center top;
|
||||||
|
box-shadow:0 2px 2px rgba(255,255,255,.12) inset,0 0 0 2px #000;
|
||||||
|
}
|
||||||
|
.screen{
|
||||||
|
position:relative;width:100%;height:100%;border-radius:42px;overflow:hidden;
|
||||||
|
background:#000;isolation:isolate;
|
||||||
|
}
|
||||||
|
/* dynamic island */
|
||||||
|
.island{
|
||||||
|
position:absolute;top:11px;left:50%;transform:translateX(-50%);
|
||||||
|
width:104px;height:30px;background:#000;border-radius:18px;z-index:60;
|
||||||
|
}
|
||||||
|
.island::after{content:"";position:absolute;right:13px;top:50%;transform:translateY(-50%);width:9px;height:9px;border-radius:50%;background:#0b1418;box-shadow:0 0 0 2px #060708}
|
||||||
|
|
||||||
|
/* iOS status bar */
|
||||||
|
.statusbar{
|
||||||
|
position:absolute;top:0;left:0;right:0;height:50px;z-index:55;
|
||||||
|
display:flex;align-items:center;justify-content:space-between;
|
||||||
|
padding:18px 26px 0;font-family:var(--ios);font-size:14px;font-weight:600;
|
||||||
|
color:var(--sb,#fff);pointer-events:none;
|
||||||
|
}
|
||||||
|
.statusbar .ico{display:flex;gap:6px;align-items:center}
|
||||||
|
.statusbar svg{display:block}
|
||||||
|
|
||||||
|
/* apps layer */
|
||||||
|
.app{position:absolute;inset:0;display:flex;flex-direction:column;font-family:var(--ios)}
|
||||||
|
#web{transform:translateY(102%);opacity:0;transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .4s}
|
||||||
|
.screen[data-app="web"] #web{transform:translateY(0);opacity:1}
|
||||||
|
.screen[data-app="web"] #wa{transform:scale(.97);filter:brightness(.7)}
|
||||||
|
#wa{transition:transform .55s cubic-bezier(.22,1,.36,1),filter .4s}
|
||||||
|
|
||||||
|
/* Visor de documento (.docx abierto) */
|
||||||
|
#docview{transform:translateY(102%);opacity:0;z-index:8;
|
||||||
|
transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .4s;background:#5a6470}
|
||||||
|
.screen[data-app="doc"] #docview{transform:translateY(0);opacity:1}
|
||||||
|
.screen[data-app="doc"] #wa{transform:scale(.97);filter:brightness(.6)}
|
||||||
|
.dv-bar{flex:none;padding:44px 12px 11px;display:flex;align-items:center;gap:10px;
|
||||||
|
background:linear-gradient(180deg,#1d4f3a,#143c2c);color:#fff}
|
||||||
|
.dv-bar .dv-back{font-size:23px;line-height:1;opacity:.95}
|
||||||
|
.dv-wic{width:26px;height:26px;border-radius:6px;background:#2b6b4a;display:grid;place-items:center;flex:0 0 auto}
|
||||||
|
.dv-wic b{font-size:11px;font-weight:800;color:#fff}
|
||||||
|
.dv-name{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||||
|
.dv-act{display:flex;gap:15px;opacity:.95}
|
||||||
|
.dv-act svg{width:18px;height:18px}
|
||||||
|
.dv-scroll{flex:1;overflow:hidden;background:#7b8694;position:relative}
|
||||||
|
.dv-page{margin:14px 12px;background:#fff;border-radius:3px;box-shadow:0 10px 30px -8px rgba(0,0,0,.4);
|
||||||
|
padding:26px 22px 30px;font-family:"Times New Roman",Georgia,serif;color:#1a1a1a}
|
||||||
|
.dv-title{text-align:center;font-size:13px;font-weight:700;letter-spacing:.02em;line-height:1.35;text-transform:uppercase}
|
||||||
|
.dv-meta{text-align:center;font-size:9.5px;color:#555;margin:5px 0 14px;font-family:var(--ios)}
|
||||||
|
.dv-h{font-size:10.5px;font-weight:700;margin:14px 0 6px;letter-spacing:.04em;border-bottom:1px solid #ddd;padding-bottom:3px}
|
||||||
|
.dv-p{font-size:9.5px;line-height:1.65;text-align:justify;margin-bottom:7px;color:#222}
|
||||||
|
.dv-p b{font-weight:700}
|
||||||
|
.dv-cot{width:100%;border-collapse:collapse;margin:4px 0 8px;font-family:var(--ios)}
|
||||||
|
.dv-cot td{border:1px solid #d8d8d8;padding:4px 7px;font-size:9px}
|
||||||
|
.dv-cot td:first-child{color:#555;width:54%}
|
||||||
|
.dv-cot td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
|
||||||
|
.dv-pay{width:100%;border-collapse:collapse;margin:5px 0 8px;font-family:var(--ios)}
|
||||||
|
.dv-pay th{background:#143c2c;color:#fff;font-size:8px;font-weight:700;padding:4px 5px;text-align:left;letter-spacing:.02em}
|
||||||
|
.dv-pay td{border:1px solid #e0e0e0;padding:3px 5px;font-size:8.5px;font-variant-numeric:tabular-nums}
|
||||||
|
.dv-pay td.r{text-align:right}
|
||||||
|
.dv-pay tr:nth-child(even) td{background:#f7f9f7}
|
||||||
|
.dv-pay .ell td{text-align:center;color:#999;font-size:9px;letter-spacing:2px}
|
||||||
|
.dv-sign{display:flex;gap:22px;margin-top:26px}
|
||||||
|
.dv-sign .col{flex:1;text-align:center}
|
||||||
|
.dv-sign .line{border-top:1px solid #333;margin-bottom:5px;height:34px}
|
||||||
|
.dv-sign .lab{font-size:8px;color:#444;font-family:var(--ios);line-height:1.4}
|
||||||
|
.dv-foot{text-align:center;font-size:7.5px;color:#aaa;margin-top:18px;font-family:var(--ios)}
|
||||||
|
|
||||||
|
/* ===== WhatsApp ===== */
|
||||||
|
.wa-header{
|
||||||
|
padding:46px 12px 10px;display:flex;align-items:center;gap:10px;
|
||||||
|
background:linear-gradient(180deg,var(--wa-header2),var(--wa-header));color:#fff;
|
||||||
|
}
|
||||||
|
.wa-header .chev{font-size:24px;line-height:1;opacity:.95;margin-right:-2px}
|
||||||
|
.wa-ava{width:38px;height:38px;border-radius:50%;background:#fff;overflow:hidden;
|
||||||
|
display:grid;place-items:center;font-weight:700;font-size:13px;color:#062;flex:0 0 auto;
|
||||||
|
box-shadow:0 0 0 2px rgba(255,255,255,.25) inset}
|
||||||
|
.wa-ava span{color:#04130b}
|
||||||
|
.wa-ava img{width:100%;height:100%;object-fit:cover;display:block}
|
||||||
|
.wa-meta{flex:1;min-width:0}
|
||||||
|
.wa-name{font-size:15px;font-weight:600;line-height:1.1}
|
||||||
|
.wa-status{font-size:11.5px;opacity:.85;height:14px}
|
||||||
|
.wa-actions{display:flex;gap:16px;opacity:.95}
|
||||||
|
.wa-actions svg{width:19px;height:19px}
|
||||||
|
|
||||||
|
.wa-body{
|
||||||
|
flex:1;overflow-y:auto;position:relative;scroll-behavior:smooth;
|
||||||
|
background-color:var(--wa-bg);
|
||||||
|
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='58' viewBox='0 0 58 58'%3E%3Cg fill='none' stroke='%23d9d0c2' stroke-width='1.1' opacity='.55'%3E%3Ccircle cx='12' cy='14' r='3'/%3E%3Cpath d='M38 34c2-3 7-3 9 0'/%3E%3Ccircle cx='46' cy='10' r='2'/%3E%3Cpath d='M9 42h7'/%3E%3Cpath d='M30 50c2 2 5 2 7 0'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
padding:14px 12px 14px;display:flex;flex-direction:column;gap:9px;
|
||||||
|
}
|
||||||
|
.wa-body::-webkit-scrollbar{width:0}
|
||||||
|
.daypill{align-self:center;background:#fff;color:#54656f;font-size:11px;font-weight:600;
|
||||||
|
padding:5px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.08);letter-spacing:.03em}
|
||||||
|
.enc{align-self:center;background:#fcf4cb;color:#7a6a3a;font-size:10.5px;text-align:center;
|
||||||
|
padding:6px 12px;border-radius:8px;max-width:80%;line-height:1.35;box-shadow:0 1px 1px rgba(0,0,0,.05)}
|
||||||
|
|
||||||
|
.msg{max-width:80%;padding:7px 9px 16px;border-radius:9px;font-size:13.5px;line-height:1.4;
|
||||||
|
color:#111b21;position:relative;box-shadow:0 1px .5px rgba(0,0,0,.13);
|
||||||
|
display:none;word-wrap:break-word;white-space:pre-wrap}
|
||||||
|
.msg.show{display:block;animation:msgIn .34s cubic-bezier(.2,.8,.3,1.05)}
|
||||||
|
@keyframes msgIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
|
||||||
|
.msg.in{align-self:flex-start;background:var(--wa-in);border-top-left-radius:2px}
|
||||||
|
.msg.out{align-self:flex-end;background:var(--wa-out);border-top-right-radius:2px}
|
||||||
|
.msg .t{position:absolute;right:9px;bottom:5px;font-size:10px;color:#667781;display:flex;align-items:center;gap:3px}
|
||||||
|
.msg .t .ck{color:var(--wa-check);font-size:12px;letter-spacing:-2px}
|
||||||
|
.msg b{font-weight:700}
|
||||||
|
.msg a,.msg .lnk{color:var(--wa-link);text-decoration:underline;word-break:break-all}
|
||||||
|
|
||||||
|
.linkmsg{cursor:pointer}
|
||||||
|
.linkmsg.pulse{animation:tap 1.5s infinite}
|
||||||
|
@keyframes tap{0%,100%{box-shadow:0 1px .5px rgba(0,0,0,.13)}50%{box-shadow:0 0 0 3px rgba(31,122,224,.35),0 1px .5px rgba(0,0,0,.13)}}
|
||||||
|
.tip{align-self:flex-end;font-size:10px;color:#0a7d6e;font-weight:600;margin-top:-4px;opacity:0;transition:.3s}
|
||||||
|
.tip.show{opacity:1}
|
||||||
|
|
||||||
|
/* typing */
|
||||||
|
.typing{align-self:flex-start;background:#fff;border-radius:9px;border-top-left-radius:2px;
|
||||||
|
padding:11px 13px;display:none;box-shadow:0 1px .5px rgba(0,0,0,.13)}
|
||||||
|
.typing.show{display:flex;gap:4px}
|
||||||
|
.typing i{width:7px;height:7px;border-radius:50%;background:#9aa6ac;animation:blink 1.2s infinite}
|
||||||
|
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
|
||||||
|
@keyframes blink{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
|
||||||
|
|
||||||
|
/* documento */
|
||||||
|
.doc{align-self:flex-start;background:var(--wa-in);border-radius:9px;border-top-left-radius:2px;
|
||||||
|
padding:7px;max-width:82%;box-shadow:0 1px .5px rgba(0,0,0,.13);display:none}
|
||||||
|
.doc.show{display:block;animation:msgIn .4s cubic-bezier(.2,.8,.3,1.05)}
|
||||||
|
.doc-file{display:flex;align-items:center;gap:9px;background:#f5f6f6;border-radius:7px;padding:9px}
|
||||||
|
.doc-ic{width:34px;height:42px;border-radius:5px;background:linear-gradient(160deg,#2f7ad6,#1f5bb0);
|
||||||
|
flex:0 0 auto;position:relative;display:grid;place-items:end center;padding-bottom:5px}
|
||||||
|
.doc-ic b{font-size:8px;color:#fff;letter-spacing:.04em;font-weight:700}
|
||||||
|
.doc-ic::before{content:"";position:absolute;top:0;right:0;border-width:0 9px 9px 0;border-style:solid;border-color:#fff #fff transparent transparent;border-top-right-radius:5px}
|
||||||
|
.doc-info{min-width:0}
|
||||||
|
.doc-name{font-size:12.5px;font-weight:600;color:#111b21;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||||
|
.doc-sub{font-size:10.5px;color:#667781;margin-top:2px}
|
||||||
|
.doc-cap{font-size:12.5px;line-height:1.5;color:#111b21;padding:8px 4px 14px;position:relative}
|
||||||
|
.doc-cap b{font-weight:700}
|
||||||
|
.doc-cap .t{position:absolute;right:4px;bottom:2px;font-size:10px;color:#667781;display:flex;gap:3px}
|
||||||
|
.doc-cap .t .ck{color:var(--wa-check);font-size:12px;letter-spacing:-2px}
|
||||||
|
|
||||||
|
/* input bar */
|
||||||
|
.wa-input{padding:7px 9px;display:flex;align-items:center;gap:7px;background:transparent}
|
||||||
|
.wa-pill{flex:1;background:#fff;border-radius:22px;display:flex;align-items:center;gap:8px;padding:9px 13px;
|
||||||
|
box-shadow:0 1px 1px rgba(0,0,0,.06);color:#8696a0;font-size:13.5px}
|
||||||
|
.wa-pill .ph{flex:1}
|
||||||
|
.wa-pill svg{width:18px;height:18px;opacity:.7}
|
||||||
|
.wa-send{width:42px;height:42px;border-radius:50%;background:var(--wa-header);display:grid;place-items:center;flex:0 0 auto}
|
||||||
|
.wa-send svg{width:20px;height:20px}
|
||||||
|
|
||||||
|
/* ===== Web / Safari + Formulario ===== */
|
||||||
|
#web{background:#fff}
|
||||||
|
.sb-top{padding:44px 14px 9px;background:#f2f2f4;border-bottom:1px solid #e3e3e6;display:flex;align-items:center;gap:8px}
|
||||||
|
.sb-url{flex:1;background:#fff;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:6px;
|
||||||
|
padding:8px 12px;font-size:12.5px;color:#1c1c1e;box-shadow:0 0 0 1px #e0e0e3}
|
||||||
|
.sb-url svg{width:12px;height:12px;opacity:.55}
|
||||||
|
.sb-url .host{color:#1c1c1e}.sb-url .path{color:#8e8e93}
|
||||||
|
.sb-aa{font-size:13px;color:#8a8a8e;font-weight:600;padding:0 2px}
|
||||||
|
|
||||||
|
.form-scroll{flex:1;overflow:hidden;position:relative;background:#f6f5f2}
|
||||||
|
.form-inner{padding:16px 14px 92px;transition:transform .55s cubic-bezier(.4,0,.2,1)}
|
||||||
|
.form-head{margin:2px 2px 16px}
|
||||||
|
.form-head .ttl{font-family:var(--ios);font-weight:700;font-size:18px;color:#13201a}
|
||||||
|
.form-head .sub{font-size:11.5px;color:#7c857e;margin-top:3px;line-height:1.4}
|
||||||
|
.form-head .badge{display:inline-block;font-size:10px;font-weight:700;color:var(--emerald-d);background:rgba(22,163,90,.1);padding:3px 8px;border-radius:6px;margin-bottom:8px;letter-spacing:.04em}
|
||||||
|
|
||||||
|
.block{background:#fff;border-radius:16px;padding:15px 14px;margin-bottom:13px;
|
||||||
|
box-shadow:0 1px 2px rgba(20,40,28,.05);border:1px solid #eceae4;transition:.45s}
|
||||||
|
.block.active{border-color:var(--emerald);box-shadow:0 8px 26px -12px rgba(15,124,68,.45),0 0 0 1px var(--emerald)}
|
||||||
|
.block.dim{opacity:.5}
|
||||||
|
.b-h{display:flex;align-items:center;gap:9px;margin-bottom:13px}
|
||||||
|
.b-tag{width:25px;height:25px;border-radius:8px;background:linear-gradient(150deg,var(--emerald),var(--emerald-d));
|
||||||
|
color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center;flex:0 0 auto;font-family:var(--ios)}
|
||||||
|
.b-name{font-weight:700;font-size:14px;color:#16241c;font-family:var(--ios)}
|
||||||
|
.b-note{font-size:10.5px;color:#9aa39a;margin-left:auto;font-weight:500}
|
||||||
|
|
||||||
|
.fld{margin-bottom:10px}
|
||||||
|
.fld:last-child{margin-bottom:0}
|
||||||
|
.fld label{display:block;font-size:10.5px;font-weight:600;color:#7c857e;margin-bottom:4px;letter-spacing:.01em}
|
||||||
|
.inp{background:#f4f3ef;border:1px solid #e7e5de;border-radius:9px;padding:9px 11px;font-size:12.5px;color:#1d2a22;font-family:var(--ios);min-height:36px;display:flex;align-items:center}
|
||||||
|
.inp.mono{font-variant-numeric:tabular-nums;letter-spacing:.02em}
|
||||||
|
.inp.ph{color:#b4b8b1}
|
||||||
|
.row2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
|
||||||
|
.row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
|
||||||
|
|
||||||
|
/* segmented */
|
||||||
|
.seg{display:flex;background:#eceae3;border-radius:9px;padding:3px;gap:3px}
|
||||||
|
.seg span{flex:1;text-align:center;font-size:12px;font-weight:600;color:#7c857e;padding:7px 0;border-radius:7px;transition:.25s;font-family:var(--ios)}
|
||||||
|
.seg span.on{background:#fff;color:var(--emerald-d);box-shadow:0 1px 3px rgba(0,0,0,.1)}
|
||||||
|
|
||||||
|
/* vehículo */
|
||||||
|
.vcard{border:1px solid #e7e5de;border-radius:10px;padding:10px 11px;background:#fbfbf9}
|
||||||
|
.vcard .vh{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#1d2a22;margin-bottom:5px}
|
||||||
|
.vcard .vbadge{font-size:9px;background:#eef2ee;color:#5f6b62;padding:2px 6px;border-radius:5px;font-weight:700}
|
||||||
|
.vcard .vline{font-size:11px;color:#7c857e;line-height:1.5}
|
||||||
|
.addbtn{margin-top:10px;width:100%;border:1.4px dashed #c8d3c9;background:#f3f8f4;color:var(--emerald-d);
|
||||||
|
border-radius:9px;padding:9px;font-size:12px;font-weight:600;font-family:var(--ios);display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
|
||||||
|
.hintline{font-size:10px;color:#9aa39a;margin-top:6px;text-align:center;display:flex;align-items:center;justify-content:center;gap:5px}
|
||||||
|
.hintline b{color:var(--emerald-d);font-weight:700}
|
||||||
|
|
||||||
|
/* toggle */
|
||||||
|
.toggle-row{display:flex;align-items:center;justify-content:space-between;background:#f4f3ef;border:1px solid #e7e5de;border-radius:9px;padding:9px 11px}
|
||||||
|
.toggle-row .lab{font-size:12px;color:#3a463e;font-weight:600}
|
||||||
|
.tg{width:38px;height:22px;border-radius:22px;background:#cfd4cd;position:relative;transition:.25s;flex:0 0 auto}
|
||||||
|
.tg::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.25s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
|
||||||
|
.tg.on{background:var(--emerald)}.tg.on::after{left:18px}
|
||||||
|
.chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
|
||||||
|
.chips span{font-size:9.5px;background:#eef2ee;color:#6a766c;padding:3px 7px;border-radius:20px;font-weight:600}
|
||||||
|
|
||||||
|
/* checkbox */
|
||||||
|
.check-row{display:flex;align-items:center;gap:9px;background:#f3f8f4;border:1px solid #d7e6db;border-radius:9px;padding:10px 11px;margin-bottom:11px}
|
||||||
|
.cbox{width:20px;height:20px;border-radius:6px;border:1.6px solid var(--emerald);background:var(--emerald);display:grid;place-items:center;flex:0 0 auto}
|
||||||
|
.cbox svg{width:12px;height:12px}
|
||||||
|
.check-row .lab{font-size:11.5px;color:#27392e;font-weight:600;line-height:1.35}
|
||||||
|
.copied{opacity:.55}
|
||||||
|
.copied .inp{background:#f0efeb}
|
||||||
|
|
||||||
|
/* botón generar (sticky) */
|
||||||
|
.form-foot{position:absolute;left:0;right:0;bottom:0;padding:11px 14px 16px;
|
||||||
|
background:linear-gradient(180deg,rgba(246,245,242,0),#f6f5f2 38%);}
|
||||||
|
.gen{width:100%;border:none;border-radius:13px;padding:14px;font-family:var(--ios);font-size:14.5px;font-weight:700;
|
||||||
|
color:#fff;background:linear-gradient(135deg,var(--emerald),var(--emerald-d));cursor:pointer;
|
||||||
|
box-shadow:0 10px 26px -10px rgba(15,124,68,.7);display:flex;align-items:center;justify-content:center;gap:9px;transition:.2s}
|
||||||
|
.gen.busy{background:#1f3a2c;box-shadow:none}
|
||||||
|
.spin{width:16px;height:16px;border:2.4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite;display:none}
|
||||||
|
.gen.busy .spin{display:block}
|
||||||
|
.gen.busy .lbl::after{content:"…"}
|
||||||
|
@keyframes sp{to{transform:rotate(360deg)}}
|
||||||
|
|
||||||
|
/* controles de la demo (Pausar / Reiniciar) */
|
||||||
|
.demo-controls{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;position:relative;z-index:5}
|
||||||
|
.dctrl{
|
||||||
|
appearance:none;cursor:pointer;font-family:var(--sans);
|
||||||
|
font-size:13px;font-weight:600;letter-spacing:.01em;
|
||||||
|
border-radius:100px;padding:10px 18px;border:0;
|
||||||
|
display:inline-flex;align-items:center;gap:7px;
|
||||||
|
transition:transform .12s ease,box-shadow .15s ease,filter .15s ease;
|
||||||
|
}
|
||||||
|
.dctrl:active{transform:scale(.97)}
|
||||||
|
.dctrl.play{color:#0b3b32;background:#fff;border:1px solid rgba(8,128,105,.25);
|
||||||
|
box-shadow:0 6px 16px -10px rgba(0,0,0,.5)}
|
||||||
|
.dctrl.play:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(0,0,0,.45)}
|
||||||
|
.dctrl.ghost{color:#0b3b32;background:#ffffff;border:1px solid rgba(8,128,105,.25);
|
||||||
|
box-shadow:0 6px 16px -10px rgba(0,0,0,.5)}
|
||||||
|
.dctrl.ghost:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(0,0,0,.45)}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="shell">
|
||||||
|
|
||||||
|
<!-- Teléfono -->
|
||||||
|
<div class="device-col">
|
||||||
|
<div class="phone">
|
||||||
|
<div class="screen" id="screen" data-app="wa">
|
||||||
|
<div class="island"></div>
|
||||||
|
<div class="statusbar" id="statusbar">
|
||||||
|
<span>9:41</span>
|
||||||
|
<span class="ico">
|
||||||
|
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor"><rect x="0" y="6" width="3" height="5" rx="1"/><rect x="4.5" y="4" width="3" height="7" rx="1"/><rect x="9" y="2" width="3" height="9" rx="1"/><rect x="13.5" y="0" width="3" height="11" rx="1"/></svg>
|
||||||
|
<svg width="16" height="11" viewBox="0 0 16 11" fill="currentColor"><path d="M8 2.2c2.1 0 4 .8 5.4 2.1l1.3-1.4C13 1.1 10.6.2 8 .2S3 1.1 1.3 2.9l1.3 1.4C4 3 5.9 2.2 8 2.2zM8 5.4c1.2 0 2.3.5 3.1 1.3l1.3-1.4C11.3 4.1 9.7 3.4 8 3.4s-3.3.7-4.4 1.9l1.3 1.4C5.7 5.9 6.8 5.4 8 5.4zm0 3.2c.6 0 1.2.3 1.6.7L8 11l-1.6-1.7c.4-.4 1-.7 1.6-.7z"/></svg>
|
||||||
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none"><rect x="1" y="1" width="20" height="10" rx="2.6" stroke="currentColor" stroke-opacity=".5"/><rect x="2.6" y="2.6" width="15" height="6.8" rx="1.4" fill="currentColor"/><rect x="22.5" y="4" width="1.6" height="4" rx=".8" fill="currentColor" fill-opacity=".5"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ===== WhatsApp app ===== -->
|
||||||
|
<div class="app" id="wa">
|
||||||
|
<div class="wa-header">
|
||||||
|
<span class="chev">‹</span>
|
||||||
|
<div class="wa-ava"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAIAAADdvvtQAABPS0lEQVR42u1dd5wW5fGfmWd33/5eLxwg7ejSBVRsCDbsLfbeS+wxRn8mtkRjYozGxJJo1MQSK4oiVhRRiihI753juOP6W3f3mfn9se8VqoeCGvPOh/gh3N77bvnu1O/MoIhAVrLybYWytyArWQBlJQugrGQBlJUsgLKSlSyAspIFUFayAMpKFkBZyUoWQFnJAigrWQBlJQugrGQlC6CsZAGUlSyAspIFUFaykgVQVrIAykoWQFnJAigrWQBlJStZAGUlC6CsZAGUlSyAspKVLICykgVQVrIAykoWQFnJShZAWckCKCtZAGUlC6CsZOV7BJCAsAgLAGTH6f30xNiT0BHNzACmUgCgAQgwe8ezGqg9yBFhAUSllKlUzcr1GxcuQxEAgawOymqgHeMGhBkASBEgxCqq1k2Zvu7jz9a+/yl263TuW/8y/ZaIACBmgCQggJRVS1kAAQgzEyhFANC4esOUex5aN/EjN9mU65JKy373/dr0+7Rto1IMaCAKIQF6Nk00AwISbQFGAMAstn7qJkwARIQ1IxHZ+ut/vTzxnGufOviExjXrDrjrxvNmvtfrZycrZalYcs5fnnrygBOWvv+ZoQgIwbVjGytrV61xkilU1IIeAQBmQAREyBq8H73gt46MBAAFmBmICGHdpzPev/V3TVOnC1ij7v/N8F9cDACVXy/85NiLcjan64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u+2B29Tltfby00GozbSTa1Yah3JRbMWeBL+SvmPnVyn+Nr586O6hdAgQgV5Eo1MwqGgLLxLLijkcc0PXwg4oG9Q3k5bV4oexqRPTA1P4T3b3knm/lAzELAifslTNnRYsKi/r3ji9b+/7R5/nXVbmkpGtH7lLsLF1jbqjyGQHyaDyMmrymCUERRMoUzVxtp9MpcZxwKGf0vvv89sbSAX2aVm14+bDT8ldv9gWC4FUYGARlq0veOv3YHMq3vTVtnRivzoWc4RUhIjuu46QNpZrE7fzLS0f97ubdpGe8/zAwsBdkNJ9G1cKlZtCf13WvNR9NnX3/43XT5wRNU+pjAaFAMISKgNmrEDMCArraRRHt6riT1hG/6t4x2qu8wwHDC0cMKBnUzwgEmhWbiDAS/VfkHlA7Lhlq1guvfXTO9SUdOnQ5YnTdjLlqyWojYGkRst20bdshK6JMw0VGUEiMzGk7mU6nTQIiSacNAK2Ii/KiQ/t3PGRk/tD+XcaMIlDadsgy10/9YtpFv/Sv3WwpA9h7Dlu7z1sBSJoRtCMAIQCSYuHW1AAhISmiqlRTz99dv88NlzFrpb5b4xuLFkEEauk6EqhZuLRuyYo1709Z/dLbuf3Lu485eNEfnrSSiUA4orQYpESEhQlJmL2LyvTkIiogJERFwtq2HTvt2MhOyIoO7dfh8P1D5d26jTkoWJgPAAwArkb6sRfykF2Nipa/9/GUU68J2rajVFQgpCzWZBtspB27Z5dBN1/y5a1/CGxuYFKpRMIFcDoXdzxuTMcDR5g50U1ffV21eEWnYQO6HX1oTtfOZBgA4Ok1JHJZG2R8ePrPG//zbjASArcZJyjfUNPYsUHxjEhTKh70B01UXi3OS4SjUjqVaBrY85Rpr6NBChC+BRVfJOPfND+8pooqO960+OW36z7+omnLine truncated
|
||||||
|
<div class="wa-meta">
|
||||||
|
<div class="wa-name">Collina Contract Maker</div>
|
||||||
|
<div class="wa-status" id="waStatus">en línea</div>
|
||||||
|
</div>
|
||||||
|
<div class="wa-actions">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2"/></svg>
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.1-8.6A2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.4 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2.1z"/></svg>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wa-body" id="waBody">
|
||||||
|
<div class="daypill">HOY</div>
|
||||||
|
<div class="enc" id="encMsg">🔒 Los mensajes están cifrados de extremo a extremo. Solo números autorizados pueden generar contratos.</div>
|
||||||
|
|
||||||
|
<div class="msg out" id="mOut1">nuevo contrato<span class="t">9:41 <span class="ck">✓✓</span></span></div>
|
||||||
|
|
||||||
|
<div class="typing" id="typing1"><i></i><i></i><i></i></div>
|
||||||
|
|
||||||
|
<div class="msg in linkmsg" id="mLink">Hola 👋 Aquí está el link para capturar los datos del contrato:
|
||||||
|
|
||||||
|
<span class="lnk">collina.mx/form/7b4e9a2d</span>
|
||||||
|
|
||||||
|
Tienes 30 minutos para completarlo.<span class="t">9:41</span></div>
|
||||||
|
<div class="tip" id="tip1">Abriendo el formulario…</div>
|
||||||
|
|
||||||
|
<div class="typing" id="typing2"><i></i><i></i><i></i></div>
|
||||||
|
|
||||||
|
<div class="msg in" id="mGen">⏳ Generando contrato <b>R219</b>…<span class="t">9:48</span></div>
|
||||||
|
|
||||||
|
<div class="doc" id="mDoc">
|
||||||
|
<div class="doc-file">
|
||||||
|
<div class="doc-ic"><b>DOCX</b></div>
|
||||||
|
<div class="doc-info">
|
||||||
|
<div class="doc-name">Contrato_R219_2026-03-12.docx</div>
|
||||||
|
<div class="doc-sub">18 KB · WORD</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doc-cap"><b>✅ Contrato R219 listo</b>
|
||||||
|
Arrendamiento puro — Mazda CX-30 2025
|
||||||
|
Pago inicial: <b>$86,600.00</b>
|
||||||
|
Suerte principal: <b>$508,742.55</b>
|
||||||
|
Valor residual: <b>$122,400.00</b> (VR/año $40,800.00)
|
||||||
|
Tabla: <b>39</b> pagos · editable para firma ✍️<span class="t">9:48 <span class="ck">✓✓</span></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wa-input">
|
||||||
|
<div class="wa-pill">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M9 13s1.2 1.5 3 1.5S15 13 15 13"/><circle cx="9" cy="9.5" r="1" fill="currentColor"/><circle cx="15" cy="9.5" r="1" fill="currentColor"/></svg>
|
||||||
|
<span class="ph">Mensaje</span>
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
|
||||||
|
</div>
|
||||||
|
<div class="wa-send">
|
||||||
|
<svg viewBox="0 0 24 24" fill="#fff"><path d="M3.5 3.2 21 11.6c.9.4.9 1.7 0 2.1L3.5 21.1c-.8.4-1.7-.4-1.4-1.3L4 13l9-1.4L4 10 2.1 4.5c-.3-.9.6-1.7 1.4-1.3z"/></svg>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ===== Web / Formulario ===== -->
|
||||||
|
<div class="app" id="web">
|
||||||
|
<div class="sb-top">
|
||||||
|
<div class="sb-url">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><rect x="4" y="11" width="16" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg>
|
||||||
|
<span><span class="host">collina.mx</span><span class="path">/form/7b4e9a2d</span></span>
|
||||||
|
</div>
|
||||||
|
<span class="sb-aa">aA</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-scroll" id="formScroll">
|
||||||
|
<div class="form-inner" id="formInner">
|
||||||
|
<div class="form-head">
|
||||||
|
<span class="badge">SESIÓN · 28:14 restantes</span>
|
||||||
|
<div class="ttl">Datos del contrato</div>
|
||||||
|
<div class="sub">Captura del equipo Collina · arrendamiento puro de vehículos</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- A -->
|
||||||
|
<div class="block" data-blk="A">
|
||||||
|
<div class="b-h"><div class="b-tag">A</div><div class="b-name">Datos del contrato</div></div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>No. de contrato</label><div class="inp mono">R219</div></div>
|
||||||
|
<div class="fld"><label>Fecha</label><div class="inp mono">12 / 03 / 2026</div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- B -->
|
||||||
|
<div class="block" data-blk="B">
|
||||||
|
<div class="b-h"><div class="b-tag">B</div><div class="b-name">Arrendatario</div></div>
|
||||||
|
<div class="fld"><label>Razón social</label><div class="inp">GRUPO LOGÍSTICO MIRASOL S.A. DE C.V.</div></div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>Representante</label><div class="inp">Adriana Solís Beltrán</div></div>
|
||||||
|
<div class="fld"><label>Cargo</label><div class="inp">Representante legal</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>Género (artículos)</label>
|
||||||
|
<div class="seg"><span>M</span><span class="on">F</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="fld"><label>RFC</label><div class="inp mono">GLM200713QA8</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="fld"><label>Domicilio</label><div class="inp">Av. Constituyentes 480, Centro Sur, Querétaro, Qro.</div></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- C -->
|
||||||
|
<div class="block" data-blk="C">
|
||||||
|
<div class="b-h"><div class="b-tag">C</div><div class="b-name">Vehículos</div><div class="b-note" id="vCount">1 unidad</div></div>
|
||||||
|
<div class="vcard">
|
||||||
|
<div class="vh">Mazda CX-30 <span class="vbadge">2025</span></div>
|
||||||
|
<div class="vline">Color: Gris Titanio · Serie: MM0DM…7421 · Motor: PE…3380</div>
|
||||||
|
</div>
|
||||||
|
<div class="addbtn" id="addV">+ Agregar vehículo</div>
|
||||||
|
<div class="hintline">Con <b>2+ unidades</b> se genera el <b>ANEXO 1</b> automáticamente</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- D -->
|
||||||
|
<div class="block" data-blk="D">
|
||||||
|
<div class="b-h"><div class="b-tag">D</div><div class="b-name">Condiciones financieras</div></div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>Precio de referencia</label><div class="inp mono">$589,900.00</div></div>
|
||||||
|
<div class="fld"><label>Plazo</label><div class="inp mono">36 meses</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="fld"><label>Modalidad de pago</label>
|
||||||
|
<div class="seg" id="segMod"><span class="on">Mensual</span><span>Quincenal</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="row3">
|
||||||
|
<div class="fld"><label>Renta mensual</label><div class="inp mono">$13,450</div></div>
|
||||||
|
<div class="fld"><label>Día de pago</label><div class="inp mono">10</div></div>
|
||||||
|
<div class="fld" id="dia2Wrap" style="display:none"><label>2º día</label><div class="inp mono">25</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="row3">
|
||||||
|
<div class="fld"><label>Comisión apertura</label><div class="inp mono">$18,500</div></div>
|
||||||
|
<div class="fld"><label>Renta anticipada</label><div class="inp mono">$58,300</div></div>
|
||||||
|
<div class="fld"><label>Seguro auto</label><div class="inp mono">$9,800</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>Valor residual</label><div class="inp mono">$122,400</div></div>
|
||||||
|
<div class="fld"><label>Modo VR</label><div class="seg"><span class="on">Único</span><span>Anual</span></div></div>
|
||||||
|
</div>
|
||||||
|
<div class="fld">
|
||||||
|
<div class="toggle-row"><span class="lab">Rentas extraordinarias</span><div class="tg" id="tgExtra"></div></div>
|
||||||
|
<div class="chips"><span>Bimestral</span><span>Trimestral</span><span>Cuatrimestral</span><span>Semestral</span><span>Anual</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- E -->
|
||||||
|
<div class="block" data-blk="E">
|
||||||
|
<div class="b-h"><div class="b-tag">E</div><div class="b-name">Obligados solidarios</div><div class="b-note">máx. 2</div></div>
|
||||||
|
<div class="vcard">
|
||||||
|
<div class="vh">Patricia Núñez Vega <span class="vbadge">Obligado 1</span></div>
|
||||||
|
<div class="vline">Mexicana · RFC: NUVP790612Q4 · CURP: NUVP790612MPL…07</div>
|
||||||
|
</div>
|
||||||
|
<div class="addbtn">+ Agregar obligado</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- F -->
|
||||||
|
<div class="block" data-blk="F">
|
||||||
|
<div class="b-h"><div class="b-tag">F</div><div class="b-name">Depositario</div></div>
|
||||||
|
<div class="check-row">
|
||||||
|
<div class="cbox"><svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>
|
||||||
|
<div class="lab">El depositario es uno de los obligados solidarios</div>
|
||||||
|
</div>
|
||||||
|
<div class="copied">
|
||||||
|
<div class="fld"><label>Nombre (copiado)</label><div class="inp">Patricia Núñez Vega</div></div>
|
||||||
|
<div class="row2">
|
||||||
|
<div class="fld"><label>RFC</label><div class="inp mono">NUVP790612Q4</div></div>
|
||||||
|
<div class="fld"><label>CURP</label><div class="inp mono">NUVP790612MPL…07</div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-foot">
|
||||||
|
<button class="gen" id="genBtn"><span class="spin"></span><span class="lbl">Generar contrato</span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ===== Visor de documento (.docx abierto) ===== -->
|
||||||
|
<div class="app" id="docview">
|
||||||
|
<div class="dv-bar">
|
||||||
|
<span class="dv-back">‹</span>
|
||||||
|
<span class="dv-wic"><b>R</b></span>
|
||||||
|
<span class="dv-name">Contrato_R219_2026-03-12.docx</span>
|
||||||
|
<span class="dv-act">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="1.6"/><circle cx="12" cy="5" r="1.6"/><circle cx="12" cy="19" r="1.6"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="dv-scroll" id="dvScroll">
|
||||||
|
<div class="dv-page">
|
||||||
|
<div class="dv-title">Contrato de Arrendamiento Puro<br>de Vehículo</div>
|
||||||
|
<div class="dv-meta">Contrato No. R219 · Querétaro, Qro. · 12 de marzo de 2026</div>
|
||||||
|
|
||||||
|
<div class="dv-p">Celebran por una parte <b>NORVALIA CAPITAL S.A. DE C.V.</b>, en adelante <b>EL ARRENDADOR</b>, y por la otra <b>GRUPO LOGÍSTICO MIRASOL S.A. DE C.V.</b>, representada por <b>Adriana Solís Beltrán</b>, en adelante <b>LA ARRENDATARIA</b>, el presente contrato conforme a las siguientes declaraciones y cláusulas.</div>
|
||||||
|
|
||||||
|
<div class="dv-h">COTIZACIÓN</div>
|
||||||
|
<table class="dv-cot">
|
||||||
|
<tr><td>Vehículo</td><td>Mazda CX-30 2025</td></tr>
|
||||||
|
<tr><td>Precio de referencia</td><td>$589,900.00</td></tr>
|
||||||
|
<tr><td>Plazo · modalidad</td><td>36 meses · mensual</td></tr>
|
||||||
|
<tr><td>Renta mensual</td><td>$13,450.00</td></tr>
|
||||||
|
<tr><td>Pago inicial</td><td>$86,600.00</td></tr>
|
||||||
|
<tr><td>Suerte principal</td><td>$508,742.55</td></tr>
|
||||||
|
<tr><td>Valor residual (único)</td><td>$122,400.00</td></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="dv-h">DECLARACIONES</div>
|
||||||
|
<div class="dv-p">Declara LA ARRENDATARIA que es su voluntad tomar en arrendamiento puro el vehículo descrito, reconociendo las condiciones financieras pactadas y la tabla de pagos que forma parte integrante de este instrumento.</div>
|
||||||
|
|
||||||
|
<div class="dv-h">CLÁUSULAS</div>
|
||||||
|
<div class="dv-p"><b>PRIMERA. Objeto.</b> EL ARRENDADOR concede el uso y goce temporal del vehículo identificado en la cotización, sin transmitir la propiedad, durante la vigencia del presente contrato.</div>
|
||||||
|
<div class="dv-p"><b>SEGUNDA. Renta.</b> LA ARRENDATARIA se obliga a cubrir la renta en las fechas señaladas en la tabla de pagos, así como el pago inicial y la comisión por apertura.</div>
|
||||||
|
<div class="dv-p"><b>TERCERA. Tabla de pagos.</b> Las contraprestaciones se cubrirán conforme al calendario siguiente:</div>
|
||||||
|
|
||||||
|
<table class="dv-pay">
|
||||||
|
<tr><th>No.</th><th>Concepto</th><th>Fecha</th><th class="r">Monto</th></tr>
|
||||||
|
<tr><td>1</td><td>Pago inicial</td><td>10/04/26</td><td class="r">$86,600.00</td></tr>
|
||||||
|
<tr><td>2</td><td>Comisión apertura</td><td>10/04/26</td><td class="r">$18,500.00</td></tr>
|
||||||
|
<tr><td>3</td><td>Mensualidad 1</td><td>10/05/26</td><td class="r">$13,450.00</td></tr>
|
||||||
|
<tr><td>4</td><td>Mensualidad 2</td><td>10/06/26</td><td class="r">$13,450.00</td></tr>
|
||||||
|
<tr><td>5</td><td>Mensualidad 3</td><td>10/07/26</td><td class="r">$13,450.00</td></tr>
|
||||||
|
<tr class="ell"><td colspan="4">· · ·</td></tr>
|
||||||
|
<tr><td>38</td><td>Mensualidad 36</td><td>10/04/29</td><td class="r">$13,450.00</td></tr>
|
||||||
|
<tr><td>39</td><td>Valor residual</td><td>10/04/29</td><td class="r">$122,400.00</td></tr>
|
||||||
|
</table>
|
||||||
|
<div class="dv-p" style="font-size:8.5px;color:#666">Total: 39 pagos · suerte principal $508,742.55.</div>
|
||||||
|
|
||||||
|
<div class="dv-h">CUARTA. Firmas</div>
|
||||||
|
<div class="dv-p">Leído el presente contrato y enteradas las partes de su contenido y alcance legal, lo firman de conformidad.</div>
|
||||||
|
|
||||||
|
<div class="dv-sign">
|
||||||
|
<div class="col"><div class="line"></div><div class="lab"><b>EL ARRENDADOR</b><br>Norvalia Capital S.A. de C.V.</div></div>
|
||||||
|
<div class="col"><div class="line"></div><div class="lab"><b>LA ARRENDATARIA</b><br>Adriana Solís Beltrán</div></div>
|
||||||
|
</div>
|
||||||
|
<div class="dv-sign">
|
||||||
|
<div class="col"><div class="line"></div><div class="lab"><b>OBLIGADO SOLIDARIO</b><br>Patricia Núñez Vega</div></div>
|
||||||
|
<div class="col"><div class="line"></div><div class="lab"><b>DEPOSITARIO</b><br>Patricia Núñez Vega</div></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dv-foot">Documento editable .docx · generado por Collina Contract Maker</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="demo-controls">
|
||||||
|
<button class="dctrl play" id="playBtn" aria-label="Pausar o reproducir"><span id="playTxt">⏸ Pausar</span></button>
|
||||||
|
<button class="dctrl ghost" id="replayBtn" aria-label="Reiniciar">↻ Reiniciar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
const $ = s => document.querySelector(s);
|
||||||
|
const screen = $('#screen');
|
||||||
|
const statusbar= $('#statusbar');
|
||||||
|
const waStatus = $('#waStatus');
|
||||||
|
const formInner= $('#formInner');
|
||||||
|
const formScroll=$('#formScroll');
|
||||||
|
const waBody=$('#waBody');
|
||||||
|
const dvScroll=$('#dvScroll');
|
||||||
|
|
||||||
|
const els = {
|
||||||
|
out1:$('#mOut1'), typing1:$('#typing1'), link:$('#mLink'), tip1:$('#tip1'),
|
||||||
|
typing2:$('#typing2'), gen:$('#mGen'), doc:$('#mDoc'),
|
||||||
|
enc:$('#encMsg'),
|
||||||
|
vCount:$('#vCount'), addV:$('#addV'), segMod:$('#segMod'), dia2:$('#dia2Wrap'),
|
||||||
|
tgExtra:$('#tgExtra'), genBtn:$('#genBtn')
|
||||||
|
};
|
||||||
|
|
||||||
|
function showWA(){ screen.dataset.app='wa'; statusbar.style.setProperty('--sb','#fff'); }
|
||||||
|
function showWeb(){ screen.dataset.app='web'; statusbar.style.setProperty('--sb','#1c1c1e'); }
|
||||||
|
function showDoc(){ screen.dataset.app='doc'; statusbar.style.setProperty('--sb','#fff'); if(dvScroll) dvScroll.scrollTop=0; }
|
||||||
|
function setWAStatus(t){ waStatus.textContent=t; }
|
||||||
|
function vis(el,on){ el.classList.toggle('show',!!on); }
|
||||||
|
|
||||||
|
const blkOffset = { A:0, B:0, C:-150, D:-330, E:-700, F:-880 };
|
||||||
|
function scrollForm(blk){ formInner.style.transform = `translateY(${blkOffset[blk]||0}px)`; }
|
||||||
|
function activeBlock(blk){
|
||||||
|
document.querySelectorAll('.block').forEach(b=>{
|
||||||
|
b.classList.toggle('active', b.dataset.blk===blk);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function reset(){
|
||||||
|
[els.out1,els.link,els.gen,els.doc].forEach(e=>e.classList.remove('show'));
|
||||||
|
[els.typing1,els.typing2].forEach(e=>e.classList.remove('show'));
|
||||||
|
els.tip1.classList.remove('show');
|
||||||
|
els.link.classList.remove('pulse');
|
||||||
|
els.vCount.textContent='1 unidad';
|
||||||
|
els.segMod.children[0].classList.add('on'); els.segMod.children[1].classList.remove('on');
|
||||||
|
els.dia2.style.display='none';
|
||||||
|
els.tgExtra.classList.remove('on');
|
||||||
|
els.genBtn.classList.remove('busy');
|
||||||
|
cancelDocScroll();
|
||||||
|
activeBlock('');
|
||||||
|
}
|
||||||
|
|
||||||
|
let docRAF=null;
|
||||||
|
function cancelDocScroll(){ if(docRAF){ cancelAnimationFrame(docRAF); docRAF=null; } if(dvScroll) dvScroll.scrollTop=0; }
|
||||||
|
function tweenDocScroll(dur){
|
||||||
|
if(!dvScroll) return;
|
||||||
|
const hold=900;
|
||||||
|
const move=Math.max(1, dur-hold-700);
|
||||||
|
const start=performance.now();
|
||||||
|
const max=()=>Math.max(0, dvScroll.scrollHeight - dvScroll.clientHeight);
|
||||||
|
function frame(now){
|
||||||
|
if(!playing){ docRAF=null; return; }
|
||||||
|
const t=now-start;
|
||||||
|
let p=0;
|
||||||
|
if(t>hold) p=Math.min(1,(t-hold)/move);
|
||||||
|
const e=0.5-0.5*Math.cos(Math.PI*p);
|
||||||
|
dvScroll.scrollTop = e*max();
|
||||||
|
if(p<1){ docRAF=requestAnimationFrame(frame); } else { docRAF=null; }
|
||||||
|
}
|
||||||
|
docRAF=requestAnimationFrame(frame);
|
||||||
|
}
|
||||||
|
|
||||||
|
const steps = [
|
||||||
|
{ ph:0, run(){ showWA(); setWAStatus('en línea'); vis(els.out1,1); }, dur:3600 },
|
||||||
|
{ ph:0, run(){ showWA(); setWAStatus('escribiendo…'); vis(els.out1,1); vis(els.typing1,1); }, dur:2600 },
|
||||||
|
{ ph:0, run(){ showWA(); setWAStatus('en línea'); vis(els.out1,1); vis(els.link,1); els.link.classList.add('pulse'); els.tip1.classList.add('show'); }, dur:4200 },
|
||||||
|
{ ph:1, run(){ showWeb(); scrollForm('B'); activeBlock('B'); }, dur:4300 },
|
||||||
|
{ ph:1, run(){ showWeb(); scrollForm('C'); activeBlock('C'); els.vCount.textContent='1 unidad'; }, dur:4200 },
|
||||||
|
{ ph:1, run(){ showWeb(); scrollForm('D'); activeBlock('D'); }, dur:4600 },
|
||||||
|
{ ph:1, run(){ showWeb(); scrollForm('F'); activeBlock('F'); }, dur:4300 },
|
||||||
|
{ ph:2, run(){ showWeb(); scrollForm('F'); activeBlock(''); els.genBtn.classList.add('busy'); }, dur:3000 },
|
||||||
|
{ ph:2, run(){ showWA(); setWAStatus('en línea'); vis(els.out1,1); vis(els.link,1); vis(els.typing2,1); }, dur:2800 },
|
||||||
|
{ ph:3, run(){ showWA(); setWAStatus('en línea'); vis(els.out1,1); vis(els.link,1); vis(els.gen,1); vis(els.doc,1); }, dur:4200 },
|
||||||
|
{ ph:3, run(){ showDoc(); tweenDocScroll(9000); }, dur:9000 }
|
||||||
|
];
|
||||||
|
|
||||||
|
const playBtn=$('#playBtn'), playTxt=$('#playTxt'), replayBtn=$('#replayBtn');
|
||||||
|
let i=0, playing=true, timer=null;
|
||||||
|
|
||||||
|
function go(n){
|
||||||
|
i=(n+steps.length)%steps.length;
|
||||||
|
const s=steps[i];
|
||||||
|
reset(); s.run();
|
||||||
|
clearTimeout(timer);
|
||||||
|
if(screen.dataset.app==='wa'){
|
||||||
|
requestAnimationFrame(()=>{ waBody.scrollTop = waBody.scrollHeight; });
|
||||||
|
}
|
||||||
|
if(playing){ timer=setTimeout(()=>go(i+1), s.dur); }
|
||||||
|
}
|
||||||
|
|
||||||
|
function setPlaying(on){
|
||||||
|
playing=on;
|
||||||
|
if(playTxt) playTxt.textContent = on?'⏸ Pausar':'▶ Reproducir';
|
||||||
|
if(on){ go(i); }
|
||||||
|
else { clearTimeout(timer); }
|
||||||
|
}
|
||||||
|
|
||||||
|
if(playBtn) playBtn.onclick=()=>setPlaying(!playing);
|
||||||
|
if(replayBtn) replayBtn.onclick=()=>{ i=0; setPlaying(true); };
|
||||||
|
|
||||||
|
// Fit phone to available iframe height
|
||||||
|
function fit(){
|
||||||
|
const wrap=document.querySelector('.device-col');
|
||||||
|
const phone=document.querySelector('.phone');
|
||||||
|
if(!wrap||!phone) return;
|
||||||
|
const baseW=332, baseH=baseW*2.164;
|
||||||
|
const w=wrap.clientWidth, h=wrap.clientHeight;
|
||||||
|
const s=Math.min(w/baseW,h/baseH);
|
||||||
|
phone.style.transformOrigin='center top';
|
||||||
|
phone.style.transform='scale('+s+')';
|
||||||
|
}
|
||||||
|
window.addEventListener('resize', fit);
|
||||||
|
window.addEventListener('load', fit);
|
||||||
|
fit();
|
||||||
|
|
||||||
|
go(0);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,403 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||||
|
<title>Cotizador Collina Smart Assistant — Demo</title>
|
||||||
|
<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=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root{
|
||||||
|
--wa-green:#075e54;
|
||||||
|
--wa-bar:#008069;
|
||||||
|
--wa-bg:#ece5dd;
|
||||||
|
--wa-in:#ffffff;
|
||||||
|
--wa-out:#d9fdd3;
|
||||||
|
--wa-tick:#53bdeb;
|
||||||
|
--wa-time:#667781;
|
||||||
|
--pdf-red:#e0483d;
|
||||||
|
--font-ui:'Bricolage Grotesque',system-ui,sans-serif;
|
||||||
|
--font-chat:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
|
||||||
|
}
|
||||||
|
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
|
||||||
|
html,body{height:100%;}
|
||||||
|
body{font-family:var(--font-ui);background:transparent;color:#0b1411;overflow:hidden;min-height:100vh;}
|
||||||
|
|
||||||
|
.stage{position:relative;z-index:3;height:100vh;display:flex;flex-direction:column;align-items:center;
|
||||||
|
padding:0 16px 14px;gap:12px;}
|
||||||
|
|
||||||
|
.phone-wrap{flex:1;width:100%;display:flex;align-items:flex-start;justify-content:center;min-height:0;overflow:hidden;}
|
||||||
|
.phone{width:390px;height:844px;flex:none;position:relative;border-radius:56px;
|
||||||
|
background:linear-gradient(160deg,#1c1c1e,#0b0b0c);padding:13px;transform-origin:center center;
|
||||||
|
box-shadow:0 2px 0 1px rgba(255,255,255,.06) inset,0 0 0 2px #2a2a2c;}
|
||||||
|
.screen{position:relative;width:100%;height:100%;border-radius:44px;overflow:hidden;background:var(--wa-bg);
|
||||||
|
display:flex;flex-direction:column;font-family:var(--font-chat);}
|
||||||
|
.island{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:118px;height:34px;background:#000;
|
||||||
|
border-radius:20px;z-index:30;}
|
||||||
|
|
||||||
|
.statusbar{height:46px;flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:flex-end;
|
||||||
|
justify-content:space-between;padding:0 26px 7px;font-size:14px;font-weight:600;}
|
||||||
|
.statusbar .icons{display:flex;align-items:center;gap:6px;}
|
||||||
|
|
||||||
|
.wa-head{flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:center;gap:10px;padding:6px 12px 10px;}
|
||||||
|
.wa-head .back{font-size:24px;line-height:1;opacity:.95;}
|
||||||
|
.avatar{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;
|
||||||
|
background:#fbfaf7;box-shadow:0 0 0 2px rgba(255,255,255,.3),0 1px 3px rgba(0,0,0,.2);}
|
||||||
|
.who{flex:1;min-width:0;}
|
||||||
|
.who .nm{font-size:15.5px;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.who .st{font-size:12.5px;opacity:.85;line-height:1.2;height:15px;}
|
||||||
|
.who .st.typing{color:#bff3df;font-style:italic;}
|
||||||
|
.wa-head .hicons{display:flex;gap:18px;opacity:.95;}
|
||||||
|
|
||||||
|
.chat{flex:1;min-height:0;overflow-y:auto;padding:14px 12px 8px;scroll-behavior:smooth;
|
||||||
|
background:linear-gradient(rgba(236,229,221,.92),rgba(236,229,221,.92)),
|
||||||
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23b9ad9c' stroke-width='1' opacity='.5'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Cpath d='M55 12h10M60 7v10'/%3E%3Cpath d='M12 58c4-4 8-4 12 0'/%3E%3Crect x='52' y='52' width='9' height='9' rx='2'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
background-size:auto,160px 160px;}
|
||||||
|
.chat::-webkit-scrollbar{width:0;}
|
||||||
|
.day{align-self:center;margin:2px auto 10px;background:#d6e7e0;color:#4a635b;font-size:11px;font-weight:600;
|
||||||
|
padding:4px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.05);}
|
||||||
|
|
||||||
|
.row{display:flex;margin-bottom:8px;animation:pop .26s cubic-bezier(.2,.8,.3,1.2);}
|
||||||
|
.row.in{justify-content:flex-start;}
|
||||||
|
.row.out{justify-content:flex-end;}
|
||||||
|
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
|
||||||
|
|
||||||
|
.bubble{position:relative;max-width:82%;padding:7px 10px 18px;border-radius:11px;font-size:13.3px;line-height:1.45;
|
||||||
|
color:#111b21;white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px .5px rgba(11,20,26,.13);}
|
||||||
|
.bubble strong{font-weight:700;}.bubble em{font-style:italic;color:#3a4a44;}
|
||||||
|
.row.in .bubble{background:var(--wa-in);border-top-left-radius:3px;}
|
||||||
|
.row.out .bubble{background:var(--wa-out);border-top-right-radius:3px;}
|
||||||
|
.bubble .meta{position:absolute;right:9px;bottom:5px;font-size:10.5px;color:var(--wa-time);display:flex;align-items:center;gap:3px;}
|
||||||
|
.bubble .meta .tick{color:var(--wa-tick);font-size:12px;}
|
||||||
|
.row.in .bubble:after{content:"";position:absolute;top:0;left:-7px;border:7px solid transparent;border-top-color:var(--wa-in);border-right:0;}
|
||||||
|
.row.out .bubble:after{content:"";position:absolute;top:0;right:-7px;border:7px solid transparent;border-top-color:var(--wa-out);border-left:0;}
|
||||||
|
|
||||||
|
.typing .bubble{padding:11px 14px;}
|
||||||
|
.dots{display:flex;gap:4px;}
|
||||||
|
.dots i{width:7px;height:7px;border-radius:50%;background:#9aa6a0;animation:bln 1.2s infinite;}
|
||||||
|
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
|
||||||
|
@keyframes bln{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
|
||||||
|
|
||||||
|
/* PDF document card (WhatsApp attachment style) */
|
||||||
|
.pdfcard{width:240px;background:#f4efe7;border-radius:9px;padding:9px;cursor:pointer;
|
||||||
|
transition:transform .12s ease,box-shadow .15s ease;}
|
||||||
|
.pdfcard:hover{transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(0,0,0,.35);}
|
||||||
|
.pdfcard:active{transform:scale(.98);}
|
||||||
|
.pdfcard .top{display:flex;align-items:center;gap:9px;background:#fff;border-radius:7px;padding:9px;}
|
||||||
|
.pdfcard .ic{width:34px;height:40px;flex:none;position:relative;}
|
||||||
|
.pdfcard .fn{font-size:12px;font-weight:600;color:#1a1a1a;line-height:1.25;}
|
||||||
|
.pdfcard .meta2{font-size:10.5px;color:#7a8580;margin-top:3px;letter-spacing:.02em;}
|
||||||
|
.pdfcard .open{margin-top:8px;text-align:center;font-size:12px;font-weight:600;color:var(--wa-bar);
|
||||||
|
border-top:1px solid #e2dccf;padding-top:7px;}
|
||||||
|
|
||||||
|
/* PDF viewer overlay */
|
||||||
|
.viewer{position:absolute;inset:0;z-index:40;background:rgba(20,28,24,.62);backdrop-filter:blur(3px);
|
||||||
|
display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .28s ease;}
|
||||||
|
.viewer.show{opacity:1;pointer-events:auto;}
|
||||||
|
.viewer .vbar{flex:none;height:52px;display:flex;align-items:center;gap:12px;padding:0 16px;color:#fff;
|
||||||
|
background:rgba(7,49,40,.92);}
|
||||||
|
.viewer .vbar .x{font-size:24px;cursor:pointer;line-height:1;}
|
||||||
|
.viewer .vbar .vt{font-size:13.5px;font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.viewer .vbar .dl{font-size:19px;opacity:.9;}
|
||||||
|
.vscroll{flex:1;overflow-y:auto;padding:16px;display:flex;justify-content:center;}
|
||||||
|
.vscroll::-webkit-scrollbar{width:0;}
|
||||||
|
|
||||||
|
/* The "PDF page" */
|
||||||
|
.sheet{width:100%;max-width:330px;background:#fff;border-radius:6px;overflow:hidden;align-self:flex-start;
|
||||||
|
box-shadow:0 18px 50px -12px rgba(0,0,0,.6);animation:rise .35s cubic-bezier(.2,.8,.3,1.1);font-family:'Bricolage Grotesque',sans-serif;}
|
||||||
|
@keyframes rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
|
||||||
|
.sheet .sh-head{padding:18px 18px 14px;border-bottom:3px solid #0b3b32;}
|
||||||
|
.sheet .sh-logo{height:34px;display:block;margin:0 auto 8px;}
|
||||||
|
.sheet .sh-title{text-align:center;font-size:11.5px;font-weight:700;letter-spacing:.08em;color:#0b3b32;text-transform:uppercase;}
|
||||||
|
.sheet .sh-sub{text-align:center;font-size:9.5px;color:#94918b;margin-top:3px;letter-spacing:.04em;}
|
||||||
|
.sheet .sh-body{padding:14px 18px 18px;}
|
||||||
|
.sheet .veh{font-size:14.5px;font-weight:700;color:#1a1a1a;}
|
||||||
|
.sheet .vehsub{font-size:10.5px;color:#8a857c;margin:2px 0 12px;}
|
||||||
|
.rowline{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;border-bottom:1px solid #f0ece4;font-size:11.5px;}
|
||||||
|
.rowline .k{color:#6a6f6c;}
|
||||||
|
.rowline .v{font-weight:600;color:#1a1a1a;}
|
||||||
|
.hl{margin-top:12px;background:#f3f8f4;border:1px solid #cfe6d6;border-radius:8px;padding:11px 13px;text-align:center;}
|
||||||
|
.hl .lbl{font-size:9.5px;font-weight:700;letter-spacing:.1em;color:#0b6b52;text-transform:uppercase;}
|
||||||
|
.hl .amt{font-size:24px;font-weight:800;color:#0b3b32;letter-spacing:-.01em;margin-top:2px;}
|
||||||
|
.hl .per{font-size:10px;color:#6a6f6c;}
|
||||||
|
.sheet .legal{font-size:8px;color:#aaa6a0;line-height:1.4;margin-top:12px;text-align:justify;}
|
||||||
|
|
||||||
|
/* quick replies */
|
||||||
|
.quick{flex:none;background:var(--wa-bg);padding:8px 10px 6px;display:flex;gap:8px;overflow-x:auto;border-top:1px solid rgba(0,0,0,.04);}
|
||||||
|
.quick::-webkit-scrollbar{height:0;}
|
||||||
|
.chip{flex:none;font-family:var(--font-chat);font-size:12.5px;font-weight:600;color:#075e54;background:#fff;
|
||||||
|
border:1px solid #cfe3da;border-radius:999px;padding:7px 13px;cursor:pointer;transition:transform .12s ease,background .12s ease;white-space:nowrap;}
|
||||||
|
.chip:hover{background:#eafff6;transform:translateY(-1px);}
|
||||||
|
.chip:active{transform:scale(.96);}
|
||||||
|
|
||||||
|
.inputbar{flex:none;background:var(--wa-bg);padding:7px 9px 12px;display:flex;align-items:center;gap:8px;}
|
||||||
|
.field{flex:1;background:#fff;border-radius:22px;display:flex;align-items:center;gap:8px;padding:9px 14px;box-shadow:0 1px .5px rgba(0,0,0,.08);}
|
||||||
|
.field input{flex:1;border:0;outline:0;font-family:var(--font-chat);font-size:13.5px;color:#111b21;background:transparent;}
|
||||||
|
.field input::placeholder{color:#8a9690;}
|
||||||
|
.field .em{font-size:17px;opacity:.55;}
|
||||||
|
.send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--wa-bar);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(8,128,105,.4);transition:transform .12s;}
|
||||||
|
.send:active{transform:scale(.92);}
|
||||||
|
|
||||||
|
.controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;}
|
||||||
|
.ctrl{font-family:var(--font-ui);font-size:13px;font-weight:600;border:0;border-radius:999px;padding:10px 18px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:transform .12s ease,box-shadow .15s ease,filter .15s ease;}
|
||||||
|
.ctrl:active{transform:scale(.97);}
|
||||||
|
#playBtn{color:#fff;background:var(--wa-bar);box-shadow:0 8px 20px -8px rgba(8,128,105,.7);}
|
||||||
|
#playBtn:hover{filter:brightness(1.07);transform:translateY(-1px);}
|
||||||
|
#restartBtn{color:#0b3b32;background:#fff;border:1px solid rgba(8,128,105,.25);box-shadow:0 6px 16px -10px rgba(0,0,0,.5);}
|
||||||
|
#restartBtn:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(0,0,0,.45);}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="stage">
|
||||||
|
<div class="phone-wrap">
|
||||||
|
<div class="phone">
|
||||||
|
<div class="island"></div>
|
||||||
|
<div class="screen">
|
||||||
|
|
||||||
|
<div class="statusbar">
|
||||||
|
<span>9:41</span>
|
||||||
|
<span class="icons">
|
||||||
|
<svg width="18" height="12" viewBox="0 0 18 12" fill="#fff"><rect x="0" y="8" width="3" height="4" rx="1"/><rect x="5" y="5" width="3" height="7" rx="1"/><rect x="10" y="2.5" width="3" height="9.5" rx="1"/><rect x="15" y="0" width="3" height="12" rx="1"/></svg>
|
||||||
|
<svg width="17" height="12" viewBox="0 0 17 12" fill="#fff"><path d="M8.5 2.2c2.6 0 5 1 6.8 2.6l-1.4 1.5A7.7 7.7 0 0 0 8.5 4.2 7.7 7.7 0 0 0 3.1 6.3L1.7 4.8A10 10 0 0 1 8.5 2.2Zm0 3.6c1.6 0 3.1.6 4.2 1.6l-1.5 1.5a4 4 0 0 0-5.4 0L4.3 7.4A6 6 0 0 1 8.5 5.8Zm0 3.5c.8 0 1.5.3 2 .8l-2 2-2-2c.5-.5 1.2-.8 2-.8Z"/></svg>
|
||||||
|
<svg width="26" height="13" viewBox="0 0 26 13"><rect x="1" y="1" width="21" height="11" rx="3" fill="none" stroke="#fff" stroke-opacity=".5"/><rect x="3" y="3" width="16" height="7" rx="1.5" fill="#fff"/><rect x="23" y="4" width="2" height="5" rx="1" fill="#fff" fill-opacity=".6"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wa-head">
|
||||||
|
<span class="back">‹</span>
|
||||||
|
<span class="avatar"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAADh8klEQVR42ux9d3xc1bH/d865d4t2V73Zki33JtuAbaopMr1DAAsSEpIQAiEkAZIAKRBJhBRIQhokgZCE0JHpvUu2AdvYxr0Xyeq9bN+995z5/bG7Ki4k773k5ffwjj9rS/Jq9+7ume/MfKcBaUlLWtKSlrSkJS1pSUta0pKWtKQlLWlJS1rSkpa0pCUtaUlLWtKSlrSkJS1pSUta0pKW/3vCVVWirgpGXd0pRlVVlUi/I2lJS1rSkpa0/Ectc22trKurMv5tj89MALBv1xPl6/+QdfWeNy68ui/cNz7lFaQ/gbSk5T+l/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nfSXX+wRP727LwZHzuJNviZZ4b3PnVReMDPwpQSHMH2l64XVvsOBRNsx5VwO6VAPAKhdSqZCDBYW3FylZzonz798qMAlK5+5qIdYC2CTessGW0oiE7/7GW9jevHqmiYErUEPOTxp4qCQDzk9tPwdY9W/iQHoZPdQxI29ax5TMSnno5pp/64PaZzagf3vNJm92+7WMY6TvL0Nc/reXPZTY06p6lx62P3lM08Line truncated
|
||||||
|
<span class="who">
|
||||||
|
<span class="nm">Cotizador Collina Smart Assistant</span>
|
||||||
|
<span class="st" id="status">en línea</span>
|
||||||
|
</span>
|
||||||
|
<span class="hicons"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat" id="chat"><div class="day">HOY</div></div>
|
||||||
|
|
||||||
|
<!-- PDF viewer -->
|
||||||
|
<div class="viewer" id="viewer">
|
||||||
|
<div class="vbar">
|
||||||
|
<span class="x" id="vclose">✕</span>
|
||||||
|
<span class="vt" id="vtitle">Cotización.pdf</span>
|
||||||
|
<span class="dl">⤓</span>
|
||||||
|
</div>
|
||||||
|
<div class="vscroll" id="vscroll"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick" id="quick"></div>
|
||||||
|
|
||||||
|
<div class="inputbar">
|
||||||
|
<div class="field"><span class="em">😊</span><input id="freeInput" type="text" placeholder="Escribe un mensaje" autocomplete="off"><span class="em">📎</span></div>
|
||||||
|
<button class="send" id="sendBtn" aria-label="Enviar"><svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M3 11.5 21 3l-4 9 4 9-18-8.5 9-1-9-1Z"/></svg></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="controls">
|
||||||
|
<button class="ctrl" id="playBtn">⏸ Pausar</button>
|
||||||
|
<button class="ctrl" id="restartBtn">↻ Reiniciar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
"use strict";
|
||||||
|
var chat=document.getElementById('chat'),quick=document.getElementById('quick'),statusEl=document.getElementById('status');
|
||||||
|
var playBtn=document.getElementById('playBtn'),restartBtn=document.getElementById('restartBtn');
|
||||||
|
var freeInput=document.getElementById('freeInput'),sendBtn=document.getElementById('sendBtn');
|
||||||
|
var viewer=document.getElementById('viewer'),vscroll=document.getElementById('vscroll'),vtitle=document.getElementById('vtitle');
|
||||||
|
var LOGO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAABjCAIAAAB/pPl2AAAKHmlDQ1BJQ0MgUHJvZmlsZQAAeJy1Vnk8lGsbft73nX2xzZDd2LdGljDIvpPITpsxMxjLYMyg0iapcCJJthI5FTp0WpDTIi3ajtKmos7IEarT0SKVyvcOf+j7fefP812/3/O813v97vt+7ud+/3gvAMhjAAWMrhSBSBjs7caIjIpm4B8DBKgBRaAHtNicjDTwv4Dm6ceHc2/3mNLd+JPjs9Z3YS3Zbl/+vLHVjvoPuT9CjsvL4KDlPFC+NhY9HOVdKKfHhga7o/w+AAQKN4XLBYAoQfUd8bMxpARpTPwPMcniFD6q50j1FB47A+UlKNeLTUoTofyUVBfO5V6b5T/kingctB5pENUpmWIeehZJOpftWSJpLll6fzonTSjleSi35SSw0RjyWZQvnOt/FloZ0gH6errbWNjZ2DAtmRaM2GQ2J4mRwWEnS6v+25B+qzmmdxAAWbS3ttscsTBzTsNINywgAVlABypAE+gCI8AElsAWOAAX4An8QCAIBVFgNeCABJAChCAL5IAtIB8UghKwF1SBWtAAGkELOAHawVlwEVwFN8Ed8AAMAAkYAa/ABPgIpiEIwkNUiAapQFqQPmQKWUIsyAnyhJZCwVAUFAPFQwJIDOVAW6FCqBSqguqgRuhX6Ax0EboO9UGPoSFoHHoHfYERmALTYQ3YAF4Es2BX2B8OhVfB8XA6vA7Og3fBFXA9fAxugy/CN+EHsAR+BU8iACEjSog2wkRYiDsSiEQjcYgQ2YgUIOVIPdKCdCI9yD1EgrxG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t29V68+nTt3FnDM8zxCqNGVFDpsvcLRTd93M5l300ZOObWAp+KrV7du3bR9+7bCwsvh4eHp6R3S0zukpaUnJCSERygZhuFcLr1BX1Fefu1aWXFxcXHxlYqKCoRQeoeOw4ePHD5iZJfMLsFDs5V77W8cKOt+938HlN5w5Hn+t9+ObNy4Pmf/PofD0SWzy8hbR48aPSY5OSVwJyaT6VJB/tGjv+fmHjp9+iRCqG/ffpOnTB0x4laxWBwAmoTGWjQGyhvLu26C8k8CpZsFE0KFv9ra2p07tq1fv/bs2TMx0dFjx40fd9uEzMwuAu2kqgzVB6nKTDyf8xEfz545vW7tmt17dul0uq5Z3e699/5x48bLZDK/0KRRQpRNtdoooRvIvuvYzNqk/TwIJkgtO946slZbtXbtmnVrf6moKM/Kyrr99imjx4zVaCJD0lqIpwkgLi0t2bN754b16y5ezOvYKePe+x64/fbJcrmc9im8JqCtNcvxf01Qeox8dUlaXaVZMPg1+dMNgbI+YgAADru9orJi3bpf1q9fW1tTM2LEyPvvf6hX7z4Uf4K60xxVCQBgtVr37d3980+rjx77PTU1/eFpj06cOIlSTYyxd/83QflnKDpeRj4m1OOBMfYWs4I3UHtH+wpEUdh7l8t1+fKlqspKg0F3pahwy9Yt1VrtuNsm3P/AQ1lZ3UJSmUMSVQkhOfv3fvvtf44cOdKxQ8cnnnpmwsRJsC58AzPo/1X23UIyJd0Mn33V6XTV1dUmk1Gv12mrqgwGg9li4XlOIpFERCg1Gk1UZJQ6MlKj1mg0Gsrjgqe4PsOuT95MJtPZM6dPnjxuNptTklMqqyoPHswpvnp14MDBjz/xVLfs7kLPLW5c9FHqc/bv/erLlceOH+3Tp//0Z58fOHAQJZkQQkD/u0kpW5B9Uz3AG4tVVVWnTp04fLine truncated
|
||||||
|
|
||||||
|
// ---- build a PDF "page" markup from a quote object ----
|
||||||
|
function sheetHTML(q){
|
||||||
|
var lines='';
|
||||||
|
q.rows.forEach(function(r){ lines+='<div class="rowline"><span class="k">'+r[0]+'</span><span class="v">'+r[1]+'</span></div>'; });
|
||||||
|
return '<div class="sheet">'+
|
||||||
|
'<div class="sh-head"><img class="sh-logo" src="'+LOGO+'" alt="Collina"><div class="sh-title">Cotización de Arrendamiento</div><div class="sh-sub">Arrendamiento puro · vehicular</div></div>'+
|
||||||
|
'<div class="sh-body"><div class="veh">'+q.veh+'</div><div class="vehsub">'+q.vehsub+'</div>'+
|
||||||
|
lines+
|
||||||
|
'<div class="hl"><div class="lbl">Renta mensual</div><div class="amt">'+q.renta+'</div><div class="per">IVA incluido · '+q.plazo+' meses</div></div>'+
|
||||||
|
'<div class="legal">Cotización informativa sin valor contractual. Vigencia 15 días naturales. Sujeta a aprobación de crédito y disponibilidad de la unidad. Cifras en pesos mexicanos.</div>'+
|
||||||
|
'</div></div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---- demo content (fictional figures, PMT-coherent) ----
|
||||||
|
var Q_JETTA={veh:"Volkswagen Jetta GLI 2026",vehsub:"Precio de referencia $670,000.00",plazo:"36",renta:"$20,722.36",
|
||||||
|
rows:[["Precio de referencia","$670,000.00"],["Tasa anual","27.0%"],["Renta anticipada (15%)","$100,500.00"],
|
||||||
|
["Valor residual (30%)","$201,000.00"],["Comisión por apertura (3%)","$20,100.00"],["Pago inicial","$120,600.00"]]};
|
||||||
|
var Q_X5_36={veh:"BMW X5 2025",vehsub:"Precio de referencia $1,200,000.00",plazo:"36",renta:"$38,988.40",
|
||||||
|
rows:[["Precio de referencia","$1,200,000.00"],["Tasa anual","28.0%"],["Renta anticipada (20%)","$240,000.00"],
|
||||||
|
["Valor residual (15%)","$180,000.00"],["Comisión por apertura (3%)","$36,000.00"],["Pago inicial","$276,000.00"]]};
|
||||||
|
var Q_X5_48={veh:"BMW X5 2025",vehsub:"Precio de referencia $1,200,000.00",plazo:"48",renta:"$33,205.33",
|
||||||
|
rows:[["Precio de referencia","$1,200,000.00"],["Tasa anual","28.0%"],["Renta anticipada (20%)","$240,000.00"],
|
||||||
|
["Valor residual (15%)","$180,000.00"],["Comisión por apertura (3%)","$36,000.00"],["Pago inicial","$276,000.00"]]};
|
||||||
|
var Q_JETTA_29={veh:"Volkswagen Jetta GLI 2026",vehsub:"Precio de referencia $670,000.00",plazo:"36",renta:"$21,529.12",
|
||||||
|
rows:[["Precio de referencia","$670,000.00"],["Tasa anual","29.0%"],["Renta anticipada (15%)","$100,500.00"],
|
||||||
|
["Valor residual (30%)","$201,000.00"],["Comisión por apertura (3%)","$20,100.00"],["Pago inicial","$120,600.00"]]};
|
||||||
|
|
||||||
|
// step types: 'u' user text, 'b' bot text, 'pdf' bot doc card(s)
|
||||||
|
var RESP={
|
||||||
|
help:{user:"ayuda",steps:[
|
||||||
|
{b:"🤖 *Cotizador Collina Smart Assistant*\n\nConvierto tus mensajes en cotizaciones PDF listas para enviar al cliente. Escríbeme natural:\n\n📋 *Cotizar*\n_Jetta GLI pr 670,000 tasa 27% ra 15% vr 30% 36 meses_\n\n✏️ *Modificar la última*\n_súbele 2 pts a la tasa_ · _bajale ra a 10%_ · _quita la comisión_\n\n📂 *Histórico*\n_parámetros CLIENTE-DEMO_ — replicar un contrato previo\n\n📄 *Clonar*\nManda un PDF y aplico sus ratios a un precio nuevo\n\n💰 *Cobranza*\n_cobranza_ · _cobranza semanal_ · _cobranza mensual_\n\nEscribe *ayuda* cuando quieras."}
|
||||||
|
]},
|
||||||
|
jetta:{user:"Jetta GLI pr 670,000 tasa 27% ra 15% vr 30% 36 meses",steps:[
|
||||||
|
{b:"✅ Listo, cotización generada:\n\n🚗 *VW Jetta GLI 2026*\n💵 Precio: $670,000\n📊 Tasa 27% · RA 15% · VR 30%\n🗓️ Plazo: 36 meses\n💰 *Renta mensual: $20,722.36*\n\nTe adjunto el PDF 👇"},
|
||||||
|
{pdf:[{fn:"Cotizacion_Jetta_GLI_36m.pdf",q:Q_JETTA}]}
|
||||||
|
]},
|
||||||
|
multi:{user:"BMW X5 pr 1,200,000 tasa 28% ra 20% vr 15% 36 y 48 meses",steps:[
|
||||||
|
{b:"✅ Detecté *2 plazos*. Te genero una cotización para cada uno:\n\n🚗 *BMW X5 2025* — $1,200,000\n• 36 meses → *$38,988.40* /mes\n• 48 meses → *$33,205.33* /mes"},
|
||||||
|
{pdf:[{fn:"Cotizacion_BMW_X5_36m.pdf",q:Q_X5_36},{fn:"Cotizacion_BMW_X5_48m.pdf",q:Q_X5_48}]}
|
||||||
|
]},
|
||||||
|
modificar:{user:"súbele 2 pts a la tasa",steps:[
|
||||||
|
{b:"✏️ Ajusté la *última cotización*: tasa 27% → *29%*.\n\n🚗 *VW Jetta GLI 2026* · 36 meses\n💰 Renta mensual: $20,722.36 → *$21,529.12*\n\nNuevo PDF 👇"},
|
||||||
|
{pdf:[{fn:"Cotizacion_Jetta_GLI_36m_v2.pdf",q:Q_JETTA_29}]}
|
||||||
|
]},
|
||||||
|
cobranza:{user:"cobranza semanal",steps:[
|
||||||
|
{b:"💰 *COBRANZA — SEMANA EN CURSO*\n_lunes a viernes_\n─────────────────────\n📅 Lun 25 · Distribuidora Andrade\n Renta · $20,722.36\n📅 Mié 27 · Grupo Veranda\n Renta · $38,988.40\n📅 Jue 28 · Logística Sermont (3 unidades)\n Renta · $96,300.00\n📅 Vie 29 · Talleres Monteverde\n Valor residual · $180,000.00\n─────────────────────\n💵 Total semana: *$336,010.76*\n📊 4 contratos · 6 unidades"}
|
||||||
|
]}
|
||||||
|
};
|
||||||
|
|
||||||
|
var CHIPS=[
|
||||||
|
{k:'help',label:'ayuda'},
|
||||||
|
{k:'jetta',label:'Cotizar Jetta GLI'},
|
||||||
|
{k:'multi',label:'BMW X5 · 36 y 48 meses'},
|
||||||
|
{k:'modificar',label:'Súbele 2 pts a la tasa'},
|
||||||
|
{k:'cobranza',label:'Cobranza semanal'}
|
||||||
|
];
|
||||||
|
var SCRIPT=['help','jetta','multi','modificar','cobranza'];
|
||||||
|
|
||||||
|
CHIPS.forEach(function(c){var b=document.createElement('button');b.className='chip';b.textContent=c.label;
|
||||||
|
b.addEventListener('click',function(){userTrigger(c.k);});quick.appendChild(b);});
|
||||||
|
|
||||||
|
function esc(s){return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}
|
||||||
|
function fmt(s){return esc(s).replace(/\*(.+?)\*/g,'<strong>$1</strong>').replace(/_(.+?)_/g,'<em>$1</em>');}
|
||||||
|
function sleep(ms){return new Promise(function(r){setTimeout(r,ms);});}
|
||||||
|
function scrollDown(){chat.scrollTop=chat.scrollHeight;}
|
||||||
|
|
||||||
|
var clock=[9,41];
|
||||||
|
function stamp(){var h=clock[0],m=clock[1];var t=h+':'+(m<10?'0':'')+m;clock[1]++;if(clock[1]>59){clock[1]=0;clock[0]++;}return t;}
|
||||||
|
|
||||||
|
function addText(side,html){
|
||||||
|
var row=document.createElement('div');row.className='row '+side;
|
||||||
|
var bub=document.createElement('div');bub.className='bubble';
|
||||||
|
var tick=side==='out'?'<span class="tick">✓✓</span>':'';
|
||||||
|
bub.innerHTML=html+'<span class="meta">'+stamp()+tick+'</span>';
|
||||||
|
row.appendChild(bub);chat.appendChild(row);scrollDown();return row;
|
||||||
|
}
|
||||||
|
function addTyping(){
|
||||||
|
var row=document.createElement('div');row.className='row in typing';
|
||||||
|
var bub=document.createElement('div');bub.className='bubble';
|
||||||
|
bub.innerHTML='<span class="dots"><i></i><i></i><i></i></span>';
|
||||||
|
row.appendChild(bub);chat.appendChild(row);scrollDown();return row;
|
||||||
|
}
|
||||||
|
function addPdf(docs){
|
||||||
|
var row=document.createElement('div');row.className='row in';
|
||||||
|
var bub=document.createElement('div');bub.className='bubble';bub.style.padding='6px 6px 18px';
|
||||||
|
var inner='';
|
||||||
|
docs.forEach(function(d,i){
|
||||||
|
inner+='<div class="pdfcard" data-doc="'+i+'">'+
|
||||||
|
'<div class="top"><span class="ic">'+pdfIcon()+'</span>'+
|
||||||
|
'<span><div class="fn">'+d.fn+'</div><div class="meta2">PDF · 1 página</div></span></div>'+
|
||||||
|
'<div class="open">Abrir cotización</div></div>';
|
||||||
|
if(i<docs.length-1) inner+='<div style="height:6px"></div>';
|
||||||
|
});
|
||||||
|
bub.innerHTML=inner+'<span class="meta">'+stamp()+'</span>';
|
||||||
|
row.appendChild(bub);chat.appendChild(row);scrollDown();
|
||||||
|
bub.querySelectorAll('.pdfcard').forEach(function(card){
|
||||||
|
var idx=+card.getAttribute('data-doc');
|
||||||
|
card.addEventListener('click',function(){openViewer(docs[idx]);});
|
||||||
|
});
|
||||||
|
return row;
|
||||||
|
}
|
||||||
|
function pdfIcon(){
|
||||||
|
return '<svg width="34" height="40" viewBox="0 0 34 40"><rect x="0" y="0" width="34" height="40" rx="4" fill="#fff" stroke="#e6dfd2"/><path d="M22 0v8a2 2 0 0 0 2 2h8" fill="none" stroke="#e6dfd2"/><rect x="0" y="20" width="26" height="13" rx="2" fill="#e0483d"/><text x="13" y="29.5" font-family="Arial" font-size="7" font-weight="700" fill="#fff" text-anchor="middle">PDF</text></svg>';
|
||||||
|
}
|
||||||
|
|
||||||
|
function openViewer(d){
|
||||||
|
vtitle.textContent=d.fn;
|
||||||
|
vscroll.innerHTML=sheetHTML(d.q);
|
||||||
|
vscroll.scrollTop=0;
|
||||||
|
viewer.classList.add('show');
|
||||||
|
}
|
||||||
|
function closeViewer(){viewer.classList.remove('show');}
|
||||||
|
document.getElementById('vclose').addEventListener('click',closeViewer);
|
||||||
|
|
||||||
|
function setTyping(on){statusEl.textContent=on?'escribiendo…':'en línea';statusEl.classList.toggle('typing',on);}
|
||||||
|
function clearChat(){chat.innerHTML='<div class="day">HOY</div>';clock=[9,41];closeViewer();}
|
||||||
|
|
||||||
|
var runId=0,busy=false,autoActive=false;
|
||||||
|
|
||||||
|
async function playEntry(entry,id){
|
||||||
|
if(busy) return; busy=true;
|
||||||
|
if(entry.user){ addText('out',fmt(entry.user)); await sleep(480); }
|
||||||
|
for(var i=0;i<entry.steps.length;i++){
|
||||||
|
if(id!==undefined && id!==runId){ busy=false; return; }
|
||||||
|
var step=entry.steps[i];
|
||||||
|
var typ=addTyping(); setTyping(true);
|
||||||
|
var dur = step.b ? Math.min(2200,650+step.b.length*6) : 1100;
|
||||||
|
await sleep(dur);
|
||||||
|
typ.remove(); setTyping(false);
|
||||||
|
if(id!==undefined && id!==runId){ busy=false; return; }
|
||||||
|
if(step.b) addText('in',fmt(step.b));
|
||||||
|
else if(step.pdf) addPdf(step.pdf);
|
||||||
|
if(i<entry.steps.length-1) await sleep(950);
|
||||||
|
}
|
||||||
|
busy=false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function classify(t){
|
||||||
|
t=t.toLowerCase();
|
||||||
|
if(/(ayuda|menu|menú|comandos|help|hola)/.test(t)) return 'help';
|
||||||
|
if(/(36 y 48|48 y 36|varios plazos|x5|bmw)/.test(t)) return 'multi';
|
||||||
|
if(/(jetta|gli)/.test(t)) return 'jetta';
|
||||||
|
if(/(súbele|subele|bájale|bajale|ponle|cambia|quita|modific|pts|punto)/.test(t)) return 'modificar';
|
||||||
|
if(/cobranza/.test(t)) return 'cobranza';
|
||||||
|
if(/(cotiza|cotíza|pr |precio|tasa|ra |vr )/.test(t)) return 'jetta';
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function userTrigger(k){ if(busy) return; stopAuto(); await playEntry(RESP[k],undefined); }
|
||||||
|
async function freeSend(){
|
||||||
|
if(busy) return; var text=freeInput.value.trim(); if(!text) return; freeInput.value=''; stopAuto();
|
||||||
|
var k=classify(text);
|
||||||
|
if(k){ var e=RESP[k]; await playEntry({user:text,steps:e.steps},undefined); }
|
||||||
|
else { await playEntry({user:text,steps:[{b:"🤔 No estoy seguro de qué necesitas. Puedo *cotizar*, *modificar* la última, consultar *histórico* o darte *cobranza*.\n\nEscribe *ayuda* para ver ejemplos."}]},undefined); }
|
||||||
|
}
|
||||||
|
|
||||||
|
async function autoplay(){
|
||||||
|
var id=++runId; autoActive=true; updateBtn(); clearChat(); await sleep(500);
|
||||||
|
for(var i=0;i<SCRIPT.length;i++){
|
||||||
|
if(id!==runId) return;
|
||||||
|
await playEntry(RESP[SCRIPT[i]],id);
|
||||||
|
if(id!==runId) return;
|
||||||
|
await sleep(3400);
|
||||||
|
}
|
||||||
|
if(id!==runId) return; await sleep(4200);
|
||||||
|
if(id===runId && autoActive) autoplay();
|
||||||
|
}
|
||||||
|
function stopAuto(){ runId++; autoActive=false; updateBtn(); }
|
||||||
|
function updateBtn(){ playBtn.textContent = autoActive?'⏸ Pausar':'▶ Reproducir demo'; }
|
||||||
|
|
||||||
|
playBtn.addEventListener('click',function(){ if(autoActive) stopAuto(); else autoplay(); });
|
||||||
|
restartBtn.addEventListener('click',function(){ autoplay(); });
|
||||||
|
sendBtn.addEventListener('click',freeSend);
|
||||||
|
freeInput.addEventListener('keydown',function(e){ if(e.key==='Enter') freeSend(); });
|
||||||
|
|
||||||
|
function fit(){
|
||||||
|
var wrap=document.querySelector('.phone-wrap'),phone=document.querySelector('.phone');
|
||||||
|
var w=wrap.clientWidth,h=wrap.clientHeight;
|
||||||
|
var s=Math.min((w-12)/390,(h-12)/844);
|
||||||
|
phone.style.transformOrigin='center top';
|
||||||
|
phone.style.transform='scale('+s+')';
|
||||||
|
}
|
||||||
|
window.addEventListener('resize',fit);
|
||||||
|
window.addEventListener('load',function(){ fit(); autoplay(); });
|
||||||
|
fit();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,332 @@
|
|||||||
|
/* =====================================================================
|
||||||
|
COLLINA SYSTEMS — FOOTER
|
||||||
|
Hoja de estilos autocontenida. Copia este archivo a tu proyecto y
|
||||||
|
enlázalo con: <link rel="stylesheet" href="footer.css">
|
||||||
|
===================================================================== */
|
||||||
|
|
||||||
|
/* --- Variables tipográficas (definidas en el propio footer para no
|
||||||
|
depender de :root del proyecto destino) ------------------------- */
|
||||||
|
.footer {
|
||||||
|
--font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
|
||||||
|
--font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── FOOTER ─────────────────────────────────────────────────────────── */
|
||||||
|
.footer {
|
||||||
|
position: relative;
|
||||||
|
background: #0a0908;
|
||||||
|
color: #f0ece5;
|
||||||
|
padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 80px) clamp(36px, 5vh, 56px);
|
||||||
|
font-family: var(--font-body);
|
||||||
|
isolation: isolate;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.footer::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
background:
|
||||||
|
radial-gradient(ellipse 80% 60% at 20% 0%, rgba(140, 100, 60, 0.10) 0%, rgba(140, 100, 60, 0) 60%),
|
||||||
|
radial-gradient(ellipse 60% 50% at 100% 100%, rgba(80, 110, 140, 0.08) 0%, rgba(80, 110, 140, 0) 60%);
|
||||||
|
}
|
||||||
|
.footer::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0; right: 0;
|
||||||
|
height: 1px;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(240, 236, 229, 0.22) 50%, transparent);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.footer__inner {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(72px, 10vh, 140px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top row */
|
||||||
|
.footer__top {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
|
||||||
|
gap: clamp(48px, 6vw, 96px);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.footer__col--left {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(48px, 8vh, 88px);
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.footer__col--right {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(32px, 5vh, 56px);
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
@media (max-width: 880px) {
|
||||||
|
.footer__top { grid-template-columns: 1fr; gap: 56px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Slogan */
|
||||||
|
.footer__slogan {
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(4px, 0.6vh, 10px);
|
||||||
|
line-height: 0.92;
|
||||||
|
letter-spacing: -0.025em;
|
||||||
|
color: #f5f1e6;
|
||||||
|
}
|
||||||
|
.footer__slogan-line {
|
||||||
|
font-family: var(--font-body);
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: clamp(44px, 8vw, 100px);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: -0.035em;
|
||||||
|
}
|
||||||
|
.footer__slogan-words {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
height: clamp(44px, 8vw, 100px);
|
||||||
|
/* Vertical clip only — horizontal overflow allowed if a long word ever
|
||||||
|
overshoots before the JS auto-fit kicks in. */
|
||||||
|
overflow-y: hidden;
|
||||||
|
overflow-x: visible;
|
||||||
|
margin: clamp(2px, 0.4vh, 6px) 0;
|
||||||
|
}
|
||||||
|
.footer__slogan-word {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: clamp(44px, 8vw, 100px);
|
||||||
|
letter-spacing: -0.035em;
|
||||||
|
color: #f5f1e6;
|
||||||
|
text-transform: uppercase;
|
||||||
|
white-space: nowrap;
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(28%);
|
||||||
|
transition: opacity 600ms cubic-bezier(0.6, 0.2, 0.2, 1), transform 600ms cubic-bezier(0.6, 0.2, 0.2, 1);
|
||||||
|
will-change: transform, opacity;
|
||||||
|
}
|
||||||
|
.footer__slogan-word[data-active="true"] {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
.footer__slogan-word[data-leaving="true"] {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-28%);
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.footer__slogan-word {
|
||||||
|
transition: opacity 200ms linear;
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Contact */
|
||||||
|
.footer__contact {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
.footer__contact-label {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: rgba(240, 236, 229, 0.55);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.footer__contact-link {
|
||||||
|
font-family: var(--font-body);
|
||||||
|
font-size: clamp(20px, 2.1vw, 32px);
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
color: #f5f1e6;
|
||||||
|
text-decoration: none;
|
||||||
|
width: max-content;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Underline-on-hover effect (used in email + socials) */
|
||||||
|
.link-slide {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
.link-slide__inner {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.link-slide__text { display: inline; }
|
||||||
|
.link-slide__text--clone { display: none; }
|
||||||
|
|
||||||
|
/* Animated underline */
|
||||||
|
.link-slide::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: -2px;
|
||||||
|
height: 1.5px;
|
||||||
|
background: currentColor;
|
||||||
|
transform: scaleX(0);
|
||||||
|
transform-origin: left center;
|
||||||
|
transition: transform 380ms cubic-bezier(0.65, 0.05, 0.36, 1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.link-slide:hover::after,
|
||||||
|
.link-slide:focus-visible::after {
|
||||||
|
transform: scaleX(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sede / branch */
|
||||||
|
.footer__branch {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: clamp(56px, 4.5vw, 72px) 1fr;
|
||||||
|
gap: clamp(18px, 1.8vw, 28px);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
.footer__clock {
|
||||||
|
position: relative;
|
||||||
|
width: clamp(56px, 4.5vw, 72px);
|
||||||
|
height: clamp(56px, 4.5vw, 72px);
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid rgba(240, 236, 229, 0.4);
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
}
|
||||||
|
.footer__clock-hand {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
background: #f0ece5;
|
||||||
|
border-radius: 2px;
|
||||||
|
transform-origin: 50% 100%;
|
||||||
|
transition: transform 400ms cubic-bezier(0.4, 0.1, 0.2, 1);
|
||||||
|
}
|
||||||
|
.footer__clock-hand--hour {
|
||||||
|
width: 2px;
|
||||||
|
height: 28%;
|
||||||
|
margin-left: -1px;
|
||||||
|
margin-top: -28%;
|
||||||
|
}
|
||||||
|
.footer__clock-hand--minute {
|
||||||
|
width: 1.5px;
|
||||||
|
height: 38%;
|
||||||
|
margin-left: -0.75px;
|
||||||
|
margin-top: -38%;
|
||||||
|
background: rgba(240, 236, 229, 0.85);
|
||||||
|
}
|
||||||
|
.footer__clock-pin {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
width: 4px;
|
||||||
|
height: 4px;
|
||||||
|
margin-left: -2px;
|
||||||
|
margin-top: -2px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #f0ece5;
|
||||||
|
}
|
||||||
|
.footer__branch-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.footer__branch-country {
|
||||||
|
margin: 0;
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 0.22em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #f5f1e6;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
.footer__branch-tz {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
color: rgba(240, 236, 229, 0.55);
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
.footer__branch-address {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.45;
|
||||||
|
color: rgba(240, 236, 229, 0.72);
|
||||||
|
}
|
||||||
|
.footer__branch-phone {
|
||||||
|
margin: 6px 0 0;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgba(240, 236, 229, 0.9);
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
.footer__branch-phone a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: opacity 160ms ease;
|
||||||
|
}
|
||||||
|
.footer__branch-phone a:hover { opacity: 0.65; }
|
||||||
|
|
||||||
|
/* Bottom row */
|
||||||
|
.footer__bottom {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
align-items: end;
|
||||||
|
gap: clamp(24px, 3vw, 48px);
|
||||||
|
padding-top: clamp(28px, 4vh, 48px);
|
||||||
|
}
|
||||||
|
.footer__socials {
|
||||||
|
grid-column: 1;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
gap: clamp(28px, 4vw, 64px);
|
||||||
|
align-items: center;
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
.footer__socials a {
|
||||||
|
font-family: var(--font-body);
|
||||||
|
font-size: 19px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: rgba(240, 236, 229, 0.85);
|
||||||
|
letter-spacing: -0.005em;
|
||||||
|
}
|
||||||
|
.footer__copyright {
|
||||||
|
grid-column: 2;
|
||||||
|
justify-self: end;
|
||||||
|
margin: 0;
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
letter-spacing: 0.15em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: rgba(240, 236, 229, 0.5);
|
||||||
|
}
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.footer__bottom { grid-template-columns: 1fr; gap: 28px; text-align: center; }
|
||||||
|
.footer__socials { grid-column: 1; justify-content: center; }
|
||||||
|
.footer__copyright { grid-column: 1; justify-self: center; }
|
||||||
|
|
||||||
|
/* Slogan: reduce el tamaño y permite saltos de línea en móvil */
|
||||||
|
.footer__slogan-line,
|
||||||
|
.footer__slogan-word {
|
||||||
|
font-size: clamp(34px, 10.5vw, 60px) !important;
|
||||||
|
overflow-wrap: break-word !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
/* =====================================================================
|
||||||
|
COLLINA SYSTEMS — FOOTER (JavaScript)
|
||||||
|
- Rotación animada de la palabra del slogan ("poderoso / importante / ...")
|
||||||
|
- Relojes analógicos en vivo por zona horaria (data-tz)
|
||||||
|
Inclúyelo al final del <body>: <script src="footer.js"></script>
|
||||||
|
Es autoejecutable y no requiere dependencias.
|
||||||
|
===================================================================== */
|
||||||
|
(function () {
|
||||||
|
function initFooter() {
|
||||||
|
|
||||||
|
/* === FOOTER — rotating slogan word ================================ */
|
||||||
|
(function () {
|
||||||
|
var container = document.querySelector('.footer__slogan-words');
|
||||||
|
var words = container
|
||||||
|
? Array.prototype.slice.call(container.querySelectorAll('.footer__slogan-word'))
|
||||||
|
: [];
|
||||||
|
if (words.length < 2) return;
|
||||||
|
|
||||||
|
/* ---- Auto-fit: pick a single font-size that fits the longest word ---- */
|
||||||
|
function fitWords() {
|
||||||
|
var cw = container.clientWidth;
|
||||||
|
if (!cw) return;
|
||||||
|
var REF = 200; // measurement reference size in px
|
||||||
|
var maxNatural = 0;
|
||||||
|
words.forEach(function (w) {
|
||||||
|
var prevSize = w.style.fontSize;
|
||||||
|
w.style.fontSize = REF + 'px';
|
||||||
|
var natural = w.scrollWidth;
|
||||||
|
if (natural > maxNatural) maxNatural = natural;
|
||||||
|
w.style.fontSize = prevSize;
|
||||||
|
});
|
||||||
|
if (!maxNatural) return;
|
||||||
|
|
||||||
|
var fitSize = (cw / maxNatural) * REF;
|
||||||
|
|
||||||
|
var line = document.querySelector('.footer__slogan-line');
|
||||||
|
var lineSize = line ? parseFloat(getComputedStyle(line).fontSize) : Infinity;
|
||||||
|
|
||||||
|
var finalSize = Math.min(fitSize, lineSize);
|
||||||
|
words.forEach(function (w) {
|
||||||
|
w.style.fontSize = finalSize + 'px';
|
||||||
|
});
|
||||||
|
|
||||||
|
container.style.height = finalSize + 'px';
|
||||||
|
}
|
||||||
|
fitWords();
|
||||||
|
window.addEventListener('resize', function () {
|
||||||
|
window.clearTimeout(container.__fitT);
|
||||||
|
container.__fitT = window.setTimeout(fitWords, 80);
|
||||||
|
});
|
||||||
|
|
||||||
|
/* ---- Cross-fade / slide rotation ---- */
|
||||||
|
var idx = 0;
|
||||||
|
var INTERVAL = 2400;
|
||||||
|
var TRANSITION = 600;
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
var current = words[idx];
|
||||||
|
idx = (idx + 1) % words.length;
|
||||||
|
var upcoming = words[idx];
|
||||||
|
|
||||||
|
current.removeAttribute('data-active');
|
||||||
|
current.setAttribute('data-leaving', 'true');
|
||||||
|
|
||||||
|
upcoming.removeAttribute('data-leaving');
|
||||||
|
void upcoming.offsetWidth;
|
||||||
|
upcoming.setAttribute('data-active', 'true');
|
||||||
|
|
||||||
|
window.setTimeout(function () {
|
||||||
|
current.removeAttribute('data-leaving');
|
||||||
|
}, TRANSITION + 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.setInterval(next, INTERVAL);
|
||||||
|
})();
|
||||||
|
|
||||||
|
/* === FOOTER — live analog clocks per timezone ===================== */
|
||||||
|
(function () {
|
||||||
|
var clocks = Array.prototype.slice.call(document.querySelectorAll('.footer__branch[data-tz]'));
|
||||||
|
if (!clocks.length) return;
|
||||||
|
|
||||||
|
function getTzTime(tz) {
|
||||||
|
try {
|
||||||
|
var fmt = new Intl.DateTimeFormat('en-US', {
|
||||||
|
timeZone: tz,
|
||||||
|
hour12: false,
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit',
|
||||||
|
second: '2-digit'
|
||||||
|
});
|
||||||
|
var parts = fmt.formatToParts(new Date());
|
||||||
|
var h = 0, m = 0, s = 0;
|
||||||
|
parts.forEach(function (p) {
|
||||||
|
if (p.type === 'hour') h = parseInt(p.value, 10) % 24;
|
||||||
|
if (p.type === 'minute') m = parseInt(p.value, 10);
|
||||||
|
if (p.type === 'second') s = parseInt(p.value, 10);
|
||||||
|
});
|
||||||
|
return { h: h, m: m, s: s };
|
||||||
|
} catch (e) {
|
||||||
|
var d = new Date();
|
||||||
|
return { h: d.getHours(), m: d.getMinutes(), s: d.getSeconds() };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function tick() {
|
||||||
|
clocks.forEach(function (branch) {
|
||||||
|
var tz = branch.getAttribute('data-tz');
|
||||||
|
var t = getTzTime(tz);
|
||||||
|
var hourDeg = ((t.h % 12) + t.m / 60) * 30;
|
||||||
|
var minDeg = (t.m + t.s / 60) * 6;
|
||||||
|
var hourEl = branch.querySelector('.footer__clock-hand--hour');
|
||||||
|
var minEl = branch.querySelector('.footer__clock-hand--minute');
|
||||||
|
if (hourEl) hourEl.style.transform = 'rotate(' + hourDeg.toFixed(2) + 'deg)';
|
||||||
|
if (minEl) minEl.style.transform = 'rotate(' + minDeg.toFixed(2) + 'deg)';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
tick();
|
||||||
|
window.setInterval(tick, 15000);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', initFooter);
|
||||||
|
} else {
|
||||||
|
initFooter();
|
||||||
|
}
|
||||||
|
})();
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Globe Loader</title>
|
||||||
|
<style>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
/* Square loader that fills its embedding container (keeps 1:1 proportions). */
|
||||||
|
.globe-loader {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
/* monochrome ink — white to match the link text on the dark glass card */
|
||||||
|
color: #ffffff;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.globe-loader canvas {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="globe-loader" role="status" aria-label="Loading">
|
||||||
|
<canvas id="globe" width="200" height="200"></canvas>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/topojson-client@3.1.0/dist/topojson-client.min.js"></script>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
const SIZE = 200;
|
||||||
|
const canvas = document.getElementById('globe');
|
||||||
|
const ctx = canvas.getContext('2d');
|
||||||
|
const loader = document.querySelector('.globe-loader');
|
||||||
|
|
||||||
|
// Resolve the ink color from CSS so the loader is themeable via `color`.
|
||||||
|
const ink = getComputedStyle(loader).color;
|
||||||
|
|
||||||
|
// ---- High-DPI setup -------------------------------------------------
|
||||||
|
const dpr = Math.max(1, Math.min(3, window.devicePixelRatio || 1));
|
||||||
|
canvas.width = SIZE * dpr;
|
||||||
|
canvas.height = SIZE * dpr;
|
||||||
|
ctx.scale(dpr, dpr);
|
||||||
|
|
||||||
|
const cx = SIZE / 2;
|
||||||
|
const cy = SIZE / 2;
|
||||||
|
const R = 78; // globe radius in px
|
||||||
|
|
||||||
|
// ---- Projection -----------------------------------------------------
|
||||||
|
const projection = d3.geoOrthographic()
|
||||||
|
.scale(R)
|
||||||
|
.translate([cx, cy])
|
||||||
|
.clipAngle(90);
|
||||||
|
|
||||||
|
const path = d3.geoPath(projection, ctx);
|
||||||
|
const graticule = d3.geoGraticule10();
|
||||||
|
|
||||||
|
let land = null; // merged land outline
|
||||||
|
let borders = null; // interior country borders
|
||||||
|
|
||||||
|
// ---- Whirl particles ------------------------------------------------
|
||||||
|
const TILT = -0.62; // plane tilt (radians)
|
||||||
|
const cosT = Math.cos(TILT), sinT = Math.sin(TILT);
|
||||||
|
const PARTICLES = 46;
|
||||||
|
const particles = [];
|
||||||
|
for (let i = 0; i < PARTICLES; i++) {
|
||||||
|
const rad = R + 6 + Math.random() * 18; // orbit radius
|
||||||
|
particles.push({
|
||||||
|
a: Math.random() * Math.PI * 2, // angle
|
||||||
|
rad,
|
||||||
|
speed: 0.9 + (1 - (rad - R) / 24) * 1.4 + Math.random() * 0.3,
|
||||||
|
size: 0.7 + Math.random() * 1.5,
|
||||||
|
squash: 0.30 + Math.random() * 0.14, // ellipse flattening
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawParticle(p, front) {
|
||||||
|
const ex = Math.cos(p.a) * p.rad;
|
||||||
|
const ey = Math.sin(p.a) * p.rad * p.squash;
|
||||||
|
const x = cx + ex * cosT - ey * sinT;
|
||||||
|
const y = cy + ex * sinT + ey * cosT;
|
||||||
|
|
||||||
|
const depth = Math.sin(p.a);
|
||||||
|
const isFront = depth >= 0;
|
||||||
|
if (isFront !== front) return;
|
||||||
|
|
||||||
|
const TRAIL = 7;
|
||||||
|
for (let t = 0; t < TRAIL; t++) {
|
||||||
|
const aa = p.a - t * 0.05;
|
||||||
|
const tex = Math.cos(aa) * p.rad;
|
||||||
|
const tey = Math.sin(aa) * p.rad * p.squash;
|
||||||
|
const tx = cx + tex * cosT - tey * sinT;
|
||||||
|
const ty = cy + tex * sinT + tey * cosT;
|
||||||
|
const fade = (1 - t / TRAIL);
|
||||||
|
const near = (Math.sin(aa) + 1) / 2; // 0 back .. 1 front
|
||||||
|
const alpha = fade * (0.18 + near * 0.55);
|
||||||
|
ctx.globalAlpha = alpha;
|
||||||
|
ctx.beginPath();
|
||||||
|
ctx.arc(tx, ty, p.size * (0.5 + fade * 0.5), 0, Math.PI * 2);
|
||||||
|
ctx.fill();
|
||||||
|
}
|
||||||
|
ctx.globalAlpha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---- Render loop ----------------------------------------------------
|
||||||
|
let lambda = 0; // rotation longitude
|
||||||
|
let last = performance.now();
|
||||||
|
|
||||||
|
function frame() {
|
||||||
|
const now = performance.now();
|
||||||
|
const dt = Math.min(50, now - last) / 1000;
|
||||||
|
last = now;
|
||||||
|
|
||||||
|
lambda += dt * 22; // spin speed (deg/sec)
|
||||||
|
projection.rotate([lambda, -16, 0]);
|
||||||
|
|
||||||
|
ctx.clearRect(0, 0, SIZE, SIZE);
|
||||||
|
ctx.fillStyle = ink;
|
||||||
|
ctx.strokeStyle = ink;
|
||||||
|
ctx.lineJoin = 'round';
|
||||||
|
ctx.lineCap = 'round';
|
||||||
|
|
||||||
|
for (const p of particles) p.a += dt * p.speed;
|
||||||
|
|
||||||
|
for (const p of particles) drawParticle(p, false);
|
||||||
|
|
||||||
|
ctx.globalAlpha = 0.9;
|
||||||
|
ctx.lineWidth = 1.4;
|
||||||
|
ctx.beginPath();
|
||||||
|
ctx.arc(cx, cy, R, 0, Math.PI * 2);
|
||||||
|
ctx.stroke();
|
||||||
|
|
||||||
|
ctx.globalAlpha = 0.16;
|
||||||
|
ctx.lineWidth = 0.6;
|
||||||
|
ctx.beginPath();
|
||||||
|
path(graticule);
|
||||||
|
ctx.stroke();
|
||||||
|
|
||||||
|
if (land) {
|
||||||
|
ctx.globalAlpha = 0.95;
|
||||||
|
ctx.lineWidth = 1.1;
|
||||||
|
ctx.beginPath();
|
||||||
|
path(land);
|
||||||
|
ctx.stroke();
|
||||||
|
}
|
||||||
|
if (borders) {
|
||||||
|
ctx.globalAlpha = 0.42;
|
||||||
|
ctx.lineWidth = 0.7;
|
||||||
|
ctx.beginPath();
|
||||||
|
path(borders);
|
||||||
|
ctx.stroke();
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx.globalAlpha = 1;
|
||||||
|
for (const p of particles) drawParticle(p, true);
|
||||||
|
|
||||||
|
ctx.globalAlpha = 1;
|
||||||
|
}
|
||||||
|
frame();
|
||||||
|
setInterval(frame, 1000 / 60);
|
||||||
|
|
||||||
|
// ---- Load real country geometry ------------------------------------
|
||||||
|
const SRC = 'https://cdn.jsdelivr.net/npm/world-atlas@2.0.2/countries-110m.json';
|
||||||
|
fetch(SRC)
|
||||||
|
.then(r => r.json())
|
||||||
|
.then(world => {
|
||||||
|
const countries = topojson.feature(world, world.objects.countries);
|
||||||
|
land = countries;
|
||||||
|
borders = topojson.mesh(world, world.objects.countries, (a, b) => a !== b);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
console.warn('world-atlas fetch failed; showing graticule globe only');
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 275 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 75 KiB |
@@ -0,0 +1,347 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||||
|
<title>Collina Insurance Manager — Demo</title>
|
||||||
|
<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=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root{
|
||||||
|
--wa-green:#075e54;
|
||||||
|
--wa-green-2:#128c7e;
|
||||||
|
--wa-bar:#008069;
|
||||||
|
--wa-bg:#ece5dd;
|
||||||
|
--wa-in:#ffffff;
|
||||||
|
--wa-out:#d9fdd3;
|
||||||
|
--wa-tick:#53bdeb;
|
||||||
|
--wa-time:#667781;
|
||||||
|
--ink:#0b1411;
|
||||||
|
--accent:#10b981;
|
||||||
|
--gold:#e7b75f;
|
||||||
|
--font-ui:'Bricolage Grotesque',system-ui,sans-serif;
|
||||||
|
--font-chat:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
|
||||||
|
--font-serif:'Instrument Serif',Georgia,serif;
|
||||||
|
}
|
||||||
|
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
|
||||||
|
html,body{height:100%;}
|
||||||
|
body{font-family:var(--font-ui);background:transparent;color:#0b1411;overflow:hidden;}
|
||||||
|
.stage{position:relative;z-index:3;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:14px;}
|
||||||
|
.caption{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center;text-align:center;}
|
||||||
|
.badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#9fe7cf;border:1px solid rgba(16,185,129,.35);background:rgba(16,185,129,.08);padding:5px 11px;border-radius:999px;}
|
||||||
|
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 rgba(16,185,129,.6);animation:live 1.8s ease-out infinite;}
|
||||||
|
@keyframes live{0%{box-shadow:0 0 0 0 rgba(16,185,129,.55)}70%{box-shadow:0 0 0 8px rgba(16,185,129,0)}100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
|
||||||
|
.wordmark{font-size:18px;font-weight:700;letter-spacing:-.01em;color:#0b1411;}
|
||||||
|
.wordmark em{font-family:var(--font-serif);font-style:italic;font-weight:400;color:#a47a2c;}
|
||||||
|
|
||||||
|
.phone-wrap{width:100%;display:flex;align-items:flex-start;justify-content:flex-start;overflow:visible;}
|
||||||
|
.phone{width:390px;height:844px;flex:none;position:relative;border-radius:56px;background:linear-gradient(160deg,#1c1c1e,#0b0b0c);padding:13px;transform-origin:top left;box-shadow:0 2px 0 1px rgba(255,255,255,.06) inset,0 0 0 2px #2a2a2c;}
|
||||||
|
.screen{position:relative;width:100%;height:100%;border-radius:44px;overflow:hidden;background:var(--wa-bg);display:flex;flex-direction:column;font-family:var(--font-chat);}
|
||||||
|
.island{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:118px;height:34px;background:#000;border-radius:20px;z-index:30;}
|
||||||
|
|
||||||
|
.statusbar{height:46px;flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:flex-end;justify-content:space-between;padding:0 26px 7px;font-size:14px;font-weight:600;}
|
||||||
|
.statusbar .icons{display:flex;align-items:center;gap:6px;}
|
||||||
|
.statusbar svg{display:block;}
|
||||||
|
|
||||||
|
.wa-head{flex:none;background:var(--wa-green);color:#fff;display:flex;align-items:center;gap:10px;padding:6px 12px 10px;}
|
||||||
|
.wa-head .back{font-size:24px;line-height:1;opacity:.95;}
|
||||||
|
.avatar{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;background:#fbfaf7;box-shadow:0 0 0 2px rgba(255,255,255,.3),0 1px 3px rgba(0,0,0,.2);font-size:18px;font-weight:700;color:#075e54;font-family:var(--font-ui);}
|
||||||
|
.who{flex:1;min-width:0;}
|
||||||
|
.who .nm{font-size:16px;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.who .st{font-size:12.5px;opacity:.85;line-height:1.2;height:15px;}
|
||||||
|
.who .st.typing{color:#bff3df;font-style:italic;}
|
||||||
|
.wa-head .hicons{display:flex;gap:18px;opacity:.95;}
|
||||||
|
|
||||||
|
.chat{flex:1;min-height:0;overflow-y:auto;padding:14px 12px 8px;scroll-behavior:smooth;background:linear-gradient(rgba(236,229,221,.92),rgba(236,229,221,.92)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23b9ad9c' stroke-width='1' opacity='.5'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Cpath d='M55 12h10M60 7v10'/%3E%3Cpath d='M12 58c4-4 8-4 12 0'/%3E%3Crect x='52' y='52' width='9' height='9' rx='2'/%3E%3C/g%3E%3C/svg%3E");background-size:auto,160px 160px;}
|
||||||
|
.chat::-webkit-scrollbar{width:0;}
|
||||||
|
.day{align-self:center;margin:2px auto 10px;background:#d6e7e0;color:#4a635b;font-size:11px;font-weight:600;padding:4px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.05);}
|
||||||
|
.row{display:flex;margin-bottom:8px;animation:pop .26s cubic-bezier(.2,.8,.3,1.2);}
|
||||||
|
.row.in{justify-content:flex-start;}
|
||||||
|
.row.out{justify-content:flex-end;}
|
||||||
|
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
|
||||||
|
.bubble{position:relative;max-width:80%;padding:7px 10px 18px;border-radius:11px;font-size:13.3px;line-height:1.42;color:#111b21;white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px .5px rgba(11,20,26,.13);}
|
||||||
|
.bubble strong{font-weight:700;}
|
||||||
|
.row.in .bubble{background:var(--wa-in);border-top-left-radius:3px;}
|
||||||
|
.row.out .bubble{background:var(--wa-out);border-top-right-radius:3px;}
|
||||||
|
.bubble .meta{position:absolute;right:9px;bottom:5px;font-size:10.5px;color:var(--wa-time);display:flex;align-items:center;gap:3px;}
|
||||||
|
.bubble .meta .tick{color:var(--wa-tick);font-size:12px;}
|
||||||
|
.row.in .bubble:after{content:"";position:absolute;top:0;left:-7px;border:7px solid transparent;border-top-color:var(--wa-in);border-right:0;}
|
||||||
|
.row.out .bubble:after{content:"";position:absolute;top:0;right:-7px;border:7px solid transparent;border-top-color:var(--wa-out);border-left:0;}
|
||||||
|
.typing .bubble{padding:11px 14px;}
|
||||||
|
.dots{display:flex;gap:4px;}
|
||||||
|
.dots i{width:7px;height:7px;border-radius:50%;background:#9aa6a0;animation:bln 1.2s infinite;}
|
||||||
|
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
|
||||||
|
@keyframes bln{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
|
||||||
|
|
||||||
|
.quick{flex:none;background:var(--wa-bg);padding:8px 10px 6px;display:flex;gap:8px;overflow-x:auto;border-top:1px solid rgba(0,0,0,.04);}
|
||||||
|
.quick::-webkit-scrollbar{height:0;}
|
||||||
|
.chip{flex:none;font-family:var(--font-chat);font-size:12.5px;font-weight:600;color:#075e54;background:#fff;border:1px solid #cfe3da;border-radius:999px;padding:7px 13px;cursor:pointer;transition:transform .12s ease,background .12s ease;white-space:nowrap;}
|
||||||
|
.chip:hover{background:#eafff6;transform:translateY(-1px);}
|
||||||
|
.chip:active{transform:scale(.96);}
|
||||||
|
|
||||||
|
.inputbar{flex:none;background:var(--wa-bg);padding:7px 9px 12px;display:flex;align-items:center;gap:8px;}
|
||||||
|
.field{flex:1;background:#fff;border-radius:22px;display:flex;align-items:center;gap:8px;padding:9px 14px;box-shadow:0 1px .5px rgba(0,0,0,.08);}
|
||||||
|
.field input{flex:1;border:0;outline:0;font-family:var(--font-chat);font-size:13.5px;color:#111b21;background:transparent;}
|
||||||
|
.field input::placeholder{color:#8a9690;}
|
||||||
|
.field .em{font-size:17px;opacity:.55;}
|
||||||
|
.send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--wa-bar);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(8,128,105,.4);transition:transform .12s;}
|
||||||
|
.send:active{transform:scale(.92);}
|
||||||
|
|
||||||
|
.controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:390px;}
|
||||||
|
.ctrl{font-family:var(--font-ui);font-size:13px;font-weight:600;border:0;border-radius:999px;padding:10px 18px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:transform .12s ease,box-shadow .15s ease,filter .15s ease;}
|
||||||
|
.ctrl:active{transform:scale(.97);}
|
||||||
|
#playBtn{color:#fff;background:var(--wa-bar);box-shadow:0 8px 20px -8px rgba(8,128,105,.7);}
|
||||||
|
#playBtn:hover{filter:brightness(1.07);transform:translateY(-1px);}
|
||||||
|
#restartBtn{color:#0b3b32;background:#fff;border:1px solid rgba(8,128,105,.25);box-shadow:0 6px 16px -10px rgba(0,0,0,.5);}
|
||||||
|
#restartBtn:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(0,0,0,.45);}
|
||||||
|
.hint{font-size:12px;color:#7fa395;letter-spacing:.02em;}
|
||||||
|
.hint b{color:#bff3df;font-weight:600;}
|
||||||
|
|
||||||
|
@media (max-height:620px){ .caption{display:none;} }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="stage">
|
||||||
|
<div class="phone-wrap">
|
||||||
|
<div class="phone">
|
||||||
|
<div class="island"></div>
|
||||||
|
<div class="screen">
|
||||||
|
|
||||||
|
<div class="statusbar">
|
||||||
|
<span>9:41</span>
|
||||||
|
<span class="icons">
|
||||||
|
<svg width="18" height="12" viewBox="0 0 18 12" fill="#fff"><rect x="0" y="8" width="3" height="4" rx="1"/><rect x="5" y="5" width="3" height="7" rx="1"/><rect x="10" y="2.5" width="3" height="9.5" rx="1"/><rect x="15" y="0" width="3" height="12" rx="1"/></svg>
|
||||||
|
<svg width="17" height="12" viewBox="0 0 17 12" fill="#fff"><path d="M8.5 2.2c2.6 0 5 1 6.8 2.6l-1.4 1.5A7.7 7.7 0 0 0 8.5 4.2 7.7 7.7 0 0 0 3.1 6.3L1.7 4.8A10 10 0 0 1 8.5 2.2Zm0 3.6c1.6 0 3.1.6 4.2 1.6l-1.5 1.5a4 4 0 0 0-5.4 0L4.3 7.4A6 6 0 0 1 8.5 5.8Zm0 3.5c.8 0 1.5.3 2 .8l-2 2-2-2c.5-.5 1.2-.8 2-.8Z"/></svg>
|
||||||
|
<svg width="26" height="13" viewBox="0 0 26 13"><rect x="1" y="1" width="21" height="11" rx="3" fill="none" stroke="#fff" stroke-opacity=".5"/><rect x="3" y="3" width="16" height="7" rx="1.5" fill="#fff"/><rect x="23" y="4" width="2" height="5" rx="1" fill="#fff" fill-opacity=".6"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wa-head">
|
||||||
|
<span class="back">‹</span>
|
||||||
|
<span class="avatar"><img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQDAwMDAgQDAwMEBAQFBgoGBgUFBgwICQcKDgwPDg4MDQ0PERYTDxAVEQ0NExoTFRcYGRkZDxIbHRsYHRYYGRj/2wBDAQQEBAYFBgsGBgsYEA0QGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBj/wAARCACgAKADASIAAhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAAAAEHCAUGCQMEAv/EADoQAAEDAwMCBQMCBAUDBQAAAAECAwQABREGEiEHMQgTIkFRFDJhFXEjQmKBFzNSgpEJobFyo8HC8f/EABsBAAICAwEAAAAAAAAAAAAAAAAFBAYBAgMH/8QANhEAAQQBAwEFBgUDBQEAAAAAAQACAxEEBSExEkFRYXGBBhMykbHwIiNC0eEUocEVJDM0cvH/2gAMAwEAAhEDEQA/AL+UUUe9CEUvejFOhCVOiihCKKxWoNR2XS9mVdL9cGoURKgkuOHjJ/8Awn8AE1EXU3xK6e0JoxNzt9nnXCfKkORoUaShUZKyj71rJG5KU5HpICjkDAzUnGw5slwZE2ydlykmZGCXmlNM24QLbHD9wmx4rRUEhb7gQCT2GSe/4rR9c9YdJaHm6etz7y7nctQS2Y0CFb1JcWtLi0p84nOA2Nw59+wzzjnvrvqp1B6r6qEq8T3XFKBbj263pU2yyjOSEpyTz3KiSTjk4AxqDcuXBu8KVarlJXLYDamH2gpDjLv+lBznKVHAI79xVzxfYzg5Em/cP7b+fh5JRLrHZG31/hdZNQaisulrA9e9QXBu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JltYtcVG4YCCEuOqx3PPlpz2GD81bW/x5TsGPIhuSgqJJbkrajJSVPoSfU3hRHcEn54Fc4PD3rC06H6+2q+3+/O2e1JbdZlPNtqcS4lScJQsJBIRu2qJwcbfbuL7Xvq1pW0T9GobnNzImqJaIsaWwQptIcbK2lKOcpCyABkc5PbFVf2ow5/8AUOsAuDhY222HH9r9Uz02ZnuOnivu1v2BisDqLWGn9KzLRFvc4RnbtMTBiJIz5jquw/b5+M/FZ6tP6m6ef1H05mtW632+Zd4WJ9sTOaLiESmvUhWAQQe4yCPuqrQtY54D+CmTyQ0lvKpL1fufU7o14i5qIWuNQuMOOfqNuU/PdcQuO4o4bUlSilWxQUggjHpB96sr0M8RunupceJpy8v/AEOrSkpEZbZCJgSncpbah6c4BJT6fwK0jxKsWTX/AIeHdQxpsCZqXSElhu5GLwpjzcIdQUnlKSSlYBz9vfvVNLPdZli1BDvEBxbcmI8l5tSHFNnI7jckhScjIyCDzXomPp8OtaeC9vTK3axtuBtfeCCD9EgfO/DnPSbad11zYfYksB6O8282SQFtqCgSDg8j4II/tXpjNVb8Jt01CxClwWCLlo+5vvyorja/MetEvducjSRwUb0+sKxtUTkHK8VaQ/FULPxDiTuhu6+/Qp5BL71gfVI/ajFGMUc1DXZGKKKKEJ0s06WBQhOkDzRjmj8UIQTVdvGhCdk+HeLJaSSmJeY7rmPZKkON5P8Adaf+asTwK0XrRZIWoPD7rG2zylLJtT74WeyFtILiFf2UhJqfpU4gzIpTwHD6rhlM64XN8FzQ0XFfndRbIwxcYFvc+sbc+suKUqjLine truncated
|
||||||
|
<span class="who">
|
||||||
|
<span class="nm">Collina Insurance Manager</span>
|
||||||
|
<span class="st" id="status">en línea</span>
|
||||||
|
</span>
|
||||||
|
<span class="hicons">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M17 10.5V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3.5l5 4v-11l-5 4Z"/></svg>
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M20 15.5a12.8 12.8 0 0 1-3.9-.6 1.1 1.1 0 0 0-1.1.3l-2.2 2.2a16.5 16.5 0 0 1-7.2-7.2l2.2-2.2a1.1 1.1 0 0 0 .3-1.1A12.8 12.8 0 0 1 7.5 3 1 1 0 0 0 6.5 2H3.5a1 1 0 0 0-1 1A17.5 17.5 0 0 0 20 20.5a1 1 0 0 0 1-1V16.5a1 1 0 0 0-1-1Z"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat" id="chat">
|
||||||
|
<div class="day">HOY</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="quick" id="quick"></div>
|
||||||
|
|
||||||
|
<div class="inputbar">
|
||||||
|
<div class="field">
|
||||||
|
<span class="em">😊</span>
|
||||||
|
<input id="freeInput" type="text" placeholder="Escribe un mensaje" autocomplete="off">
|
||||||
|
<span class="em">📎</span>
|
||||||
|
</div>
|
||||||
|
<button class="send" id="sendBtn" aria-label="Enviar">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M3 11.5 21 3l-4 9 4 9-18-8.5 9-1-9-1Z"/></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="controls">
|
||||||
|
<button class="ctrl" id="playBtn">⏸ Pausar</button>
|
||||||
|
<button class="ctrl ghost" id="restartBtn">↻ Reiniciar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
"use strict";
|
||||||
|
var chat = document.getElementById('chat');
|
||||||
|
var quick = document.getElementById('quick');
|
||||||
|
var statusEl = document.getElementById('status');
|
||||||
|
var playBtn = document.getElementById('playBtn');
|
||||||
|
var restartBtn = document.getElementById('restartBtn');
|
||||||
|
var freeInput = document.getElementById('freeInput');
|
||||||
|
var sendBtn = document.getElementById('sendBtn');
|
||||||
|
|
||||||
|
var RESP = {
|
||||||
|
help: {
|
||||||
|
user:"ayuda",
|
||||||
|
bot:"👋 Hola, soy *Collina Insurance Manager*.\n\nGestiono las pólizas de seguros vehiculares en tiempo real. Escríbeme natural, por ejemplo:\n\n📋 *Por cliente*\n• \"las pólizas de Andrade\"\n• \"cómo está Grupo Veranda\"\n\n🚗 *Por vehículo*\n• \"cuánto es el seguro del CX-5\"\n• \"está vigente la Hilux\"\n\n📅 *Vencimientos*\n• \"qué vence en marzo\"\n• \"algo que venza pronto\"\n\n🗓️ *Resumen mensual*\n• \"pásame todo de marzo\"\n\n💳 *Pagos y cambios*\n• \"paga la póliza del CX-5\"\n• \"renueva la Hilux\"\n\nEscribe *ayuda* cuando quieras."
|
||||||
|
},
|
||||||
|
andrade: {
|
||||||
|
user:"checate las pólizas de andrade",
|
||||||
|
bot:"👤 *DISTRIBUIDORA ANDRADE*\n─────────────────────\n🟢 VIGENTE\n🚗 Mazda CX-5 2023\n🏢 Seguros Altamar\n📋 POL-AND-4471\n🔑 VIN ···8829\n👤 Renata Solís\n🔄 Pago semestral\n💸 Próximo pago: 14/06/2026\n📅 Cobertura: hasta 03/11/2026\n💰 Prima: $18,400 MXN\n📝 Endoso de rastreo GPS\n─────────────────────\n🔴 VENCIDA\n🚗 Toyota Hilux 2021\n🏢 Cobertura Norte\n📋 POL-AND-3120\n🔑 VIN ···5510\n👤 Renata Solís\n🔄 Pago anual\n📅 Cobertura: venció 28/02/2026\n💰 Prima: $22,750 MXN\n─────────────────────\n💰 Prima total: $41,150 MXN\n📊 2 pólizas · 1 vigente · 1 vencida"
|
||||||
|
},
|
||||||
|
sermont: {
|
||||||
|
user:"y la flotilla de logística sermont?",
|
||||||
|
bot:"👤 *LOGÍSTICA SERMONT*\n─────────────────────\n🚛 *FLOTILLA · 5 unidades*\n📋 POL-SERMONT (INCISO 01–05)\n🏢 Mutua Pacífico\n🟢 4 vigentes · 🔴 1 vencida\n🔄 Pago anual\n💸 Próximo pago más cercano: 09/03/2026\n📅 Cobertura: hasta 30/09/2026\n💰 Prima total flotilla: $186,300 MXN\n📝 Inciso 03 pendiente de renovación\n─────────────────────\nEscribe el número de inciso para ver una unidad."
|
||||||
|
},
|
||||||
|
cx5: {
|
||||||
|
user:"cuánto es el seguro del cx5",
|
||||||
|
bot:"🚗 *Mazda CX-5 2023*\n─────────────────────\n🟢 VIGENTE\n👤 Cliente: Distribuidora Andrade\n🏢 Seguros Altamar\n📋 POL-AND-4471\n🔑 VIN ···8829\n👤 Agente: Renata Solís\n🔄 Pago semestral\n💸 Próximo pago: 14/06/2026\n📅 Cobertura: hasta 03/11/2026\n💰 Prima: $18,400 MXN"
|
||||||
|
},
|
||||||
|
marzo: {
|
||||||
|
user:"pásame todo de marzo",
|
||||||
|
bot:"🗓️ *RESUMEN — MARZO 2026*\n─────────────────────\n💸 *POR PAGAR ESTE MES*\n─────────────────────\n🚛 Logística Sermont (flotilla · 5 u.)\n 09/03 · $186,300 MXN\n🚗 Audi Q5 — Grupo Veranda\n 22/03 · $31,200 MXN\n─────────────────────\n📅 *POR VENCER ESTE MES*\n─────────────────────\n🚗 VW Virtus — Talleres Monteverde\n 17/03 · fin de cobertura\n🚗 Nissan Frontier — Comercializadora Lirio\n 30/03 · fin de cobertura\n─────────────────────\n💰 Total por pagar: $217,500 MXN\n🚗 Por vencer: 2 unidades"
|
||||||
|
},
|
||||||
|
pago: {
|
||||||
|
user:"pueden pagar mi póliza?",
|
||||||
|
bot:"✅ Claro, puedo *procesar el pago* de tu póliza y actualizar el registro al instante.\n\nTambién consulto vencimientos, próximos pagos y datos por cliente o vehículo.\n\n¿Qué póliza quieres pagar?"
|
||||||
|
},
|
||||||
|
fallback: {
|
||||||
|
bot:"🤔 No estoy seguro de qué necesitas. Puedo darte pólizas *por cliente*, *por vehículo*, o un *resumen del mes*.\n\nEscribe *ayuda* para ver ejemplos."
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var CHIPS = [
|
||||||
|
{key:'help', label:'ayuda'},
|
||||||
|
{key:'andrade', label:'Pólizas de Andrade'},
|
||||||
|
{key:'sermont', label:'Flotilla Sermont'},
|
||||||
|
{key:'cx5', label:'Seguro del CX-5'},
|
||||||
|
{key:'marzo', label:'Todo de marzo'},
|
||||||
|
{key:'pago', label:'¿Pueden pagar?'}
|
||||||
|
];
|
||||||
|
var SCRIPT = ['help','andrade','sermont','cx5','marzo','pago'];
|
||||||
|
|
||||||
|
CHIPS.forEach(function(c){
|
||||||
|
var b=document.createElement('button');
|
||||||
|
b.className='chip';b.textContent=c.label;
|
||||||
|
b.addEventListener('click',function(){ userTrigger(c.key); });
|
||||||
|
quick.appendChild(b);
|
||||||
|
});
|
||||||
|
|
||||||
|
function esc(s){return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}
|
||||||
|
function fmt(s){return esc(s).replace(/\*(.+?)\*/g,'<strong>$1</strong>');}
|
||||||
|
function sleep(ms){return new Promise(function(r){setTimeout(r,ms);});}
|
||||||
|
function scrollDown(){chat.scrollTop=chat.scrollHeight;}
|
||||||
|
|
||||||
|
var clock=[9,41];
|
||||||
|
function stamp(){
|
||||||
|
var h=clock[0], m=clock[1];
|
||||||
|
var t=h+':'+(m<10?'0':'')+m;
|
||||||
|
clock[1]++; if(clock[1]>59){clock[1]=0;clock[0]++;}
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
function addRow(side, html, isTyping){
|
||||||
|
var row=document.createElement('div');
|
||||||
|
row.className='row '+side+(isTyping?' typing':'');
|
||||||
|
var bub=document.createElement('div'); bub.className='bubble';
|
||||||
|
if(isTyping){
|
||||||
|
bub.innerHTML='<span class="dots"><i></i><i></i><i></i></span>';
|
||||||
|
}else{
|
||||||
|
var tick = side==='out' ? '<span class="tick">✓✓</span>' : '';
|
||||||
|
bub.innerHTML = html + '<span class="meta">'+stamp()+tick+'</span>';
|
||||||
|
}
|
||||||
|
row.appendChild(bub); chat.appendChild(row); scrollDown();
|
||||||
|
return row;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setTyping(on){
|
||||||
|
statusEl.textContent = on ? 'escribiendo…' : 'en línea';
|
||||||
|
statusEl.classList.toggle('typing', on);
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearChat(){
|
||||||
|
chat.innerHTML='<div class="day">HOY</div>';
|
||||||
|
clock=[9,41];
|
||||||
|
}
|
||||||
|
|
||||||
|
var runId=0;
|
||||||
|
var busy=false;
|
||||||
|
var autoActive=false;
|
||||||
|
|
||||||
|
async function exchange(userText, botText, id){
|
||||||
|
if(busy) return; busy=true;
|
||||||
|
if(userText){ addRow('out', fmt(userText), false); await sleep(420); }
|
||||||
|
if(id!==undefined && id!==runId){ busy=false; return; }
|
||||||
|
var typ=addRow('in','',true); setTyping(true);
|
||||||
|
var dur=Math.min(2300, 650 + botText.length*7);
|
||||||
|
await sleep(dur);
|
||||||
|
typ.remove(); setTyping(false);
|
||||||
|
if(id!==undefined && id!==runId){ busy=false; return; }
|
||||||
|
addRow('in', fmt(botText), false);
|
||||||
|
busy=false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function classify(text){
|
||||||
|
var t=text.toLowerCase();
|
||||||
|
if(/(ayuda|menu|menú|inicio|hola)/.test(t)) return 'help';
|
||||||
|
if(/andrade/.test(t)) return 'andrade';
|
||||||
|
if(/(sermont|flotilla|camion|camión)/.test(t)) return 'sermont';
|
||||||
|
if(/(cx-?5|cx5)/.test(t)) return 'cx5';
|
||||||
|
if(/(marzo|todo de|reporte|resumen|mes)/.test(t)) return 'marzo';
|
||||||
|
if(/(pag|cobr|transfer|deposit)/.test(t)) return 'pago';
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function userTrigger(key){
|
||||||
|
if(busy) return;
|
||||||
|
stopAuto();
|
||||||
|
var r=RESP[key];
|
||||||
|
await exchange(r.user, r.bot, undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function freeSend(){
|
||||||
|
if(busy) return;
|
||||||
|
var text=freeInput.value.trim();
|
||||||
|
if(!text) return;
|
||||||
|
freeInput.value='';
|
||||||
|
stopAuto();
|
||||||
|
var key=classify(text);
|
||||||
|
var bot = key ? RESP[key].bot : RESP.fallback.bot;
|
||||||
|
await exchange(text, bot, undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function autoplay(){
|
||||||
|
var id=++runId; autoActive=true; updateBtn();
|
||||||
|
clearChat();
|
||||||
|
await sleep(500);
|
||||||
|
for(var i=0;i<SCRIPT.length;i++){
|
||||||
|
if(id!==runId) return;
|
||||||
|
var r=RESP[SCRIPT[i]];
|
||||||
|
await exchange(r.user, r.bot, id);
|
||||||
|
if(id!==runId) return;
|
||||||
|
await sleep(1150);
|
||||||
|
}
|
||||||
|
if(id!==runId) return;
|
||||||
|
await sleep(2600);
|
||||||
|
if(id===runId && autoActive) autoplay();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stopAuto(){ runId++; autoActive=false; updateBtn(); }
|
||||||
|
|
||||||
|
function updateBtn(){
|
||||||
|
playBtn.textContent = autoActive ? '⏸ Pausar' : '▶ Reproducir demo';
|
||||||
|
}
|
||||||
|
|
||||||
|
playBtn.addEventListener('click', function(){
|
||||||
|
if(autoActive){ stopAuto(); }
|
||||||
|
else { autoplay(); }
|
||||||
|
});
|
||||||
|
restartBtn.addEventListener('click', function(){ autoplay(); });
|
||||||
|
sendBtn.addEventListener('click', freeSend);
|
||||||
|
freeInput.addEventListener('keydown', function(e){ if(e.key==='Enter') freeSend(); });
|
||||||
|
|
||||||
|
function fit(){
|
||||||
|
var wrap=document.querySelector('.phone-wrap');
|
||||||
|
var phone=document.querySelector('.phone');
|
||||||
|
var w=wrap.clientWidth;
|
||||||
|
var s=Math.min(1, (w-2)/390);
|
||||||
|
phone.style.transform='scale('+s+')';
|
||||||
|
// Reserve vertical space so the scaled phone doesn't overlap the controls.
|
||||||
|
wrap.style.height = (844*s + 4) + 'px';
|
||||||
|
}
|
||||||
|
window.addEventListener('resize', fit);
|
||||||
|
|
||||||
|
window.addEventListener('load', function(){ fit(); autoplay(); });
|
||||||
|
fit();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 283 KiB |
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"marca": "Collina Systems",
|
||||||
|
"tagline": "Tecnología que impulsa tu empresa",
|
||||||
|
"video_youtube_id": "6RkwY9Dh7OM",
|
||||||
|
"redes": {
|
||||||
|
"linkedin": "https://linkedin.com/company/collina-systems",
|
||||||
|
"whatsapp": "+52 565 980 0365"
|
||||||
|
},
|
||||||
|
"telefonos": [
|
||||||
|
{ "nombre": "Teléfono México", "numero": "+52 565 980 0365" },
|
||||||
|
{ "nombre": "Teléfono USA", "numero": "+1 213 603 1680" }
|
||||||
|
],
|
||||||
|
"correos": [
|
||||||
|
{ "nombre": "Contacto General", "email": "contacto@collinasystems.com" },
|
||||||
|
{ "nombre": "Soporte 24/7", "email": "support@collinasystems.com" }
|
||||||
|
],
|
||||||
|
"sitios": [
|
||||||
|
{ "nombre": "Sitio Web México", "url": "https://www.collinasystems.com.mx" },
|
||||||
|
{ "nombre": "Sitio Web USA", "url": "https://www.collinasystems.com" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,961 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Linktree · Collina Systems</title>
|
||||||
|
<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=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--ink: #ffffff;
|
||||||
|
--ink-soft: rgba(255,255,255,.74);
|
||||||
|
--red: #f04539;
|
||||||
|
--red-deep: #d83b30;
|
||||||
|
/* glass surface */
|
||||||
|
--card: rgba(255,255,255,.10);
|
||||||
|
--card-border: rgba(255,255,255,.22);
|
||||||
|
--page: #141311;
|
||||||
|
--radius: 28px;
|
||||||
|
--shadow: 0 18px 40px -18px rgba(0,0,0,.55), 0 4px 14px -6px rgba(0,0,0,.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { min-height: 100%; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
background: radial-gradient(120% 90% at 50% -10%, #26241f 0%, var(--page) 55%, #0e0d0c 100%);
|
||||||
|
background-attachment: fixed;
|
||||||
|
color: var(--ink);
|
||||||
|
min-height: 100dvh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
/* overflow-x: clip evita el scroll horizontal SIN convertir al body en un
|
||||||
|
contenedor de scroll (lo que sí haría overflow:hidden/auto y rompía el
|
||||||
|
pinch-zoom, sobre todo al alejar). La página la desplaza el documento. */
|
||||||
|
overflow-x: clip;
|
||||||
|
padding: 24px 0;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fixed-size column that scales to fit the viewport WIDTH; the page itself
|
||||||
|
scrolls vertically so content stays at a readable size. */
|
||||||
|
.frame {
|
||||||
|
width: 1000px;
|
||||||
|
padding: 36px 0 44px 0;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 22px;
|
||||||
|
transform-origin: top left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
gap: 22px;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
flex: 1 1 0;
|
||||||
|
background: var(--card);
|
||||||
|
border: 1px solid var(--card-border);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.18);
|
||||||
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
||||||
|
backdrop-filter: blur(18px) saturate(140%);
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Card 1 · Marca ---------- */
|
||||||
|
.card--brand {
|
||||||
|
flex: 0 0 489px;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 40px 30px 44px;
|
||||||
|
}
|
||||||
|
/* la fila superior no estira la card: queda a su tamaño original a la izquierda */
|
||||||
|
.row-top { justify-content: flex-start; }
|
||||||
|
.logo-wrap {
|
||||||
|
width: 300px;
|
||||||
|
height: 165px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.brand-logo {
|
||||||
|
width: 400px;
|
||||||
|
height: auto;
|
||||||
|
max-width: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
.card--brand h1 {
|
||||||
|
margin-top: 26px;
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .2px;
|
||||||
|
color: var(--ink);
|
||||||
|
line-height: 1.15;
|
||||||
|
}
|
||||||
|
.card--brand p {
|
||||||
|
margin-top: 18px;
|
||||||
|
max-width: 17rem;
|
||||||
|
font-size: 15.5px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.55;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Card · Redefinimos ---------- */
|
||||||
|
a.card { text-decoration: none; color: inherit; }
|
||||||
|
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.26); transition: transform .14s ease, box-shadow .14s ease; }
|
||||||
|
.card--redefine {
|
||||||
|
flex: 1 1 0;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 18px 18px 0;
|
||||||
|
}
|
||||||
|
.redefine-img {
|
||||||
|
width: 100%;
|
||||||
|
flex: 1 1 0;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 16px;
|
||||||
|
}
|
||||||
|
.redefine-img img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: 40% 20%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.redefine-caption {
|
||||||
|
padding: 26px 28px 30px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.redefine-caption h3 {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .5px;
|
||||||
|
color: var(--ink);
|
||||||
|
line-height: 1.15;
|
||||||
|
}
|
||||||
|
.redefine-caption p {
|
||||||
|
margin-top: 14px;
|
||||||
|
font-size: 14.5px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: italic;
|
||||||
|
line-height: 1.55;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Row 2 · Productos + Enlaces ---------- */
|
||||||
|
|
||||||
|
/* ---------- Sticky Ad ---------- */
|
||||||
|
.sticky-ad {
|
||||||
|
position: fixed;
|
||||||
|
top: 20px;
|
||||||
|
right: 20px;
|
||||||
|
z-index: 200;
|
||||||
|
width: 340px;
|
||||||
|
max-width: calc(100vw - 24px);
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
border-radius: 24px;
|
||||||
|
background: rgba(255,255,255,.10);
|
||||||
|
border: 1px solid rgba(255,255,255,.22);
|
||||||
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
||||||
|
backdrop-filter: blur(18px) saturate(140%);
|
||||||
|
box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), 0 4px 14px -6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
|
||||||
|
}
|
||||||
|
.sticky-ad.is-hidden {
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transform: translateX(20px);
|
||||||
|
}
|
||||||
|
.sticky-ad__close {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
left: 14px;
|
||||||
|
background: rgba(255,255,255,.18);
|
||||||
|
border: none;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1;
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
border-radius: 50%;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
z-index: 1;
|
||||||
|
transition: background .15s;
|
||||||
|
}
|
||||||
|
.sticky-ad__close:hover { background: rgba(255,255,255,.32); }
|
||||||
|
.sticky-ad__text {
|
||||||
|
border-radius: 0;
|
||||||
|
flex: 1 1 0;
|
||||||
|
/* panel oscuro semitransparente: deja respirar el azul del fondo
|
||||||
|
pero conserva contraste suficiente con el texto blanco */
|
||||||
|
background: linear-gradient(160deg, rgba(22,24,40,.48), rgba(22,24,40,.32));
|
||||||
|
padding: 46px 22px 26px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
text-align: left;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
.sticky-ad__text h2 {
|
||||||
|
font-size: 23px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .4px;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.sticky-ad__text .ad-lead {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: rgba(255,255,255,.86);
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
.ad-cta {
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
text-decoration: none;
|
||||||
|
background: var(--red);
|
||||||
|
color: #fff;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 13.5px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .3px;
|
||||||
|
padding: 12px 22px;
|
||||||
|
border-radius: 999px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
box-shadow: 0 8px 18px -8px rgba(240,69,57,.85);
|
||||||
|
transition: background .15s, transform .15s;
|
||||||
|
}
|
||||||
|
.ad-cta:hover { background: var(--red-deep); transform: translateY(-1px); }
|
||||||
|
.sticky-ad__media {
|
||||||
|
border-radius: 0;
|
||||||
|
width: 145px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.sticky-ad__media img {
|
||||||
|
border-radius: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: 82% 8%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.products-card {
|
||||||
|
flex: 0 0 360px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 18px 18px 34px;
|
||||||
|
}
|
||||||
|
.horses-wrap {
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #d8d8d8;
|
||||||
|
}
|
||||||
|
.horses-wrap img { width: 100%; height: auto; display: block; }
|
||||||
|
.products-text { margin: auto 0; }
|
||||||
|
.products-card h3 {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .5px;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
.products-card p {
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 14.5px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.55;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
max-width: 17rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links-grid {
|
||||||
|
flex: 1 1 0;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
.link-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16px;
|
||||||
|
background: rgba(255,255,255,.10);
|
||||||
|
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
||||||
|
backdrop-filter: blur(14px) saturate(140%);
|
||||||
|
border: 1px solid var(--card-border);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 13px 18px;
|
||||||
|
text-decoration: none;
|
||||||
|
box-shadow: 0 10px 24px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18);
|
||||||
|
transition: transform .14s ease, box-shadow .14s ease;
|
||||||
|
}
|
||||||
|
.link-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0,0,0,.55); }
|
||||||
|
.link-ic {
|
||||||
|
width: 58px; height: 58px; flex-shrink: 0;
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
}
|
||||||
|
.link-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
|
||||||
|
.link-ic .globe-iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
border: 0;
|
||||||
|
display: block;
|
||||||
|
background: transparent;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.link-txt {
|
||||||
|
font-size: 15.5px;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1.2;
|
||||||
|
letter-spacing: .3px;
|
||||||
|
color: var(--ink);
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bordes iguales al resto de los cards */
|
||||||
|
.link-btn--linkedin,
|
||||||
|
.link-btn--globe,
|
||||||
|
.link-btn--whatsapp,
|
||||||
|
.link-btn--mail,
|
||||||
|
.link-btn--instagram,
|
||||||
|
.link-btn--tiktok {
|
||||||
|
border-color: var(--card-border);
|
||||||
|
box-shadow: 0 10px 24px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18);
|
||||||
|
}
|
||||||
|
.link-btn--linkedin:hover,
|
||||||
|
.link-btn--globe:hover,
|
||||||
|
.link-btn--whatsapp:hover,
|
||||||
|
.link-btn--mail:hover,
|
||||||
|
.link-btn--instagram:hover,
|
||||||
|
.link-btn--tiktok:hover {
|
||||||
|
box-shadow: 0 16px 28px -14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Row 3 · Apps (dos cards verticales) ---------- */
|
||||||
|
.row-apps { align-items: stretch; }
|
||||||
|
.card--app {
|
||||||
|
flex: 1 1 0;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
padding: 34px 30px 30px;
|
||||||
|
}
|
||||||
|
.card--app h3 {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: .5px;
|
||||||
|
color: var(--ink);
|
||||||
|
line-height: 1.15;
|
||||||
|
}
|
||||||
|
.card--app p {
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 14.5px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.55;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
max-width: 23rem;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
.app-demo {
|
||||||
|
margin-top: auto;
|
||||||
|
padding-top: 24px;
|
||||||
|
width: 360px;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
.app-demo iframe {
|
||||||
|
width: 360px;
|
||||||
|
height: 850px;
|
||||||
|
border: 0;
|
||||||
|
display: block;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Luz guía que deambula entre las cards ---------- */
|
||||||
|
.guide-light {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
margin: -6px 0 0 -6px;
|
||||||
|
border-radius: 50%;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 60;
|
||||||
|
opacity: 0;
|
||||||
|
will-change: transform, opacity;
|
||||||
|
background: radial-gradient(circle, #ffffff 0%, #d4e8ff 40%, rgba(120,180,255,0) 74%);
|
||||||
|
box-shadow:
|
||||||
|
0 0 18px 6px rgba(170,210,255,.6),
|
||||||
|
0 0 44px 16px rgba(90,160,255,.32),
|
||||||
|
0 0 80px 30px rgba(80,150,255,.16);
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.guide-light { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Footer (sección añadida, ancho completo) ---------- */
|
||||||
|
.footer { align-self: stretch; width: 100%; flex: 0 0 auto; }
|
||||||
|
|
||||||
|
/* ---------- Fondo · “nubes” WebGL a pantalla completa (paleta fría) ---------- */
|
||||||
|
.bg-gl {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
|
display: block;
|
||||||
|
z-index: -1; /* detrás de todo el contenido */
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="assets/footer.css" />
|
||||||
|
<link id="gfont-Abril-Fatface" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Abril+Fatface:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Pacifico" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Pacifico:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Permanent-Marker" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Permanent+Marker:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Josefin-Sans" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Libre-Baskerville" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Comfortaa" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Bebas-Neue" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@300;400;500;600;700&display=swap">
|
||||||
|
<link id="gfont-Karla" rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&display=swap">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Fondo de nubes WebGL (cubre toda la página, fijo) -->
|
||||||
|
<canvas class="bg-gl" id="molten-gl"></canvas>
|
||||||
|
|
||||||
|
<!-- Sticky Ad -->
|
||||||
|
<aside class="sticky-ad is-hidden" id="sticky-ad" aria-label="Oferta Collina">
|
||||||
|
<button class="sticky-ad__close" id="sticky-ad-close" aria-label="Cerrar">×</button>
|
||||||
|
<div class="sticky-ad__text">
|
||||||
|
<h2 style="font-family: "Josefin Sans"">OFERTA!</h2>
|
||||||
|
<p class="ad-lead">Es hora de actualizar tu tecnología y potenciar tus resultados.</p>
|
||||||
|
<a class="ad-cta" href="https://collinasystems.com.mx/Hablemos.html" target="_blank" rel="noopener noreferrer">QUIERO MI OFERTA</a>
|
||||||
|
</div>
|
||||||
|
<div class="sticky-ad__media">
|
||||||
|
<img src="assets/retro-phone.webp" alt="Persona con teléfono retro" />
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="frame" id="frame">
|
||||||
|
|
||||||
|
<div class="row row-top">
|
||||||
|
<!-- Card 1 · Marca -->
|
||||||
|
<section class="card card--brand" data-screen-label="card-marca">
|
||||||
|
<div class="logo-wrap">
|
||||||
|
<img class="brand-logo" src="assets/collina-logo-white.png" alt="Collina Systems" />
|
||||||
|
</div>
|
||||||
|
<h1 style="font-family: "Josefin Sans"">SISTEMAS<br />INTELIGENTES</h1>
|
||||||
|
<p>Creamos soluciones para tu empresa con tecnología de primer nivel.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Card · Hablemos -->
|
||||||
|
<a class="card card--redefine" href="https://collinasystems.com.mx/Hablemos.html" target="_blank" rel="noopener noreferrer" data-screen-label="card-hablemos">
|
||||||
|
<div class="redefine-img">
|
||||||
|
<img src="assets/redefine-photo.png" alt="Persona con laptop y teléfono" />
|
||||||
|
</div>
|
||||||
|
<div class="redefine-caption">
|
||||||
|
<h3 style="font-family: "Josefin Sans"">HABLEMOS</h3>
|
||||||
|
<p style="font-family: "Helvetica Neue"">Agenda una reunion con el equipo.</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row row-links">
|
||||||
|
<!-- Card 3 · Productos -->
|
||||||
|
<a class="card products-card" href="https://collinasystems.com.mx/Productos.html" target="_blank" rel="noopener noreferrer" data-screen-label="card-productos">
|
||||||
|
<div class="horses-wrap">
|
||||||
|
<img src="assets/horses.webp" alt="Caballos al galope" />
|
||||||
|
</div>
|
||||||
|
<div class="products-text">
|
||||||
|
<h3 style="font-family: "Josefin Sans""><br />PRODUCTOS COLLINA</h3>
|
||||||
|
<p>Todos los productos son construidos a tu medida.</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<!-- Enlaces sociales -->
|
||||||
|
<div class="links-grid">
|
||||||
|
<a class="link-btn link-btn--linkedin" href="https://www.linkedin.com/company/collina-systems/posts/" target="_blank" rel="noopener noreferrer" data-screen-label="link-linkedin">
|
||||||
|
<span class="link-ic"><img src="assets/icon-linkedin.png" alt="" /></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">CONECTA<br />EN LINKEDIN</span>
|
||||||
|
</a>
|
||||||
|
<a class="link-btn link-btn--instagram" href="https://www.instagram.com/collina.ai?igsh=NWxsYXZ6dWNhOGMx&utm_source=qr" target="_blank" rel="noopener noreferrer" data-screen-label="link-instagram">
|
||||||
|
<span class="link-ic"><img src="assets/icon-instagram.png" alt="" /></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">SÍGUENOS
|
||||||
|
EN INSTAGRAM</span>
|
||||||
|
</a>
|
||||||
|
<a class="link-btn link-btn--globe" href="https://collinasystems.com.mx/index.html" target="_blank" rel="noopener noreferrer" data-screen-label="link-web">
|
||||||
|
<span class="link-ic"><iframe class="globe-iframe" src="assets/globe-loader-icon.html" title="" tabindex="-1" scrolling="no" aria-hidden="true"></iframe></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">CONOCE<br />COLLINA SYSTEMS</span>
|
||||||
|
</a>
|
||||||
|
<a class="link-btn link-btn--tiktok" href="https://www.tiktok.com/@collina.systems?_r=1&_t=ZS-96uHTjNPGzv" target="_blank" rel="noopener noreferrer" data-screen-label="link-tiktok">
|
||||||
|
<span class="link-ic"><img src="assets/icon-tiktok.avif" alt="" /></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">DESCRUBRE<br />NUESTRO TIKTOK</span>
|
||||||
|
</a>
|
||||||
|
<a class="link-btn link-btn--mail" href="mailto:contacto@collinasystems.com" data-screen-label="link-correo">
|
||||||
|
<span class="link-ic"><img src="assets/icon-mail.png" alt="" /></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">ENVÍANOS<br />UN CORREO</span>
|
||||||
|
</a>
|
||||||
|
<a class="link-btn link-btn--whatsapp" href="https://wa.me/525659800365" target="_blank" rel="noopener noreferrer" data-screen-label="link-whatsapp">
|
||||||
|
<span class="link-ic"><img src="assets/icon-whatsapp-v2.png" alt="" /></span>
|
||||||
|
<span class="link-txt" style="font-family: "Josefin Sans"">MANDA<br />UN WHATSAPP</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row row-apps">
|
||||||
|
<!-- Card 1 · Collina Insurance Manager -->
|
||||||
|
<section class="card card--app" data-screen-label="card-insurance-manager">
|
||||||
|
<h3 style="font-size: 30px; font-family: "Josefin Sans"">COLLINA INSURANCE MANAGER</h3>
|
||||||
|
<p>Toda la información de tus seguros vehiculares en un solo chat. Consulta pólizas y vencimientos al instante, como si hablaras con una persona. Ideal para gestión de flotillas.</p>
|
||||||
|
<div class="app-demo">
|
||||||
|
<iframe src="assets/insurance-manager.html" title="Demo de Collina Insurance Manager"></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Card 2 · Collina Contract Maker -->
|
||||||
|
<section class="card card--app" data-screen-label="card-contract-maker">
|
||||||
|
<h3 style="font-size: 30px; font-family: "Josefin Sans"">COLLINA CONTRACT MAKER</h3>
|
||||||
|
<p>Tu flujo legal, sin cuellos de botella. Un asistente de WhatsApp que recolecta datos y redacta contratos de arrendamiento de forma automática, liberando a tu equipo interno de la transcripción.</p>
|
||||||
|
<div class="app-demo">
|
||||||
|
<iframe src="assets/contract-maker.html" title="Demo de Collina Contract Maker"></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row row-apps">
|
||||||
|
<!-- Card 3 · Collina Cash Monitor -->
|
||||||
|
<section class="card card--app" data-screen-label="card-cash-monitor">
|
||||||
|
<h3 style="font-size: 30px; font-family: "Josefin Sans"">COLLINA<br />CASH MONITOR</h3>
|
||||||
|
<p>Sistema de monitoreo operativo diseñado para gasolineras. Te da visibilidad instantánea de lo que pasa en tus estaciones y todo te llega directo a WhatsApp. Tengas una estación o veinte, las tienes todas en un mismo lugar y disponibles cuando las necesites.</p>
|
||||||
|
<div class="app-demo">
|
||||||
|
<iframe src="assets/cash-monitor.html" title="Demo de Collina Cash Monitor"></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Card 4 · Cotizador Collina Smart Assistant -->
|
||||||
|
<section class="card card--app" data-screen-label="card-cotizador">
|
||||||
|
<h3 style="font-size: 30px; font-family: "Josefin Sans"">COTIZADOR<br />COLLINA SMART<br />ASSISTANT</h3>
|
||||||
|
<p>Convierte cualquier mensaje en una cotización PDF lista para enviar al cliente. Sin formularios, sin plantillas: escribes natural y el agente responde.</p>
|
||||||
|
<div class="app-demo">
|
||||||
|
<iframe src="assets/cotizador.html" title="Demo de Cotizador Collina Smart Assistant"></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Luz guía -->
|
||||||
|
<div class="guide-light" id="guide-light" aria-hidden="true"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- =====================================================================
|
||||||
|
COLLINA SYSTEMS — FOOTER
|
||||||
|
===================================================================== -->
|
||||||
|
<footer class="footer" id="footer" aria-labelledby="footer-slogan">
|
||||||
|
<div class="footer__inner">
|
||||||
|
|
||||||
|
<!-- Top: slogan + sedes -->
|
||||||
|
<div class="footer__top">
|
||||||
|
<div class="footer__col footer__col--left">
|
||||||
|
<p class="footer__slogan" id="footer-slogan">
|
||||||
|
<span class="footer__slogan-line" style="font-family: "Josefin Sans"">CREAREMOS</span>
|
||||||
|
<span class="footer__slogan-line" style="font-family: "Josefin Sans"">ALGO</span>
|
||||||
|
<span class="footer__slogan-words" aria-label="poderoso, importante o increíble" role="text">
|
||||||
|
<span class="footer__slogan-word" data-active="true">poderoso</span>
|
||||||
|
<span class="footer__slogan-word" style="font-family: "Josefin Sans"">importante</span>
|
||||||
|
<span class="footer__slogan-word" style="font-family: "Josefin Sans"">increíble</span>
|
||||||
|
</span>
|
||||||
|
<span class="footer__slogan-line">JUNTOS</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="footer__contact">
|
||||||
|
<p class="footer__contact-label">Contáctanos</p>
|
||||||
|
<a class="footer__contact-link link-slide" href="mailto:contacto@collinasystems.com">
|
||||||
|
<span class="link-slide__inner">
|
||||||
|
<span class="link-slide__text">contacto@collinasystems.com</span>
|
||||||
|
<span class="link-slide__text link-slide__text--clone" aria-hidden="true">contacto@collinasystems.com</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer__col footer__col--right">
|
||||||
|
<div class="footer__branch" data-tz="America/Mexico_City">
|
||||||
|
<div class="footer__clock" aria-hidden="true">
|
||||||
|
<span class="footer__clock-hand footer__clock-hand--hour"></span>
|
||||||
|
<span class="footer__clock-hand footer__clock-hand--minute"></span>
|
||||||
|
<span class="footer__clock-pin"></span>
|
||||||
|
</div>
|
||||||
|
<div class="footer__branch-info">
|
||||||
|
<p class="footer__branch-country">MÉXICO <span class="footer__branch-tz"></span></p>
|
||||||
|
<p class="footer__branch-address" style="font-family: "Helvetica Neue"">Reserva Territorial Atlixcayotl 5413-28<br />C.P. 72820, Puebla, México</p>
|
||||||
|
<p class="footer__branch-phone"><a href="tel:+525659800365">+52 (56) 5980 0365</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer__branch" data-tz="America/Denver">
|
||||||
|
<div class="footer__clock" aria-hidden="true">
|
||||||
|
<span class="footer__clock-hand footer__clock-hand--hour"></span>
|
||||||
|
<span class="footer__clock-hand footer__clock-hand--minute"></span>
|
||||||
|
<span class="footer__clock-pin"></span>
|
||||||
|
</div>
|
||||||
|
<div class="footer__branch-info">
|
||||||
|
<p class="footer__branch-country" style="font-family: "Josefin Sans"">USA <span class="footer__branch-tz"></span></p>
|
||||||
|
<p class="footer__branch-address" style="font-family: "Helvetica Neue"">30 N Gould St Ste N,<br />Sheridan, WY 82801, USA</p>
|
||||||
|
<p class="footer__branch-phone"><a href="tel:+12136031680">+1 (213) 603 1680</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Bottom: socials + copyright -->
|
||||||
|
<div class="footer__bottom">
|
||||||
|
<ul class="footer__socials">
|
||||||
|
<li>
|
||||||
|
<a class="link-slide" href="https://www.instagram.com/collina.ai" target="_blank" rel="noopener noreferrer">
|
||||||
|
<span class="link-slide__inner">
|
||||||
|
<span class="link-slide__text" style="font-family: "Helvetica Neue"">Instagram</span>
|
||||||
|
<span class="link-slide__text link-slide__text--clone" aria-hidden="true">Instagram</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="link-slide" href="https://www.linkedin.com/company/collina-systems/" target="_blank" rel="noopener noreferrer">
|
||||||
|
<span class="link-slide__inner">
|
||||||
|
<span class="link-slide__text">LinkedIn</span>
|
||||||
|
<span class="link-slide__text link-slide__text--clone" aria-hidden="true">LinkedIn</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="link-slide" href="https://www.tiktok.com/@collina.systems" target="_blank" rel="noopener noreferrer">
|
||||||
|
<span class="link-slide__inner">
|
||||||
|
<span class="link-slide__text">TikTok</span>
|
||||||
|
<span class="link-slide__text link-slide__text--clone" aria-hidden="true">TikTok</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class="footer__copyright">© 2026 All rights reserved. Collina Systems.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="assets/footer.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var reduce = window.matchMedia('(prefers-reduced-motion: reduce)');
|
||||||
|
if (reduce.matches) return;
|
||||||
|
|
||||||
|
var frame = document.getElementById('frame');
|
||||||
|
var light = document.getElementById('guide-light');
|
||||||
|
if (!frame || !light) return;
|
||||||
|
|
||||||
|
// Recolecta los centros de las cards/enlaces.
|
||||||
|
var points = [];
|
||||||
|
function collect() {
|
||||||
|
var els = [];
|
||||||
|
var brand = frame.querySelector('.card--brand');
|
||||||
|
var hablemos = frame.querySelector('.card--redefine');
|
||||||
|
var prod = frame.querySelector('.products-card');
|
||||||
|
if (brand) els.push(brand);
|
||||||
|
if (hablemos) els.push(hablemos);
|
||||||
|
if (prod) els.push(prod);
|
||||||
|
frame.querySelectorAll('.link-btn').forEach(function (b) { els.push(b); });
|
||||||
|
frame.querySelectorAll('.card--app').forEach(function (a) { els.push(a); });
|
||||||
|
|
||||||
|
points = els.map(function (el) {
|
||||||
|
return {
|
||||||
|
x: el.offsetLeft + el.offsetWidth / 2,
|
||||||
|
y: el.offsetTop + el.offsetHeight / 2
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
collect();
|
||||||
|
window.addEventListener('resize', collect);
|
||||||
|
window.addEventListener('load', collect);
|
||||||
|
setTimeout(collect, 900);
|
||||||
|
setTimeout(collect, 2200);
|
||||||
|
|
||||||
|
function dist(a, b) { return Math.hypot(b.x - a.x, b.y - a.y); }
|
||||||
|
|
||||||
|
// Fases de ruido para una deriva orgánica (nunca en línea recta).
|
||||||
|
var ph = [];
|
||||||
|
for (var n = 0; n < 6; n++) ph.push(Math.random() * Math.PI * 2);
|
||||||
|
function wobble(now) {
|
||||||
|
var s = now / 1000;
|
||||||
|
return {
|
||||||
|
x: Math.sin(s * 0.53 + ph[0]) * 9 + Math.sin(s * 1.7 + ph[1]) * 4 + Math.sin(s * 3.1 + ph[2]) * 1.8,
|
||||||
|
y: Math.cos(s * 0.61 + ph[3]) * 9 + Math.sin(s * 1.9 + ph[4]) * 4 + Math.cos(s * 2.7 + ph[5]) * 1.8
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var pos = null; // posición base (sin ruido)
|
||||||
|
var targetIdx = 0;
|
||||||
|
var lerp = 0.02;
|
||||||
|
var dwellUntil = 0;
|
||||||
|
var started = false;
|
||||||
|
|
||||||
|
function pickTarget() {
|
||||||
|
// objetivo aleatorio distinto del actual → orden caótico
|
||||||
|
if (points.length < 2) { targetIdx = 0; return; }
|
||||||
|
var next = targetIdx;
|
||||||
|
while (next === targetIdx) next = Math.floor(Math.random() * points.length);
|
||||||
|
targetIdx = next;
|
||||||
|
lerp = 0.006 + Math.random() * 0.012; // velocidad variable por tramo (más lenta)
|
||||||
|
}
|
||||||
|
|
||||||
|
function loop(now) {
|
||||||
|
requestAnimationFrame(loop);
|
||||||
|
if (points.length < 1) return;
|
||||||
|
|
||||||
|
if (!started) {
|
||||||
|
pos = { x: points[0].x, y: points[0].y };
|
||||||
|
targetIdx = Math.floor(Math.random() * points.length);
|
||||||
|
started = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var tgt = points[targetIdx % points.length];
|
||||||
|
|
||||||
|
// avance suave hacia el objetivo (ease-out natural)
|
||||||
|
pos.x += (tgt.x - pos.x) * lerp;
|
||||||
|
pos.y += (tgt.y - pos.y) * lerp;
|
||||||
|
|
||||||
|
// al acercarse: pequeña pausa irregular y nuevo objetivo
|
||||||
|
if (dist(pos, tgt) < 6) {
|
||||||
|
if (dwellUntil === 0) {
|
||||||
|
dwellUntil = now + 250 + Math.random() * 850;
|
||||||
|
} else if (now >= dwellUntil) {
|
||||||
|
pickTarget();
|
||||||
|
dwellUntil = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ruido aplicado al render (no acumula deriva)
|
||||||
|
var w = wobble(now);
|
||||||
|
var rx = pos.x + w.x;
|
||||||
|
var ry = pos.y + w.y;
|
||||||
|
|
||||||
|
// brillo sutil que respira (sin cambiar de tamaño)
|
||||||
|
var op = 0.62 + Math.sin(now / 1000 * 0.9 + ph[0]) * 0.14;
|
||||||
|
|
||||||
|
light.style.transform = 'translate(' + rx + 'px,' + ry + 'px)';
|
||||||
|
light.style.opacity = op;
|
||||||
|
}
|
||||||
|
requestAnimationFrame(loop);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
function initMolten(canvas) {
|
||||||
|
if (!canvas) return;
|
||||||
|
var gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
|
||||||
|
if (!gl) return;
|
||||||
|
var vsrc = 'attribute vec2 position; void main(){ gl_Position = vec4(position, 0.0, 1.0); }';
|
||||||
|
var fsrc = [
|
||||||
|
'precision highp float;',
|
||||||
|
'uniform vec2 iResolution;',
|
||||||
|
'uniform float iTime;',
|
||||||
|
'uniform float theme;',
|
||||||
|
'float random(vec2 st){ return fract(sin(dot(st.xy, vec2(12.9898,78.233)))*43758.5453123); }',
|
||||||
|
'float noise(vec2 st){',
|
||||||
|
' vec2 i=floor(st); vec2 f=fract(st);',
|
||||||
|
' float a=random(i); float b=random(i+vec2(1.0,0.0));',
|
||||||
|
' float c=random(i+vec2(0.0,1.0)); float d=random(i+vec2(1.0,1.0));',
|
||||||
|
' vec2 u=f*f*(3.0-2.0*f);',
|
||||||
|
' return mix(a,b,u.x)+(c-a)*u.y*(1.0-u.x)+(d-b)*u.y*u.x;',
|
||||||
|
'}',
|
||||||
|
'float fbm(vec2 st){',
|
||||||
|
' float value=0.0; float amplitude=0.5;',
|
||||||
|
' for(int i=0;i<6;i++){ value+=amplitude*noise(st); st*=2.0; amplitude*=0.5; }',
|
||||||
|
' return value;',
|
||||||
|
'}',
|
||||||
|
'void main(){',
|
||||||
|
' vec2 uv = gl_FragCoord.xy / iResolution.xy;',
|
||||||
|
' uv.x *= iResolution.x / iResolution.y;',
|
||||||
|
' float t = iTime*0.2;',
|
||||||
|
' vec2 motion = vec2(t*0.2, t*0.5);', // deriva vertical (eje Y dominante)
|
||||||
|
' vec2 q = uv*3.0;',
|
||||||
|
' float n1 = fbm(q+motion);',
|
||||||
|
' float n2 = fbm(q*2.0-motion);',
|
||||||
|
' float combined_noise = n1 + n2*0.5;',
|
||||||
|
' vec3 color1 = vec3(0.00,0.01,0.05);', // azul casi negro
|
||||||
|
' vec3 color2 = vec3(0.01,0.08,0.24);', // azul profundo oscuro
|
||||||
|
' vec3 color3 = vec3(0.05,0.24,0.46);', // azul medio oscuro
|
||||||
|
' vec3 color4 = vec3(0.20,0.46,0.66);', // azul claro apagado
|
||||||
|
' vec3 lava = mix(color1,color2,smoothstep(0.3,0.45,combined_noise));',
|
||||||
|
' lava = mix(lava,color3,smoothstep(0.5,0.6,combined_noise));',
|
||||||
|
' lava = mix(lava,color4,smoothstep(0.7,0.75,combined_noise));',
|
||||||
|
' float vignette = clamp(1.0 - length(uv-0.5)*0.4, 0.62, 1.0);',
|
||||||
|
' lava *= vignette;',
|
||||||
|
' vec3 base = mix(vec3(1.0), vec3(0.0), theme);',
|
||||||
|
' vec3 finalColor = mix(base, lava, 0.8);',
|
||||||
|
' gl_FragColor = vec4(finalColor, 1.0);',
|
||||||
|
'}'
|
||||||
|
].join('\n');
|
||||||
|
function compile(type, src){ var s=gl.createShader(type); gl.shaderSource(s,src); gl.compileShader(s); return s; }
|
||||||
|
var prog=gl.createProgram();
|
||||||
|
gl.attachShader(prog, compile(gl.VERTEX_SHADER, vsrc));
|
||||||
|
gl.attachShader(prog, compile(gl.FRAGMENT_SHADER, fsrc));
|
||||||
|
gl.linkProgram(prog); gl.useProgram(prog);
|
||||||
|
var buf=gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buf);
|
||||||
|
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1,-1,3,-1,-1,3]), gl.STATIC_DRAW);
|
||||||
|
var loc=gl.getAttribLocation(prog,'position');
|
||||||
|
gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc,2,gl.FLOAT,false,0,0);
|
||||||
|
var uRes=gl.getUniformLocation(prog,'iResolution');
|
||||||
|
var uTime=gl.getUniformLocation(prog,'iTime');
|
||||||
|
var uTheme=gl.getUniformLocation(prog,'theme');
|
||||||
|
gl.uniform1f(uTheme, 0.0);
|
||||||
|
function resize(){
|
||||||
|
var dpr=Math.min(window.devicePixelRatio||1,2);
|
||||||
|
var w=canvas.clientWidth, h=canvas.clientHeight;
|
||||||
|
canvas.width=Math.max(1,Math.floor(w*dpr)); canvas.height=Math.max(1,Math.floor(h*dpr));
|
||||||
|
gl.viewport(0,0,canvas.width,canvas.height);
|
||||||
|
gl.uniform2f(uRes, canvas.width, canvas.height);
|
||||||
|
}
|
||||||
|
resize(); window.addEventListener('resize', resize);
|
||||||
|
var start=performance.now(), running=true;
|
||||||
|
function frame(){ if(!running) return; gl.uniform1f(uTime,(performance.now()-start)/1000); gl.drawArrays(gl.TRIANGLES,0,3); requestAnimationFrame(frame); }
|
||||||
|
if('IntersectionObserver' in window){
|
||||||
|
new IntersectionObserver(function(es){ es.forEach(function(e){ if(e.isIntersecting&&!running){running=true;requestAnimationFrame(frame);} else if(!e.isIntersecting){running=false;} }); },{threshold:0}).observe(canvas);
|
||||||
|
}
|
||||||
|
requestAnimationFrame(frame);
|
||||||
|
}
|
||||||
|
initMolten(document.getElementById('molten-gl'));
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var ad = document.getElementById('sticky-ad');
|
||||||
|
var closed = false;
|
||||||
|
|
||||||
|
document.getElementById('sticky-ad-close').addEventListener('click', function () {
|
||||||
|
closed = true;
|
||||||
|
if (typeof ad.animate === 'function') {
|
||||||
|
var anim = ad.animate(
|
||||||
|
[
|
||||||
|
{ opacity: getComputedStyle(ad).opacity, transform: 'none' },
|
||||||
|
{ opacity: 0, transform: 'translateX(20px)' }
|
||||||
|
],
|
||||||
|
{ duration: 220, easing: 'ease-in', fill: 'forwards' }
|
||||||
|
);
|
||||||
|
anim.onfinish = function () { ad.style.display = 'none'; };
|
||||||
|
} else {
|
||||||
|
ad.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Mostrar el ad solo cuando el usuario ha scrolleado más allá de la primera sección
|
||||||
|
function onScroll() {
|
||||||
|
if (closed) return;
|
||||||
|
if (window.scrollY > 120) {
|
||||||
|
// usar Web Animations API: aparece de forma robusta
|
||||||
|
ad.classList.remove('is-hidden');
|
||||||
|
ad.style.opacity = '1';
|
||||||
|
ad.style.transform = 'none';
|
||||||
|
ad.style.pointerEvents = 'auto';
|
||||||
|
if (typeof ad.animate === 'function') {
|
||||||
|
ad.animate(
|
||||||
|
[
|
||||||
|
{ opacity: 0, transform: 'translateX(20px)' },
|
||||||
|
{ opacity: 1, transform: 'none' }
|
||||||
|
],
|
||||||
|
{ duration: 320, easing: 'ease-out', fill: 'forwards' }
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// una vez que aparece, ya no vuelve a ocultarse al hacer scroll
|
||||||
|
window.removeEventListener('scroll', onScroll);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.addEventListener('scroll', onScroll, { passive: true });
|
||||||
|
onScroll();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var frame = document.getElementById('frame');
|
||||||
|
var lastW = -1;
|
||||||
|
|
||||||
|
function layoutWidth() {
|
||||||
|
/* clientWidth del documento = ancho del LAYOUT viewport.
|
||||||
|
A diferencia de window.innerWidth (que en iOS refleja el visual
|
||||||
|
viewport y se encoge al hacer pinch-zoom), este valor NO cambia
|
||||||
|
cuando el usuario hace zoom, así que el escalado no pelea con el
|
||||||
|
gesto del usuario. */
|
||||||
|
return document.documentElement.clientWidth || window.innerWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fit() {
|
||||||
|
var padX = 16;
|
||||||
|
var w = layoutWidth();
|
||||||
|
var availW = w - padX * 2;
|
||||||
|
/* El contenido siempre cabe en el ancho de la pantalla: nunca hay
|
||||||
|
desplazamiento horizontal. */
|
||||||
|
var s = Math.min(1, availW / frame.offsetWidth);
|
||||||
|
|
||||||
|
frame.style.transform = 'scale(' + s + ')';
|
||||||
|
/* El elemento escalado conserva su caja de layout original; colapsamos
|
||||||
|
el espacio sobrante (abajo y a la derecha) para que la página haga
|
||||||
|
scroll exactamente a las dimensiones visibles del contenido. Con
|
||||||
|
transform-origin: top left, esto deja la caja de scroll del ancho
|
||||||
|
real escalado, no de los 1000px originales. */
|
||||||
|
frame.style.marginBottom = (-(frame.offsetHeight * (1 - s))) + 'px';
|
||||||
|
frame.style.marginRight = (-(frame.offsetWidth * (1 - s))) + 'px';
|
||||||
|
|
||||||
|
document.body.style.overflowX = 'clip';
|
||||||
|
frame.style.alignSelf = 'center';
|
||||||
|
}
|
||||||
|
|
||||||
|
function maybeFit() {
|
||||||
|
/* Solo re-escalar cuando el ancho de LAYOUT realmente cambia
|
||||||
|
(rotación de pantalla, cambio de tamaño de ventana). Los eventos
|
||||||
|
de resize que dispara el pinch-zoom o el ocultar/mostrar de la
|
||||||
|
barra de direcciones se ignoran, evitando saltos y fallos. */
|
||||||
|
var w = layoutWidth();
|
||||||
|
if (w === lastW) return;
|
||||||
|
lastW = w;
|
||||||
|
fit();
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener('resize', maybeFit);
|
||||||
|
window.addEventListener('orientationchange', function () {
|
||||||
|
lastW = -1;
|
||||||
|
maybeFit();
|
||||||
|
});
|
||||||
|
window.addEventListener('load', maybeFit);
|
||||||
|
maybeFit();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||