|
1 | 1 | @import "tailwindcss"; |
| 2 | +/* Antes de los overrides dark de la sección Leaflet para ganar en el cascade */ |
| 3 | +@import "leaflet/dist/leaflet.css"; |
2 | 4 |
|
3 | 5 | :root { |
4 | 6 | --background: #0d0d1a; |
|
8 | 10 | @theme inline { |
9 | 11 | --color-background: var(--background); |
10 | 12 | --color-foreground: var(--foreground); |
11 | | - --font-sans: var(--font-geist-sans); |
| 13 | + --font-sans: var(--font-titillium); |
12 | 14 | --font-mono: var(--font-geist-mono); |
13 | 15 | } |
14 | 16 |
|
| 17 | +/* ── Paleta oficial (extraída de public/images/logo.png) ── |
| 18 | + Tailwind v4 no usa tailwind.config.ts: los tokens se declaran aquí |
| 19 | + y generan clases como bg-python-blue o text-accent-orange. */ |
| 20 | +@theme { |
| 21 | + /* Marca */ |
| 22 | + --color-python-blue: #306998; |
| 23 | + --color-python-blue-light: #4b8bbe; |
| 24 | + --color-python-yellow: #ffd43b; |
| 25 | + --color-python-yellow-light: #ffe873; |
| 26 | + |
| 27 | + /* Acentos del mosaico del logo */ |
| 28 | + --color-accent-red: #e24329; |
| 29 | + --color-accent-orange: #f58220; |
| 30 | + --color-accent-green: #2fb350; |
| 31 | + --color-accent-purple: #5c4ee5; |
| 32 | + |
| 33 | + /* Neutros (modo oscuro) */ |
| 34 | + --color-night: #0d0d1a; |
| 35 | + --color-night-soft: #12122a; |
| 36 | + --color-night-card: #16162e; |
| 37 | +} |
| 38 | + |
| 39 | +@media (prefers-reduced-motion: no-preference) { |
| 40 | + html { |
| 41 | + scroll-behavior: smooth; |
| 42 | + } |
| 43 | +} |
| 44 | + |
15 | 45 | body { |
16 | 46 | background: var(--background); |
17 | 47 | color: var(--foreground); |
18 | | - font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif; |
| 48 | + font-family: var(--font-titillium), "Segoe UI", Arial, sans-serif; |
19 | 49 | } |
20 | 50 |
|
21 | | -/* ── Blob decorativo ──────────────────────────────────────── */ |
22 | | -.blob { |
23 | | - position: absolute; |
24 | | - border-radius: 50%; |
25 | | - filter: blur(100px); |
26 | | - opacity: 0.13; |
27 | | - pointer-events: none; |
28 | | - will-change: transform; |
| 51 | +::selection { |
| 52 | + background: var(--color-python-yellow); |
| 53 | + color: var(--color-night); |
| 54 | +} |
| 55 | + |
| 56 | +/* ── Utilidades editoriales de marca ──────────────────── */ |
| 57 | + |
| 58 | +/* Esquina inferior derecha cortada: contraste angular frente al mapa orgánico */ |
| 59 | +@utility cut-corner { |
| 60 | + clip-path: polygon( |
| 61 | + 0 0, |
| 62 | + 100% 0, |
| 63 | + 100% calc(100% - 18px), |
| 64 | + calc(100% - 18px) 100%, |
| 65 | + 0 100% |
| 66 | + ); |
| 67 | +} |
| 68 | + |
| 69 | +/* Corte diagonal inferior para portadas de eventos */ |
| 70 | +@utility clip-diagonal { |
| 71 | + clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%); |
| 72 | +} |
| 73 | + |
| 74 | +/* Texto contorneado para marcas de agua */ |
| 75 | +@utility text-stroke { |
| 76 | + -webkit-text-stroke: 1px rgb(255 255 255 / 0.1); |
| 77 | + color: transparent; |
29 | 78 | } |
30 | 79 |
|
31 | | -.blob-blue { |
32 | | - width: 520px; |
33 | | - height: 520px; |
34 | | - background: #4584b6; |
35 | | - top: -160px; |
36 | | - left: -160px; |
37 | | - animation: blob-float 11s ease-in-out infinite; |
| 80 | +/* ── Animación de entrada al hacer scroll (componente Reveal) ── */ |
| 81 | +.reveal { |
| 82 | + opacity: 0; |
| 83 | + transform: translateY(24px); |
| 84 | + transition: |
| 85 | + opacity 0.7s ease, |
| 86 | + transform 0.7s ease; |
38 | 87 | } |
39 | 88 |
|
40 | | -.blob-yellow { |
41 | | - width: 420px; |
42 | | - height: 420px; |
43 | | - background: #ffd43b; |
44 | | - top: -120px; |
45 | | - right: -120px; |
46 | | - animation: blob-float-reverse 13s ease-in-out infinite; |
| 89 | +.reveal.is-visible { |
| 90 | + opacity: 1; |
| 91 | + transform: none; |
47 | 92 | } |
48 | 93 |
|
49 | | -.blob-red { |
50 | | - width: 360px; |
51 | | - height: 360px; |
52 | | - background: #e63329; |
53 | | - bottom: -120px; |
54 | | - left: 8%; |
55 | | - animation: blob-float 15s ease-in-out infinite 2s; |
| 94 | +@media (prefers-reduced-motion: reduce) { |
| 95 | + .reveal { |
| 96 | + opacity: 1; |
| 97 | + transform: none; |
| 98 | + transition: none; |
| 99 | + } |
56 | 100 | } |
57 | 101 |
|
58 | | -.blob-green { |
59 | | - width: 300px; |
60 | | - height: 300px; |
61 | | - background: #4caf50; |
62 | | - bottom: -80px; |
63 | | - right: 6%; |
64 | | - animation: blob-float-reverse 12s ease-in-out infinite 1s; |
| 102 | +/* ── Leaflet (mapa del hero) ────────────────────────── */ |
| 103 | +.leaflet-container { |
| 104 | + background: var(--color-night); |
| 105 | + font-family: inherit; |
65 | 106 | } |
66 | 107 |
|
67 | | -/* ── Animaciones de blob ──────────────────────────────────── */ |
68 | | -@keyframes blob-float { |
69 | | - 0%, 100% { transform: translateY(0px) scale(1); } |
70 | | - 50% { transform: translateY(-28px) scale(1.06); } |
| 108 | +/* Marcador cuadrado del mosaico con anillo pulsante */ |
| 109 | +.map-marker { |
| 110 | + background: transparent; |
| 111 | + border: 0; |
| 112 | +} |
| 113 | + |
| 114 | +.map-marker__dot { |
| 115 | + position: absolute; |
| 116 | + inset: 0; |
| 117 | + border: 2px solid var(--color-night); |
| 118 | +} |
| 119 | + |
| 120 | +.map-marker__ring { |
| 121 | + position: absolute; |
| 122 | + inset: 0; |
| 123 | + opacity: 0.5; |
| 124 | + animation: marker-pulse 2s ease-out infinite; |
| 125 | +} |
| 126 | + |
| 127 | +@keyframes marker-pulse { |
| 128 | + 0% { |
| 129 | + transform: scale(1); |
| 130 | + opacity: 0.5; |
| 131 | + } |
| 132 | + 100% { |
| 133 | + transform: scale(2.4); |
| 134 | + opacity: 0; |
| 135 | + } |
| 136 | +} |
| 137 | + |
| 138 | +@media (prefers-reduced-motion: reduce) { |
| 139 | + .map-marker__ring { |
| 140 | + animation: none; |
| 141 | + opacity: 0; |
| 142 | + } |
| 143 | +} |
| 144 | + |
| 145 | +/* Popup acorde al estilo editorial (anguloso, sombra dura) */ |
| 146 | +.leaflet-popup-content-wrapper { |
| 147 | + background: var(--color-night); |
| 148 | + color: var(--foreground); |
| 149 | + border: 1px solid rgb(255 255 255 / 0.2); |
| 150 | + border-radius: 0; |
| 151 | + box-shadow: 8px 8px 0 0 rgb(0 0 0 / 0.45); |
71 | 152 | } |
72 | 153 |
|
73 | | -@keyframes blob-float-reverse { |
74 | | - 0%, 100% { transform: translateY(0px) scale(1); } |
75 | | - 50% { transform: translateY(28px) scale(0.94); } |
| 154 | +.leaflet-popup-content { |
| 155 | + margin: 16px; |
76 | 156 | } |
77 | 157 |
|
78 | | -/* ── Gradiente animado en el texto ───────────────────────── */ |
79 | | -.gradient-text { |
80 | | - background: linear-gradient(135deg, #ffd43b 0%, #4584b6 40%, #ffd43b 80%); |
81 | | - background-size: 200% 200%; |
82 | | - -webkit-background-clip: text; |
83 | | - -webkit-text-fill-color: transparent; |
84 | | - background-clip: text; |
85 | | - animation: gradient-shift 5s ease infinite; |
| 158 | +.leaflet-popup-content p { |
| 159 | + margin: 0; |
86 | 160 | } |
87 | 161 |
|
88 | | -@keyframes gradient-shift { |
89 | | - 0%, 100% { background-position: 0% 50%; } |
90 | | - 50% { background-position: 100% 50%; } |
| 162 | +.leaflet-popup-tip { |
| 163 | + background: var(--color-night); |
| 164 | + border: 1px solid rgb(255 255 255 / 0.2); |
| 165 | + box-shadow: none; |
91 | 166 | } |
92 | 167 |
|
93 | | -/* ── Glow suave en el logo ───────────────────────────────── */ |
94 | | -.logo-glow { |
95 | | - filter: drop-shadow(0 0 32px rgba(69, 132, 182, 0.25)); |
96 | | - transition: filter 0.4s ease; |
| 168 | +.leaflet-container a.leaflet-popup-close-button { |
| 169 | + color: #a1a1aa; |
97 | 170 | } |
98 | 171 |
|
99 | | -.logo-glow:hover { |
100 | | - filter: drop-shadow(0 0 48px rgba(255, 212, 59, 0.3)); |
| 172 | +.leaflet-container a.leaflet-popup-close-button:hover { |
| 173 | + color: #ffffff; |
101 | 174 | } |
102 | 175 |
|
103 | | -/* ── Badge «Próximamente» ────────────────────────────────── */ |
104 | | -@keyframes badge-ring { |
105 | | - 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.45); } |
106 | | - 60% { box-shadow: 0 0 0 10px rgba(255, 212, 59, 0); } |
| 176 | +/* Atribución OSM/CARTO discreta sobre fondo oscuro */ |
| 177 | +.leaflet-control-attribution { |
| 178 | + background: rgb(13 13 26 / 0.85) !important; |
| 179 | + color: #71717a; |
| 180 | + font-size: 10px; |
107 | 181 | } |
108 | 182 |
|
109 | | -.badge-glow { |
110 | | - animation: badge-ring 2.8s ease-out infinite; |
| 183 | +.leaflet-control-attribution a { |
| 184 | + color: #a1a1aa; |
111 | 185 | } |
0 commit comments