Files
Landing/src/app/globals.css
T
2026-10-06 02:00:11 -05:00

301 lines
7.4 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-brand-blue: #0077c2;
--color-brand-navy: #001f5b;
--color-brand-black: #0a0a0a;
--color-brand-red: #3b82f6;
--color-bg-light: #f9f9f7;
--color-bg-alt: #f0efec;
--color-border-light: #dddbd5;
--color-text-secondary: #6a6866;
--color-dark-bg: #080c14;
--color-dark-surface: #0f1520;
--color-dark-border: #1c2535;
--font-sans: 'Quicksand', system-ui, sans-serif;
--font-display: 'Quicksand', system-ui, sans-serif;
--font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
/* shadcn/ui tokens */
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--radius: 0.5rem;
}
:root {
color-scheme: light;
--background: #f9f9f7;
--foreground: #0a0a0a;
--card: #ffffff;
--card-foreground: #0a0a0a;
--popover: #ffffff;
--popover-foreground: #0a0a0a;
--primary: #3b82f6;
--primary-foreground: #ffffff;
--secondary: #f0efec;
--secondary-foreground: #0a0a0a;
--muted: #f0efec;
--muted-foreground: #6a6866;
--accent: #3b82f6;
--accent-foreground: #ffffff;
--destructive: #dc2626;
--destructive-foreground: #ffffff;
--border: #dddbd5;
--input: #dddbd5;
--ring: #3b82f6;
}
.dark {
color-scheme: dark;
--background: #080c14;
--foreground: #f9f9f7;
--card: #0f1520;
--card-foreground: #f9f9f7;
--popover: #0f1520;
--popover-foreground: #f9f9f7;
--primary: #3b82f6;
--primary-foreground: #ffffff;
--secondary: #141b29;
--secondary-foreground: #f9f9f7;
--muted: #141b29;
--muted-foreground: #8a93a6;
--accent: #3b82f6;
--accent-foreground: #ffffff;
--destructive: #ef4444;
--destructive-foreground: #ffffff;
--border: #1c2535;
--input: #1c2535;
--ring: #3b82f6;
}
@layer base {
body {
@apply font-sans antialiased m-0 p-0;
/* overflow-x: clip (not hidden) avoids forcing overflow-y to auto,
so this element can never become its own "parent" scroll container. */
overflow-x: clip;
overflow-y: visible;
background-color: var(--background);
color: var(--foreground);
}
h1, h2, h3, h4, .font-display {
font-family: var(--font-display);
}
*:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
}
/* Typography scale */
.text-display {
font-family: var(--font-display);
font-size: clamp(2.6rem, 6vw, 5.5rem);
line-height: 1.02;
font-weight: 900;
letter-spacing: -0.04em;
}
.text-headline {
font-family: var(--font-display);
font-size: clamp(1.8rem, 4vw, 3.2rem);
line-height: 1.1;
font-weight: 800;
letter-spacing: -0.03em;
}
.text-section-title {
font-family: var(--font-display);
font-size: clamp(1.5rem, 3vw, 2.4rem);
line-height: 1.15;
font-weight: 800;
letter-spacing: -0.025em;
}
.text-mono-label {
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.18em;
text-transform: uppercase;
font-weight: 500;
}
/* Section wave divider */
.section-wave {
position: relative;
}
.section-wave::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, currentColor, transparent);
opacity: 0.12;
pointer-events: none;
}
/* Bg patterns */
.bg-dot-grid {
background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
background-size: 24px 24px;
}
.bg-grid-lines {
background-image:
linear-gradient(currentColor 1px, transparent 1px),
linear-gradient(to right, currentColor 1px, transparent 1px);
background-size: 48px 48px;
}
/* Ticker */
@keyframes ticker {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.animate-ticker {
animation: ticker 32s linear infinite;
}
/* Anatomy accordion */
.anatomy-body {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.anatomy-body.open {
grid-template-rows: 1fr;
}
.anatomy-body-inner {
overflow: hidden;
}
/* Principles hover */
.principle-desc {
max-height: 0;
overflow: hidden;
transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.principle-item:hover .principle-desc,
.principle-item:focus-within .principle-desc {
max-height: 120px;
}
/* Modal fade */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.animate-fadeIn {
animation: fadeIn 200ms ease;
}
/* Aviso de privacidad — contenido editorial */
.prose-rynext h2 {
font-family: var(--font-display);
font-size: 1.15rem;
font-weight: 800;
letter-spacing: -0.02em;
color: var(--foreground);
margin-top: 2.5rem;
margin-bottom: 0.75rem;
}
.prose-rynext p,
.prose-rynext ul {
font-size: 0.95rem;
line-height: 1.75;
color: var(--muted-foreground);
margin-bottom: 1rem;
}
.prose-rynext ul {
padding-left: 1.25rem;
list-style: disc;
}
.prose-rynext li {
margin-bottom: 0.35rem;
}
.prose-rynext a {
color: #3b82f6;
text-decoration: underline;
text-underline-offset: 3px;
}
.prose-rynext strong {
color: var(--foreground);
font-weight: 600;
}
/* Hero ambient blobs — pure CSS (compositor), avoids JS-driven rAF work during scroll */
@keyframes hero-blob-a {
0% { opacity: 0; transform: scale(0.85) translate(0, 0); }
8% { opacity: 1; }
50% { opacity: 0.85; transform: scale(1.05) translate(16px, -20px); }
75% { opacity: 1; transform: scale(1) translate(-10px, 8px); }
100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
@keyframes hero-blob-b {
0% { opacity: 0; transform: scale(0.9) translate(0, 0); }
10% { opacity: 0.6; }
50% { opacity: 0.7; transform: scale(1.08) translate(-40px, 30px); }
75% { opacity: 0.6; transform: scale(0.95) translate(20px, -16px); }
100% { opacity: 0.6; transform: scale(1.05) translate(0, 0); }
}
.animate-hero-blob-a {
animation: hero-blob-a 9s ease-in-out infinite;
animation-delay: 0.2s;
}
.animate-hero-blob-b {
animation: hero-blob-b 11s ease-in-out infinite;
animation-delay: 0.3s;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.animate-ticker {
animation: none;
}
.animate-hero-blob-a,
.animate-hero-blob-b {
animation: none;
opacity: 1;
}
}
/* Chrome usa un color de placeholder distinto por defecto para <textarea>
que para <input> (gris muy oscuro, casi ilegible sobre fondos oscuros).
Forzamos a que herede el color de texto del propio campo, igual que
ya ocurre con los <input>. */
textarea::placeholder {
color: currentColor;
opacity: 0.5;
}