feat(andamiaje): fase 1, tokens, fuentes, layouts, Header/Footer e Inicio
- BRIEF.md y CLAUDE.md como fuente de verdad y reglas del repositorio - Astro 7 estático con Tailwind 4; tokens en src/styles/tokens.css (claro/oscuro) - Fuentes propias en public/fonts (Fraunces, Instrument Sans, JetBrains Mono) - Layout Base con SEO y Open Graph; Header con menú accesible; Footer - Componentes Stat (cifra con método) y Video (fondo/captura/externo) - Colección cifras con esquema zod; esquemas de proyectos y equipo - Página de inicio; referencia/ con el borrador y los chats originales Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
aa0fcc5691
40 files changed
+12854
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
# build output
|
||||
dist/
|
||||
# generated types
|
||||
.astro/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.production
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
# jetbrains setting folder
|
||||
.idea/
|
||||
@@ -0,0 +1,188 @@
|
||||
# BRIEF · Sitio web y currículum empresarial de Collina Systems
|
||||
|
||||
Fuente de verdad del proyecto. Todo lo que no esté aquí se decide aquí primero y
|
||||
después se construye. Dominio: collinasystems.com.mx.
|
||||
|
||||
## 1. Qué es Collina y a quién le habla el sitio
|
||||
|
||||
Collina construye y opera sistemas para la **operación** de una empresa: ventas,
|
||||
inventario, cobranza, flotillas, contratos, estaciones de servicio, personal.
|
||||
|
||||
El lector es técnico y exigente (un director, un auditor, un actuario). Quiere ver
|
||||
qué hace cada sistema, cómo está construido, qué se midió y en qué estado está.
|
||||
|
||||
- Nada de tono publicitario.
|
||||
- Nada de "prueba gratuita".
|
||||
- Ninguna cifra sin su método.
|
||||
|
||||
## 2. Prohibido en todo el sitio
|
||||
|
||||
1. Cualquier mención a PLD, prevención de lavado, cumplimiento regulatorio,
|
||||
Acuerdo 115/2026 o CHM.
|
||||
2. Cualquier mención a Odoo: ni en textos, ni en metadatos, ni en comentarios del
|
||||
HTML publicado.
|
||||
3. Nombres de clientes. Cada proyecto se describe por su operación y su sector.
|
||||
4. Cifras sin fuente: toda cifra lleva debajo cómo y cuándo se midió. Si no hay
|
||||
dato, se escribe "por medir", nunca un número inventado.
|
||||
|
||||
El build falla si en `dist/` aparece alguna de estas palabras: PLD, Odoo, lavado,
|
||||
CHM, 115/2026 (ver `scripts/verificar-prohibidas.mjs`).
|
||||
|
||||
## 3. Stack
|
||||
|
||||
- **Astro** (última estable, hoy 7.x) con salida estática.
|
||||
- **Content collections** con esquema tipado (zod) para proyectos, equipo, cifras
|
||||
y guiones de demostración. El contenido vive en `src/content/`, nunca en los
|
||||
componentes.
|
||||
- **Tailwind 4** con los tokens del borrador en la configuración (`@theme` en
|
||||
`src/styles/global.css`). Un solo archivo de tokens CSS,
|
||||
`src/styles/tokens.css`, con tema claro y oscuro (`prefers-color-scheme`).
|
||||
- **Tipografía** libre, alojada en el propio sitio (`/public/fonts`, archivos
|
||||
woff2 tomados de los paquetes `@fontsource-variable/*` 5.3.0; nunca Google
|
||||
Fonts):
|
||||
- Fraunces 600/700 en títulos (archivo variable con ejes opsz y wght).
|
||||
- Instrument Sans 400/500/600 en cuerpo (archivo variable wght).
|
||||
- JetBrains Mono para cifras y código (archivo variable wght).
|
||||
Las fuentes se declaran como tokens (`--font-display`, `--font-body`,
|
||||
`--font-mono`) para poder cambiarlas en un solo lugar.
|
||||
- **TypeScript** estricto. Sin frameworks de JS en el cliente salvo donde haga
|
||||
falta interacción (islas de Astro con script propio).
|
||||
- **Despliegue**: Dockerfile multi-etapa (build con Node, servir con nginx sin
|
||||
privilegios), con cabeceras de seguridad (CSP, HSTS, X-Content-Type-Options,
|
||||
Referrer-Policy), caché larga para assets con hash y compresión. Se despliega
|
||||
en Coolify detrás de Traefik.
|
||||
|
||||
## 4. Estructura
|
||||
|
||||
```
|
||||
src/content/proyectos/*.md una ficha por proyecto (esquema en §6)
|
||||
src/content/equipo/*.md una persona por archivo
|
||||
src/content/cifras/*.yaml cifras de la página de inicio, con método
|
||||
src/content/demos/*.json guion de cada chat de demostración
|
||||
src/components/ Header, Footer, Stat, ProyectoFila, FichaTecnica,
|
||||
Diagrama, Video, ChatDemo, Meta (dl de datos)
|
||||
src/layouts/ Base (SEO, Open Graph, fuentes, tema) y Ficha
|
||||
src/pages/ index, proyectos/index, proyectos/[slug],
|
||||
ingenieria, firma, contacto, curriculum
|
||||
public/fonts/ public/video/ public/img/
|
||||
referencia/ borrador HTML y chats originales (no se publican)
|
||||
scripts/ verificaciones de CI y exportación del CV a PDF
|
||||
```
|
||||
|
||||
## 5. Páginas
|
||||
|
||||
Se copia el orden y el contenido del borrador (`referencia/borrador/`),
|
||||
ajustando lo que pida esta lista.
|
||||
|
||||
1. **Inicio**: tesis, cuatro cifras con su método, enlace a proyectos. Video de
|
||||
fondo.
|
||||
2. **Proyectos**: lista con sector, descripción y estado (producción / piloto).
|
||||
3. **Ficha de proyecto** (plantilla única, siete bloques numerados):
|
||||
La operación · Qué hace (tabla de módulos) · Arquitectura (diagrama SVG + 4
|
||||
principios) · Stack · Datos y seguridad · Métricas con método · Estado.
|
||||
4. **Ingeniería**: las cuatro reglas y la tabla de prácticas.
|
||||
5. **Firma**: equipo, método en cinco pasos, trayectoria 2026.
|
||||
6. **Contacto**: demostración técnica, datos de contacto como texto seleccionable.
|
||||
7. **Currículum** (`/curriculum`): el CV empresarial, generado del MISMO contenido
|
||||
que Firma y Proyectos (no se duplica texto). Versión imprimible con
|
||||
`@media print` y un script `npm run cv:pdf` que lo exporta a PDF con
|
||||
Playwright.
|
||||
|
||||
## 6. Esquema de un proyecto (frontmatter)
|
||||
|
||||
```
|
||||
titulo, slug, orden, sector, estado: produccion|piloto, desde (fecha),
|
||||
resumen, operacion_antes, operacion_ahora,
|
||||
modulos: [{nombre, resuelve, como}],
|
||||
arquitectura: {diagrama (ruta a SVG), principios: [{titulo, texto}]},
|
||||
stack: [{capa, tecnologia, decision}],
|
||||
seguridad: [string],
|
||||
metricas: [{medicion, resultado | null, metodo, periodo | null}],
|
||||
demo: {tipo: chat|video|captura, fuente},
|
||||
video_portada (opcional)
|
||||
```
|
||||
|
||||
- Un `resultado` null se muestra como "por medir".
|
||||
- El build falla si una métrica trae `resultado` sin `metodo` (el esquema exige
|
||||
`metodo` siempre; además `scripts/verificar-metricas.mjs` lo comprueba en CI).
|
||||
|
||||
Proyectos a crear (contenido inicial en el borrador; lo que falte se marca con
|
||||
TODO): multisucursal (ficha completa en el borrador), cotizador, polizas,
|
||||
contratos, monitor-gasolineras, extractor-tablas.
|
||||
|
||||
## 7. Chats de demostración
|
||||
|
||||
Los HTML de `referencia/demos/` se convierten en UN componente `ChatDemo` (isla)
|
||||
que recibe el guion como datos (JSON por proyecto en `src/content/demos/`):
|
||||
mensajes, chips, respuestas y reglas de clasificación del texto libre. Debe:
|
||||
|
||||
- arrancar solo cuando el teléfono entra en pantalla (IntersectionObserver) y
|
||||
pausarse al salir;
|
||||
- respetar `prefers-reduced-motion` en burbujas y chips;
|
||||
- escalar el teléfono al ancho disponible sin desbordar en 360 px;
|
||||
- usar las fuentes del sitio, nada externo;
|
||||
- conservar Pausar / Reiniciar y la entrada libre.
|
||||
|
||||
En la ficha el chat va AL LADO de la documentación técnica, no la sustituye.
|
||||
|
||||
## 8. Video
|
||||
|
||||
- Fondo: MP4 (H.264) + WebM, ≤ 3 MB, 10–20 s, silencioso, en bucle, con poster.
|
||||
En celular o con "ahorro de datos" solo el poster. Un video de fondo por
|
||||
página.
|
||||
- Capturas animadas: MP4 corto en lugar de GIF, carga diferida al entrar en
|
||||
pantalla.
|
||||
- Demostraciones largas: alojadas fuera (streaming) e incrustadas con carga
|
||||
diferida; se reproducen solo al pulsar.
|
||||
- Nunca audio automático. Respeta `prefers-reduced-motion`.
|
||||
|
||||
El componente `Video` lleva estas reglas incorporadas. Los placeholders del
|
||||
borrador indican dónde va cada video (el componente queda listo con un poster
|
||||
de muestra).
|
||||
|
||||
## 9. Calidad (criterios de aceptación)
|
||||
|
||||
- Lighthouse ≥ 95 en rendimiento, accesibilidad, buenas prácticas y SEO, en
|
||||
móvil.
|
||||
- Presupuesto: ≤ 1.5 MB en la primera carga de cualquier página sin contar
|
||||
video; ≤ 50 KB de JS por página.
|
||||
- Sin scroll horizontal de 320 px a 1920 px. Una columna bajo 560 px.
|
||||
- Contraste AA en ambos temas; foco visible; todo navegable con teclado; `alt`
|
||||
en todas las imágenes con contenido y `alt` vacío en las decorativas.
|
||||
- HTML semántico (header, nav, main, article, footer), un h1 por página.
|
||||
- Metadatos: title y description por página, Open Graph, sitemap, robots.txt.
|
||||
|
||||
## 10. Entrega y flujo
|
||||
|
||||
- BRIEF.md (este archivo) y CLAUDE.md (reglas para futuras sesiones) se crean
|
||||
primero.
|
||||
- CI (GitHub Actions): `astro check`, build, prueba de palabras prohibidas en
|
||||
`dist/`, Lighthouse CI con los umbrales de arriba y verificación de que
|
||||
ninguna métrica tenga resultado sin método.
|
||||
- Se trabaja por fases y se detiene al final de cada una para revisión:
|
||||
- Fase 1: andamiaje, tokens, fuentes, layouts, Header/Footer, Inicio.
|
||||
- Fase 2: colección de proyectos, lista y plantilla de ficha con multisucursal.
|
||||
- Fase 3: ChatDemo y Video.
|
||||
- Fase 4: Ingeniería, Firma, Contacto y Currículum con su PDF.
|
||||
- Fase 5: Dockerfile, nginx, CI y medición Lighthouse.
|
||||
- Commits en español, formato `tipo(ámbito): descripción`.
|
||||
|
||||
## 11. Sistema de diseño (del borrador)
|
||||
|
||||
- Tokens de color: `--bg`, `--bg-2`, `--fg`, `--fg-2`, `--fg-3`, `--line`,
|
||||
`--accent` (único acento), `--ink`, `--ink-fg`, `--ok`, `--warn`.
|
||||
- Retícula: ancho máximo 1180 px; 12 columnas; proporciones 5/7 y 4/8 para
|
||||
texto frente a contenido. Una sola columna por debajo de 560 px; dos entre
|
||||
560 y 860.
|
||||
- Separación entre secciones con una línea de 1 px, nunca con fondos de color.
|
||||
- Un solo acento por pantalla. Los estados usan sus propios tokens.
|
||||
- Tarjetas solo para elementos que se pueden abrir; el resto se separa con
|
||||
líneas y espacio.
|
||||
- Cuerpo 17 px, interlineado 1.55, columnas de 62 a 66 caracteres.
|
||||
|
||||
## 12. Pendientes conocidos (TODO)
|
||||
|
||||
- Confirmar método y periodo de las cifras del inicio (`src/content/cifras/`).
|
||||
- Producir los videos reales (fondo del inicio y capturas de cada ficha); hoy
|
||||
hay posters de muestra.
|
||||
- Completar versiones e infraestructura en la tabla de stack de cada ficha.
|
||||
@@ -0,0 +1,69 @@
|
||||
# CLAUDE.md · reglas para trabajar en este repositorio
|
||||
|
||||
Sitio estático de Collina Systems (Astro + Tailwind 4 + TypeScript estricto).
|
||||
La fuente de verdad es `BRIEF.md`; léelo antes de tocar contenido o estructura.
|
||||
|
||||
## Prohibido (el build y el CI lo verifican)
|
||||
|
||||
- Mencionar PLD, prevención de lavado, cumplimiento regulatorio, Acuerdo
|
||||
115/2026 o CHM en cualquier parte del sitio.
|
||||
- Mencionar Odoo en textos, metadatos o comentarios del HTML publicado.
|
||||
- Escribir nombres de clientes. Un proyecto se describe por su operación y su
|
||||
sector.
|
||||
- Publicar una cifra sin método y periodo. Si no hay dato: `resultado: null`
|
||||
(se muestra "por medir"). Nunca inventes números.
|
||||
- Cargar recursos externos (Google Fonts, CDN de scripts, analítica). Todo se
|
||||
sirve desde el propio sitio.
|
||||
- Tono publicitario, "prueba gratuita", llamados a la acción comerciales.
|
||||
|
||||
## Dónde vive cada cosa
|
||||
|
||||
- **Contenido** en `src/content/` (content collections con esquema zod en
|
||||
`src/content.config.ts`): `proyectos/*.md`, `equipo/*.md`, `cifras/*.yaml`,
|
||||
`demos/*.json`. Los componentes NUNCA contienen texto de contenido; reciben
|
||||
datos por props. Los textos propios de cada página (tesis, leads) viven en
|
||||
`src/pages/`.
|
||||
- **Tokens** en `src/styles/tokens.css` (único lugar: colores, fuentes,
|
||||
ancho máximo, gutters; tema claro y oscuro). Tailwind los expone en
|
||||
`src/styles/global.css` mediante `@theme inline`. No se escriben colores ni
|
||||
familias tipográficas en componentes.
|
||||
- **Fuentes** en `public/fonts/` (woff2, licencias al lado). Se cambian
|
||||
editando los `@font-face` y los tokens `--font-*`.
|
||||
- **Referencia** en `referencia/` (borrador y chats originales). No se publica
|
||||
ni se importa desde el código.
|
||||
|
||||
## Esquema de proyecto
|
||||
|
||||
Ver `BRIEF.md` §6. `metodo` es obligatorio en toda métrica; `resultado` y
|
||||
`periodo` pueden ser `null`. `estado` es `produccion` o `piloto`.
|
||||
|
||||
## Presupuestos y calidad
|
||||
|
||||
- Lighthouse ≥ 95 (rendimiento, accesibilidad, buenas prácticas, SEO) en móvil.
|
||||
- ≤ 1.5 MB por página en primera carga sin video; ≤ 50 KB de JS por página.
|
||||
- Sin scroll horizontal de 320 a 1920 px; una columna bajo 560 px.
|
||||
- Contraste AA en ambos temas, foco visible, navegación por teclado, `alt`
|
||||
correcto, HTML semántico, un solo h1 por página, title y description por
|
||||
página.
|
||||
- JS en el cliente solo como script de componente de Astro (se compila a
|
||||
archivo externo; compatible con la CSP). Nunca `is:inline` ni `<script>`
|
||||
con código embebido. Nunca `inlineStylesheets: 'auto'` (CSP sin
|
||||
`unsafe-inline`).
|
||||
|
||||
## Video
|
||||
|
||||
Un solo video de fondo por página, silencioso, en bucle, con poster; solo poster
|
||||
en celular, con ahorro de datos o con `prefers-reduced-motion`. Capturas: MP4
|
||||
corto con carga diferida. Demos largas: incrustado externo que solo se carga al
|
||||
pulsar. Todo pasa por el componente `Video`.
|
||||
|
||||
## Flujo de trabajo
|
||||
|
||||
- Fases (ver `BRIEF.md` §10): al terminar una fase, detente y pide revisión.
|
||||
- Comandos: `npm run dev`, `npm run build`, `npm run check`,
|
||||
`npm run verificar:prohibidas`, `npm run verificar:metricas`,
|
||||
`npm run cv:pdf`.
|
||||
- Commits en español: `tipo(ámbito): descripción` (tipos: feat, fix, docs,
|
||||
estilo, refactor, ci, build, chore).
|
||||
- Lo que falte de contenido se marca con `TODO` en el archivo de contenido, no
|
||||
se rellena con datos inventados.
|
||||
@@ -0,0 +1,16 @@
|
||||
# Sitio web de Collina Systems
|
||||
|
||||
Sitio estático (Astro 7, Tailwind 4, TypeScript estricto) y currículum
|
||||
empresarial. La fuente de verdad del proyecto es [BRIEF.md](BRIEF.md); las
|
||||
reglas para trabajar en el repositorio están en [CLAUDE.md](CLAUDE.md).
|
||||
|
||||
```
|
||||
npm install
|
||||
npm run dev # desarrollo
|
||||
npm run build # genera dist/
|
||||
npm run check # astro check (tipos)
|
||||
npm run preview # sirve dist/
|
||||
```
|
||||
|
||||
Comprobaciones: `npm run verificar:prohibidas`, `npm run verificar:metricas`,
|
||||
`node scripts/capturas.mjs <raíz> <salida> "/,/proyectos"`.
|
||||
@@ -0,0 +1,24 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://collinasystems.com.mx',
|
||||
output: 'static',
|
||||
trailingSlash: 'ignore',
|
||||
compressHTML: true,
|
||||
integrations: [sitemap()],
|
||||
build: {
|
||||
// Hojas de estilo siempre externas: la CSP de nginx no permite `unsafe-inline`.
|
||||
inlineStylesheets: 'never',
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
build: {
|
||||
// Nada se incrusta en el HTML (ni scripts ni assets): compatible con una CSP sin `unsafe-inline`.
|
||||
assetsInlineLimit: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
Generated
+9421
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "collina-systems-sitio",
|
||||
"type": "module",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=22.23.4"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro",
|
||||
"check": "astro check",
|
||||
"verificar:prohibidas": "node scripts/verificar-prohibidas.mjs",
|
||||
"verificar:metricas": "node scripts/verificar-metricas.mjs",
|
||||
"cv:pdf": "node scripts/cv-pdf.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/sitemap": "^3.7.4",
|
||||
"@tailwindcss/vite": "^4.3.4",
|
||||
"astro": "^7.4.5",
|
||||
"tailwindcss": "^4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.12",
|
||||
"@lhci/cli": "^0.16.0",
|
||||
"playwright": "^1.64.1",
|
||||
"typescript": "^5.9.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#07172a"/><path d="M44 22a14 14 0 1 0 0 20" fill="none" stroke="#ffffff" stroke-width="7" stroke-linecap="round"/></svg>
|
||||
|
After Width: | Height: | Size: 224 B |
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces) Fraunces-Italic[SOFT,WONK,opsz,wght].ttf: Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) InstrumentSans-Italic[wdth,wght].ttf: Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1680 720" role="img" aria-label="">
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#0c1420"/><stop offset="1" stop-color="#1b2a44"/></linearGradient>
|
||||
<pattern id="p" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M60 0H0V60" fill="none" stroke="#ffffff" stroke-opacity=".07"/></pattern>
|
||||
</defs>
|
||||
<rect width="1680" height="720" fill="url(#g)"/>
|
||||
<rect width="1680" height="720" fill="url(#p)"/>
|
||||
<g fill="none" stroke="#7f9cff" stroke-opacity=".8" stroke-width="2">
|
||||
<rect x="180" y="200" width="300" height="90" rx="6"/>
|
||||
<rect x="690" y="150" width="300" height="420" rx="6" stroke-opacity=".5"/>
|
||||
<rect x="1200" y="300" width="300" height="90" rx="6"/>
|
||||
<path d="M480 245H690M990 345H1200" stroke-opacity=".6"/>
|
||||
</g>
|
||||
<text x="840" y="660" text-anchor="middle" fill="#eef2f7" fill-opacity=".6" font-family="Georgia, serif" font-size="26">Poster de muestra · aquí va el video de fondo (MP4 + WebM, ≤ 3 MB, 10–20 s)</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://collinasystems.com.mx/sitemap-index.xml
|
||||
@@ -0,0 +1,477 @@
|
||||
<title>Collina Systems · borrador del sitio</title>
|
||||
<meta name="claude:viewport-fit-sides" content="cover">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap">
|
||||
<style>
|
||||
/* Layout: retícula de 12 columnas, mucho blanco, una sola columna en celular.
|
||||
Tipografía como protagonista: serif de alto contraste en títulos (sustituto libre de Bower),
|
||||
grotesca neutra en cuerpo (sustituto libre de Graphik), mono para cifras y código. */
|
||||
:root{
|
||||
--bg:#ffffff; --bg-2:#f4f5f7; --fg:#0b1a2b; --fg-2:#4a5565; --fg-3:#7c8595;
|
||||
--line:#dfe3e8; --accent:#1f4fff; --ink:#07172a; --ink-fg:#ffffff; --ok:#1b7f4e; --warn:#b26a00;
|
||||
--display:'Fraunces','Bower',Georgia,'Times New Roman',serif;
|
||||
--body:'Instrument Sans','Graphik',system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
|
||||
--mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
|
||||
--maxw:1180px; --gutter-l:max(16px,env(safe-area-inset-left,0px)); --gutter-r:max(16px,env(safe-area-inset-right,0px));
|
||||
}
|
||||
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
|
||||
--bg:#0c1420; --bg-2:#121c2a; --fg:#eef2f7; --fg-2:#b4bdca; --fg-3:#7f8a99; --line:#263244; --accent:#6f8fff; --ink:#eef2f7; --ink-fg:#0c1420; --ok:#4fc38a; --warn:#e3a84a; color-scheme:dark } }
|
||||
:root[data-theme="dark"]{ --bg:#0c1420; --bg-2:#121c2a; --fg:#eef2f7; --fg-2:#b4bdca; --fg-3:#7f8a99; --line:#263244; --accent:#6f8fff; --ink:#eef2f7; --ink-fg:#0c1420; --ok:#4fc38a; --warn:#e3a84a; color-scheme:dark }
|
||||
|
||||
*{box-sizing:border-box}
|
||||
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
|
||||
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
|
||||
a{color:inherit;text-decoration:none}
|
||||
a:hover{color:var(--accent)}
|
||||
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
|
||||
h1,h2,h3{font-family:var(--display);font-weight:700;letter-spacing:-.015em;line-height:1.08;margin:0;text-wrap:balance}
|
||||
h1{font-size:clamp(2.4rem,6vw,4.6rem);font-variation-settings:"opsz" 144}
|
||||
h2{font-size:clamp(1.7rem,3.4vw,2.6rem);font-variation-settings:"opsz" 96}
|
||||
h3{font-size:1.35rem;font-variation-settings:"opsz" 48}
|
||||
p{margin:0}
|
||||
.wrap{max-width:var(--maxw);margin:0 auto;padding-left:var(--gutter-l);padding-right:var(--gutter-r)}
|
||||
.eyebrow{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-3);font-weight:600}
|
||||
.lead{font-size:1.25rem;color:var(--fg-2);max-width:62ch;line-height:1.5}
|
||||
.muted{color:var(--fg-2)}
|
||||
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
|
||||
.link{color:var(--accent);font-weight:500;display:inline-flex;gap:.4em;align-items:center}
|
||||
.link::after{content:"→";transition:transform .2s}
|
||||
.link:hover::after{transform:translateX(3px)}
|
||||
.draft{background:var(--ink);color:var(--ink-fg);font-size:.8rem;text-align:center;padding:.45rem var(--gutter-r) .45rem var(--gutter-l)}
|
||||
|
||||
/* Navegación */
|
||||
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:9;background:var(--bg);border-bottom:1px solid var(--line)}
|
||||
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.9rem}
|
||||
.brand{font-family:var(--display);font-weight:700;font-size:1.3rem;letter-spacing:.02em;display:flex;align-items:baseline;gap:.5rem}
|
||||
.brand small{font-family:var(--body);font-weight:600;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--fg-3)}
|
||||
.menu{display:flex;gap:1.6rem;list-style:none;margin:0;padding:0;font-size:.95rem;font-weight:500}
|
||||
.menu a[aria-current="page"]{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}
|
||||
.burger{display:none;background:none;border:1px solid var(--line);border-radius:4px;padding:.4rem .7rem;color:var(--fg);font:inherit;cursor:pointer}
|
||||
@media (max-width:760px){
|
||||
.menu{display:none;position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);flex-direction:column;gap:0;padding:.5rem var(--gutter-r) .5rem var(--gutter-l)}
|
||||
.menu.open{display:flex}
|
||||
.menu li a{display:block;padding:.75rem 0;border-top:1px solid var(--line)}
|
||||
.burger{display:inline-block}
|
||||
}
|
||||
|
||||
/* Vistas */
|
||||
.view{display:none}
|
||||
.view.active{display:block}
|
||||
section{padding-block:clamp(3rem,7vw,6rem)}
|
||||
section+section{border-top:1px solid var(--line)}
|
||||
.grid{display:grid;gap:2rem}
|
||||
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
|
||||
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
|
||||
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
|
||||
.g-5-7{grid-template-columns:5fr 7fr}
|
||||
.g-4-8{grid-template-columns:4fr 8fr}
|
||||
@media (max-width:860px){.g3,.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g-5-7,.g-4-8{grid-template-columns:1fr}}
|
||||
@media (max-width:560px){.g2,.g3,.g4{grid-template-columns:1fr}}
|
||||
.grid>*{min-width:0}
|
||||
|
||||
/* Hero */
|
||||
.hero{padding-block:clamp(3.5rem,9vw,7.5rem)}
|
||||
.hero h1{max-width:18ch}
|
||||
.hero .lead{margin-top:1.5rem}
|
||||
.hero-actions{display:flex;gap:1.6rem;flex-wrap:wrap;margin-top:2.2rem}
|
||||
.video{margin-top:3rem;aspect-ratio:21/9;max-width:100%;background:linear-gradient(135deg,var(--bg-2),var(--line));border:1px solid var(--line);display:grid;place-items:center;color:var(--fg-3);font-size:.85rem;text-align:center;padding:1rem}
|
||||
.video span{display:block;font-family:var(--mono);font-size:.75rem;margin-top:.4rem}
|
||||
|
||||
/* Cifras */
|
||||
.stat{border-top:2px solid var(--fg);padding-top:1rem}
|
||||
.stat b{display:block;font-family:var(--display);font-size:clamp(2rem,4vw,3rem);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
|
||||
.stat span{display:block;margin-top:.5rem;color:var(--fg-2);font-size:.95rem}
|
||||
.stat small{display:block;margin-top:.35rem;color:var(--fg-3);font-size:.8rem}
|
||||
|
||||
/* Proyectos */
|
||||
.proj{border-top:1px solid var(--line);padding:1.6rem 0;display:grid;grid-template-columns:7rem 1fr auto;gap:1.5rem;align-items:start}
|
||||
.proj:last-child{border-bottom:1px solid var(--line)}
|
||||
.proj .sector{font-size:.8rem;color:var(--fg-3);line-height:1.35;padding-top:.3rem}
|
||||
.proj h3{margin-bottom:.35rem}
|
||||
.proj p{color:var(--fg-2);max-width:62ch}
|
||||
.state{font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:.3rem .6rem;border:1px solid var(--line);border-radius:999px;white-space:nowrap;color:var(--fg-2)}
|
||||
.state.prod{border-color:var(--ok);color:var(--ok)}
|
||||
.state.pilot{border-color:var(--warn);color:var(--warn)}
|
||||
@media (max-width:640px){.proj{grid-template-columns:1fr}.proj .sector{padding-top:0}}
|
||||
|
||||
/* Ficha */
|
||||
.ficha-head{display:grid;grid-template-columns:8fr 4fr;gap:2rem;align-items:end}
|
||||
@media (max-width:860px){.ficha-head{grid-template-columns:1fr}}
|
||||
.meta{display:grid;gap:.6rem;font-size:.9rem;border-left:2px solid var(--line);padding-left:1rem}
|
||||
.meta div{display:grid;grid-template-columns:9rem 1fr;gap:.6rem}
|
||||
.meta dt{color:var(--fg-3)}
|
||||
.meta dd{margin:0}
|
||||
.toc{display:flex;gap:1.2rem;flex-wrap:wrap;font-size:.85rem;font-weight:500;padding:1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:2.5rem}
|
||||
.toc a{color:var(--fg-2)}
|
||||
.block{padding-block:clamp(2.2rem,5vw,3.5rem)}
|
||||
.block+.block{border-top:1px solid var(--line)}
|
||||
.block h2{margin-bottom:1.2rem}
|
||||
.block .n{font-family:var(--mono);color:var(--fg-3);font-size:.85rem;margin-bottom:.5rem;display:block}
|
||||
table{width:100%;border-collapse:collapse;font-size:.92rem}
|
||||
th,td{text-align:left;padding:.7rem .6rem .7rem 0;border-bottom:1px solid var(--line);vertical-align:top}
|
||||
th{font-weight:600;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-3)}
|
||||
td.k{font-family:var(--mono);font-size:.85rem;white-space:nowrap}
|
||||
.scroll{overflow-x:auto}
|
||||
.diagram{border:1px solid var(--line);padding:1rem;background:var(--bg-2);overflow-x:auto}
|
||||
.diagram svg{display:block;min-width:620px;width:100%;height:auto}
|
||||
.callout{border-left:3px solid var(--accent);padding:.2rem 0 .2rem 1.2rem;color:var(--fg-2);max-width:66ch}
|
||||
.list{padding-left:1.2rem;margin:0;color:var(--fg-2)}
|
||||
.list li{margin:.35rem 0}
|
||||
.fuente{font-size:.8rem;color:var(--fg-3);margin-top:.8rem}
|
||||
.demo{border:1px solid var(--line);background:var(--bg-2);aspect-ratio:9/16;max-width:320px;display:grid;place-items:center;text-align:center;color:var(--fg-3);font-size:.85rem;padding:1rem}
|
||||
.demo span{display:block;font-family:var(--mono);font-size:.72rem;margin-top:.5rem}
|
||||
|
||||
/* Firma */
|
||||
.person{border-top:1px solid var(--line);padding-top:1rem}
|
||||
.person b{display:block;font-weight:600}
|
||||
.person em{display:block;font-style:normal;color:var(--fg-3);font-size:.85rem;margin-bottom:.5rem}
|
||||
.person p{color:var(--fg-2);font-size:.95rem}
|
||||
.steps{counter-reset:s;display:grid;gap:0;grid-template-columns:repeat(5,minmax(0,1fr))}
|
||||
@media (max-width:900px){.steps{grid-template-columns:1fr}}
|
||||
.steps div{border-top:1px solid var(--line);padding:1rem 1rem 1rem 0}
|
||||
.steps div::before{counter-increment:s;content:counter(s,decimal-leading-zero);font-family:var(--mono);color:var(--fg-3);font-size:.8rem;display:block;margin-bottom:.6rem}
|
||||
.steps b{display:block;font-weight:600;margin-bottom:.3rem}
|
||||
.steps p{font-size:.9rem;color:var(--fg-2)}
|
||||
.timeline{list-style:none;margin:0;padding:0;display:grid;gap:0}
|
||||
.timeline li{display:grid;grid-template-columns:5rem 1fr;gap:1rem;padding:.8rem 0;border-top:1px solid var(--line);font-size:.95rem}
|
||||
.timeline li span{font-family:var(--mono);color:var(--fg-3);font-size:.85rem;padding-top:.15rem}
|
||||
|
||||
/* Sistema */
|
||||
.swatches{display:flex;flex-wrap:wrap;gap:.8rem}
|
||||
.sw{width:120px}
|
||||
.sw i{display:block;height:56px;border:1px solid var(--line)}
|
||||
.sw b{display:block;font-size:.78rem;font-family:var(--mono);margin-top:.3rem;font-weight:500}
|
||||
.sw small{color:var(--fg-3);font-size:.72rem}
|
||||
.type-row{display:grid;grid-template-columns:8rem 1fr;gap:1rem;align-items:baseline;border-top:1px solid var(--line);padding:.9rem 0}
|
||||
.type-row small{font-family:var(--mono);color:var(--fg-3);font-size:.75rem}
|
||||
|
||||
footer{border-top:1px solid var(--line);padding-block:2.5rem;font-size:.85rem;color:var(--fg-3)}
|
||||
footer .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
|
||||
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
|
||||
</style>
|
||||
|
||||
<div class="draft">Borrador v0.2 · estructura, sistema de diseño y contenido de muestra · las fuentes son sustitutos libres de Bower y Graphik</div>
|
||||
|
||||
<header>
|
||||
<div class="wrap nav">
|
||||
<a class="brand" href="#inicio">Collina <small>Systems</small></a>
|
||||
<button class="burger" id="burger" aria-expanded="false" aria-controls="menu">Menú</button>
|
||||
<ul class="menu" id="menu">
|
||||
<li><a href="#inicio" data-route="inicio">Inicio</a></li>
|
||||
<li><a href="#proyectos" data-route="proyectos">Proyectos</a></li>
|
||||
<li><a href="#ingenieria" data-route="ingenieria">Ingeniería</a></li>
|
||||
<li><a href="#firma" data-route="firma">Firma</a></li>
|
||||
<li><a href="#contacto" data-route="contacto">Contacto</a></li>
|
||||
<li><a href="#sistema" data-route="sistema">Sistema de diseño</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- ============ INICIO ============ -->
|
||||
<main>
|
||||
<div class="view" id="v-inicio">
|
||||
<section class="hero"><div class="wrap">
|
||||
<p class="eyebrow">Sistemas para la operación</p>
|
||||
<h1 style="margin-top:1rem">Toda operación repetitiva puede ser un sistema. Nosotros lo construimos y lo operamos.</h1>
|
||||
<p class="lead">Ventas, inventario, cobranza, flotillas, contratos, estaciones de servicio, personal. Mapeamos cómo trabaja su equipo, lo convertimos en un sistema que corre solo y dejamos cada paso medido y documentado para que cualquiera pueda verificarlo.</p>
|
||||
<div class="hero-actions">
|
||||
<a class="link" href="#proyectos">Ver los seis sistemas en operación</a>
|
||||
<a class="link" href="#ingenieria">Cómo construimos</a>
|
||||
</div>
|
||||
<div class="video">Video de fondo, silencioso, 15 s en bucle: una operación real corriendo (un corte de ventas llegando por chat, un punto de venta cerrando turno).<span>MP4 + WebM ≤ 3 MB · portada estática en celular · respeta "reducir movimiento"</span></div>
|
||||
</div></section>
|
||||
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Cifras medidas, no estimadas</p>
|
||||
<div class="grid g4" style="margin-top:1.5rem">
|
||||
<div class="stat"><b class="mono">6</b><span>sistemas en producción en cuatro sectores distintos</span><small>Arrendamiento, gasolineras, comercio multisucursal, actuaría</small></div>
|
||||
<div class="stat"><b class="mono">< 30 s</b><span>de un mensaje en lenguaje natural a una cotización en PDF con amortización</span><small>Cotizador en producción desde marzo de 2026</small></div>
|
||||
<div class="stat"><b class="mono">4</b><span>estaciones de servicio monitoreadas por bomba, turno y sucursal en tiempo real</span><small>Puebla y Tlaxcala; solo monitorea, nunca mueve dinero</small></div>
|
||||
<div class="stat"><b class="mono">< 10 min</b><span>para un contrato de arrendamiento completo a partir de la cotización</span><small>Generador de contratos en producción desde abril de 2026</small></div>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<section><div class="wrap grid g-5-7">
|
||||
<div><p class="eyebrow">Proyectos</p><h2 style="margin-top:.8rem">Seis operaciones distintas, un mismo método.</h2></div>
|
||||
<div>
|
||||
<p class="lead">Un cotizador que responde por chat, un punto de venta multisucursal, un monitor de gasolineras, un generador de contratos. Operaciones muy diferentes, documentadas con la misma ficha: qué hacía el equipo antes, qué hace el sistema ahora, cómo está construido y qué se midió.</p>
|
||||
<p style="margin-top:1.5rem"><a class="link" href="#proyectos">Ver los seis proyectos</a></p>
|
||||
</div>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ PROYECTOS ============ -->
|
||||
<div class="view" id="v-proyectos">
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Proyectos</p>
|
||||
<h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Seis operaciones que hoy corren como sistema.</h1>
|
||||
<p class="lead" style="margin-top:1.2rem">Describimos la operación y el sector, no al cliente. Cada ficha dice qué está en producción y qué sigue en construcción.</p>
|
||||
<div style="margin-top:3rem">
|
||||
<article class="proj"><div class="sector">Grupo con varias sucursales<br>Comercio y servicios</div><div><h3><a href="#multisucursal">Plataforma operativa multisucursal</a></h3><p>Punto de venta, inventario, gastos, clientes, reportes, control de personal con checador por QR y portal, con módulos propios y decisiones de arquitectura documentadas (ADR).</p><p style="margin-top:.5rem"><a class="link" href="#multisucursal">Ficha técnica</a></p></div><span class="state prod">Producción</span></article>
|
||||
<article class="proj"><div class="sector">Arrendadora vehicular</div><div><h3>Cotizador por mensajería</h3><p>Convierte un mensaje en lenguaje natural en una o varias cotizaciones en PDF con tabla de amortización, en menos de 30 segundos.</p></div><span class="state prod">Producción</span></article>
|
||||
<article class="proj"><div class="sector">Arrendadora vehicular</div><div><h3>Gestor de pólizas de flotilla</h3><p>Consulta de pólizas, vencimientos, primas e incisos por chat; alertas de renovación.</p></div><span class="state prod">Producción</span></article>
|
||||
<article class="proj"><div class="sector">Arrendadora vehicular</div><div><h3>Generador de contratos</h3><p>Contratos de arrendamiento a partir de los datos de la cotización, en menos de 10 minutos, con control de versiones del clausulado.</p></div><span class="state prod">Producción</span></article>
|
||||
<article class="proj"><div class="sector">Grupo gasolinero<br>4 estaciones en Puebla y Tlaxcala</div><div><h3>Monitor de ventas en tiempo real</h3><p>Ventas, litros y transacciones por bomba, turno y estación, consultables por chat; solo monitorea, no mueve dinero. Kit de permisos y asignación de turnos.</p></div><span class="state prod">Producción</span></article>
|
||||
<article class="proj"><div class="sector">Despacho actuarial</div><div><h3>Extractor de tablas</h3><p>Convierte PDF pesados de tablas financieras en datos estructurados verificables.</p></div><span class="state prod">Producción</span></article>
|
||||
</div>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ FICHA MULTISUCURSAL ============ -->
|
||||
<div class="view" id="v-multisucursal">
|
||||
<section><div class="wrap">
|
||||
<div class="ficha-head">
|
||||
<div>
|
||||
<p class="eyebrow">Ficha técnica · Proyecto 01</p>
|
||||
<h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Plataforma operativa multisucursal</h1>
|
||||
<p class="lead" style="margin-top:1.2rem">Un solo sistema para vender, surtir, registrar gastos, controlar la asistencia del personal y reportar en todas las sucursales de un grupo de comercio y servicios. Cada sucursal opera por su cuenta; la dirección ve el grupo completo en un panel.</p>
|
||||
</div>
|
||||
<dl class="meta">
|
||||
<div><dt>Estado</dt><dd>Producción desde junio de 2026</dd></div>
|
||||
<div><dt>Sector</dt><dd>Comercio y servicios, varias sucursales</dd></div>
|
||||
<div><dt>Usuarios</dt><dd>Caja, encargados de sucursal, dirección</dd></div>
|
||||
<div><dt>Puntos de uso</dt><dd>Caja, kiosco con QR, panel, portal</dd></div>
|
||||
<div><dt>Decisiones</dt><dd>Documentadas como registros de arquitectura (ADR)</dd></div>
|
||||
</dl>
|
||||
</div>
|
||||
<nav class="toc" aria-label="Contenido de la ficha">
|
||||
<a href="#multisucursal">1 La operación</a><a href="#multisucursal">2 Qué hace</a><a href="#multisucursal">3 Arquitectura</a><a href="#multisucursal">4 Stack</a><a href="#multisucursal">5 Datos y seguridad</a><a href="#multisucursal">6 Métricas</a><a href="#multisucursal">7 Estado</a>
|
||||
</nav>
|
||||
|
||||
<div class="block"><span class="n">01</span><h2>La operación</h2>
|
||||
<div class="grid g-4-8">
|
||||
<p class="callout">Antes: cada sucursal llevaba su caja, su inventario y su lista de asistencia por separado, y la dirección consolidaba a mano al final del periodo.</p>
|
||||
<div><p class="muted">El sistema reúne las cinco operaciones diarias de una sucursal (vender, surtir, gastar, registrar la entrada del personal y cerrar el día) en una sola base, con reglas propias por sucursal y un panel que suma el grupo en tiempo real. Cada documento que sale (ticket, reporte, descarga) lleva la marca del negocio, no la del proveedor.</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">02</span><h2>Qué hace</h2>
|
||||
<div class="scroll"><table>
|
||||
<thead><tr><th>Módulo</th><th>Qué resuelve</th><th>Cómo</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>Punto de venta</td><td>Cobrar rápido y sin errores</td><td>Caja por sucursal con listas de precios propias y ticket con la marca del negocio</td></tr>
|
||||
<tr><td>Inventario</td><td>Saber qué hay y dónde</td><td>Existencias por sucursal, entradas y salidas trazables</td></tr>
|
||||
<tr><td>Gastos</td><td>Controlar lo que sale de caja</td><td>Registro por sucursal y categoría, con descarga para contabilidad</td></tr>
|
||||
<tr><td>Clientes</td><td>Conocer a quien compra</td><td>Historial de consumo por cliente</td></tr>
|
||||
<tr><td>Control de personal</td><td>Registrar asistencia sin papel</td><td>Checador por QR en un kiosco de la sucursal; horas por empleado</td></tr>
|
||||
<tr><td>Reportes</td><td>Cerrar el día y el periodo</td><td>Reportes y descargas en PDF y Excel por sucursal y por grupo</td></tr>
|
||||
<tr><td>Panel general</td><td>Ver el grupo completo</td><td>Indicadores de todas las sucursales en una pantalla</td></tr>
|
||||
<tr><td>Portal</td><td>Consultar fuera de la sucursal</td><td>Acceso web para encargados y dirección</td></tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">03</span><h2>Arquitectura</h2>
|
||||
<p class="muted" style="max-width:66ch;margin-bottom:1.5rem">Las sucursales usan tres puntos de entrada (caja, kiosco y portal) sobre una misma plataforma de módulos. Todo escribe en una sola base de datos, y el panel general lee de ella para mostrar el grupo.</p>
|
||||
<div class="diagram" role="img" aria-label="Diagrama: caja, kiosco y portal de cada sucursal entran a la plataforma de módulos, que escribe en una base de datos; el panel general lee del conjunto">
|
||||
<svg viewBox="0 0 760 300" xmlns="http://www.w3.org/2000/svg" font-family="Instrument Sans, system-ui, sans-serif" font-size="13">
|
||||
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto"><path d="M0 0L10 5L0 10z" fill="var(--fg-3)"/></marker></defs>
|
||||
<g fill="none" stroke="var(--fg-3)" stroke-width="1.2">
|
||||
<path d="M172 56H248" marker-end="url(#a)"/><path d="M172 136H248" marker-end="url(#a)"/><path d="M172 216H248" marker-end="url(#a)"/>
|
||||
<path d="M512 136H572" marker-end="url(#a)"/>
|
||||
<path d="M380 248V272H640V180" marker-end="url(#a)"/>
|
||||
</g>
|
||||
<g fill="none" stroke="var(--fg-3)" stroke-width="1.2">
|
||||
<rect x="24" y="32" width="148" height="48" rx="4"/><rect x="24" y="112" width="148" height="48" rx="4"/><rect x="24" y="192" width="148" height="48" rx="4"/>
|
||||
<rect x="248" y="24" width="264" height="224" rx="4" stroke="var(--accent)" stroke-width="2" fill="var(--accent)" fill-opacity=".06"/>
|
||||
<rect x="572" y="104" width="164" height="64" rx="4"/>
|
||||
</g>
|
||||
<g fill="var(--fg)" font-weight="600" text-anchor="middle">
|
||||
<text x="98" y="61">Caja</text><text x="98" y="141">Kiosco QR</text><text x="98" y="221">Portal web</text>
|
||||
<text x="380" y="50">Plataforma de módulos</text><text x="654" y="132">Base de datos</text><text x="510" y="290">Panel general lee el grupo completo</text>
|
||||
</g>
|
||||
<g fill="var(--fg-2)" font-size="12" text-anchor="middle">
|
||||
<text x="380" y="82">Punto de venta · Inventario</text><text x="380" y="106">Gastos · Clientes</text><text x="380" y="130">Control de personal</text><text x="380" y="154">Reportes y descargas</text>
|
||||
<text x="380" y="192" font-size="11">Reglas y precios por sucursal</text><text x="380" y="210" font-size="11">Marca del negocio en todo lo visible</text>
|
||||
<text x="654" y="150" font-size="11">una base, separada por sucursal</text>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<ul class="list" style="margin-top:1.5rem">
|
||||
<li><b>Una base, separada por sucursal.</b> Cada registro pertenece a una sucursal; las reglas de acceso impiden que una vea los datos de otra.</li>
|
||||
<li><b>Reglas por sucursal como dato.</b> Precios y configuración viven en tablas, no en el código.</li>
|
||||
<li><b>Marca del negocio en todo lo visible.</b> Pestañas, tickets, reportes y metadatos de los PDF llevan el nombre del negocio; el del proveedor no aparece en sus documentos.</li>
|
||||
<li><b>Decisiones documentadas.</b> Cada decisión de arquitectura queda escrita con su razón y su fecha, incluidas las que se revirtieron.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">04</span><h2>Stack</h2>
|
||||
<div class="scroll"><table>
|
||||
<thead><tr><th>Capa</th><th>Tecnología</th><th>Decisión</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>Lenguaje</td><td class="k">Python</td><td>Módulos propios por operación (venta, inventario, gastos, clientes, personal, reportes)</td></tr>
|
||||
<tr><td>Datos</td><td class="k">PostgreSQL</td><td>Una base para todo el grupo, separada por sucursal con reglas de acceso por registro</td></tr>
|
||||
<tr><td>Interfaz</td><td class="k">Web</td><td>Caja, kiosco y portal en el navegador; sin instalar nada en la sucursal</td></tr>
|
||||
<tr><td>Documentos</td><td class="k">PDF y Excel</td><td>Generados por el servidor con la marca y los metadatos del negocio</td></tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="fuente">Pendiente: completar versiones y servicios de infraestructura con el equipo antes de publicar.</p>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">05</span><h2>Datos y seguridad</h2>
|
||||
<ul class="list">
|
||||
<li>Roles por función: caja, encargado de sucursal, dirección. Los ajustes del sistema solo los toca el equipo técnico.</li>
|
||||
<li>Separación por sucursal aplicada en la base, no solo en la pantalla.</li>
|
||||
<li>Los códigos QR del checador dependen de una dirección pública fija, protegida contra cambios accidentales.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">06</span><h2>Métricas con método</h2>
|
||||
<div class="scroll"><table>
|
||||
<thead><tr><th>Medición</th><th>Resultado</th><th>Cómo se medirá</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>Tiempo de cierre de turno</td><td class="mono">por medir</td><td>Minutos entre el último ticket y el corte confirmado, antes y después del sistema</td></tr>
|
||||
<tr><td>Diferencias de inventario</td><td class="mono">por medir</td><td>Diferencia entre existencia registrada y conteo físico por sucursal y mes</td></tr>
|
||||
<tr><td>Registro de asistencia</td><td class="mono">por medir</td><td>Segundos por checada en el kiosco y porcentaje de checadas completas</td></tr>
|
||||
<tr><td>Consolidación del grupo</td><td class="mono">por medir</td><td>Tiempo para tener el resultado del grupo al cierre del día</td></tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="fuente">Ninguna cifra se publica sin su método y su periodo de medición.</p>
|
||||
</div>
|
||||
|
||||
<div class="block"><span class="n">07</span><h2>Estado</h2>
|
||||
<div class="grid g-4-8">
|
||||
<div class="demo">Captura animada de 10 s: un cobro en caja y la venta apareciendo en el panel general.<span>MP4 corto con carga diferida</span></div>
|
||||
<div>
|
||||
<p class="muted">En producción desde junio de 2026 en un grupo con varias sucursales. Los módulos de venta, inventario, gastos, clientes, personal y reportes están en uso diario.</p>
|
||||
<p style="margin-top:1.5rem"><a class="link" href="#contacto">Solicitar demostración técnica</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ INGENIERÍA ============ -->
|
||||
<div class="view" id="v-ingenieria">
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Ingeniería</p>
|
||||
<h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Sea cual sea la operación, cuatro reglas no se negocian.</h1>
|
||||
<p class="lead" style="margin-top:1.2rem">Un punto de venta y un cotizador por chat se parecen poco por fuera. Por dentro los construimos igual: la lógica del negocio como dato, un historial que no se borra, pruebas contra lo que el sistema sustituye y resultados que se explican solos.</p>
|
||||
<div class="grid g2" style="margin-top:3rem">
|
||||
<div><h3>La lógica del negocio es dato, no código</h3><p class="muted" style="margin-top:.6rem">Precios, tasas, turnos, umbrales y reglas viven en tablas versionadas. El código solo ejecuta. Cambiar una regla de operación es una versión nueva con fecha, autor y justificación, nunca un despliegue.</p></div>
|
||||
<div><h3>Nada se borra, nada se sobreescribe</h3><p class="muted" style="margin-top:.6rem">Historial append-only con vigencias. La capa de datos rechaza cualquier borrado; el audit trail rechaza cualquier edición. La reconstrucción a una fecha es una consulta, no un reporte.</p></div>
|
||||
<div><h3>Paridad verificable</h3><p class="muted" style="margin-top:.6rem">Cuando sustituimos una hoja de cálculo, la hoja se convierte en oráculo de una prueba automática. Cualquier desviación detiene la integración. Las diferencias aceptadas se listan por escrito.</p></div>
|
||||
<div><h3>Explicable por diseño</h3><p class="muted" style="margin-top:.6rem">Cada resultado guarda su desglose: de qué datos salió, qué regla aplicó, cuánto aportó cada parte. Un auditor, o el dueño del negocio, reconstruye el cálculo sin ejecutarlo.</p></div>
|
||||
</div>
|
||||
<div class="scroll" style="margin-top:3.5rem"><table>
|
||||
<thead><tr><th>Práctica</th><th>Cómo la aplicamos</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>Documentación de decisiones</td><td>Un brief como fuente de verdad versionada; registros de decisión de arquitectura (ADR) en cada proyecto</td></tr>
|
||||
<tr><td>Pruebas</td><td>Motor sin base de datos; API con cliente de prueba; migraciones probadas; humo de todas las pantallas</td></tr>
|
||||
<tr><td>Datos personales</td><td>Anonimización al migrar; prohibido cualquier dato real en fixtures, logs y repositorio; cifrado por campo en producción</td></tr>
|
||||
<tr><td>Operación</td><td>Imágenes reproducibles, migraciones al arrancar, verificación de salud, credenciales fuera del repositorio con procedimiento de rotación</td></tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ FIRMA ============ -->
|
||||
<div class="view" id="v-firma">
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Firma</p>
|
||||
<h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Ingenieros, actuarios y auditores que diseñan; sistemas que ejecutan.</h1>
|
||||
<p class="lead" style="margin-top:1.2rem">Collina Systems es el nombre comercial de Collina LLC (Wyoming, 2026) con operación en Puebla, México. Construimos y operamos sobre nuestra propia infraestructura.</p>
|
||||
<div class="grid g4" style="margin-top:3rem">
|
||||
<div class="person"><b>Fernando Dávila Oyarzabal</b><em>Director general</em><p>Ingeniero industrial. Normativas ISO y optimización de procesos en México y España.</p></div>
|
||||
<div class="person"><b>Jorge Emilio Juárez Castro</b><em>Director estratégico</em><p>Actuario. Matemáticas financieras y datos a gran escala; infraestructura y modelos de riesgo para arrendamiento automotriz.</p></div>
|
||||
<div class="person"><b>Betsie Alarcón Acosta</b><em>Directora de auditoría</em><p>Actuaria. Auditoría interna; jefa de auditoría interna de red internacional en una reaseguradora.</p></div>
|
||||
<div class="person"><b>Sergio Espejel Guevara</b><em>Asesor</em><p>Actuario. Estructuración de deuda y mercado bursátil.</p></div>
|
||||
</div>
|
||||
</div></section>
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Método</p>
|
||||
<h2 style="margin-top:.8rem;margin-bottom:2rem">Nada se construye sin diagnóstico ni sin aprobación.</h2>
|
||||
<div class="steps">
|
||||
<div><b>Descubrimiento</b><p>Mapeo de la operación con el equipo del cliente.</p></div>
|
||||
<div><b>Auditoría</b><p>Visita presencial; protección de datos, plan detallado y compromiso de cumplimiento por escrito.</p></div>
|
||||
<div><b>Propuesta</b><p>Especificación funcional como fuente de verdad; se aprueba antes de escribir código.</p></div>
|
||||
<div><b>Producción a prueba</b><p>15 días sobre la operación real, sin costo.</p></div>
|
||||
<div><b>Operación</b><p>Documentación, runbooks y mantenimiento continuo.</p></div>
|
||||
</div>
|
||||
</div></section>
|
||||
<section><div class="wrap grid g-4-8">
|
||||
<div><p class="eyebrow">Trayectoria</p><h2 style="margin-top:.8rem">2026</h2></div>
|
||||
<ul class="timeline">
|
||||
<li><span>Ene</span>Constitución de Collina LLC. Sistemas internos y cumplimiento legal.</li>
|
||||
<li><span>Feb</span>Herramientas propias de formularios, documentos y flujos sin código.</li>
|
||||
<li><span>Mar</span>Cotizador por mensajería para arrendamiento vehicular.</li>
|
||||
<li><span>Abr</span>Gestor de pólizas y generador de contratos para una arrendadora. Entrada al sector gasolinero: monitor de ventas, permisos y turnos.</li>
|
||||
<li><span>May</span>Tres estaciones adicionales en Puebla y Tlaxcala. Extractor de tablas para un despacho actuarial.</li>
|
||||
<li><span>Jun</span>Plataforma multisucursal: punto de venta, inventario, personal y reportes.</li>
|
||||
</ul>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ CONTACTO ============ -->
|
||||
<div class="view" id="v-contacto">
|
||||
<section><div class="wrap grid g-5-7">
|
||||
<div><p class="eyebrow">Contacto</p><h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Demostración técnica, no comercial.</h1></div>
|
||||
<div>
|
||||
<p class="lead">Una sesión de 45 minutos con el equipo que construyó el sistema: recorrido por la ficha técnica del proyecto que se parezca a su operación, acceso a una instancia de prueba y revisión de la arquitectura con su equipo técnico, su auditor o quien deba aprobar.</p>
|
||||
<dl class="meta" style="margin-top:2rem">
|
||||
<div><dt>Correo</dt><dd class="mono">contacto@collinasystems.com</dd></div>
|
||||
<div><dt>México</dt><dd>Vía Atlixcayotl 5413-28, Puebla · +52 56 5980 0365</dd></div>
|
||||
<div><dt>Estados Unidos</dt><dd>30 N Gould St, Sheridan, WY · +1 213 603 1680</dd></div>
|
||||
</dl>
|
||||
</div>
|
||||
</div></section>
|
||||
</div>
|
||||
|
||||
<!-- ============ SISTEMA DE DISEÑO ============ -->
|
||||
<div class="view" id="v-sistema">
|
||||
<section><div class="wrap">
|
||||
<p class="eyebrow">Sistema de diseño · referencia para Claude Code</p>
|
||||
<h1 style="margin-top:1rem;font-size:clamp(2rem,4.5vw,3.4rem)">Tokens, tipografía y componentes.</h1>
|
||||
<p class="lead" style="margin-top:1.2rem">Todo el sitio sale de estas variables. En el proyecto Astro viven en la configuración de Tailwind y en un solo archivo CSS de tokens.</p>
|
||||
<h3 style="margin-top:3rem">Color</h3>
|
||||
<div class="swatches" style="margin-top:1rem">
|
||||
<div class="sw"><i style="background:var(--bg)"></i><b>--bg</b><small>fondo</small></div>
|
||||
<div class="sw"><i style="background:var(--bg-2)"></i><b>--bg-2</b><small>fondo secundario</small></div>
|
||||
<div class="sw"><i style="background:var(--fg)"></i><b>--fg</b><small>texto</small></div>
|
||||
<div class="sw"><i style="background:var(--fg-2)"></i><b>--fg-2</b><small>texto secundario</small></div>
|
||||
<div class="sw"><i style="background:var(--line)"></i><b>--line</b><small>líneas</small></div>
|
||||
<div class="sw"><i style="background:var(--accent)"></i><b>--accent</b><small>único acento</small></div>
|
||||
<div class="sw"><i style="background:var(--ok)"></i><b>--ok</b><small>estado positivo</small></div>
|
||||
<div class="sw"><i style="background:var(--warn)"></i><b>--warn</b><small>estado en curso</small></div>
|
||||
</div>
|
||||
<h3 style="margin-top:3rem">Tipografía</h3>
|
||||
<div style="margin-top:1rem">
|
||||
<div class="type-row"><small>display / h1</small><div style="font-family:var(--display);font-weight:700;font-size:2.4rem;line-height:1.05">Serif de alto contraste</div></div>
|
||||
<div class="type-row"><small>display / h2</small><div style="font-family:var(--display);font-weight:700;font-size:1.8rem">Títulos de sección</div></div>
|
||||
<div class="type-row"><small>body</small><div>Grotesca neutra para cuerpo, 17 px, interlineado 1.55, columnas de 62 a 66 caracteres.</div></div>
|
||||
<div class="type-row"><small>eyebrow</small><div class="eyebrow">Etiqueta en mayúsculas con tracking</div></div>
|
||||
<div class="type-row"><small>mono / cifras</small><div class="mono">< 30 s · < 10 min · 4 estaciones</div></div>
|
||||
</div>
|
||||
<p class="muted" style="margin-top:1.5rem;max-width:66ch">Sustitutos libres: Fraunces (en lugar de Bower) e Instrument Sans (en lugar de Graphik), ambas con licencia abierta y alojadas en el servidor propio en el sitio final; JetBrains Mono para cifras y código. Si más adelante se compran Bower y Graphik, se cambian dos tokens.</p>
|
||||
<h3 style="margin-top:3rem">Reglas de la retícula</h3>
|
||||
<ul class="list" style="margin-top:1rem"><li>Ancho máximo 1180 px; 12 columnas; proporciones 5/7 y 4/8 para texto frente a contenido.</li><li>Una sola columna por debajo de 560 px; dos entre 560 y 860.</li><li>Separación entre secciones con una línea de 1 px, nunca con fondos de color.</li><li>Un solo acento por pantalla. Los estados usan sus propios tokens.</li><li>Tarjetas sólo para elementos que se pueden abrir; el resto se separa con líneas y espacio.</li></ul>
|
||||
<h3 style="margin-top:3rem">Video</h3>
|
||||
<ul class="list" style="margin-top:1rem"><li>Fondo: MP4 y WebM propios, ≤ 3 MB, 10–20 s, silencioso, con portada; en celular sólo la portada o versión de baja resolución.</li><li>Demostraciones: alojadas en streaming, incrustadas con carga diferida, reproducen sólo al pulsar.</li><li>Capturas animadas: MP4 corto en lugar de GIF, carga al entrar en pantalla.</li><li>Nunca audio automático; respetar "reducir movimiento"; un video de fondo por página; presupuesto de 1.5 MB en la primera carga sin contar video.</li></ul>
|
||||
<h3 style="margin-top:3rem">Chats de demostración</h3>
|
||||
<p class="muted" style="margin-top:1rem;max-width:66ch">Los chats existentes en HTML pasan a un componente único que recibe el guion como datos. Arrancan cuando entran en pantalla y se pausan al salir; fuentes propias; dentro de la ficha acompañan la documentación técnica, no la sustituyen.</p>
|
||||
</div></section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer><div class="wrap"><span>Collina Systems · 2026</span><span>Borrador para revisión interna</span></div></footer>
|
||||
|
||||
<script>
|
||||
(function(){
|
||||
var routes=['inicio','proyectos','multisucursal','ingenieria','firma','contacto','sistema'];
|
||||
var menu=document.getElementById('menu'), burger=document.getElementById('burger');
|
||||
function show(){
|
||||
var h=(location.hash||'#inicio').slice(1);
|
||||
if(routes.indexOf(h)<0) h='inicio';
|
||||
routes.forEach(function(r){ var v=document.getElementById('v-'+r); if(v) v.classList.toggle('active', r===h); });
|
||||
document.querySelectorAll('.menu a').forEach(function(a){
|
||||
var r=a.getAttribute('data-route'); var cur=(r===h)||(h==='multisucursal'&&r==='proyectos');
|
||||
if(cur) a.setAttribute('aria-current','page'); else a.removeAttribute('aria-current');
|
||||
});
|
||||
menu.classList.remove('open'); burger.setAttribute('aria-expanded','false');
|
||||
window.scrollTo({top:0});
|
||||
}
|
||||
burger.addEventListener('click',function(){ var o=menu.classList.toggle('open'); burger.setAttribute('aria-expanded',o?'true':'false'); });
|
||||
window.addEventListener('hashchange',show); show();
|
||||
})();
|
||||
</script>
|
||||
@@ -0,0 +1,447 @@
|
||||
<!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;width:100%;display:flex;flex-direction:column;align-items:flex-start;
|
||||
padding:0;gap:14px;}
|
||||
|
||||
.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-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:flex-start;width:100%;max-width:390px;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);}
|
||||
#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);}
|
||||
.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">
|
||||
<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 restartBtn = document.getElementById('restartBtn');
|
||||
var playBtn = document.getElementById('playBtn');
|
||||
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 updateBtn(){ if(playBtn) playBtn.textContent = auto ? '⏸ Pausar' : '▶ Reproducir demo'; }
|
||||
|
||||
function stopAuto(){
|
||||
if(!auto) return;
|
||||
auto=false; autoToken++; updateBtn();
|
||||
removeTyping(); setTyping(false);
|
||||
setHint('✋ Modo manual — toca un botón o escribe tu pregunta');
|
||||
}
|
||||
|
||||
async function autoplay(){
|
||||
var token=++autoToken; auto=true; busy=false; updateBtn();
|
||||
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(playBtn) playBtn.addEventListener('click', function(){ if(auto) stopAuto(); else 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 controls=document.querySelector('.controls');
|
||||
var w=wrap.clientWidth;
|
||||
var reserve=(controls&&controls.offsetHeight?controls.offsetHeight:46)+20;
|
||||
var availH=window.innerHeight-reserve;
|
||||
var s=Math.min(1,(w-2)/390,availH/844);
|
||||
phone.style.transformOrigin='top left';
|
||||
phone.style.transform='scale('+s+')';
|
||||
wrap.style.height=(844*s+4)+'px';
|
||||
}
|
||||
window.addEventListener('resize', fit);
|
||||
|
||||
window.addEventListener('load', function(){ fit(); tickClock(); setInterval(tickClock,30000); autoplay(); });
|
||||
fit();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,350 @@
|
||||
<!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/EADoQAAEDAwMCBQMCBAUDBQAAAAECAwQABREGEiEHMQgTIkFRFDJhFXEjQm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tqCgSDg8j4II/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 controls=document.querySelector('.controls');
|
||||
var w=wrap.clientWidth;
|
||||
var reserve=(controls&&controls.offsetHeight?controls.offsetHeight:46)+20;
|
||||
var availH=window.innerHeight-reserve;
|
||||
var s=Math.min(1, (w-2)/390, availH/844);
|
||||
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>
|
||||
@@ -0,0 +1,407 @@
|
||||
<!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;width:100%;display:flex;flex-direction:column;align-items:flex-start;
|
||||
padding:0;gap:14px;}
|
||||
|
||||
.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;}
|
||||
|
||||
.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: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);}
|
||||
</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/Awa8S39W57jgWtNAGjb89L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ZZ4b3PnVReMDPwpQSHMH2l64XVvsOBRNsx5VwO6VAPAKhdSqZCDBYW3FylZzonz798qMAlK5+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+BU8iACEjSog2wkRYiDsSiEQjcYgQ2YgUIOVIPdKCdCI9yD1EgrxGPmNwGBqGgWFiHDA+mDAMB5OO2YgpwlRhjmLaMJcx9zBDmAnMdywVq441xdpjfbGR2HhsFjYfW449jD2NvYJ9gB3BfsThcEo4Q5wtzgcXhUvErccV4fbjWnFduD7cMG4Sj8er4E3xjvhAPBsvwufjK/HH8Bfwd/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5Hn+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 controls=document.querySelector('.controls');
|
||||
var w=wrap.clientWidth;
|
||||
var reserve=(controls&&controls.offsetHeight?controls.offsetHeight:46)+20;
|
||||
var availH=window.innerHeight-reserve;
|
||||
var s=Math.min(1,(w-2)/390,availH/844);
|
||||
phone.style.transformOrigin='top left';
|
||||
phone.style.transform='scale('+s+')';
|
||||
wrap.style.height=(844*s+4)+'px';
|
||||
}
|
||||
window.addEventListener('resize',fit);
|
||||
window.addEventListener('load',function(){ fit(); autoplay(); });
|
||||
fit();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,37 @@
|
||||
// Capturas de pantalla y comprobación de scroll horizontal sobre dist/ (astro preview).
|
||||
// Uso: node scripts/capturas.mjs <raíz> <carpeta-salida> "/,/proyectos"
|
||||
import { chromium } from 'playwright';
|
||||
import { spawn } from 'node:child_process';
|
||||
import { setTimeout as sleep } from 'node:timers/promises';
|
||||
import { mkdirSync } from 'node:fs';
|
||||
|
||||
const raiz = process.argv[2];
|
||||
const salida = process.argv[3];
|
||||
const rutas = (process.argv[4] || '/').split(',');
|
||||
mkdirSync(salida, { recursive: true });
|
||||
|
||||
const srv = spawn('npx', ['astro', 'preview', '--port', '4321'], { cwd: raiz, stdio: 'ignore' });
|
||||
await sleep(2500);
|
||||
const browser = await chromium.launch();
|
||||
try {
|
||||
for (const ruta of rutas) {
|
||||
for (const [ancho, alto] of [[320, 700], [360, 780], [768, 900], [1280, 900], [1920, 1000]]) {
|
||||
for (const esquema of ['light', 'dark']) {
|
||||
const ctx = await browser.newContext({ viewport: { width: ancho, height: alto }, colorScheme: esquema, deviceScaleFactor: 1 });
|
||||
const page = await ctx.newPage();
|
||||
const errores = [];
|
||||
page.on('console', (m) => { if (m.type() === 'error') errores.push(m.text()); });
|
||||
page.on('requestfailed', (r) => errores.push('request failed: ' + r.url()));
|
||||
await page.goto('http://localhost:4321' + ruta, { waitUntil: 'networkidle' });
|
||||
const sw = await page.evaluate(() => [document.documentElement.scrollWidth, document.documentElement.clientWidth]);
|
||||
const nombre = ruta.replace(/\//g, '_').replace(/^_$/, 'inicio').replace(/^_/, '');
|
||||
if ([360, 1280].includes(ancho)) await page.screenshot({ path: `${salida}/${nombre}-${ancho}-${esquema}.png`, fullPage: true });
|
||||
console.log(`${ruta} ${ancho}px ${esquema}: scrollWidth=${sw[0]} clientWidth=${sw[1]} ${sw[0] > sw[1] ? 'SCROLL HORIZONTAL' : 'ok'} ${errores.length ? 'ERRORES: ' + errores.join(' | ') : ''}`);
|
||||
await ctx.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
await browser.close();
|
||||
srv.kill();
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
import { SITIO } from '../lib/sitio';
|
||||
---
|
||||
|
||||
<footer class="pie">
|
||||
<div class="wrap">
|
||||
<div>
|
||||
<span>{SITIO.nombre} · {SITIO.anio}</span>
|
||||
<span class="sep" aria-hidden="true">·</span>
|
||||
<span>Nombre comercial de Collina LLC (Wyoming), con operación en Puebla, México</span>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="/curriculum">Currículum empresarial</a></li>
|
||||
<li><a href="/contacto">Contacto</a></li>
|
||||
<li><a href={`mailto:${SITIO.correo}`} class="mono">{SITIO.correo}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.pie {
|
||||
border-top: 1px solid var(--line);
|
||||
padding-block: 2.5rem;
|
||||
padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
|
||||
font-size: 0.85rem;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.pie .wrap {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.sep {
|
||||
margin-inline: 0.5rem;
|
||||
}
|
||||
ul {
|
||||
display: flex;
|
||||
gap: 1.4rem;
|
||||
flex-wrap: wrap;
|
||||
list-style: none;
|
||||
}
|
||||
.pie a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,127 @@
|
||||
---
|
||||
import { NAV, SITIO, esActual } from '../lib/sitio';
|
||||
const ruta = Astro.url.pathname;
|
||||
---
|
||||
|
||||
<header class="cabecera">
|
||||
<div class="wrap nav">
|
||||
<a class="marca" href="/" aria-label={`${SITIO.nombre}, inicio`}>Collina <small>Systems</small></a>
|
||||
<button class="burger" type="button" aria-expanded="false" aria-controls="menu" data-burger>Menú</button>
|
||||
<nav aria-label="Principal">
|
||||
<ul class="menu" id="menu" data-menu>
|
||||
{
|
||||
NAV.map((item) => (
|
||||
<li>
|
||||
<a href={item.href} aria-current={esActual(item.href, ruta) ? 'page' : undefined}>
|
||||
{item.texto}
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
.cabecera {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
}
|
||||
.nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding-block: 0.9rem;
|
||||
position: relative;
|
||||
}
|
||||
.marca {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
font-size: 1.3rem;
|
||||
letter-spacing: 0.02em;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.5rem;
|
||||
font-variation-settings: 'opsz' 48;
|
||||
}
|
||||
.marca small {
|
||||
font-family: var(--font-body);
|
||||
font-weight: 600;
|
||||
font-size: 0.62rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.menu {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.menu a[aria-current='page'] {
|
||||
color: var(--accent);
|
||||
box-shadow: inset 0 -2px 0 var(--accent);
|
||||
}
|
||||
.burger {
|
||||
display: none;
|
||||
background: none;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.7rem;
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
@media (max-width: 759px) {
|
||||
.menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--line);
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 0.5rem var(--gutter-r) 0.5rem var(--gutter-l);
|
||||
}
|
||||
.menu.abierto {
|
||||
display: flex;
|
||||
}
|
||||
.menu li a {
|
||||
display: block;
|
||||
padding: 0.75rem 0;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.burger {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
const boton = document.querySelector<HTMLButtonElement>('[data-burger]');
|
||||
const menu = document.querySelector<HTMLElement>('[data-menu]');
|
||||
if (boton && menu) {
|
||||
const fijar = (abierto: boolean) => {
|
||||
menu.classList.toggle('abierto', abierto);
|
||||
boton.setAttribute('aria-expanded', String(abierto));
|
||||
};
|
||||
boton.addEventListener('click', () => fijar(!menu.classList.contains('abierto')));
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape' && menu.classList.contains('abierto')) {
|
||||
fijar(false);
|
||||
boton.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
/* Cifra con método. Nunca se muestra un valor sin su método; un valor null se
|
||||
presenta como "por medir". */
|
||||
interface Props {
|
||||
valor: string | null;
|
||||
texto: string;
|
||||
metodo: string;
|
||||
periodo?: string | null;
|
||||
}
|
||||
const { valor, texto, metodo, periodo = null } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="stat">
|
||||
<strong class="mono">{valor ?? 'por medir'}</strong>
|
||||
<span>{texto}</span>
|
||||
<small>{metodo}{periodo && <> · {periodo}</>}</small>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.stat {
|
||||
border-top: 2px solid var(--fg);
|
||||
padding-top: 1rem;
|
||||
}
|
||||
.stat strong {
|
||||
display: block;
|
||||
font-family: var(--font-mono);
|
||||
font-size: clamp(2rem, 4vw, 3rem);
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.stat span {
|
||||
display: block;
|
||||
margin-top: 0.5rem;
|
||||
color: var(--fg-2);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.stat small {
|
||||
display: block;
|
||||
margin-top: 0.35rem;
|
||||
color: var(--fg-3);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,186 @@
|
||||
---
|
||||
/* Componente único de video. Reglas incorporadas (BRIEF §8):
|
||||
- fondo: silencioso, en bucle, con poster; solo poster en celular, con ahorro de
|
||||
datos o con prefers-reduced-motion; se reproduce solo mientras está en pantalla.
|
||||
- captura: MP4 corto en lugar de GIF; carga diferida al entrar en pantalla;
|
||||
controles visibles; sin autoplay con prefers-reduced-motion.
|
||||
- externo: demostración alojada fuera; solo se carga el iframe al pulsar.
|
||||
Nunca audio automático. Una sola instancia de `fondo` por página. */
|
||||
interface Props {
|
||||
modo: 'fondo' | 'captura' | 'externo';
|
||||
/** Imagen fija que se muestra antes del video o en su lugar. */
|
||||
poster: string;
|
||||
/** Descripción del contenido para lectores de pantalla (vacía si es decorativo). */
|
||||
descripcion: string;
|
||||
mp4?: string;
|
||||
webm?: string;
|
||||
/** URL del reproductor externo (modo externo). */
|
||||
src?: string;
|
||||
/** Relación de aspecto CSS, p. ej. "21 / 9". */
|
||||
aspecto?: string;
|
||||
/** Texto que acompaña al poster mientras no hay video real. */
|
||||
nota?: string;
|
||||
}
|
||||
const {
|
||||
modo,
|
||||
poster,
|
||||
descripcion,
|
||||
mp4,
|
||||
webm,
|
||||
src,
|
||||
aspecto = modo === 'captura' ? '9 / 16' : '16 / 9',
|
||||
nota,
|
||||
} = Astro.props;
|
||||
const decorativo = descripcion.trim() === '';
|
||||
const hayFuente = Boolean(mp4 || webm);
|
||||
---
|
||||
|
||||
<figure class:list={['video', `video--${modo}`]} style={`aspect-ratio:${aspecto}`}>
|
||||
{
|
||||
modo === 'externo' ? (
|
||||
<div class="externo" data-video="externo" data-src={src}>
|
||||
<img src={poster} alt={descripcion} loading="lazy" decoding="async" />
|
||||
<button type="button" class="reproducir" data-reproducir>
|
||||
Reproducir demostración
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<video
|
||||
data-video={modo}
|
||||
data-mp4={mp4}
|
||||
data-webm={webm}
|
||||
poster={poster}
|
||||
muted
|
||||
playsinline
|
||||
loop
|
||||
preload="none"
|
||||
disablepictureinpicture
|
||||
aria-hidden={decorativo ? 'true' : undefined}
|
||||
aria-label={decorativo ? undefined : descripcion}
|
||||
controls={modo === 'captura' && hayFuente}
|
||||
tabindex={decorativo ? -1 : undefined}
|
||||
/>
|
||||
)
|
||||
}
|
||||
{nota && <figcaption class="nota mono">{nota}</figcaption>}
|
||||
</figure>
|
||||
|
||||
<style>
|
||||
.video {
|
||||
margin: 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.video--captura {
|
||||
max-width: 320px;
|
||||
}
|
||||
.video video,
|
||||
.video img,
|
||||
.video :global(iframe) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border: 0;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
.externo {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
.reproducir {
|
||||
position: absolute;
|
||||
inset: auto auto 1rem 1rem;
|
||||
background: var(--ink);
|
||||
color: var(--ink-fg);
|
||||
border: 0;
|
||||
padding: 0.6rem 1rem;
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nota {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0.4rem 0.8rem;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 0.72rem;
|
||||
color: var(--fg-3);
|
||||
background: color-mix(in srgb, var(--bg) 85%, transparent);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
type Conexion = { saveData?: boolean };
|
||||
const reduceMovimiento = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
const ahorroDatos = Boolean((navigator as Navigator & { connection?: Conexion }).connection?.saveData);
|
||||
const esCelular = matchMedia('(max-width: 759px)').matches;
|
||||
|
||||
function montarFuentes(video: HTMLVideoElement): boolean {
|
||||
if (video.dataset.montado === '1') return true;
|
||||
const { mp4, webm } = video.dataset;
|
||||
if (!mp4 && !webm) return false;
|
||||
for (const [src, type] of [
|
||||
[webm, 'video/webm'],
|
||||
[mp4, 'video/mp4'],
|
||||
] as const) {
|
||||
if (!src) continue;
|
||||
const s = document.createElement('source');
|
||||
s.src = src;
|
||||
s.type = type;
|
||||
video.append(s);
|
||||
}
|
||||
video.dataset.montado = '1';
|
||||
video.load();
|
||||
return true;
|
||||
}
|
||||
|
||||
const observador = new IntersectionObserver(
|
||||
(entradas) => {
|
||||
for (const e of entradas) {
|
||||
const video = e.target as HTMLVideoElement;
|
||||
if (e.isIntersecting) {
|
||||
if (!montarFuentes(video)) continue;
|
||||
if (!reduceMovimiento) video.play().catch(() => {});
|
||||
} else if (!video.paused) {
|
||||
video.pause();
|
||||
}
|
||||
}
|
||||
},
|
||||
{ threshold: 0.25 },
|
||||
);
|
||||
|
||||
for (const video of document.querySelectorAll<HTMLVideoElement>('video[data-video="fondo"]')) {
|
||||
// En celular, con ahorro de datos o sin movimiento: solo el poster.
|
||||
if (esCelular || ahorroDatos || reduceMovimiento) continue;
|
||||
observador.observe(video);
|
||||
}
|
||||
for (const video of document.querySelectorAll<HTMLVideoElement>('video[data-video="captura"]')) {
|
||||
if (ahorroDatos) continue;
|
||||
observador.observe(video);
|
||||
}
|
||||
|
||||
for (const caja of document.querySelectorAll<HTMLElement>('[data-video="externo"]')) {
|
||||
caja.querySelector('[data-reproducir]')?.addEventListener('click', () => {
|
||||
const src = caja.dataset.src;
|
||||
if (!src) return;
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.src = src;
|
||||
iframe.title = caja.querySelector('img')?.alt || 'Demostración en video';
|
||||
iframe.allow = 'fullscreen; picture-in-picture';
|
||||
iframe.setAttribute('allowfullscreen', '');
|
||||
iframe.loading = 'lazy';
|
||||
caja.replaceChildren(iframe);
|
||||
iframe.focus();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,70 @@
|
||||
import { defineCollection } from 'astro:content';
|
||||
import { glob } from 'astro/loaders';
|
||||
import { z } from 'astro/zod';
|
||||
|
||||
/* Métrica con método. `metodo` es obligatorio siempre: una cifra sin método no
|
||||
se publica. `resultado` null se muestra como "por medir". */
|
||||
const metrica = z
|
||||
.object({
|
||||
medicion: z.string().min(1),
|
||||
resultado: z.string().min(1).nullable(),
|
||||
metodo: z.string().min(1, 'Toda métrica necesita su método de medición'),
|
||||
periodo: z.string().min(1).nullable(),
|
||||
})
|
||||
.refine((m) => m.resultado === null || m.metodo.trim().length > 0, {
|
||||
message: 'Una métrica con resultado debe traer su método',
|
||||
});
|
||||
|
||||
const proyectos = defineCollection({
|
||||
loader: glob({ pattern: '**/*.md', base: './src/content/proyectos' }),
|
||||
schema: z.object({
|
||||
titulo: z.string().min(1),
|
||||
slug: z.string().regex(/^[a-z0-9-]+$/),
|
||||
orden: z.number().int().positive(),
|
||||
sector: z.string().min(1),
|
||||
estado: z.enum(['produccion', 'piloto']),
|
||||
desde: z.coerce.date(),
|
||||
resumen: z.string().min(1),
|
||||
operacion_antes: z.string().min(1),
|
||||
operacion_ahora: z.string().min(1),
|
||||
modulos: z
|
||||
.array(z.object({ nombre: z.string(), resuelve: z.string(), como: z.string() }))
|
||||
.min(1),
|
||||
arquitectura: z.object({
|
||||
diagrama: z.string().min(1),
|
||||
principios: z.array(z.object({ titulo: z.string(), texto: z.string() })).length(4),
|
||||
}),
|
||||
stack: z.array(z.object({ capa: z.string(), tecnologia: z.string(), decision: z.string() })).min(1),
|
||||
seguridad: z.array(z.string().min(1)).min(1),
|
||||
metricas: z.array(metrica).min(1),
|
||||
demo: z.object({
|
||||
tipo: z.enum(['chat', 'video', 'captura']),
|
||||
fuente: z.string().min(1),
|
||||
}),
|
||||
video_portada: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
const equipo = defineCollection({
|
||||
loader: glob({ pattern: '**/*.md', base: './src/content/equipo' }),
|
||||
schema: z.object({
|
||||
nombre: z.string().min(1),
|
||||
cargo: z.string().min(1),
|
||||
orden: z.number().int().positive(),
|
||||
profesion: z.string().min(1),
|
||||
}),
|
||||
});
|
||||
|
||||
/* Cifras de la página de inicio. Misma regla: método obligatorio. */
|
||||
const cifras = defineCollection({
|
||||
loader: glob({ pattern: '**/*.yaml', base: './src/content/cifras' }),
|
||||
schema: z.object({
|
||||
orden: z.number().int().positive(),
|
||||
valor: z.string().min(1).nullable(),
|
||||
texto: z.string().min(1),
|
||||
metodo: z.string().min(1),
|
||||
periodo: z.string().min(1).nullable(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { proyectos, equipo, cifras };
|
||||
@@ -0,0 +1,7 @@
|
||||
# TODO: cuando exista la colección de proyectos, este valor se calcula en el build
|
||||
# (conteo de fichas con estado "produccion") en lugar de escribirse aquí.
|
||||
orden: 1
|
||||
valor: '6'
|
||||
texto: sistemas en producción en cuatro sectores distintos
|
||||
metodo: Conteo de fichas técnicas publicadas con estado "producción" (arrendamiento, gasolineras, comercio multisucursal, actuaría)
|
||||
periodo: corte de junio de 2026
|
||||
@@ -0,0 +1,6 @@
|
||||
# TODO: confirmar con el equipo el método exacto (registro del servidor) y el periodo medido.
|
||||
orden: 2
|
||||
valor: '< 30 s'
|
||||
texto: de un mensaje en lenguaje natural a una cotización en PDF con amortización
|
||||
metodo: Tiempo entre la recepción del mensaje y el envío del PDF, según el registro del servidor del cotizador
|
||||
periodo: en producción desde marzo de 2026
|
||||
@@ -0,0 +1,5 @@
|
||||
orden: 3
|
||||
valor: '4'
|
||||
texto: estaciones de servicio monitoreadas por bomba, turno y sucursal en tiempo real
|
||||
metodo: Estaciones con lectura activa en el monitor de ventas, en Puebla y Tlaxcala; el sistema solo monitorea, nunca mueve dinero
|
||||
periodo: desde mayo de 2026
|
||||
@@ -0,0 +1,6 @@
|
||||
# TODO: confirmar con el equipo el método exacto y el periodo medido.
|
||||
orden: 4
|
||||
valor: '< 10 min'
|
||||
texto: para un contrato de arrendamiento completo a partir de la cotización
|
||||
metodo: Tiempo entre la cotización aprobada y el contrato generado, según el registro del generador de contratos
|
||||
periodo: en producción desde abril de 2026
|
||||
@@ -0,0 +1,82 @@
|
||||
---
|
||||
import '../styles/global.css';
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import { SITIO } from '../lib/sitio';
|
||||
|
||||
interface Props {
|
||||
/** Título de la página, sin el nombre del sitio. */
|
||||
titulo: string;
|
||||
descripcion: string;
|
||||
/** Ruta absoluta o relativa de la imagen Open Graph. */
|
||||
imagen?: string;
|
||||
tipo?: 'website' | 'article';
|
||||
noindex?: boolean;
|
||||
}
|
||||
|
||||
const { titulo, descripcion, imagen = SITIO.ogImagen, tipo = 'website', noindex = false } = Astro.props;
|
||||
const esInicio = Astro.url.pathname === '/';
|
||||
const tituloCompleto = esInicio ? `${SITIO.nombre} · Sistemas para la operación` : `${titulo} · ${SITIO.nombre}`;
|
||||
const canonical = new URL(Astro.url.pathname, Astro.site ?? SITIO.dominio);
|
||||
const imagenAbs = new URL(imagen, Astro.site ?? SITIO.dominio);
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<title>{tituloCompleto}</title>
|
||||
<meta name="description" content={descripcion} />
|
||||
<link rel="canonical" href={canonical} />
|
||||
{noindex && <meta name="robots" content="noindex" />}
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c1420" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
|
||||
<meta property="og:site_name" content={SITIO.nombre} />
|
||||
<meta property="og:type" content={tipo} />
|
||||
<meta property="og:title" content={tituloCompleto} />
|
||||
<meta property="og:description" content={descripcion} />
|
||||
<meta property="og:url" content={canonical} />
|
||||
<meta property="og:image" content={imagenAbs} />
|
||||
<meta property="og:locale" content="es_MX" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content={tituloCompleto} />
|
||||
<meta name="twitter:description" content={descripcion} />
|
||||
<meta name="twitter:image" content={imagenAbs} />
|
||||
|
||||
<link rel="preload" href="/fonts/fraunces-latin-opsz-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<link rel="preload" href="/fonts/instrument-sans-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="saltar" href="#contenido">Ir al contenido</a>
|
||||
<Header />
|
||||
<main id="contenido" tabindex="-1">
|
||||
<slot />
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
.saltar {
|
||||
position: absolute;
|
||||
left: var(--gutter-l);
|
||||
top: -100px;
|
||||
z-index: 20;
|
||||
background: var(--ink);
|
||||
color: var(--ink-fg);
|
||||
padding: 0.6rem 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.saltar:focus-visible {
|
||||
top: 0.5rem;
|
||||
}
|
||||
main:focus {
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Datos fijos del sitio. El contenido editorial vive en src/content. */
|
||||
export const SITIO = {
|
||||
nombre: 'Collina Systems',
|
||||
dominio: 'https://collinasystems.com.mx',
|
||||
descripcion:
|
||||
'Sistemas para la operación de una empresa: ventas, inventario, cobranza, flotillas, contratos, estaciones de servicio y personal. Construidos, medidos y documentados.',
|
||||
correo: 'contacto@collinasystems.com',
|
||||
ogImagen: '/img/og.png',
|
||||
anio: 2026,
|
||||
} as const;
|
||||
|
||||
export const NAV = [
|
||||
{ href: '/', texto: 'Inicio' },
|
||||
{ href: '/proyectos', texto: 'Proyectos' },
|
||||
{ href: '/ingenieria', texto: 'Ingeniería' },
|
||||
{ href: '/firma', texto: 'Firma' },
|
||||
{ href: '/contacto', texto: 'Contacto' },
|
||||
] as const;
|
||||
|
||||
/** Devuelve true si `href` corresponde a la ruta actual (o a una subruta). */
|
||||
export function esActual(href: string, pathname: string): boolean {
|
||||
const ruta = pathname.replace(/\/+$/, '') || '/';
|
||||
if (href === '/') return ruta === '/';
|
||||
return ruta === href || ruta.startsWith(href + '/');
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Stat from '../components/Stat.astro';
|
||||
import Video from '../components/Video.astro';
|
||||
import { SITIO } from '../lib/sitio';
|
||||
|
||||
const cifras = (await getCollection('cifras')).sort((a, b) => a.data.orden - b.data.orden);
|
||||
---
|
||||
|
||||
<Base titulo="Inicio" descripcion={SITIO.descripcion}>
|
||||
<section class="section hero">
|
||||
<div class="wrap">
|
||||
<p class="eyebrow">Sistemas para la operación</p>
|
||||
<h1>Toda operación repetitiva puede ser un sistema. Nosotros lo construimos y lo operamos.</h1>
|
||||
<p class="lead">
|
||||
Ventas, inventario, cobranza, flotillas, contratos, estaciones de servicio, personal. Mapeamos cómo trabaja
|
||||
su equipo, lo convertimos en un sistema que corre solo y dejamos cada paso medido y documentado para que
|
||||
cualquiera pueda verificarlo.
|
||||
</p>
|
||||
<div class="acciones">
|
||||
<a class="link" href="/proyectos">Ver los sistemas en operación</a>
|
||||
<a class="link" href="/ingenieria">Cómo construimos</a>
|
||||
</div>
|
||||
<div class="video-hero">
|
||||
<Video
|
||||
modo="fondo"
|
||||
poster="/img/poster-inicio.svg"
|
||||
descripcion=""
|
||||
aspecto="21 / 9"
|
||||
nota="Video de fondo, silencioso, 10–20 s en bucle: una operación real corriendo. MP4 + WebM ≤ 3 MB. Poster de muestra."
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section" aria-labelledby="cifras">
|
||||
<div class="wrap">
|
||||
<h2 id="cifras" class="eyebrow eyebrow-h2">Cifras medidas, no estimadas</h2>
|
||||
<div class="grid g4 cifras">
|
||||
{cifras.map((c) => <Stat valor={c.data.valor} texto={c.data.texto} metodo={c.data.metodo} periodo={c.data.periodo} />)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="wrap grid g-5-7">
|
||||
<div>
|
||||
<p class="eyebrow">Proyectos</p>
|
||||
<h2 class="mt">Operaciones distintas, un mismo método.</h2>
|
||||
</div>
|
||||
<div>
|
||||
<p class="lead">
|
||||
Un cotizador que responde por chat, un punto de venta multisucursal, un monitor de gasolineras, un
|
||||
generador de contratos. Operaciones muy diferentes, documentadas con la misma ficha: qué hacía el equipo
|
||||
antes, qué hace el sistema ahora, cómo está construido y qué se midió.
|
||||
</p>
|
||||
<p class="mt-l"><a class="link" href="/proyectos">Ver los proyectos</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
padding-block: clamp(3.5rem, 9vw, 7.5rem);
|
||||
}
|
||||
.hero h1 {
|
||||
max-width: 18ch;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.hero .lead {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
.acciones {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 2.2rem;
|
||||
}
|
||||
.video-hero {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
.eyebrow-h2 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.12em;
|
||||
font-variation-settings: normal;
|
||||
}
|
||||
.cifras {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
.mt {
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
.mt-l {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,241 @@
|
||||
@import 'tailwindcss';
|
||||
@import './tokens.css';
|
||||
|
||||
/* Tailwind lee los tokens del archivo tokens.css. Las utilidades (bg-bg, text-fg-2,
|
||||
font-display, max-w-site, sm:, md:, lg:) salen de aquí. */
|
||||
@theme {
|
||||
--breakpoint-*: initial;
|
||||
--breakpoint-sm: 560px;
|
||||
--breakpoint-md: 760px;
|
||||
--breakpoint-lg: 860px;
|
||||
--breakpoint-xl: 1180px;
|
||||
--container-site: 1180px;
|
||||
}
|
||||
@theme inline {
|
||||
--color-*: initial;
|
||||
--color-bg: var(--bg);
|
||||
--color-bg-2: var(--bg-2);
|
||||
--color-fg: var(--fg);
|
||||
--color-fg-2: var(--fg-2);
|
||||
--color-fg-3: var(--fg-3);
|
||||
--color-line: var(--line);
|
||||
--color-accent: var(--accent);
|
||||
--color-ink: var(--ink);
|
||||
--color-ink-fg: var(--ink-fg);
|
||||
--color-ok: var(--ok);
|
||||
--color-warn: var(--warn);
|
||||
--font-display: var(--font-display);
|
||||
--font-body: var(--font-body);
|
||||
--font-mono: var(--font-mono);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
background: var(--bg);
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: var(--font-body);
|
||||
font-size: 17px;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: clip;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.015em;
|
||||
line-height: 1.08;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(2.4rem, 6vw, 4.6rem);
|
||||
font-variation-settings: 'opsz' 144;
|
||||
}
|
||||
h2 {
|
||||
font-size: clamp(1.7rem, 3.4vw, 2.6rem);
|
||||
font-variation-settings: 'opsz' 96;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.35rem;
|
||||
font-variation-settings: 'opsz' 48;
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 0.7rem 0.6rem 0.7rem 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: top;
|
||||
}
|
||||
th {
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.wrap {
|
||||
max-width: var(--maxw);
|
||||
margin-inline: auto;
|
||||
padding-left: var(--gutter-l);
|
||||
padding-right: var(--gutter-r);
|
||||
}
|
||||
.eyebrow {
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
font-weight: 600;
|
||||
}
|
||||
.lead {
|
||||
font-size: 1.25rem;
|
||||
color: var(--fg-2);
|
||||
max-width: 62ch;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.muted {
|
||||
color: var(--fg-2);
|
||||
}
|
||||
.mono {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.link {
|
||||
color: var(--accent);
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
gap: 0.4em;
|
||||
align-items: center;
|
||||
}
|
||||
.link::after {
|
||||
content: '→';
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
.link:hover::after {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
.h1-sec {
|
||||
font-size: clamp(2rem, 4.5vw, 3.4rem);
|
||||
}
|
||||
.section {
|
||||
padding-block: clamp(3rem, 7vw, 6rem);
|
||||
}
|
||||
.section + .section {
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 2rem;
|
||||
}
|
||||
.grid > * {
|
||||
min-width: 0;
|
||||
}
|
||||
.g2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.g3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
.g4 {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
.g-5-7 {
|
||||
grid-template-columns: 5fr 7fr;
|
||||
}
|
||||
.g-4-8 {
|
||||
grid-template-columns: 4fr 8fr;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.g3,
|
||||
.g4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.g-5-7,
|
||||
.g-4-8 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.g2,
|
||||
.g3,
|
||||
.g4 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.scroll {
|
||||
overflow-x: auto;
|
||||
}
|
||||
.list {
|
||||
padding-left: 1.2rem;
|
||||
color: var(--fg-2);
|
||||
}
|
||||
.list li {
|
||||
margin: 0.35rem 0;
|
||||
}
|
||||
.fuente {
|
||||
font-size: 0.8rem;
|
||||
color: var(--fg-3);
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
.callout {
|
||||
border-left: 3px solid var(--accent);
|
||||
padding: 0.2rem 0 0.2rem 1.2rem;
|
||||
color: var(--fg-2);
|
||||
max-width: 66ch;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/* Tokens de Collina Systems. Único lugar donde se definen colores, fuentes y
|
||||
medidas del sitio. Tema claro por defecto; tema oscuro por prefers-color-scheme
|
||||
o forzado con data-theme="dark" en <html>. */
|
||||
|
||||
:root {
|
||||
/* Color */
|
||||
--bg: #ffffff;
|
||||
--bg-2: #f4f5f7;
|
||||
--fg: #0b1a2b;
|
||||
--fg-2: #4a5565;
|
||||
--fg-3: #6b7484;
|
||||
--line: #dfe3e8;
|
||||
--accent: #1f4fff;
|
||||
--ink: #07172a;
|
||||
--ink-fg: #ffffff;
|
||||
--ok: #1b7f4e;
|
||||
--warn: #9a5c00;
|
||||
|
||||
/* Tipografía (cambiar aquí para sustituir una familia en todo el sitio) */
|
||||
--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
|
||||
--font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
|
||||
/* Retícula */
|
||||
--maxw: 1180px;
|
||||
--gutter-l: max(16px, env(safe-area-inset-left, 0px));
|
||||
--gutter-r: max(16px, env(safe-area-inset-right, 0px));
|
||||
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme='light']) {
|
||||
--bg: #0c1420;
|
||||
--bg-2: #121c2a;
|
||||
--fg: #eef2f7;
|
||||
--fg-2: #b4bdca;
|
||||
--fg-3: #8a94a3;
|
||||
--line: #263244;
|
||||
--accent: #7f9cff;
|
||||
--ink: #eef2f7;
|
||||
--ink-fg: #0c1420;
|
||||
--ok: #4fc38a;
|
||||
--warn: #e3a84a;
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
--bg: #0c1420;
|
||||
--bg-2: #121c2a;
|
||||
--fg: #eef2f7;
|
||||
--fg-2: #b4bdca;
|
||||
--fg-3: #8a94a3;
|
||||
--line: #263244;
|
||||
--accent: #7f9cff;
|
||||
--ink: #eef2f7;
|
||||
--ink-fg: #0c1420;
|
||||
--ok: #4fc38a;
|
||||
--warn: #e3a84a;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
/* Fuentes propias (public/fonts). Archivos variables de @fontsource-variable 5.3.0. */
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 900;
|
||||
src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 900;
|
||||
src: url('/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-wght-italic.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 800;
|
||||
src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"include": [".astro/types.d.ts", "**/*"],
|
||||
"exclude": ["dist", "referencia", "node_modules"]
|
||||
}
|
||||
Reference in new issue
Block a user