|
17 | 17 | :root { |
18 | 18 | --background: 240 33% 5%; |
19 | 19 | --foreground: 0 0% 98%; |
20 | | - |
21 | 20 | --card: 240 33% 8%; |
22 | 21 | --card-foreground: 0 0% 98%; |
23 | | - |
24 | 22 | --popover: 240 33% 5%; |
25 | 23 | --popover-foreground: 0 0% 98%; |
26 | | - |
27 | 24 | --primary: 48 83% 72%; |
28 | 25 | --primary-foreground: 240 33% 10%; |
29 | | - |
30 | 26 | --secondary: 142 67% 45%; |
31 | 27 | --secondary-foreground: 0 0% 98%; |
32 | | - |
33 | 28 | --muted: 240 20% 20%; |
34 | 29 | --muted-foreground: 240 10% 80%; |
35 | | - |
36 | 30 | --accent: 48 83% 72%; |
37 | 31 | --accent-foreground: 240 33% 10%; |
38 | | - |
39 | 32 | --destructive: 0 84.2% 60.2%; |
40 | 33 | --destructive-foreground: 0 0% 98%; |
41 | | - |
42 | 34 | --border: 240 20% 16%; |
43 | 35 | --input: 240 20% 16%; |
44 | 36 | --ring: 48 83% 72%; |
45 | | - |
46 | 37 | --radius: 0.5rem; |
47 | | - |
48 | 38 | --sidebar-background: 240 33% 5%; |
49 | 39 | --sidebar-foreground: 0 0% 98%; |
50 | 40 | --sidebar-primary: 48 83% 72%; |
|
55 | 45 | --sidebar-ring: 48 83% 72%; |
56 | 46 | } |
57 | 47 |
|
58 | | - /* IMPORTANTE: Declaraciones de fuente prioritarias */ |
59 | | - h1, h2, h3, h4, h5, h6 { |
| 48 | + /* TIPOGRAFÍA: Nasalization solo para títulos y botones */ |
| 49 | + h1, h2, h3, h4, h5, h6, button { |
60 | 50 | font-family: 'Nasalization', sans-serif; |
61 | | - font-weight: 400; /* Asegurado que no esté en bold */ |
| 51 | + font-weight: 400; |
62 | 52 | letter-spacing: 0.5px; |
63 | 53 | } |
64 | 54 |
|
65 | | - body, p, span, div, a, button { |
| 55 | + /* Exo para texto general y formularios */ |
| 56 | + body, p, span, div, a, input, textarea, label { |
66 | 57 | font-family: 'Exo', system-ui, sans-serif; |
67 | 58 | } |
68 | 59 |
|
69 | | - /* Clase estándar para fuente Nasalization */ |
| 60 | + /* Helper para forzar Nasalization donde quieras */ |
70 | 61 | .font-nasalization { |
71 | 62 | font-family: 'Nasalization', sans-serif; |
72 | 63 | font-weight: 400; |
73 | 64 | letter-spacing: 0.5px; |
74 | 65 | } |
75 | | -} |
76 | 66 |
|
77 | | -@layer base { |
78 | | - * { |
79 | | - @apply border-border; |
| 67 | + /* Borde global sin usar @apply en el selector universal */ |
| 68 | + :where(*, *::before, *::after) { |
| 69 | + border-color: hsl(var(--border)); |
80 | 70 | } |
81 | 71 |
|
82 | 72 | body { |
|
87 | 77 | ::-webkit-scrollbar { |
88 | 78 | width: 8px; |
89 | 79 | } |
90 | | - |
91 | 80 | ::-webkit-scrollbar-track { |
92 | | - background: theme('colors.alien.space-dark'); |
| 81 | + background: hsl(var(--sidebar-background)); |
93 | 82 | } |
94 | | - |
95 | 83 | ::-webkit-scrollbar-thumb { |
96 | | - background: theme('colors.alien.gold-dark'); |
| 84 | + background: hsl(var(--sidebar-primary)); |
97 | 85 | border-radius: 4px; |
98 | 86 | } |
99 | | - |
100 | 87 | ::-webkit-scrollbar-thumb:hover { |
101 | | - background: theme('colors.alien.gold'); |
| 88 | + background: hsl(var(--sidebar-primary-foreground)); |
102 | 89 | } |
103 | 90 | } |
104 | 91 |
|
| 92 | +/* === Helpers y utilidades === */ |
105 | 93 | .text-glow { |
106 | 94 | text-shadow: 0 0 8px rgba(240, 216, 130, 0.8); |
107 | 95 | } |
|
117 | 105 | /* Improved card-border without unwanted backgrounds */ |
118 | 106 | .card-border { |
119 | 107 | position: relative; |
120 | | - border-radius: theme('borderRadius.lg'); |
| 108 | + border-radius: var(--radius); |
121 | 109 | background: rgba(17, 17, 25, 0.6); |
122 | | - backdrop-filter: blur(8px); |
| 110 | + backdrop-filter: blur(8px); /* Puede avisar pero es seguro para navegadores modernos */ |
123 | 111 | } |
124 | | - |
125 | 112 | .card-border::before { |
126 | 113 | content: ''; |
127 | 114 | position: absolute; |
|
131 | 118 | bottom: 0; |
132 | 119 | border-radius: inherit; |
133 | 120 | padding: 1.5px; |
134 | | - background: linear-gradient(145deg, theme('colors.alien.gold'), theme('colors.alien.green')); |
| 121 | + background: linear-gradient(145deg, hsl(var(--sidebar-primary)), hsl(var(--sidebar-accent))); |
135 | 122 | -webkit-mask: |
136 | 123 | linear-gradient(#fff 0 0) content-box, |
137 | 124 | linear-gradient(#fff 0 0); |
138 | | - -webkit-mask-composite: xor; |
139 | | - mask-composite: exclude; |
| 125 | + -webkit-mask-composite: xor; /* Puede avisar, es experimental */ |
| 126 | + mask-composite: exclude; /* Puede avisar, es experimental */ |
140 | 127 | pointer-events: none; |
141 | 128 | } |
142 | 129 |
|
|
149 | 136 | align-items: center; |
150 | 137 | max-width: 100%; |
151 | 138 | } |
152 | | - |
153 | 139 | .star-wars-content { |
154 | 140 | transform: rotateX(20deg); |
155 | 141 | transform-origin: center top; |
156 | 142 | animation: star-wars-float 4s ease-out forwards; |
157 | 143 | width: 100%; |
158 | 144 | padding: 2rem; |
159 | 145 | } |
160 | | - |
161 | 146 | @keyframes star-wars-float { |
162 | 147 | 0% { |
163 | 148 | transform: rotateX(20deg) translateY(100px); |
|
172 | 157 | } |
173 | 158 | } |
174 | 159 |
|
175 | | -/* Parallax effect */ |
176 | 160 | .parallax { |
177 | 161 | background-attachment: fixed; |
178 | 162 | background-position: center; |
179 | 163 | background-repeat: no-repeat; |
180 | 164 | background-size: cover; |
181 | 165 | } |
182 | 166 |
|
183 | | -/* Background gradient */ |
184 | 167 | .bg-glow-radial { |
185 | 168 | background: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, rgba(0, 0, 0, 0) 70%); |
186 | 169 | } |
187 | 170 |
|
188 | | -/* Cosmic grid */ |
189 | 171 | .cosmic-grid { |
190 | 172 | position: relative; |
191 | 173 | } |
192 | | - |
193 | 174 | .cosmic-grid::before { |
194 | 175 | content: ""; |
195 | 176 | position: absolute; |
|
205 | 186 | pointer-events: none; |
206 | 187 | z-index: -1; |
207 | 188 | } |
208 | | - |
209 | | -/* Price ticker animation */ |
210 | 189 | @keyframes ticker-scroll { |
211 | 190 | 0% { |
212 | 191 | transform: translateX(0); |
|
0 commit comments