-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
100 lines (91 loc) · 3.08 KB
/
style.css
File metadata and controls
100 lines (91 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
:root {
--bg: #ffffff;
--text: #222;
--muted: #6b7280;
--card: #f5f5f5;
--brand: #111;
--accent: #111;
--link: #0b57d0;
--shadow: 0 10px 25px rgba(0,0,0,.05);
--radius: 16px;
--nav-h: 64px;
}
/* Tema verde tipo WhatsApp */
:root[data-theme="green"]{
--bg: #ffffff;
--text: #111;
--muted: #5b5f63;
--card: #f3fdf6;
--brand: #075e54;
--accent: #128c7e;
--link: #128c7e;
}
/* Tema oscuro sobrio */
:root[data-theme="dark"]{
--bg: #0b0e11;
--text: #e7e7e7;
--muted: #9aa3af;
--card: #12161a;
--brand: #e7e7e7;
--accent: #22c55e;
--link: #22c55e;
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
background: var(--bg);
color: var(--text);
}
/* Barra fija */
.site-header {
position: sticky;
top: 0;
z-index: 50;
backdrop-filter: saturate(120%) blur(6px);
background: color-mix(in srgb, var(--bg) 85%, transparent);
border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { font-weight: 800; color: var(--brand); text-decoration: none; letter-spacing: .5px; }
.nav { display: flex; gap: 22px; }
.nav a {
font-weight: 600;
color: var(--text);
text-decoration: none;
padding: 8px 0;
border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.active { border-color: var(--accent); color: var(--accent); }
#themeToggle { background: var(--card); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
/* Secciones */
.section {
max-width: 900px;
margin: 0 auto;
padding: 64px 16px;
scroll-margin-top: calc(var(--nav-h) + 24px); /* compensa barra fija */
}
.hero { text-align: center; padding-top: 96px; }
.avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); display: block; margin: 0 auto 14px; }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 6px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 16px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-bottom: 8px; }
p { line-height: 1.6; }
a { color: var(--link); }
/* Listas */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { background: var(--card); padding: 14px 16px; border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px){ .cards { grid-template-columns: 1fr 1fr; } }
.cards li { background: var(--card); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pubs { padding-left: 18px; }
.muted { color: var(--muted); font-size: .95rem; }
.site-footer {
text-align: center;
padding: 28px 16px 48px;
color: var(--muted);
border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
background: var(--bg);
}