/* Portafolio principal, independiente del blog. */
:root {
    color-scheme: light;
    --bg: #f7f9fe;
    --surface: #ffffff;
    --surface-alt: #eff5ff;
    --text: #192641;
    --muted: #60718f;
    --line: #e2eaf6;
    --primary: #1666ed;
    --primary-dark: #124fba;
    --shadow: 0 22px 65px rgba(35, 76, 141, .08);
}
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1426;
    --surface: #15233b;
    --surface-alt: #1d3152;
    --text: #f3f7ff;
    --muted: #b1c2dd;
    --line: #2c4160;
    --primary: #6da3ff;
    --primary-dark: #8bb5ff;
    --shadow: 0 22px 65px rgba(0, 0, 0, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 99; background: var(--surface); padding: 10px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--surface); }
.navigation { display: flex; align-items: center; min-height: 74px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.brand-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #152747; color: #fff; font-size: 25px; }
.brand-icon span { color: #83b4ff; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 650; color: var(--muted); }
.main-nav a:hover, .footer-links a:hover { color: var(--primary); }
.main-nav .nav-blog { padding: 12px 18px; border-radius: 11px; color: #fff; background: #1263ee; box-shadow: 0 6px 16px rgba(18, 99, 238, .16); }
.main-nav .nav-blog:hover { background: #104db8; color: #fff; }
.theme-toggle, .mobile-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); cursor: pointer; }
.mobile-toggle { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: clamp(32px, 7vw, 110px); align-items: center; min-height: 620px; padding-block: 95px 105px; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid #cfe0fc; border-radius: 999px; background: #eaf2ff; color: #135edb; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.status-dot { width: 7px; height: 7px; background: #2073fa; border-radius: 50%; }
.eyebrow-divider { width: 1px; height: 13px; background: #b4cff9; }
.hero-greeting { margin: 36px 0 14px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-greeting span { color: var(--primary); }
h1 { margin: 0; font-size: clamp(37px, 4.6vw, 64px); line-height: 1.13; letter-spacing: -.055em; }
h1 span { color: #1654bd; }
[data-theme="dark"] h1 span { color: #89b7ff; }
.role-line { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 23px; font-size: 15px; }
.code-icon { padding: 5px 10px; border-radius: 7px; color: #fff; background: #182d50; font-weight: 700; }
.slash { color: #a9bfdc; font-size: 21px; font-weight: 700; }
.experience { padding: 5px 12px; border-radius: 8px; color: var(--primary); background: var(--surface-alt); font-size: 12px; font-weight: 800; }
.hero-description { max-width: 640px; margin: 25px 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.tech-tags, .card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span, .card-tags span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 21px; border-radius: 11px; font-size: 14px; font-weight: 750; }
.btn-primary { background: #1465ef; color: #fff; box-shadow: 0 12px 25px rgba(20, 101, 239, .19); }
.btn-primary:hover { background: #0b4cb9; }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); }
.btn-secondary:hover { border-color: var(--primary); }
.contact-line { margin-top: 22px; color: var(--muted); font-size: 13px; }
.contact-line a { color: var(--primary); font-weight: 700; overflow-wrap: anywhere; }
.hero-aside { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.profile-mini { display: flex; align-items: center; gap: 18px; }
.profile-mini img { width: 92px; height: 92px; border: 4px solid var(--surface-alt); border-radius: 18px; object-fit: cover; object-position: 50% 28%; }
.profile-mini div { display: grid; gap: 3px; }
.profile-label { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.profile-mini strong { font-size: 18px; }
.profile-mini small { color: var(--muted); }
.data-card { display: flex; gap: 15px; margin-top: 25px; padding: 25px 0; border-block: 1px solid var(--line); }
.data-card-icon { display: grid; place-items: center; align-self: flex-start; width: 43px; height: 43px; flex-shrink: 0; border-radius: 13px; color: #1769f1; background: var(--surface-alt); font-size: 24px; }
.data-card span { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
.data-card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.3; letter-spacing: -.04em; }
.data-card p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-features { display: grid; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.mini-features div { display: flex; gap: 13px; align-items: center; }
.mini-features span { color: var(--primary); font-size: 11px; font-weight: 900; }
.expertise { padding: 100px 0 105px; border-block: 1px solid var(--line); background: var(--surface); }
.section-kicker { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.section-header { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin: 18px 0 36px; }
.section-header h2 { max-width: 650px; margin: 0; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.2; letter-spacing: -.045em; }
.section-header h2 span { color: var(--primary); }
.section-header p { max-width: 345px; margin: 0; color: var(--muted); font-size: 14px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.expertise-card { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg); }
.expertise-number { color: #94a8c5; font-size: 12px; font-weight: 850; }
.specialty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 18px 0; border-radius: 13px; color: var(--primary); background: var(--surface-alt); font-size: 24px; }
.expertise-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.expertise-card p { min-height: 84px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.card-tags span { font-size: 11px; }
.blog-section { padding-block: 85px; }
.blog-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 43px 51px; border-radius: 23px; color: #fff; background: linear-gradient(125deg, #172f5b, #1767e9); }
.blog-banner span { font-size: 10px; font-weight: 900; letter-spacing: 1.7px; }
.blog-banner h2 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.04em; }
.blog-banner p { max-width: 630px; margin: 0; color: #d6e5ff; font-size: 14px; }
.btn-light { flex-shrink: 0; color: #1457c9; background: #fff; }
.footer { padding: 35px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-inner strong, .footer-inner small { display: block; }
.footer-inner small { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-inner p { width: 100%; margin: 0; color: var(--muted); font-size: 11px; }
@media (max-width: 1000px) {
    .navigation { gap: 14px; }
    .main-nav { gap: 12px; }
    .hero { gap: 28px; grid-template-columns: 1.25fr .8fr; }
    .hero-aside { padding: 19px; }
    .profile-mini img { width: 75px; height: 75px; }
}
@media (max-width: 780px) {
    .container { width: min(100% - 32px, 620px); }
    .navigation { min-height: 68px; }
    .brand { font-size: 13px; }
    .mobile-toggle { display: grid; margin-left: auto; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
    .main-nav a { padding: 9px; }
    .main-nav .nav-blog { text-align: center; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 60px 70px; min-height: auto; }
    .hero-aside { max-width: 520px; }
    .section-header { display: block; }
    .section-header p { margin-top: 15px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-card p { min-height: unset; }
    .blog-banner { flex-direction: column; align-items: flex-start; padding: 33px 28px; }
    .expertise { padding-block: 65px; }
}
@media (max-width: 440px) {
    .brand span:last-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
    .eyebrow { font-size: 8px; letter-spacing: .6px; }
    .role-line { font-size: 13px; }
    .hero-greeting { margin-top: 25px; }
    .profile-mini img { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
