diff --git a/public/collina-logo-light.png b/public/collina-logo-light.png new file mode 100644 index 0000000..0effb3f Binary files /dev/null and b/public/collina-logo-light.png differ diff --git a/src/app/globals.css b/src/app/globals.css index 433f1be..1eb0352 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,26 +1,376 @@ @import "tailwindcss"; /* - * Paleta del producto registrada como tokens de Tailwind v4. - * Esto genera utilidades como bg-azul, text-marino, border-borde, etc. - * - marino: azul marino para títulos y texto principal - * - azul: azul brillante para acentos y botones (estilo Calendly) - * - lienzo: fondo claro de la página + * Sistema visual "Collina" — rediseño oscuro (vidrio esmerilado sobre lava), + * acentos magenta→naranja. Clases portadas 1:1 del handoff de diseño. + * Las fuentes (Source Serif 4 / Hanken Grotesk) llegan como variables CSS + * desde layout.tsx (next/font). */ -@theme { - --color-marino: #13284b; - --color-marino-2: #54658a; - --color-azul: #0b69ff; - --color-azul-fuerte: #0a56d6; - --color-azul-suave: #eaf1ff; - --color-borde: #e6e8f0; - --color-lienzo: #f3f5fb; - --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif; +html, +body { + margin: 0; + padding: 0; } body { - background: var(--color-lienzo); - color: var(--color-marino); - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + background: #0a0613; + color: #fbeff6; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; +} + +:focus-visible { + outline: 2px solid #ff7a33; + outline-offset: 2px; + border-radius: 4px; +} + +/* Tipografía serif para títulos */ +.serif { + font-family: var(--font-serif), "Source Serif 4", serif; +} + +/* Helpers de texto */ +.eyebrow { + font-weight: 700; + font-size: 11px; + letter-spacing: 0.12em; + text-transform: uppercase; + color: rgba(248, 232, 240, 0.55); +} +.flabel { + font-weight: 700; + font-size: 12px; + letter-spacing: 0.1em; + text-transform: uppercase; + color: rgba(248, 232, 240, 0.55); +} +.ferr { + font-size: 12.5px; + font-weight: 600; + color: #ff9e7a; +} + +/* ===== Layout de la tarjeta ===== */ +.collina-shell { + position: relative; + z-index: 1; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 44px 22px 64px; +} +.collina-grid { + width: 100%; + max-width: 980px; + display: grid; + grid-template-columns: 340px 1fr; + background: linear-gradient(160deg, rgba(36, 17, 46, 0.62), rgba(17, 8, 25, 0.68)); + backdrop-filter: blur(28px) saturate(140%); + -webkit-backdrop-filter: blur(28px) saturate(140%); + border: 1px solid rgba(255, 200, 225, 0.14); + border-radius: 20px; + box-shadow: 0 44px 96px -44px rgba(0, 0, 0, 0.78); + overflow: hidden; +} +.collina-panel { + background: rgba(255, 255, 255, 0.045); + border-right: 1px solid rgba(255, 200, 225, 0.1); + padding: 34px 30px; + display: flex; + flex-direction: column; + gap: 22px; +} +.collina-content { + padding: 36px 38px; + min-height: 560px; + display: flex; + flex-direction: column; +} + +/* ===== Fondo de lava (capas fijas) ===== */ +.lava-layer { + position: fixed; + inset: 0; + z-index: 0; + pointer-events: none; +} +.lava-veil { + position: fixed; + inset: 0; + z-index: 0; + pointer-events: none; + background: radial-gradient( + ellipse 95% 90% at 50% 60%, + rgba(8, 4, 16, 0.05) 0%, + rgba(8, 4, 16, 0.38) 100% + ); +} + +/* ===== Inputs ===== */ +.ci { + width: 100%; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-size: 15px; + font-weight: 500; + color: #fbeff6; + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 200, 225, 0.16); + border-radius: 12px; + padding: 13px 14px; + outline: none; + transition: border-color 0.15s, box-shadow 0.15s; +} +.ci::placeholder { + color: rgba(248, 232, 240, 0.42); + font-weight: 400; +} +.ci:focus { + border-color: #ff3d90; + box-shadow: 0 0 0 3px rgba(255, 61, 144, 0.22); +} +.ci--err { + border-color: #ff6b6b; +} +textarea.ci { + resize: vertical; + min-height: 88px; + line-height: 1.5; +} + +/* ===== Navegación de calendario ===== */ +.cal-nav { + width: 36px; + height: 36px; + border-radius: 50%; + border: 1px solid rgba(255, 200, 225, 0.22); + background: rgba(255, 255, 255, 0.04); + color: #ff9e5c; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: 0.15s; + padding: 0; +} +.cal-nav:hover:not(:disabled) { + border-color: #ff7a33; + color: #ff7a33; + background: rgba(255, 122, 51, 0.14); +} +.cal-nav:disabled { + opacity: 0.3; + cursor: default; +} + +/* ===== Días del calendario ===== */ +.cal-day { + width: 100%; + aspect-ratio: 1; + max-width: 46px; + margin: 0 auto; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-weight: 700; + font-size: 15px; + border: none; + background: transparent; + color: #fbeff6; + cursor: pointer; + position: relative; + padding: 0; + transition: 0.12s; +} +.cal-day--empty { + visibility: hidden; +} +.cal-day--off { + color: rgba(248, 232, 240, 0.26); + cursor: default; +} +.cal-day--avail { + background: rgba(255, 122, 51, 0.16); + color: #ffb37a; +} +.cal-day--avail:hover { + background: linear-gradient(135deg, #e82b7b, #ff7a33); + color: #fff; +} +.cal-day--sel { + background: linear-gradient(135deg, #e82b7b, #ff7a33) !important; + color: #fff !important; + box-shadow: 0 8px 20px -8px rgba(232, 43, 123, 0.85); +} +.cal-day__today { + position: absolute; + bottom: 6px; + left: 50%; + transform: translateX(-50%); + width: 5px; + height: 5px; + border-radius: 50%; + background: #ff7a33; + display: none; +} +.cal-day--today .cal-day__today { + display: block; +} +.cal-day--sel .cal-day__today { + background: #fff; +} + +/* ===== Slots de horario ===== */ +.slot { + height: 48px; + border: 1px solid rgba(255, 200, 225, 0.16); + border-radius: 12px; + background: rgba(255, 255, 255, 0.05); + color: #fbeff6; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-weight: 600; + font-size: 15px; + cursor: pointer; + transition: 0.14s; +} +.slot:hover { + border-color: #ff7a33; + color: #fff; + background: rgba(255, 122, 51, 0.16); +} +.slot--sel { + background: linear-gradient(135deg, #e82b7b, #ff7a33) !important; + border-color: transparent !important; + color: #fff !important; +} + +/* ===== Pills (industria) ===== */ +.pill { + min-height: 44px; + padding: 0 18px; + border: 1px solid rgba(255, 200, 225, 0.16); + border-radius: 999px; + background: rgba(255, 255, 255, 0.04); + color: rgba(248, 232, 240, 0.72); + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-weight: 600; + font-size: 14px; + cursor: pointer; + transition: 0.14s; +} +.pill:hover { + border-color: #ff7a33; + color: #ffb37a; +} +.pill--sel { + background: rgba(232, 43, 123, 0.18); + border-color: #e82b7b; + color: #ffb37a; +} + +/* ===== Botones ===== */ +.btn-primary { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 9px; + height: 50px; + padding: 0 26px; + border-radius: 13px; + background: linear-gradient(135deg, #e82b7b, #ff7a33); + color: #fff; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-weight: 700; + font-size: 15px; + border: none; + cursor: pointer; + transition: 0.15s; + box-shadow: 0 12px 30px -12px rgba(232, 43, 123, 0.7); +} +.btn-primary:hover:not(:disabled) { + filter: brightness(1.08); + box-shadow: 0 16px 38px -12px rgba(232, 43, 123, 0.8); +} +.btn-primary:disabled { + opacity: 0.6; + cursor: default; + filter: none; +} +.btn-ghost { + background: transparent; + border: none; + color: #ffb37a; + font-weight: 700; + cursor: pointer; + display: inline-flex; + gap: 6px; + align-items: center; + font-family: var(--font-hanken), "Hanken Grotesk", sans-serif; + font-size: 13.5px; + letter-spacing: 0.02em; + padding: 4px 0; +} +.btn-ghost:hover { + color: #ff7a33; +} + +/* ===== Animaciones ===== */ +@keyframes cpulse { + 0%, + 80%, + 100% { + opacity: 0.22; + transform: scale(0.7); + } + 40% { + opacity: 1; + transform: scale(1); + } +} +.cdot { + width: 9px; + height: 9px; + border-radius: 50%; + background: #ff7a33; + animation: cpulse 1.1s infinite ease-in-out; +} +.cdot:nth-child(2) { + animation-delay: 0.15s; +} +.cdot:nth-child(3) { + animation-delay: 0.3s; +} +@keyframes cpop { + 0% { + transform: scale(0.5); + opacity: 0; + } + 60% { + transform: scale(1.08); + } + 100% { + transform: scale(1); + opacity: 1; + } +} +.check-badge { + animation: cpop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; +} + +/* ===== Responsivo ===== */ +@media (max-width: 860px) { + .collina-grid { + grid-template-columns: 1fr; + } + .collina-panel { + border-right: none; + border-bottom: 1px solid rgba(255, 200, 225, 0.1); + } + .slot-grid { + grid-template-columns: repeat(2, 1fr) !important; + } } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bfbecbf..b0bcaab 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,21 @@ import type { Metadata } from "next"; +import { Source_Serif_4, Hanken_Grotesk } from "next/font/google"; import "./globals.css"; +import LavaBackground from "@/components/LavaBackground"; + +// Tipografías del diseño (Google Fonts vía next/font, expuestas como variables). +const serif = Source_Serif_4({ + subsets: ["latin"], + weight: ["600", "700"], + variable: "--font-serif", + display: "swap", +}); +const hanken = Hanken_Grotesk({ + subsets: ["latin"], + weight: ["400", "500", "600", "700", "800"], + variable: "--font-hanken", + display: "swap", +}); export const metadata: Metadata = { title: "Plática inicial · Collina Systems", @@ -13,8 +29,16 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - {children} + + + {/* Fondo de lava decorativo (capas fijas, detrás de todo) */} + +
+ {children} + ); } diff --git a/src/app/page.tsx b/src/app/page.tsx index 018531e..f562492 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -120,13 +120,13 @@ export default function Page() { } return ( -
-
+
+
{/* Columna izquierda: panel de información (fijo en todas las etapas) */} {/* Columna derecha: cambia según la etapa */} -
+
{etapa === "fecha" && ( )} -
+
); diff --git a/src/app/reagendar/page.tsx b/src/app/reagendar/page.tsx index 832d213..de8f7ef 100644 --- a/src/app/reagendar/page.tsx +++ b/src/app/reagendar/page.tsx @@ -1,11 +1,8 @@ "use client"; import { useEffect, useState } from "react"; -import { - CalendarClock, - CheckCircle2, - AlertTriangle, -} from "lucide-react"; +import { AlertTriangle, Check, RotateCcw } from "lucide-react"; +import PanelInfo from "@/components/PanelInfo"; import Calendario from "@/components/Calendario"; import SelectorHora from "@/components/SelectorHora"; import { fechaISOLocal } from "@/lib/fechas"; @@ -17,15 +14,29 @@ interface InfoCita { fechaHoraActual: string; } -/** Spinner + texto centrado. */ +/** Tres puntos pulsantes + texto, centrado. */ function EstadoCargando({ texto }: { texto: string }) { return ( -
- - {texto} +
+
+ + + +
+ + {texto} +
); } @@ -33,11 +44,38 @@ function EstadoCargando({ texto }: { texto: string }) { /** Pantalla de enlace inválido. */ function EstadoInvalido({ mensaje }: { mensaje: string }) { return ( -
- -

No pudimos abrir tu cita

-

{mensaje}

-

+

+
+ +
+

+ No pudimos abrir tu cita +

+

+ {mensaje} +

+

Revisa el enlace de tu correo o escríbenos para reagendar.

@@ -47,16 +85,81 @@ function EstadoInvalido({ mensaje }: { mensaje: string }) { /** Pantalla de éxito. */ function EstadoExito({ cuando }: { cuando: string }) { return ( -
- -

¡Tu cita fue reagendada!

- {cuando && ( -

{cuando}

- )} -

- Te enviamos una nueva confirmación por correo con el enlace de la - reunión actualizado. -

+
+
+ +
+
+

+ ¡Tu cita fue reagendada! +

+ {cuando && ( +

{cuando}

+ )} +

+ Te enviamos una nueva confirmación por correo con el enlace de la + reunión actualizado. +

+
+
+ ); +} + +/** Banner que muestra la cita actual sobre el calendario. */ +function BannerReagendar({ texto }: { texto: string }) { + return ( +
+ +
+ + Reagendar + + Tu cita actual es{" "} + {texto}. Elige + una nueva fecha. +
); } @@ -192,47 +295,14 @@ export default function ReagendarPage() { } return ( -
-
- {/* Panel izquierdo */} - +
+
+ {/* Panel izquierdo (mismo panel del flujo de reserva) */} + {/* Columna derecha: cambia según la etapa */} -
- {etapa === "validando" && ( - - )} +
+ {etapa === "validando" && } {etapa === "invalido" && ( @@ -243,6 +313,12 @@ export default function ReagendarPage() { {!reagendando && etapa === "fecha" && ( + ) : null + } onSeleccionar={(d) => { setFecha(d); setAvisoHora(null); @@ -255,13 +331,14 @@ export default function ReagendarPage() { setEtapa("fecha")} /> )} {etapa === "exito" && } -
+
); diff --git a/src/components/Calendario.tsx b/src/components/Calendario.tsx index 2d950c3..a9655b2 100644 --- a/src/components/Calendario.tsx +++ b/src/components/Calendario.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useState, type ReactNode } from "react"; import { ChevronLeft, ChevronRight, Globe } from "lucide-react"; import { evento, esDiaHabil } from "@/config/evento"; import { formatearMesAnio, inicioDeHoy } from "@/lib/fechas"; @@ -10,6 +10,10 @@ interface CalendarioProps { fechaSeleccionada: Date | null; /** Se llama al elegir un día disponible. */ onSeleccionar: (fecha: Date) => void; + /** Texto del eyebrow superior (visual). */ + eyebrow?: string; + /** Contenido opcional encima del calendario (p. ej. banner de reagendar). */ + banner?: ReactNode; } // Encabezados de la semana, empezando en lunes (como en español). @@ -31,11 +35,13 @@ function mismoDia(a: Date, b: Date): boolean { /** * Etapa "fecha": calendario mensual navegable. * Solo habilita días hábiles (lun–vie) de hoy en adelante; los fines de - * semana y las fechas pasadas se muestran en gris y no son clickeables. + * semana y las fechas pasadas se muestran atenuados y no son clickeables. */ export default function Calendario({ fechaSeleccionada, onSeleccionar, + eyebrow = "Selecciona una fecha", + banner, }: CalendarioProps) { const hoy = inicioDeHoy(); @@ -48,8 +54,7 @@ export default function Calendario({ const mes = mesVisible.getMonth(); // ¿El mes visible es el mes actual? Entonces no se puede retroceder más. - const enMesActual = - anio === hoy.getFullYear() && mes === hoy.getMonth(); + const enMesActual = anio === hoy.getFullYear() && mes === hoy.getMonth(); const diasEnMes = new Date(anio, mes + 1, 0).getDate(); const huecosIniciales = indiceLunes(new Date(anio, mes, 1)); @@ -74,41 +79,60 @@ export default function Calendario({ } return ( -
-

Selecciona el día

+
+ {banner} + + {eyebrow} {/* Encabezado: mes/año + navegación */} -
- +
+

{formatearMesAnio(mesVisible)} - -
+

+
{/* Cabecera de días de la semana */} -
+
{DIAS_SEMANA.map((dia) => (
{dia}
@@ -116,50 +140,70 @@ export default function Calendario({
{/* Rejilla de días */} -
+
{celdas.map((dia, i) => { - if (!dia) return
; + if (!dia) { + return ( + + ); + } const disponible = estaDisponible(dia); const seleccionado = - fechaSeleccionada && mismoDia(dia, fechaSeleccionada); + !!fechaSeleccionada && mismoDia(dia, fechaSeleccionada); const esHoy = mismoDia(dia, hoy); + const cls = [ + "cal-day", + disponible ? "cal-day--avail" : "cal-day--off", + esHoy ? "cal-day--today" : "", + seleccionado ? "cal-day--sel" : "", + ] + .filter(Boolean) + .join(" "); + return ( -
- -
+ ); })}
{/* Zona horaria */} -
- - Zona horaria: {evento.zonaHorariaLabel} +
+ + Zona horaria: {evento.zonaHorariaLabel} (GMT-6)
); diff --git a/src/components/Confirmacion.tsx b/src/components/Confirmacion.tsx index 71bd313..750250f 100644 --- a/src/components/Confirmacion.tsx +++ b/src/components/Confirmacion.tsx @@ -1,6 +1,6 @@ -import { CheckCircle2, Calendar, Clock, Video, ExternalLink } from "lucide-react"; +import { Check, User, Calendar, Clock, ExternalLink } from "lucide-react"; import { evento } from "@/config/evento"; -import { formatearFechaLarga, formatearRango } from "@/lib/fechas"; +import { formatearFechaLarga } from "@/lib/fechas"; import type { DatosFormulario } from "@/components/Formulario"; interface ConfirmacionProps { @@ -13,6 +13,8 @@ interface ConfirmacionProps { eventLink: string | null; } +const ACENTO = "#FF9E5C"; + /** * Etapa "confirmado": pantalla de éxito con el resumen de la cita. * @@ -24,102 +26,120 @@ export default function Confirmacion({ fecha, hora, datos, - meetLink, eventLink, }: ConfirmacionProps) { - // Industria a mostrar: si eligió "Otro", mostramos el texto libre. - const industriaMostrada = - datos.industria === evento.preguntas.opcionOtro - ? `${evento.preguntas.opcionOtro} — ${datos.industriaOtro}` - : datos.industria; - - const filas: { etiqueta: string; valor: string }[] = [ - { etiqueta: "Nombre", valor: datos.nombre }, - { etiqueta: "Empresa", valor: datos.empresa }, - { etiqueta: "Correo electrónico", valor: datos.correo }, - { etiqueta: "Teléfono", valor: datos.telefono }, - { etiqueta: evento.preguntas.procesoLabel, valor: datos.proceso }, - { etiqueta: evento.preguntas.industriaLabel, valor: industriaMostrada }, - ]; - return ( -
-
- -

+
+ {/* Badge de éxito */} +
+ +
+ +
+

¡Listo! Tu evento está programado

-

- Te enviaremos una invitación con los detalles de la conferencia web. +

+ Te enviamos una invitación con el enlace de la reunión a tu correo.

- {/* Resumen de la cita */} -
-

{evento.titulo}

- -
- - + {/* Tarjeta resumen */} +
+
+ + + {datos.nombre} + +
+
+ + {formatearFechaLarga(fecha)}
-
- - - {formatearRango(hora, evento.duracionMin)} · {evento.zonaHorariaLabel} +
+ + + {hora} · {evento.zonaHorariaLabel} (GMT-6)
- - {/* Enlace de Google Meet */} - {meetLink ? ( -
-
-
- - - {meetLink} -
- ) : ( -

- El enlace de la videollamada llegará en el correo de invitación. -

- )}
- {/* Enlace al evento en Google Calendar */} - {eventLink && ( - - Ver en Google Calendar - - - )} - - {/* Datos del invitado */} -
- {filas.map((fila) => ( -
-
- {fila.etiqueta} -
-
{fila.valor}
-
- ))} -
+ {/* Acciones */} +
+ {eventLink && ( + + Ver en Google Calendar + + + )} +
); } diff --git a/src/components/Formulario.tsx b/src/components/Formulario.tsx index 823e1c7..483e48d 100644 --- a/src/components/Formulario.tsx +++ b/src/components/Formulario.tsx @@ -1,7 +1,7 @@ "use client"; import { useState, type FormEvent } from "react"; -import { ArrowLeft } from "lucide-react"; +import { ChevronLeft } from "lucide-react"; import { evento } from "@/config/evento"; /** Datos capturados en el formulario (se usan también en la confirmación). */ @@ -127,33 +127,33 @@ export default function Formulario({ }); } - const claseInput = (hayError: boolean) => - [ - "w-full rounded-lg border bg-white px-3 py-2.5 text-[15px] text-marino outline-none transition-colors placeholder:text-slate-400", - hayError - ? "border-red-400 focus:border-red-500" - : "border-borde focus:border-azul", - ].join(" "); + const claseInput = (hayError: boolean) => "ci" + (hayError ? " ci--err" : ""); return ( -
-
- -

Introduzca los detalles

-
+
+ -
+

+ Introduzca los detalles +

+ + {/* Nombre */} -
-