/* Portada */
.hero { padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1.5rem; }
.hero-role { font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-role strong { font-family: var(--font-head); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-family: var(--font-head); font-weight: 500; }
.quick a { display: inline-flex; align-items: center; gap: .45rem; }

.term { background: var(--term-bg); color: var(--term-ink); border-radius: 10px; padding: 1.25rem 1.4rem; font-family: var(--font-mono); font-size: .84rem; line-height: 1.6; overflow-x: auto; border: 1px solid var(--line); }
.term pre { margin: 0; font: inherit; white-space: pre; }
.term .ln { display: block; opacity: 0; animation: show .01s steps(1) forwards; animation-delay: calc(var(--i) * .32s + .3s); }
.term .cmd, .term .dim { color: var(--term-dim); }
.term .pass, .term .ok { color: var(--term-pass); }
.term .pass, .term .run { font-weight: 500; }
.term .run { color: var(--term-run); }
@keyframes show { to { opacity: 1; } }
.caret { display: inline-block; width: .55em; height: 1em; background: var(--term-ink); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.about-grid p { font-size: 1.1rem; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: .85rem; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--font-head); font-weight: 700; }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.filters button { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-status { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card[hidden] { display: none; }
.card-shot { display: block; width: auto; height: auto; max-width: 100%; max-height: 11rem; align-self: flex-start; margin: .2rem 0 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .9rem; }
.card-label { font-family: var(--font-head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.status { font-family: var(--font-head); font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--accent); border-radius: 999px; padding: .2rem .6rem; }
.status.wip { background: var(--warn-bg); color: var(--warn-fg); }
.card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: .8rem; }
.card .proof { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: auto 0 1.1rem; padding: .35rem 0 0; }
.tags li { background: var(--soft); border-radius: 999px; padding: .25rem .65rem; font-family: var(--font-head); font-size: .84rem; font-weight: 500; }
.card-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding-top: .95rem; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .96rem; }
.card-links a { display: inline-flex; align-items: center; gap: .4rem; }

/* Voluntariado y trayectoria */
.sub { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.sub:not(:first-of-type) { margin-top: 2.5rem; }
.timeline { display: grid; gap: 1rem; }
.tl-card { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-date { color: var(--accent); font-family: var(--font-head); font-size: .95rem; font-weight: 700; }
.tl-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .35rem; }
.tl-card p, .tl-card ul { color: var(--muted); margin: 0 0 .6rem; }
.tl-card .org { font-size: .95rem; margin-bottom: .6rem; }
.tl-card ul { padding-left: 1.1rem; }
.tl-card p strong { color: var(--ink); font-family: var(--font-head); }
.tl-card > div > :last-child { margin-bottom: 0; }
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.edu-card { padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.edu-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .35rem; }
.edu-card p { color: var(--muted); margin-bottom: .5rem; }
.edu-card p:last-child { margin-bottom: 0; }
.p-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; margin: .6rem 0 .3rem; max-width: none; color: var(--ink); }
.p-label span { color: var(--muted); }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pass); border-radius: 999px; }

/* Contacto y pie */
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-panel p { margin: 0; color: var(--muted); }
.contact-panel h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; margin-bottom: .65rem; }
.foot { padding-block: 2rem; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; }
.foot p { margin: 0; max-width: none; }
.foot-brand { display: flex; align-items: center; gap: .6rem; }
.foot-brand .mark { width: 22px; height: 22px; }
