Skip to content

Commit a9c7588

Browse files
authored
Update index.css
Signed-off-by: Aitor Alien <[email protected]>
1 parent 44502a4 commit a9c7588

File tree

1 file changed

+70
-160
lines changed

1 file changed

+70
-160
lines changed

src/index.css

Lines changed: 70 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@tailwind base;
32
@tailwind components;
43
@tailwind utilities;
@@ -46,26 +45,16 @@
4645
--sidebar-ring: 48 83% 72%;
4746
}
4847

49-
/* TIPOGRAFÍA: Nasalization solo para títulos y botones */
5048
h1, h2, h3, h4, h5, h6, button {
5149
font-family: 'Nasalization', sans-serif;
5250
font-weight: 400;
5351
letter-spacing: 0.5px;
5452
}
5553

56-
/* Exo para texto general y formularios */
5754
body, p, span, div, a, input, textarea, label {
5855
font-family: 'Exo', system-ui, sans-serif;
5956
}
6057

61-
/* Helper para forzar Nasalization donde quieras */
62-
.font-nasalization {
63-
font-family: 'Nasalization', sans-serif;
64-
font-weight: 400;
65-
letter-spacing: 0.5px;
66-
}
67-
68-
/* Borde global sin usar @apply en el selector universal */
6958
:where(*, *::before, *::after) {
7059
border-color: hsl(var(--border));
7160
}
@@ -75,7 +64,7 @@
7564
scroll-behavior: smooth;
7665
}
7766

78-
/* Custom Scrollbar - Mejorado */
67+
/* Custom Scrollbar */
7968
::-webkit-scrollbar {
8069
width: 8px;
8170
height: 8px;
@@ -96,15 +85,16 @@
9685
}
9786
}
9887

99-
/* === Helpers y utilidades mejoradas === */
88+
/* Estilo de texto "Star Wars" */
10089
.text-glow {
101-
text-shadow:
102-
0 0 8px rgba(240, 216, 130, 0.8),
103-
0 0 16px rgba(240, 216, 130, 0.4),
104-
0 0 24px rgba(240, 216, 130, 0.2);
90+
text-shadow:
91+
0 0 5px #ffcc00,
92+
0 0 10px #ffcc00,
93+
0 0 20px #ffcc00,
94+
0 0 40px #ffcc00,
95+
0 0 80px #ffcc00;
10596
}
10697

107-
/* Mejora de legibilidad para párrafos sobre fondos complejos */
10898
.readable-glow {
10999
text-shadow:
110100
0 2px 6px hsl(var(--background) / 0.85),
@@ -119,130 +109,30 @@
119109
filter: drop-shadow(0 0 10px rgba(240, 216, 130, 0.6)) drop-shadow(0 0 20px rgba(240, 216, 130, 0.3));
120110
}
121111

122-
/* Star Wars title improved glow */
123-
.sw-title-glow {
124-
text-shadow:
125-
0 0 10px hsl(var(--sidebar-primary) / 0.9),
126-
0 0 24px hsl(var(--sidebar-accent) / 0.5),
127-
0 2px 28px hsl(var(--background) / 0.95);
128-
}
129-
130-
/* Readability panel for paragraphs over images */
131-
.readable-panel {
132-
background: linear-gradient(180deg, hsl(var(--background) / 0.45), hsl(var(--background) / 0.25));
133-
backdrop-filter: blur(6px);
134-
border: 1px solid hsl(var(--border));
135-
border-radius: 0.75rem;
136-
padding: 0.75rem 1rem;
137-
}
138-
139-
/* Improved card-border with better effects */
140-
.card-border {
141-
position: relative;
142-
border-radius: var(--radius);
143-
background: rgba(17, 17, 25, 0.7);
144-
backdrop-filter: blur(12px);
145-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
146-
}
147-
.card-border::before {
148-
content: '';
149-
position: absolute;
150-
top: 0;
151-
left: 0;
152-
right: 0;
153-
bottom: 0;
154-
border-radius: inherit;
155-
padding: 1.5px;
156-
background: linear-gradient(145deg, hsl(var(--sidebar-primary)), hsl(var(--sidebar-accent)));
157-
-webkit-mask:
158-
linear-gradient(#fff 0 0) content-box,
159-
linear-gradient(#fff 0 0);
160-
-webkit-mask-composite: xor;
161-
mask-composite: exclude;
162-
pointer-events: none;
163-
transition: opacity 0.3s ease;
164-
}
165-
.card-border:hover::before {
166-
background: linear-gradient(145deg, hsl(var(--sidebar-accent)), hsl(var(--sidebar-primary)));
167-
}
168-
169-
/* Professional Star Wars text styling - Subtle and harmonious */
170-
.starwars-text {
171-
color: hsl(var(--primary));
172-
text-shadow:
173-
0 1px 3px rgba(0, 0, 0, 0.3),
174-
0 0 8px hsl(var(--primary) / 0.2);
175-
font-family: 'Nasalization', sans-serif;
176-
font-weight: bold;
177-
letter-spacing: 1px;
178-
}
179-
180-
/* Clean Star Wars crawl - No background box, subtle animation */
181-
.star-wars-crawl {
182-
perspective: 400px;
183-
height: auto;
184-
overflow: visible;
185-
margin: 2rem 0;
186-
display: flex;
187-
justify-content: center;
188-
align-items: center;
189-
}
190-
191-
.star-wars-content {
192-
transform: rotateX(12deg);
193-
transform-origin: center top;
194-
max-width: 700px;
195-
margin: 0 auto;
196-
padding: 1.5rem;
197-
font-size: 1rem;
198-
line-height: 1.7;
199-
text-align: center;
200-
color: hsl(var(--foreground) / 0.9);
201-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
202-
animation: subtle-float 4s ease-in-out infinite;
203-
}
204-
205-
@keyframes subtle-float {
206-
0%, 100% {
207-
transform: rotateX(12deg) translateY(0px);
208-
}
209-
50% {
210-
transform: rotateX(12deg) translateY(-3px);
211-
}
212-
}
213-
214-
/* Professional title glow - Subtle and elegant */
215112
.hero-title {
216-
text-shadow:
113+
text-shadow:
217114
0 0 20px hsl(var(--primary) / 0.3),
218115
0 0 40px hsl(var(--secondary) / 0.2),
219116
0 2px 4px rgba(0, 0, 0, 0.1);
220117
}
221118

222-
/* Refined logo glow */
223119
.logo-glow {
224-
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1))
225-
drop-shadow(0 0 12px hsl(var(--primary) / 0.2));
120+
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 12px hsl(var(--primary) / 0.2));
226121
}
227122

