/* ── cards.css — componentes de tarjeta (CV) ───────────────── */

/* Avatar card (hero) */
.avatar-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow);
}
.monogram {
    width: 104px; height: 104px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 600; font-size: 40px; letter-spacing: -.02em;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    margin-bottom: 20px; overflow: hidden;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-meta .nm { font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.ac-meta .role { font-size: 13.5px; color: var(--accent); font-weight: 580; margin-top: 3px; }
.ac-meta .loc { color: var(--ink-dim); font-size: 14px; margin-top: 2px; }
.ac-li {
    display: flex; align-items: center; gap: 9px;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--glass-border);
    text-decoration: none; transition: opacity .2s;
}
.ac-li:hover { opacity: .7; }
.ac-li-badge {
    width: 22px; height: 22px; border-radius: 4px; background: #0A66C2;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-li-badge svg { width: 13px; height: 13px; fill: white; }
.ac-li-text { font-size: 13px; color: var(--accent); line-height: 1.2; }
.ac-li-text span { display: block; font-size: 11px; color: var(--ink-faint); }
.ac-stats {
    display: flex; gap: 26px; margin-top: 14px;
    padding-top: 14px; border-top: 1px solid var(--glass-border);
}
.ac-stats .n { font-weight: 600; font-size: 24px; color: var(--accent-deep); letter-spacing: -.02em; }
.ac-stats .l { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }

/* Facts card (about) */
.facts {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
    height: fit-content;
}
.facts .row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 0; border-bottom: 1px solid var(--glass-border); font-size: 14px;
}
.facts .row:last-child { border-bottom: 0; }
.facts .row .k { color: var(--ink-dim); }
.facts .row .v { color: var(--ink); font-weight: 600; text-align: right; }

/* Skill chips (stack) */
.skill-block { margin-bottom: 28px; }
.skill-block:last-child { margin-bottom: 0; }
.skill-block h3 {
    font-family: var(--mono); font-weight: 600; font-size: 12px;
    color: var(--ink-faint); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
    padding: 7px 14px; border-radius: 980px;
    background: var(--glass-fill); border: 1px solid var(--glass-border);
    transition: transform .2s, border-color .2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip.core { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Timeline (experience) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 1.5px; background: var(--glass-border);
}
.job { position: relative; padding-bottom: 40px; }
.job:last-child { padding-bottom: 0; }
.job::before {
    content: ""; position: absolute; left: -28px; top: 6px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg); border: 2.5px solid var(--accent);
}
.job .when { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .02em; }
.job h3 { font-weight: 600; font-size: 20px; margin: 5px 0 2px; letter-spacing: -.02em; color: var(--ink); }
.job .co { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; margin-bottom: 12px; }
.job ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.job li { position: relative; padding-left: 20px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
.job li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint);
}

/* Education grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.edu {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.edu:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.edu.feat { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--glass-fill); }
.edu .badge {
    display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; color: var(--accent-deep); margin-bottom: 10px;
}
.edu .yr { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.edu h3 { font-weight: 600; font-size: 17px; margin: 6px 0; letter-spacing: -.02em; color: var(--ink); }
.edu p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

/* GitHub card (projects) */
.gh {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 32px 34px; box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.gh:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.gh-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    background: var(--glass-fill); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.gh-icon svg { width: 32px; height: 32px; }
.gh-body h3 { font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; color: var(--ink); }
.gh-body p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }
.gh-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.gh-tags span {
    font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim);
    background: var(--glass-fill); border: 1px solid var(--glass-border);
    padding: 3px 10px; border-radius: 980px;
}
.gh-cta {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff;
    font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 980px;
    box-shadow: 0 4px 20px rgba(10, 155, 127, .3); transition: transform .2s, box-shadow .2s;
}
.gh-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(10, 155, 127, .45); }
.gh-cta svg { width: 17px; height: 17px; }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lang {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
}
.lang .name { font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.lang .lvl { color: var(--ink-dim); font-size: 13px; margin-bottom: 14px; min-height: 2.4em; }
.bar {
    height: 5px; border-radius: 980px; overflow: hidden;
    background: var(--glass-fill); border: 1px solid var(--glass-border);
}
.bar i {
    display: block; height: 100%; border-radius: 980px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 760px) {
    .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .langs { grid-template-columns: 1fr; }
    .gh { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 30px 24px; }
    .gh-icon { margin: 0 auto; }
    .gh-tags { justify-content: center; }
    .gh-cta { justify-content: center; }
}
