Kubric™ Hero Landing — Héroe Cinematográfico Oscuro con Logotipo SVG Animado
Sección hero extraída de la galería con licencia MIT
pulkitxm/claude-directory.
Página de aterrizaje hero oscura, de escritorio, para el estudio ficticio Kubric™, construida con TanStack Start v1 + React 19 + Vite 7 + Tailwind v4 con enrutamiento basado en archivos. Cuenta con un video de fondo en bucle con un desenfoque progresivo de 8 capas backdrop-filter en la parte inferior, un logotipo SVG animado con revelación de trazos de arco, un panel de navegación tipo "glass", una revelación de titular carácter por carácter, una navegación lateral vertical a la derecha y una tarjeta blanca "Sobre nosotros". Todo se anima al cargar por primera vez una vez que el video de fondo está listo.
Flujo de trabajo
- Clona
example.htmlen el espacio de trabajo del usuario como archivo de trabajo. - Reemplaza el contenido de marcador de posición con el nombre de marca real del usuario, titulares, cuerpo de texto, números e imágenes. Coincide con las dimensiones de imagen existentes al intercambiar activos.
- Preserva el sistema de diseño. La paleta, la escala tipográfica, el ritmo de espaciado y el movimiento en la especificación de construcción a continuación son la identidad: no sustituyas fuentes, cambies el color de la paleta ni elimines elementos decorativos.
- Extiende duplicando secciones, nunca importando un diseño de otra plantilla. Si falta una sección, diseñala desde cero en el propio vocabulario de esta plantilla.
- Mantén el movimiento accesible. Cada animación debe permanecer detrás de
prefers-reduced-motion, como lo requiere la especificación de construcción.
Contrato de salida
Emitir entre etiquetas <artifact>:
<artifact identifier="kubric-hero-landing" type="text/html" title="Kubric™ Hero Landing — Dark Cinematic Hero with Animated SVG Logo">
<!doctype html>
<html>...</html>
</artifact>
Especificación de construcción
El prompt original que produjo este diseño, textualmente.
PROMPT DE CONSTRUCCIÓN — KUBRIC™ HERO LANDING (TANSTACK START + REACT 19 + VITE 7 + TAILWIND V4)
OBJETIVO
CREAR UNA PÁGINA DE ATERRIZAJE HERO OSCURA DE UNA SOLA PÁGINA LLAMADA "KUBRIC™". ES UN HERO DE VENTANA COMPLETA (MÍNIMO 1024PX DE ANCHO, SOLO ESCRITORIO) CON UN VIDEO DE FONDO EN BUCLE, UNA SUPERPOSICIÓN DE DESENFOQUE PROGRESIVO EN LA PARTE INFERIOR, UN LOGOTIPO SVG ANIMADO, UN PANEL DE NAVEGACIÓN TIPO "GLASS" CON 4 ENLACES (UNO TIENE UNA INSIGNIA NUMÉRICA CIRCULAR "3"), UN BOTÓN BLANCO "BOOK A CALL", UN TITULAR DE 3 LÍNEAS CON ACENTO EN CURSIVA QUE SE REVELA CARÁCTER POR CARÁCTER, UNA NAVEGACIÓN LATERAL VERTICAL A LA DERECHA CON SUBRAYADO ACTIVO, UNA FILA INFERIOR QUE CONTIENE UNA ETIQUETA "01 — OUR GOAL", UN PÁRRAFO DE DESCRIPCIÓN, UN BOTÓN PRIMARIO "DISCUSS THE PROJECT", UN PILAR "SCROLL DOWN" ANIMADO, Y UNA TARJETA HORIZONTAL BLANCA "ABOUT US" CON UNA IMAGEN Y UNA FLECHA. TODO SE ANIMA AL CARGAR POR PRIMERA VEZ DESPUÉS DE QUE EL VIDEO DE FONDO ESTÉ LISTO.
STACK / ARCHIVOS
- ENRUTAMIENTO BASADO EN ARCHIVOS DE TANSTACK START V1. RUTAS EN SRC/ROUTES/. RAÍZ EN SRC/ROUTES/__ROOT.TSX. INICIO EN SRC/ROUTES/INDEX.TSX.
- TAILWIND V4 A TRAVÉS DE
@import "tailwindcss"EN SRC/STYLES.CSS (SIN TAILWIND.CONFIG.JS). - TODOS LOS ESTILOS DE KUBRIC SON CSS PURO AGREGADO EN SRC/STYLES.CSS (NO UTILIDADES DE TAILWIND).
- CARGA LA FUENTE DE GOOGLE "INTER TIGHT" (PESOS 300/400/500/700/800, CURSIVA 400/700) A TRAVÉS DE EN EL HEAD DE LA RUTA — NUNCA A TRAVÉS DE CSS @IMPORT.
- SIN BACKEND, SIN BASE DE DATOS, SIN AUTENTICACIÓN. SIN COMPONENTES DE SHADCN USADOS POR LA PÁGINA.
VARIABLES CSS GLOBALES (AGREGAR DESPUÉS DEL BLOQUE DE SHADCN EN SRC/STYLES.CSS)
:root {
--bg: #1e1e1e;
--text: #ffffff;
--text-muted: rgba(255,255,255,0.749);
--dark-text: #22282b;
--page-pad: clamp(24px, 3.4vw, 50px);
--btn-radius: 10px;
--card-radius: 4px;
}
html { min-width: 1024px; }
body {
font-family: "Inter Tight", sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
,::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
JERARQUÍA DE CAPAS (ÁRBOL JSX EXACTO DE LA PÁGINA DE INICIO)
div.hero
├── div.hero__bg
│ └── video.hero__video (autoPlay muted loop playsInline preload="auto")
│ └── source src="https://qclay.design/lovable/kubric/body.mp4" type="video/mp4"
├── div.hero__overlay
├── div.hero__gradient-top (vacío, marcador de posición display:none)
├── div.hero__gradient-bottom (vacío, marcador de posición display:none)
├── div.hero__blur
│ ├── div.hero__blur-layer (× 8 — cada capa obtiene un desenfoque más fuerte + máscara)
│ └── ::after (superposición de oscurecimiento degradado)
├── header.header
│ ├── a.logo href="#" aria-label="Kubric"
│ │ └── svg.logo__icon viewBox="0 0 122 30"
│ │ ├── circle.logo__circle cx=14.3 cy=14.9 r=7 stroke=#fff strokeWidth=3 fill=none
│ │ ├── path.logo__arc-1a (arco exterior superior, ver SVG a continuación)
│ │ ├── path.logo__arc-1b (arco exterior inferior)
│ │ ├── path.logo__arc-2a (arco lejano superior)
│ │ ├── path.logo__arc-2b (arco lejano inferior)
│ │ └── g.logo__text-group
│ │ ├── text x=46 y=22 font="Inter Tight" size=22 weight=700 fill=#fff letterSpacing=-0.5 → "Kubric"
│ │ └── text.logo__tm x=113 y=10 → "™"
│ ├── nav.nav-pill aria-label="Principal"
│ │ ├── a.nav-pill__link href="#features" → "Características"
│ │ ├── a.nav-pill__link href="#team" → "Equipo" + span.nav-pill__badge "3"
│ │ ├── a.nav-pill__link href="#roadmap" → "Hoja de ruta"
│ │ └── a.nav-pill__link href="#contact" → "Contacto"
│ └── button.btn.btn--header
│ ├── "Reservar una llamada"
│ └── svg.btn__arrow viewBox="0 0 8 8" (path d="M1 7L7 1M7 1H2M7 1V6")
├── h1.hero__heading
│ ├── span.hero__line > span.hero__line-inner → "Haciendo tu negocio"
│ ├── span.hero__line > span.hero__line-inner → "sobresaliente — es una"
│ └── span.hero__line > span.hero__line-inner > em → "Ciencia"
├── nav.side-nav aria-label="Secciones"
│ ├── a.side-nav__link.side-nav__link--active href="#home"
│ │ ├── span.side-nav__link-text "Inicio"
│ │ └── span.side-nav__line
│ ├── a.side-nav__link href="#services" → span.side-nav__link-text "Nuestros servicios"
│ ├── a.side-nav__link href="#about" → span.side-nav__link-text "Sobre nosotros"
│ ├── a.side-nav__link href="#reviews" → span.side-nav__link-text "Reseñas"
│ └── a.side-nav__link href="#contact" → span.side-nav__link-text "Contáctanos"
├── div.hero__blur-bar
└── div.hero__bottom (CSS grid, 1fr auto / 3 filas)
├── div.hero__label (fila 1) → "01 — Nuestro objetivo"
├── p.hero__desc (fila 2) → 3 líneas:
│ "Permitimos a los inversores y family offices más comprometidos del mundo"
│ "acceder a estrategias de inversión gestionadas"
│ "profesionalmente."
├── div.hero__actions (fila 3)
│ ├── button.btn.btn--footer
│ │ ├── "Discutir el proyecto"
│ │ └── svg.btn__arrow (misma ruta de flecha 8×8 que el encabezado)
│ └── button.scroll-down#scrollDown
│ ├── span.scroll-down__text "Desplazarse hacia abajo"
│ └── span.scroll-down__circle
│ └── svg viewBox="0 0 7.222 8.667" (path d="M3.611 1V7.667M3.611 7.667L1 5M3.611 7.667L6.222 5")
└── a.about-card href="#about"
├── div.about-card__image > img src="https://qclay.design/lovable/kubric/card-image.png" alt="Primer plano de tulipán rosa"
└── div.about-card__content
├── div
│ ├── h3.about-card__title "Sobre nosotros"
│ └── p.about-card__text "Estamos impulsados por un diseño centrado en el usuario que aumenta la productividad y los ingresos."
└── svg.about-card__arrow viewBox="0 0 77 13" (path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5")
FUENTES DE ICONOS / SVG (PEGAR TEXTUALMENTE — LAS COORDENADAS Y LAS LONGITUDES DE RUTA SON EXACTAS)
LOGO SVG (DENTRO DE A.LOGO):
<svg class="logo__icon" viewBox="0 0 122 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle class="logo__circle" cx="14.3" cy="14.9" r="7" fill="none" stroke="#fff" stroke-width="3"/>
<path class="logo__arc-1a" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M28.4955 14.6513C28.4346 12.2923 27.7563 9.99047 26.5284 7.9753C25.3005 5.96012 23.5657 4.30202 21.4972 3.1663C19.4287 2.03059 17.0985 1.45693 14.7392 1.50252C12.3798 1.54811 10.0736 2.21137 8.05047 3.42615"/>
<path class="logo__arc-1b" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M28.4955 14.6513C28.5564 17.0104 27.998 19.3442 26.8757 21.4201C25.7535 23.496 24.1067 25.2414 22.0996 26.4824C20.0924 27.7234 17.795 28.4166 15.4365 28.4929C13.0779 28.5692 10.7405 28.026 8.65735 26.9173"/>
<path class="logo__arc-2a" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M37.4997 14.9144C37.4824 12.1783 36.634 9.51197 35.0671 7.26888C33.5001 5.02578 31.2885 3.31178 28.7254 2.35403"/>
<path class="logo__arc-2b" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M37.4997 14.9144C37.5171 17.6506 36.7026 20.3274 35.1642 22.5902C33.6258 24.853 31.4361 26.5949 28.8853 27.5851"/>
<g class="logo__text-group">
<text x="46" y="22" font-family="Inter Tight" font-size="22" font-weight="700" fill="#fff" letter-spacing="-0.5">Kubric</text>
<text class="logo__tm" x="113" y="10">™</text>
</g>
</svg>
ICONO DE FLECHA (USADO EN AMBOS BOTONES) VIEWBOX="0 0 8 8":
<path d="M1 7L7 1M7 1H2M7 1V6" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
ICONO DE CHEVRÓN DE DESPLAZAMIENTO HACIA ABAJO VIEWBOX="0 0 7.222 8.667":
<path d="M3.611 1V7.667M3.611 7.667L1 5M3.611 7.667L6.222 5" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
FLECHA LARGA DE LA TARJETA ABOUT VIEWBOX="0 0 77 13":
<path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
CSS COMPLETO (AGREGAR A SRC/STYLES.CSS TEXTUALMENTE — FUENTE DE VERDAD EXACTA)
/ ============ HERO ============ /
.hero { position: relative; width: 100%; height: 100vh; min-height: 700px; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video { position: absolute; top: 50%; left: 50%; width: 60%; height: 90%; object-fit: cover; transform: translate(-50%,-50%) scale(1.9); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(8,8,8,0.25); pointer-events: none; }
.hero__gradient-top,.hero__gradient-bottom { display: none; }
/ ===== DESENFOQUE PROGRESIVO ===== /
.hero__blur { position: absolute; left:0; right:0; bottom:0; height: 26%; z-index:3; pointer-events:none; }
.hero__blur-layer { position: absolute; inset: 0; }
.hero__blur-layer:nth-child(1){ backdrop-filter: blur(0.6px); mask-image: linear-gradient(to bottom, transparent 0%, black 12%); }
.hero__blur-layer:nth-child(2){ backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, transparent 12%, black 25%); }
.hero__blur-layer:nth-child(3){ backdrop-filter: blur(1.5px); mask-image: linear-gradient(to bottom, transparent 25%, black 37%); }
.hero__blur-layer:nth-child(4){ backdrop-filter: blur(2px); mask-image: linear-gradient(to bottom, transparent 37%, black 50%); }
.hero__blur-layer:nth-child(5){ backdrop-filter: blur(3px); mask-image: linear-gradient(to bottom, transparent 50%, black 62%); }
.hero__blur-layer:nth-child(6){ backdrop-filter: blur(4px); mask-image: linear-gradient(to bottom, transparent 62%, black 75%); }
.hero__blur-layer:nth-child(7){ backdrop-filter: blur(6px); mask-image: linear-gradient(to bottom, transparent 75%, black 87%); }
.hero__blur-layer:nth-child(8){ backdrop-filter: blur(8px); mask-image: linear-gradient(to bottom, transparent 87%, black 100%); }
.hero__blur::after { content:""; position:absolute; inset:0; pointer-events:none;
background: linear-gradient(to bottom, transparent 0%, rgba(20,20,20,0.35) 40%, rgba(20,20,20,0.65) 70%, rgba(20,20,20,0.85) 100%); }
.hero__blur-bar { position: absolute; left:0; right:0; bottom:0;
height: calc(60px + clamp(20px,3vh,36px) + 24px); z-index:4; pointer-events:none;
background: linear-gradient(0.8deg, rgba(255,255,255,0.06) -51%, transparent 109%), rgba(255,255,255,0.01);
mask-image: linear-gradient(to bottom, transparent 0%, black 30%); }
/ ===== HEADER ===== /
.header { position: absolute; top:0; left:0; right:0; z-index:10; display:flex; align-items:center; justify-content: space-between; padding: 20px var(--page-pad); }
/ ===== LOGO ===== /
.logo { display:flex; align-items:center; }
.logo__icon { display:block; width: clamp(80px,7.6vw,110px); height: clamp(22px,2.08vw,30px); overflow:visible; }
body:not(.is-ready) .logo__circle,
body:not(.is-ready) .logo__arc-1a, body:not(.is-ready) .logo__arc-1b,
body:not(.is-ready) .logo__arc-2a, body:not(.is-ready) .logo__arc-2b,
body:not(.is-ready) .logo__text-group { opacity:0; animation-play-state: paused !important; }
.logo__circle { transform-origin: 14.3px 14.9px; transform: scale(0); opacity:0;
animation: logoCircleGrow 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards; }
@keyframes logoCircleGrow { to { transform: scale(1); opacity:1; } }
.logo__arc-1a,.logo__arc-1b { stroke-dasharray:100; stroke-dashoffset:100; opacity:0; transform: translateX(-14px);
animation: logoArcDraw1 0.65s cubic-bezier(0.16,1,0.3,1) 0.55s forwards; }
.logo__arc-2a,.logo__arc-2b { stroke-dasharray:100; stroke-dashoffset:100; opacity:0; transform: translateX(-14px);
animation: logoArcDraw2 0.5s cubic-bezier(0.16,1,0.3,1) 1.25s forwards; }
@keyframes logoArcDraw1 { to { stroke-dashoffset:0; opacity:1; transform: translateX(0);} }
@keyframes logoArcDraw2 { to { stroke-dashoffset:0; opacity:1; transform: translateX(0);} }
.logo__text-group { opacity:0; filter: blur(10px); transform: translateX(28px);
animation: logoTextReveal 1.9s cubic-bezier(0.16,1,0.3,1) 1.25s forwards; }
@keyframes logoTextReveal { to { opacity:1; filter: blur(0); transform: translateX(0);} }
.logo__tm { font-family:"Inter Tight",sans-serif; font-size:20px; fill:#fff; }
/ ===== NAV PILL ===== /
.nav-pill {
display:inline-flex; align-items:center; gap: clamp(16px,2.3vw,33px);
padding: clamp(8px,0.76vw,11px) clamp(18px,2.2vw,30px);
background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
border-radius: 100px; outline: 1px solid rgba(255,255,255,0.15);
}
body:not(.is-ready) .nav-pill { opacity:0; transform: translateY(-12px); animation: navPillSlide 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s forwards; }
@keyframes navPillSlide { to { opacity:1; transform: translateY(0);} }
.nav-pill__link { font-size: clamp(13px,0.95vw,14px); font-weight:500; color: var(--text-muted); transition: color 0.2s;letter-spacing:-0.01em; white-space:nowrap; }
.nav-pill__link:hover { color: var(--text); }
.nav-pill__badge {
display:inline-flex; align-items:center; justify-content:center;
width:18px; height:18px; border-radius:50%; font-size:10px; font-weight:700;
background: #fff; color: #000; margin-left:4px; vertical-align:super;
}
.btn--header { display:inline-flex; align-items:center; gap:8px; padding: clamp(8px,0.76vw,12px) clamp(16px,1.5vw,22px);
background: #fff; color: #000; border-radius: var(--btn-radius); font-size: clamp(12px,0.9vw,14px); font-weight:600;
transition: opacity 0.2s; white-space:nowrap;
}
.btn--header:hover { opacity:0.85; }
.btn__arrow { width:8px; height:8px; flex-shrink:0; }
/ ===== HEADING ===== /
.hero__heading { position:absolute; left:var(--page-pad); top: clamp(130px,13.5vw,180px); z-index:10; max-width: clamp(560px,47vw,720px); }
body:not(.is-ready) .hero__heading { opacity:0; }
.hero__line { display:block; overflow:hidden; }
.hero__line-inner { display:inline-block; font-size: clamp(36px,3.4vw,56px); font-weight:500; line-height:1.1; letter-spacing:-0.02em; white-space:nowrap; }
.hero__line-inner em { font-style:italic; }
body:not(.is-ready) .hero__line-inner:nth-child(1) { animation: charReveal 0.8s steps(20) 1.0s forwards; opacity:0; }
body:not(.is-ready) .hero__line-inner:nth-child(2) { animation: charReveal 0.8s steps(25) 1.4s forwards; opacity:0; }
body:not(.is-ready) .hero__line-inner:nth-child(3) { animation: charReveal 0.8s steps(10) 1.8s forwards; opacity:0; }
@keyframes charReveal { to { opacity:1; } }
/ ===== SIDE NAV ===== /
.side-nav { position:absolute; right: var(--page-pad); top: 50%; transform: translateY(-50%); z-index:10; display:flex; flex-direction:column; align-items:flex-end; gap:18px; }
body:not(.is-ready) .side-nav { opacity:0; transform: translateY(-50%) translateX(10px); animation: sideNavIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.6s forwards; }
@keyframes sideNavIn { to { opacity:1; transform: translateY(-50%) translateX(0);} }
.side-nav__link { position:relative; display:flex; align-items:center; gap:8px; font-size: clamp(11px,0.78vw,13px); font-weight:400; color: var(--text-muted); transition: color 0.2s; text-align:right; }
.side-nav__link:hover { color: var(--text); }
.side-nav__link--active { color: var(--text); }
.side-nav__link-text { order:1; }
.side-nav__line { display:block; width:14px; height:1px; background: var(--text); transition: width 0.3s; order:0; }
.side-nav__link--active .side-nav__line { width:24px; }
/ ===== BOTTOM ===== /
.hero__bottom { position:absolute; left:var(--page-pad); right:var(--page-pad); bottom:0; z-index:10; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto auto; gap:0;
padding-bottom: clamp(20px,3vh,36px);
}
.hero__label { grid-column:1; grid-row:1; font-size: clamp(11px,0.8vw,13px); font-weight:500; letter-spacing:0.02em; text-transform:uppercase; color: var(--text-muted); }
body:not(.is-ready) .hero__label { opacity:0; transform: translateY(8px); animation: bottomFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 2.2s forwards; }
.hero__desc { grid-column:1; grid-row:2; max-width: clamp(360px,30vw,480px); font-size: clamp(13px,0.95vw,15px); font-weight:400; line-height:1.4; color: var(--text-muted); margin-top:8px; }
body:not(.is-ready) .hero__desc { opacity:0; transform: translateY(8px); animation: bottomFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 2.4s forwards; }
.hero__actions { grid-column:1; grid-row:3; display:flex; align-items:center; gap:20px; margin-top:16px; }
body:not(.is-ready) .hero__actions { opacity:0; transform: translateY(8px); animation: bottomFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 2.6s forwards; }
@keyframes bottomFadeUp { to { opacity:1; transform: translateY(0);} }
.btn--footer { display:inline-flex; align-items:center; gap:8px; padding: clamp(10px,0.95vw,14px) clamp(18px,1.7vw,26px);
background: #fff; color: #000; border-radius: var(--btn-radius); font-size: clamp(12px,0.9vw,14px); font-weight:600;
transition: opacity 0.2s;
}
.btn--footer:hover { opacity:0.85; }
.scroll-down { display:inline-flex; align-items:center; gap:10px; font-size: clamp(11px,0.78vw,13px); font-weight:400; color: var(--text-muted); white-space:nowrap; transition: color 0.2s; }
.scroll-down:hover { color: var(--text); }
.scroll-down__circle { display:flex; align-items:center; justify-content:center; width: clamp(28px,2.2vw,34px); height: clamp(28px,2.2vw,34px); border-radius:50%; border:1px solid rgba(255,255,255,0.2); transition: border-color 0.2s; }
.scroll-down:hover .scroll-down__circle { border-color: rgba(255,255,255,0.5); }
.scroll-down__circle svg { width:6px; height:8px; display:block; }
body:not(.is-ready) .scroll-down__circle { animation: scrollBounce 1.5s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(4px); } }
/ ===== ABOUT CARD ===== /
.about-card { grid-column:2; grid-row:1 / span 3; align-self:end; display:flex; align-items:center; gap:16px;
background: #fff; color: #22282b; border-radius: var(--card-radius); overflow:hidden; width: clamp(240px,20vw,300px); height: clamp(72px,5.5vh,84px);
text-decoration:none; transition: box-shadow 0.2s;
}
body:not(.is-ready) .about-card { opacity:0; transform: translateY(12px); animation: aboutCardIn 0.5s cubic-bezier(0.16,1,0.3,1) 2.8s forwards; }
@keyframes aboutCardIn { to { opacity:1; transform: translateY(0);} }
.about-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.about-card__image { width: clamp(64px,5vw,80px); height:100%; flex-shrink:0; overflow:hidden; }
.about-card__image img { width:100%; height:100%; object-fit:cover; display:block; }
.about-card__content { flex:1; display:flex; flex-direction:column; justify-content:center; padding-right:8px; min-width:0; }
.about-card__title { font-size: clamp(12px,0.9vw,14px); font-weight:600; margin:0; letter-spacing:-0.01em; }
.about-card__text { font-size: clamp(9px,0.65vw,11px); font-weight:400; color: #5a5f63; margin:2px 0 0 0; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.about-card__arrow { width: clamp(40px,3.5vw,50px); height:8px; flex-shrink:0; margin-left:4px; color: #22282b; transition: transform 0.2s; }
.about-card:hover .about-card__arrow { transform: translateX(3px); }
/ ===== PREFERS-REDUCED-MOTION ===== /
@media (prefers-reduced-motion: reduce) {
*,*::before,*::after { animation-duration:0.01ms !important; animation-delay:0ms !important; transition-duration:0.01ms !important; }
.hero__video { animation: none; }
.scroll-down__circle { animation: none; }
}
JAVASCRIPT (AGREGAR EN SRC/ROUTES/INDEX.TSX — EN UN BLOQUE DE EFECTO SECUNDARIO O useClient)
'use client';
import { useEffect } from 'react';
export default function HomePage() {
useEffect(() => {
const video = document.querySelector<HTMLVideoElement>('.hero__video');
if (!video) return;
const onReady = () => {
document.body.classList.add('is-ready');
};
if (video.readyState >= 4) {
onReady();
} else {
video.addEventListener('canplaythrough', onReady);
// Seguridad en caso de que el video nunca se cargue
setTimeout(onReady, 5000);
}
return () => {
video.removeEventListener('canplaythrough', onReady);
};
}, []);
return (
<div className="hero">
<div className="hero__bg">
<video className="hero__video" autoPlay muted loop playsInline preload="auto">
<source src="https://qclay.design/lovable/kubric/body.mp4" type="video/mp4" />
</video>
</div>
<div className="hero__overlay" />
<div className="hero__gradient-top" />
<div className="hero__gradient-bottom" />
<div className="hero__blur">
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} className="hero__blur-layer" />
))}
</div>
<header className="header">
<a href="#" className="logo" aria-label="Kubric">
<svg className="logo__icon" viewBox="0 0 122 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle className="logo__circle" cx="14.3" cy="14.9" r="7" fill="none" stroke="#fff" strokeWidth="3" />
<path className="logo__arc-1a" pathLength="100" stroke="#fff" strokeWidth="3" strokeLinecap="round" fill="none" d="M28.4955 14.6513C28.4346 12.2923 27.7563 9.99047 26.5284 7.9753C25.3005 5.96012 23.5657 4.30202 21.4972 3.1663C19.4287 2.03059 17.0985 1.45693 14.7392 1.50252C12.3798 1.54811 10.0736 2.21137 8.05047 3.42615" />
<path className="logo__arc-1b" pathLength="100" stroke="#fff" strokeWidth="3" strokeLinecap="round" fill="none" d="M28.4955 14.6513C28.5564 17.0104 27.998 19.3442 26.8757 21.4201C25.7535 23.496 24.1067 25.2414 22.0996 26.4824C20.0924 27.7234 17.795 28.4166 15.4365 28.4929C13.0779 28.5692 10.7405 28.026 8.65735 26.9173" />
<path className="logo__arc-2a" pathLength="100" stroke="#fff" strokeWidth="3" strokeLinecap="round" fill="none" d="M37.4997 14.9144C37.4824 12.1783 36.634 9.51197 35.0671 7.26888C33.5001 5.02578 31.2885 3.31178 28.7254 2.35403" />
<path className="logo__arc-2b" pathLength="100" stroke="#fff" strokeWidth="3" strokeLinecap="round" fill="none" d="M37.4997 14.9144C37.5171 17.6506 36.7026 20.3274 35.1642 22.5902C33.6258 24.853 31.4361 26.5949 28.8853 27.5851" />
<g className="logo__text-group">
<text x="46" y="22" fontFamily="Inter Tight" fontSize="22" fontWeight="700" fill="#fff" letterSpacing="-0.5">Kubric</text>
<text className="logo__tm" x="113" y="10">™</text>
</g>
</svg>
</a>
<nav className="nav-pill" aria-label="Principal">
<a href="#features" className="nav-pill__link">Características</a>
<a href="#team" className="nav-pill__link">
Equipo
<span className="nav-pill__badge">3</span>
</a>
<a href="#roadmap" className="nav-pill__link">Hoja de ruta</a>
<a href="#contact" className="nav-pill__link">Contacto</a>
</nav>
<button className="btn btn--header">
Reservar una llamada
<svg className="btn__arrow" viewBox="0 0 8 8">
<path d="M1 7L7 1M7 1H2M7 1V6" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</button>
</header>
<h1 className="hero__heading">
<span className="hero__line"><span className="hero__line-inner">Haciendo tu negocio</span></span>
<span className="hero__line"><span className="hero__line-inner">sobresaliente — es una</span></span>
<span className="hero__line"><span className="hero__line-inner"><em>Ciencia</em></span></span>
</h1>
<nav className="side-nav" aria-label="Secciones">
<a href="#home" className="side-nav__link side-nav__link--active">
<span className="side-nav__link-text">Inicio</span>
<span className="side-nav__line" />
</a>
<a href="#services" className="side-nav__link">
<span className="side-nav__link-text">Nuestros servicios</span>
<span className="side-nav__line" />
</a>
<a href="#about" className="side-nav__link">
<span className="side-nav__link-text">Sobre nosotros</span>
<span className="side-nav__line" />
</a>
<a href="#reviews" className="side-nav__link">
<span className="side-nav__link-text">Reseñas</span>
<span className="side-nav__line" />
</a>
<a href="#contact" className="side-nav__link">
<span className="side-nav__link-text">Contáctanos</span>
<span className="side-nav__line" />
</a>
</nav>
<div className="hero__blur-bar" />
<div className="hero__bottom">
<div className="hero__label">01 — Nuestro objetivo</div>
<p className="hero__desc">
Permitimos a los inversores y family offices más comprometidos del mundo<br />
acceder a estrategias de inversión gestionadas<br />
profesionalmente.
</p>
<div className="hero__actions">
<button className="btn btn--footer">
Discutir el proyecto
<svg className="btn__arrow" viewBox="0 0 8 8">
<path d="M1 7L7 1M7 1H2M7 1V6" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</button>
<button className="scroll-down" id="scrollDown">
<span className="scroll-down__text">Desplazarse hacia abajo</span>
<span className="scroll-down__circle">
<svg viewBox="0 0 7.222 8.667">
<path d="M3.611 1V7.667M3.611 7.667L1 5M3.611 7.667L6.222 5" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</span>
</button>
</div>
<a href="#about" className="about-card">
<div className="about-card__image">
<img src="https://qclay.design/lovable/kubric/card-image.png" alt="Primer plano de tulipán rosa" />
</div>
<div className="about-card__content">
<h3 className="about-card__title">Sobre nosotros</h3>
<p className="about-card__text">Estamos impulsados por un diseño centrado en el usuario que aumenta la productividad y los ingresos.</p>
</div>
<svg className="about-card__arrow" viewBox="0 0 77 13">
<path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</a>
</div>
</div>
);
}
