| 1 | /* Panel de inicio - estilos del dashboard (mockup institucional) */ |
| 2 | |
| 3 | .inicio-container, |
| 4 | .inicio-container * { |
| 5 | border-radius: 0 !important; |
| 6 | } |
| 7 | |
| 8 | .inicio-container { |
| 9 | max-width: 1100px; |
| 10 | margin: 0 auto; |
| 11 | color: #1a1a1a; |
| 12 | } |
| 13 | |
| 14 | .inicio-container .card { |
| 15 | background: #ffffff; |
| 16 | border: 1px solid #dcdfe6; |
| 17 | padding: 20px; |
| 18 | margin-bottom: 20px; |
| 19 | } |
| 20 | |
| 21 | /* Aviso de filtro por carrera */ |
| 22 | .filter-note { |
| 23 | display: inline-block; |
| 24 | margin: 0 0 0.75rem; |
| 25 | padding: 0.35rem 0.625rem; |
| 26 | background: var(--accent-soft, #e8f5e9); |
| 27 | border: 1px solid var(--accent-soft-border, #c8e6c9); |
| 28 | color: var(--accent-dark, #005a2b); |
| 29 | font-size: 0.83rem; |
| 30 | } |
| 31 | |
| 32 | .filter-note[hidden] { display: none; } |
| 33 | |
| 34 | /* --- Banner MAPS superior --- */ |
| 35 | .inicio-container .maps-banner { |
| 36 | border-left: 4px solid var(--accent-dark, #005a2b); |
| 37 | } |
| 38 | |
| 39 | .inicio-container .banner-content { |
| 40 | display: flex; |
| 41 | justify-content: space-between; |
| 42 | align-items: center; |
| 43 | flex-wrap: wrap; |
| 44 | gap: 12px; |
| 45 | } |
| 46 | |
| 47 | .inicio-container .banner-content h2 { |
| 48 | color: var(--accent-dark, #005a2b); |
| 49 | font-size: 1.3rem; |
| 50 | margin: 0; |
| 51 | } |
| 52 | |
| 53 | .inicio-container .banner-content p { |
| 54 | color: #555; |
| 55 | font-size: 0.9rem; |
| 56 | margin: 4px 0 0; |
| 57 | } |
| 58 | |
| 59 | .inicio-container .progress-container { |
| 60 | margin-top: 14px; |
| 61 | } |
| 62 | |
| 63 | .inicio-container .progress-labels { |
| 64 | display: flex; |
| 65 | justify-content: space-between; |
| 66 | font-size: 0.8rem; |
| 67 | color: #666; |
| 68 | font-weight: 600; |
| 69 | margin-bottom: 6px; |
| 70 | } |
| 71 | |
| 72 | .inicio-container .progress-bar { |
| 73 | width: 100%; |
| 74 | height: 8px; |
| 75 | background-color: #e2e8f0; |
| 76 | } |
| 77 | |
| 78 | .inicio-container .progress-fill { |
| 79 | height: 100%; |
| 80 | background-color: var(--accent-dark, #005a2b); |
| 81 | } |
| 82 | |
| 83 | /* --- Layout dos columnas --- */ |
| 84 | .inicio-container .main-layout { |
| 85 | display: grid; |
| 86 | grid-template-columns: 2fr 1fr; |
| 87 | gap: 20px; |
| 88 | } |
| 89 | |
| 90 | @media (max-width: 850px) { |
| 91 | .inicio-container .main-layout { |
| 92 | grid-template-columns: 1fr; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /* --- Caja de publicar --- */ |
| 97 | .inicio-container .create-post input { |
| 98 | width: 100%; |
| 99 | padding: 12px; |
| 100 | border: 1px solid #dcdfe6; |
| 101 | margin-bottom: 12px; |
| 102 | outline: none; |
| 103 | font-size: 0.9rem; |
| 104 | } |
| 105 | |
| 106 | .inicio-container .create-post-actions { |
| 107 | display: flex; |
| 108 | justify-content: space-between; |
| 109 | align-items: center; |
| 110 | gap: 8px; |
| 111 | } |
| 112 | |
| 113 | .inicio-container .create-post-actions select { |
| 114 | padding: 8px; |
| 115 | border: 1px solid #dcdfe6; |
| 116 | outline: none; |
| 117 | color: #444; |
| 118 | flex: 1; |
| 119 | } |
| 120 | |
| 121 | .inicio-container .btn-solid { |
| 122 | background-color: var(--accent-dark, #005a2b); |
| 123 | color: #ffffff; |
| 124 | border: none; |
| 125 | padding: 8px 18px; |
| 126 | font-size: 0.9rem; |
| 127 | font-weight: bold; |
| 128 | cursor: pointer; |
| 129 | text-decoration: none; |
| 130 | display: inline-block; |
| 131 | text-align: center; |
| 132 | } |
| 133 | |
| 134 | /* --- Publicaciones --- */ |
| 135 | .inicio-container .feed-column .post-card { |
| 136 | padding: 18px; |
| 137 | } |
| 138 | |
| 139 | .inicio-container .post-header { |
| 140 | display: flex; |
| 141 | justify-content: space-between; |
| 142 | align-items: flex-start; |
| 143 | gap: 10px; |
| 144 | margin-bottom: 10px; |
| 145 | } |
| 146 | |
| 147 | .inicio-container .user-block { |
| 148 | display: flex; |
| 149 | align-items: center; |
| 150 | gap: 10px; |
| 151 | } |
| 152 | |
| 153 | .inicio-container .avatar { |
| 154 | width: 38px; |
| 155 | height: 38px; |
| 156 | background-color: var(--accent-dark, #005a2b); |
| 157 | color: #ffffff; |
| 158 | display: flex; |
| 159 | align-items: center; |
| 160 | justify-content: center; |
| 161 | font-weight: bold; |
| 162 | font-size: 0.85rem; |
| 163 | flex-shrink: 0; |
| 164 | } |
| 165 | |
| 166 | .inicio-container .avatar.prof { |
| 167 | background-color: #0284c7; |
| 168 | } |
| 169 | |
| 170 | .inicio-container .avatar-foto { |
| 171 | width: 38px; |
| 172 | height: 38px; |
| 173 | object-fit: cover; |
| 174 | background-color: var(--accent-dark, #005a2b); |
| 175 | } |
| 176 | |
| 177 | .inicio-container .avatar-foto.prof, |
| 178 | .inicio-container .avatar.prof { |
| 179 | background-color: #0284c7; |
| 180 | } |
| 181 | |
| 182 | .inicio-container .user-data-line { |
| 183 | display: flex; |
| 184 | align-items: center; |
| 185 | gap: 8px; |
| 186 | } |
| 187 | |
| 188 | .inicio-container .user-data strong { |
| 189 | font-size: 0.9rem; |
| 190 | color: #222; |
| 191 | display: block; |
| 192 | } |
| 193 | |
| 194 | .inicio-container .user-data span { |
| 195 | font-size: 0.75rem; |
| 196 | color: #777; |
| 197 | } |
| 198 | |
| 199 | .inicio-container .badges-wrap { |
| 200 | display: flex; |
| 201 | gap: 6px; |
| 202 | flex-wrap: wrap; |
| 203 | } |
| 204 | |
| 205 | .inicio-container .badge { |
| 206 | padding: 3px 8px; |
| 207 | font-size: 0.75rem; |
| 208 | font-weight: bold; |
| 209 | display: inline-block; |
| 210 | } |
| 211 | |
| 212 | .inicio-container .badge-materia { |
| 213 | background-color: var(--accent-soft, #e8f5e9); |
| 214 | color: var(--accent-dark, #005a2b); |
| 215 | border: 1px solid var(--accent-soft-border, #c8e6c9); |
| 216 | } |
| 217 | |
| 218 | .inicio-container .badge-interacted { |
| 219 | background-color: #fef3c7; |
| 220 | color: #92400e; |
| 221 | border: 1px solid #fde68a; |
| 222 | } |
| 223 | |
| 224 | .inicio-container .badge-solved { |
| 225 | background-color: var(--accent-soft, #dcfce7); |
| 226 | color: #166534; |
| 227 | border: 1px solid #bbf7d0; |
| 228 | } |
| 229 | |
| 230 | .inicio-container .badge-verified { |
| 231 | background-color: #e0f2fe; |
| 232 | color: #0369a1; |
| 233 | border: 1px solid #bae6fd; |
| 234 | } |
| 235 | |
| 236 | .inicio-container .post-title { |
| 237 | font-size: 1.05rem; |
| 238 | color: #111; |
| 239 | margin: 0 0 6px; |
| 240 | } |
| 241 | |
| 242 | .inicio-container .post-body { |
| 243 | font-size: 0.9rem; |
| 244 | color: #444; |
| 245 | line-height: 1.4; |
| 246 | margin: 0 0 12px; |
| 247 | } |
| 248 | |
| 249 | /* --- Respuestas / archivo incrustados --- */ |
| 250 | .inicio-container .embed-box { |
| 251 | background-color: #f9fafb; |
| 252 | border-left: 3px solid var(--accent-dark, #005a2b); |
| 253 | padding: 10px 12px; |
| 254 | margin: 10px 0; |
| 255 | font-size: 0.85rem; |
| 256 | } |
| 257 | |
| 258 | .inicio-container .embed-box strong { |
| 259 | display: block; |
| 260 | margin-bottom: 4px; |
| 261 | color: var(--accent-dark, #005a2b); |
| 262 | } |
| 263 | |
| 264 | .inicio-container .embed-box p { |
| 265 | margin: 0; |
| 266 | color: #444; |
| 267 | } |
| 268 | |
| 269 | .inicio-container .embed-box.prof-box { |
| 270 | border-left-color: #0284c7; |
| 271 | background-color: #f0f9ff; |
| 272 | } |
| 273 | |
| 274 | .inicio-container .embed-box code { |
| 275 | background: #f1f5f9; |
| 276 | padding: 1px 4px; |
| 277 | font-size: 0.78rem; |
| 278 | } |
| 279 | |
| 280 | .inicio-container .post-footer { |
| 281 | display: flex; |
| 282 | justify-content: space-between; |
| 283 | align-items: center; |
| 284 | gap: 8px; |
| 285 | border-top: 1px solid #f0f0f0; |
| 286 | padding-top: 10px; |
| 287 | margin-top: 10px; |
| 288 | } |
| 289 | |
| 290 | .inicio-container .action-links { |
| 291 | display: flex; |
| 292 | gap: 14px; |
| 293 | flex-wrap: wrap; |
| 294 | } |
| 295 | |
| 296 | .inicio-container .btn-action { |
| 297 | background: none; |
| 298 | border: none; |
| 299 | color: #555; |
| 300 | cursor: pointer; |
| 301 | font-size: 0.82rem; |
| 302 | font-weight: 600; |
| 303 | padding: 0; |
| 304 | } |
| 305 | |
| 306 | .inicio-container .btn-action:hover { |
| 307 | color: var(--accent-dark, #005a2b); |
| 308 | } |
| 309 | |
| 310 | .inicio-container .btn-action.voted { |
| 311 | color: var(--accent-dark, #005a2b); |
| 312 | font-weight: bold; |
| 313 | } |
| 314 | |
| 315 | .inicio-container .post-status { |
| 316 | font-size: 0.75rem; |
| 317 | color: #888; |
| 318 | white-space: nowrap; |
| 319 | } |
| 320 | |
| 321 | /* --- Barra lateral --- */ |
| 322 | .inicio-container .sidebar-section h3, |
| 323 | .inicio-container .sidebar-section h4 { |
| 324 | margin: 0 0 8px; |
| 325 | } |
| 326 | |
| 327 | .inicio-container .sidebar-section .side-card { |
| 328 | border-top: 3px solid var(--accent-dark, #005a2b); |
| 329 | } |
| 330 | |
| 331 | .inicio-container .sidebar-section .side-card.prof-card { |
| 332 | border-top-color: #0284c7; |
| 333 | } |
| 334 | |
| 335 | .inicio-container .side-card h4 { |
| 336 | font-size: 0.95rem; |
| 337 | } |
| 338 | |
| 339 | .inicio-container .side-card p { |
| 340 | font-size: 0.85rem; |
| 341 | color: #555; |
| 342 | line-height: 1.4; |
| 343 | margin: 0 0 12px; |
| 344 | } |
| 345 | |
| 346 | .inicio-container .btn-clean { |
| 347 | background-color: transparent; |
| 348 | color: var(--accent-dark, #005a2b); |
| 349 | border: 1px solid var(--accent-dark, #005a2b); |
| 350 | padding: 6px 12px; |
| 351 | font-size: 0.85rem; |
| 352 | cursor: pointer; |
| 353 | font-weight: 600; |
| 354 | width: 100%; |
| 355 | text-decoration: none; |
| 356 | display: inline-block; |
| 357 | text-align: center; |
| 358 | } |
| 359 | |
| 360 | .inicio-container .side-link { |
| 361 | display: inline-block; |
| 362 | color: var(--accent-dark, #005a2b); |
| 363 | font-size: 0.85rem; |
| 364 | font-weight: bold; |
| 365 | text-decoration: none; |
| 366 | cursor: pointer; |
| 367 | } |
| 368 | |
| 369 | .inicio-container .side-link:hover { |
| 370 | text-decoration: underline; |
| 371 | } |
| 372 | |
| 373 | /* ============================================================ |
| 374 | MODO OSCURO ÔÇö Panel de inicio (inversi├│n pareja) |
| 375 | ============================================================ */ |
| 376 | html.dark-mode .inicio-container { |
| 377 | color: #e6edf3; |
| 378 | } |
| 379 | |
| 380 | html.dark-mode .inicio-container .card { |
| 381 | background: #161b22; |
| 382 | border-color: #30363d; |
| 383 | } |
| 384 | |
| 385 | html.dark-mode .filter-note { |
| 386 | background: #12291d; |
| 387 | border-color: #14532d; |
| 388 | color: #a7f3d0; |
| 389 | } |
| 390 | |
| 391 | html.dark-mode .inicio-container .banner-content h2, |
| 392 | html.dark-mode .inicio-container .side-card h4 { |
| 393 | color: var(--accent-bright, #3fb950); |
| 394 | } |
| 395 | |
| 396 | html.dark-mode .inicio-container .banner-content p, |
| 397 | html.dark-mode .inicio-container .progress-labels, |
| 398 | html.dark-mode .inicio-container .side-card p, |
| 399 | html.dark-mode .inicio-container .action-links .btn-action { |
| 400 | color: #8b949e; |
| 401 | } |
| 402 | |
| 403 | html.dark-mode .inicio-container .progress-bar { |
| 404 | background-color: #21262d; |
| 405 | } |
| 406 | |
| 407 | html.dark-mode .inicio-container .progress-fill { |
| 408 | background-color: var(--accent-bright, #3fb950); |
| 409 | } |
| 410 | |
| 411 | html.dark-mode .inicio-container .create-post input, |
| 412 | html.dark-mode .inicio-container .create-post-actions select { |
| 413 | background-color: #0d1117; |
| 414 | color: #e6edf3; |
| 415 | border-color: #30363d; |
| 416 | } |
| 417 | |
| 418 | html.dark-mode .inicio-container .create-post-actions select { |
| 419 | color: #e6edf3; |
| 420 | } |
| 421 | |
| 422 | html.dark-mode .inicio-container .create-post-actions select option { |
| 423 | background-color: #161b22; |
| 424 | color: #e6edf3; |
| 425 | } |
| 426 | |
| 427 | html.dark-mode .inicio-container .btn-solid { |
| 428 | background-color: var(--accent-mid, #2ea043); |
| 429 | color: #ffffff; |
| 430 | } |
| 431 | |
| 432 | html.dark-mode .inicio-container .user-data strong, |
| 433 | html.dark-mode .inicio-container .post-title { |
| 434 | color: #e6edf3; |
| 435 | } |
| 436 | |
| 437 | html.dark-mode .inicio-container .user-data span, |
| 438 | html.dark-mode .inicio-container .post-body, |
| 439 | html.dark-mode .inicio-container .embed-box p { |
| 440 | color: #8b949e; |
| 441 | } |
| 442 | |
| 443 | html.dark-mode .inicio-container .embed-box { |
| 444 | background-color: #0d1117; |
| 445 | border-left-color: var(--accent-bright, #3fb950); |
| 446 | } |
| 447 | |
| 448 | html.dark-mode .inicio-container .embed-box strong { |
| 449 | color: var(--accent-bright, #3fb950); |
| 450 | } |
| 451 | |
| 452 | html.dark-mode .inicio-container .embed-box.prof-box { |
| 453 | border-left-color: #38bdf8; |
| 454 | background-color: #0b1520; |
| 455 | } |
| 456 | |
| 457 | html.dark-mode .inicio-container .embed-box code { |
| 458 | background: #21262d; |
| 459 | } |
| 460 | |
| 461 | html.dark-mode .inicio-container .post-footer { |
| 462 | border-top-color: #21262d; |
| 463 | } |
| 464 | |
| 465 | html.dark-mode .inicio-container .btn-action.voted { |
| 466 | color: var(--accent-bright, #3fb950); |
| 467 | } |
| 468 | |
| 469 | html.dark-mode .inicio-container .btn-action:hover { |
| 470 | color: var(--accent-bright, #3fb950); |
| 471 | } |
| 472 | |
| 473 | html.dark-mode .inicio-container .post-status { |
| 474 | color: #8b949e; |
| 475 | } |
| 476 | |
| 477 | html.dark-mode .inicio-container .badge-materia { |
| 478 | background-color: #12291d; |
| 479 | color: var(--accent-bright, #3fb950); |
| 480 | border-color: #14532d; |
| 481 | } |
| 482 | |
| 483 | html.dark-mode .inicio-container .badge-interacted { |
| 484 | background-color: #332a12; |
| 485 | color: #fbbf24; |
| 486 | border-color: #4d3d17; |
| 487 | } |
| 488 | |
| 489 | html.dark-mode .inicio-container .badge-solved { |
| 490 | background-color: #12291d; |
| 491 | color: #34d399; |
| 492 | border-color: #14532d; |
| 493 | } |
| 494 | |
| 495 | html.dark-mode .inicio-container .badge-verified { |
| 496 | background-color: #0b1520; |
| 497 | color: #38bdf8; |
| 498 | border-color: #123f5c; |
| 499 | } |
| 500 | |
| 501 | html.dark-mode .inicio-container .btn-clean { |
| 502 | color: var(--accent-bright, #3fb950); |
| 503 | border-color: var(--accent-mid, #2ea043); |
| 504 | } |
| 505 | |
| 506 | html.dark-mode .inicio-container .btn-clean:hover { |
| 507 | background-color: rgba(46, 160, 67, 0.15); |
| 508 | } |
| 509 | |
| 510 | html.dark-mode .inicio-container .side-link { |
| 511 | color: var(--accent-bright, #3fb950); |
| 512 | } |
| 513 | |
| 514 | html.dark-mode .inicio-container .avatar { |
| 515 | background-color: var(--accent-mid, #2ea043); |
| 516 | color: #ffffff; |
| 517 | } |