228-
/* Responsive improvements */
229-
@media (max-width: 768px) {
230-
.star-wars-content {
231-
transform: rotateX(10deg);
232-
}
233-
@keyframes star-wars-float-compact {
234-
0% {
235-
transform: rotateX(10deg) translateY(20px);
236-
opacity: 0;
237-
}
238-
20% {
239-
opacity: 1;
240-
}
241-
100% {
242-
transform: rotateX(10deg) translateY(0);
243-
opacity: 1;
244-
}
245-
}
123+
/* Background & Stars */
124+
.bg-stars {
125+
background: black url('/lovable-uploads/stars-bg.png') repeat;
126+
animation: moveStars 200s linear infinite;
127+
}
128+
129+
@keyframes moveStars {
130+
from { background-position: 0 0; }
131+
to { background-position: -10000px 5000px; }
132+
}
133+
134+
.bg-glow-radial {
135+
background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
246136
}
247137

248138
.parallax {
@@ -252,10 +142,6 @@
252142
background-size: cover;
253143
}
254144

255-
.bg-glow-radial {
256-
background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
257-
}
258-
259145
.cosmic-grid {
260146
position: relative;
261147
}
@@ -275,16 +161,6 @@
275161
z-index: -1;
276162
}
277163

278-
@keyframes ticker-scroll {
279-
0% {
280-
transform: translateX(0);
281-
}
282-
100% {
283-
transform: translateX(-100%);
284-
}
285-
}
286-
287-
/* Additional responsive utilities */
288164
.section-center {
289165
display: flex;
290166
flex-direction: column;
@@ -294,30 +170,64 @@
294170
text-align: center;
295171
}
296172

297-
/* Smooth transitions for better UX */
173+
/* Smooth transitions */
298174
* {
299175
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
300176
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
301177
transition-duration: 200ms;
302178
}
303179

304-
/* Focus styles for accessibility */
180+
/* Accessibility */
305181
:focus-visible {
306182
outline: 2px solid hsl(var(--sidebar-primary));
307183
outline-offset: 2px;
308184
}
309185

310-
/* === REFUERZO UNIVERSAL NASALIZATION === */
311-
.font-nasalization, .font-nasalization * {
312-
font-family: 'Nasalization', sans-serif !important;
313-
font-weight: 400;
314-
letter-spacing: 0.5px;
186+
/* Estilos de la versión anterior que se han mantenido */
187+
html, body {
188+
margin: 0;
189+
padding: 0;
190+
min-height: 100vh;
191+
width: 100%;
192+
background-color: transparent;
193+
color: #F0D882;
194+
overflow-x: hidden;
195+
font-family: 'Exo', sans-serif;
196+
scroll-behavior: smooth;
315197
}
316198

317-
/* Mobile optimizations */
318-
@media (max-width: 640px) {
319-
.container {
320-
padding-left: 1rem;
321-
padding-right: 1rem;
322-
}
199+
#root {
200+
min-height: 100vh;
201+
display: flex;
202+
flex-direction: column;
203+
}
204+
205+
main {
206+
flex: 1;
207+
position: relative;
208+
padding-top: 8rem;
209+
}
210+
211+
.card-border {
212+
position: relative;
213+
border-radius: 0.5rem;
214+
background: rgba(17, 17, 25, 0.7);
215+
backdrop-filter: blur(12px);
216+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
217+
}
218+
.card-border::before {
219+
content: '';
220+
position: absolute;
221+
inset: 0;
222+
border-radius: inherit;
223+
padding: 1.5px;
224+
background: linear-gradient(145deg, hsl(48, 83%, 72%), hsl(142, 67%, 45%));
225+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
226+
-webkit-mask-composite: xor;
227+
mask-composite: exclude;
228+
pointer-events: none;
229+
transition: opacity 0.3s ease;
230+
}
231+
.card-border:hover::before {
232+
background: linear-gradient(145deg, hsl(142, 67%, 45%), hsl(48, 83%, 72%));
323233
}

0 commit comments

Comments
 (0)