/* Portfolio 2026 - editorial, responsive and accessible. */
:root { --bg:#f3f7fc; --bg-alt:#eaf1fa; --surface:#fff; --surface-2:#dee8f5; --line:#d8e2ef; --line-strong:#a9bbd2; --text:#172b49; --muted:#526783; --dim:#607591; --accent:#245dcc; --accent-hover:#17469f; --highlight:#2563eb; --highlight-hover:#1d4ed8; --highlight-ink:#fff; --decoration:#77aaff; --ok:#2563eb; --r:18px; --r-sm:10px; --font:"Geist",system-ui,sans-serif; --mono:"Geist Mono",monospace; }
[data-bs-theme="dark"] { --bg:#0d182b; --bg-alt:#13223a; --surface:#192c47; --surface-2:#223b5c; --line:#2c4260; --line-strong:#526c8d; --text:#edf4ff; --muted:#b2c5df; --dim:#9bb1ce; --accent:#8dbaff; --accent-hover:#bad5ff; --ok:#8dbaff; --highlight:#91bdff; --highlight-hover:#bad5ff; --highlight-ink:#102342; --decoration:#8dbaff; }
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body { font-family:var(--font); color:var(--text); background:var(--bg); font-size:15px; line-height:1.7; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); text-decoration:none; } a:hover { color:var(--accent-hover); }
::selection { background:var(--highlight); color:var(--highlight-ink); }
:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.container { max-width:1240px; padding-left:32px; padding-right:32px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:24px; border-radius:999px; font-size:14px; font-weight:600; padding:14px 24px; transition:background .2s,transform .2s; }
.btn:hover { transform:translateY(-2px); }
.btn-sm { padding:10px 19px; font-size:13px; }
.btn-primary-solid { background:var(--highlight); color:var(--highlight-ink); border:1px solid var(--highlight); }
.btn-primary-solid:hover,.btn-primary-solid:focus { background:var(--highlight-hover); color:var(--highlight-ink); border-color:var(--highlight-hover); }
.btn-ghost { color:var(--text); border:1px solid var(--line-strong); background:transparent; }
.btn-ghost:hover { background:var(--surface-2); color:var(--text); }
.navbar { height:86px; padding:0; border-bottom:1px solid var(--line); background:var(--bg); }
@supports (backdrop-filter:blur(16px)) { .navbar { background:color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter:blur(16px); } }
.navbar-brand { display:flex; align-items:center; gap:10px; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; background:var(--text); color:var(--bg); border-radius:10px; font-size:26px; font-weight:700; line-height:1; }
.brand-name { color:var(--text); font-size:23px; font-weight:650; letter-spacing:-1px; }
.brand-period { color:var(--accent); }
.brand-role { margin-left:13px; padding-left:20px; border-left:1px solid var(--line-strong); font-size:12px; color:var(--muted); }
.navbar .nav-link { color:var(--muted); padding:8px 14px!important; font-size:13px; }
.navbar .nav-link:hover,.navbar .nav-link.active { color:var(--text); }
.navbar-toggler { border:0; color:var(--text); font-size:28px; }
.theme-toggle { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--text); margin-left:10px; }
.hero { padding:155px 0 0; overflow:hidden; }
.eyebrow { font-family:var(--mono); font-size:10px; font-weight:500; letter-spacing:1.5px; color:var(--muted); margin-bottom:24px; }
.status { display:inline-flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); margin-bottom:25px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px color-mix(in srgb,var(--ok) 10%,transparent); flex-shrink:0; }
.hero-title { font-size:clamp(48px,6.1vw,82px); font-weight:550; letter-spacing:-.065em; line-height:1.04; margin-bottom:28px; }
.hero-highlight { position:relative; white-space:nowrap; }
.hero-highlight svg { position:absolute; width:100%; height:15px; bottom:-6px; left:0; overflow:visible; }
.hero-highlight path { fill:none; stroke:var(--decoration); stroke-width:5; stroke-linecap:round; }
.hero-text { color:var(--muted); font-size:16px; max-width:440px; margin-bottom:28px; }
.hero-facts { margin:28px 0 0; max-width:460px; }
.hero-facts div { display:flex; gap:15px; padding:5px 0; font-size:11px; }
.hero-facts dt { color:var(--dim); font-weight:400; width:70px; flex-shrink:0; }
.hero-facts dd { margin:0; color:var(--muted); }
.visual-label { display:flex; align-items:center; gap:10px; font-family:var(--mono); font-size:9px; letter-spacing:1px; margin:0 12px 22px; }
.visual-label > span:last-child { margin-left:auto; font-size:22px; }
.hero-visual { position:relative; }
.hero-visual::before { content:""; position:absolute; inset:15% -10% 8%; border-radius:50%; background:radial-gradient(ellipse,#82b7ff55,transparent 68%); z-index:-1; }
.showcase { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding:0 10px; transform:rotate(-3deg); }
.showcase-item { color:var(--text); transition:transform .25s; min-width:0; }
.showcase-item:hover { color:var(--text); transform:translateY(-7px) rotate(2deg); }
.showcase-main { grid-column:1/-1; }
.showcase .mock { box-shadow:0 18px 35px -20px #14366555; border:6px solid var(--surface); border-radius:13px; }
.showcase-caption { display:flex; justify-content:space-between; gap:8px; font-size:10px; line-height:1.4; padding:9px 3px; }
.showcase-caption span:last-child { font-family:var(--mono); font-size:8px; color:var(--dim); }
.showcase-item:not(.showcase-main) .showcase-caption span:last-child { display:none; }
.hero-bottom { margin-top:55px; padding:24px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; font-family:var(--mono); font-size:9px; letter-spacing:1px; color:var(--dim); }
.hero-bottom a { color:var(--text); display:flex; align-items:center; gap:20px; }
.tech-strip { background:var(--text); color:var(--bg); padding:26px 0; }
.tech-strip .container { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.tech-strip span { font:9px var(--mono); letter-spacing:1px; opacity:.6; }
.tech-strip b { font-size:18px; font-weight:500; letter-spacing:-.5px; }
.tech-strip i { color:var(--decoration); font-style:normal; font-size:22px; }
.section { padding:95px 0; }
.section-alt { background:var(--bg-alt); }
.section-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:25px; margin-bottom:38px; }
.section-head .eyebrow { margin-bottom:16px; }
.section-title { font-size:clamp(32px,3.4vw,46px); line-height:1.13; letter-spacing:-.05em; font-weight:550; margin-bottom:16px; }
.section-title .count { font:12px var(--mono); vertical-align:middle; padding:7px 10px; border:1px solid var(--line-strong); border-radius:50%; margin-left:8px; }
.section-sub,.body-text { color:var(--muted); font-size:14px; } .section-sub { margin:0; max-width:490px; }
.segmented { display:inline-flex; gap:3px; padding:4px; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; }
.segmented button { border:0; background:transparent; color:var(--muted); border-radius:999px; padding:9px 15px; font-size:12px; font-family:var(--font); }
.segmented button.active { background:var(--text); color:var(--bg); }
.segmented button:hover:not(.active) { background:var(--surface-2); color:var(--text); }
#projectGrid { --bs-gutter-x:26px; --bs-gutter-y:32px; }
.project-item.hide { display:none; }
.project { height:100%; display:flex; flex-direction:column; border:1px solid var(--line); background:var(--surface); border-radius:var(--r); overflow:hidden; transition:transform .25s,box-shadow .25s; }
.project:hover { transform:translateY(-5px); box-shadow:0 18px 35px -25px #14366566; }
.project > .mock { margin:16px 16px 0; border-radius:10px; border:1px solid var(--line); }
.project .screen { aspect-ratio:16/9; }
.project-body { padding:24px 26px; flex:1; }
.project-meta { display:flex; justify-content:space-between; font:10px var(--mono); color:var(--dim); margin-bottom:12px; text-transform:uppercase; letter-spacing:1px; }
.project h3 { font-size:22px; font-weight:550; letter-spacing:-.7px; margin-bottom:10px; }
.project-body > p { color:var(--muted); font-size:13px; margin-bottom:20px; }
.stack { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0; padding:0; }
.stack li { font:10px var(--mono); color:var(--muted); border:1px solid var(--line); border-radius:5px; padding:5px 8px; }
.project-foot { display:flex; justify-content:flex-end; border-top:1px solid var(--line); padding:16px 26px; font-size:12px; }
.project-foot a { color:var(--text); display:flex; align-items:center; gap:8px; }
.spec { border-top:1px solid var(--line-strong); margin:0; }
.spec div { display:grid; grid-template-columns:110px 1fr; gap:20px; padding:19px 0; border-bottom:1px solid var(--line); font-size:13px; }
.spec dt { font-weight:500; color:var(--dim); } .spec dd { margin:0; }
.jobs { list-style:none; padding:0; margin:0; border-top:1px solid var(--line-strong); }
.jobs li { display:grid; grid-template-columns:170px 1fr 190px; gap:25px; padding:30px 0; border-bottom:1px solid var(--line); }
.job-date,.job-stack { font:11px var(--mono); color:var(--dim); line-height:1.8; } .job-stack { text-align:right; }
.jobs h3 { font-size:18px; font-weight:550; letter-spacing:-.4px; margin-bottom:9px; } .jobs h3 span { font-weight:400; color:var(--muted); }
.jobs p { color:var(--muted); font-size:13px; margin:0; }
.contact-mail { display:inline-block; font-size:clamp(18px,2vw,25px); letter-spacing:-.7px; margin:12px 0 24px; overflow-wrap:anywhere; }
.contact-links { list-style:none; padding:0; margin:0; } .contact-links li { padding:5px 0; }
.contact-links a { color:var(--muted); display:inline-flex; gap:10px; align-items:center; font-size:13px; }
#contactForm { padding:28px; border:1px solid var(--line); border-radius:20px; background:var(--surface); margin:0; }
.form-label { color:var(--muted); font-size:12px; margin-bottom:8px; }
.form-control { background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:13px 15px; font-size:13px; }
.form-control::placeholder { color:var(--dim); }
.form-control:focus { background:var(--bg); color:var(--text); border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent); }
.form-success { color:var(--ok); font-size:12px; }
.footer { padding:28px 0; border-top:1px solid var(--line); color:var(--dim); font:10px var(--mono); }
.footer a { margin-left:20px; font-size:20px; }
@media(min-width:1200px) {
 .project-compact .project > .mock { margin:10px 10px 0; }
 .project-compact .project-body { padding:18px 16px; }
 .project-compact .project h3 { font-size:17px; letter-spacing:-.4px; }
 .project-compact .project-body > p { font-size:12px; margin-bottom:16px; }
 .project-compact .project-meta { font-size:9px; letter-spacing:.5px; }
 .project-compact .stack { gap:4px; }
 .project-compact .stack li { font-size:9px; padding:4px 6px; }
 .project-compact .project-foot { padding:13px 16px; font-size:11px; }
}
@media(min-width:1400px) { .hero { padding-top:175px; } }
@media(max-width:991.98px) {
 .brand-role { display:none; } .navbar-collapse { background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:15px; margin-top:14px; box-shadow:0 15px 30px #0001; } .navbar-collapse .btn { margin-top:12px; } .theme-toggle { margin:8px 14px; }
 .hero { padding-top:125px; } .hero-title { font-size:clamp(52px,9vw,78px); } .hero-visual { max-width:580px; margin:45px auto 0; width:100%; } .hero-text { max-width:540px; } .section { padding:70px 0; }
 .jobs li { grid-template-columns:135px 1fr; } .job-stack { grid-column:2; text-align:left; }
}
@media(max-width:575.98px) {
 .container { padding-left:22px; padding-right:22px; } .navbar { height:72px; } .hero { padding-top:110px; } .hero-title { font-size:clamp(41px,10.8vw,62px); } .hero .eyebrow { font-size:8px; letter-spacing:.8px; } .hero-text { font-size:14px; } .hero-facts div { font-size:10px; }
 .hero-bottom { margin-top:30px; font-size:8px; } .hero-bottom > span { max-width:150px; } .tech-strip .container { justify-content:center; gap:15px; } .tech-strip span { width:100%; text-align:center; } .tech-strip b { font-size:13px; } .tech-strip i { font-size:15px; }
 .segmented { width:100%; } .segmented button { flex:1; padding:9px 8px; font-size:11px; } .project-body { padding:22px; } .project h3 { font-size:20px; } .spec div { grid-template-columns:85px 1fr; gap:12px; font-size:12px; }
 .jobs li { grid-template-columns:1fr; gap:12px; } .job-stack { grid-column:auto; } #contactForm { padding:18px 12px; } #contactForm .d-flex { flex-wrap:wrap; } .section { padding:55px 0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }

/* Scalable project previews */
.mock {
  container-type: inline-size;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; background: #20334f; border-bottom: 1px solid var(--line); }
.mock-bar > i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-url {
  margin-left: 8px; flex: 0 1 55%; height: 13px; line-height: 13px; padding: 0 6px;
  border-radius: 2px; background: rgba(255, 255, 255, .06);
  font-family: var(--mono); font-size: 8.5px; color: var(--dim);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  font-family: var(--font);
  font-size: 2.05cqw;
  line-height: 1.25;
  background: #f6f8fb;
  color: #0f172a;
  -webkit-user-select: none;
  user-select: none;
}
.screen p, .screen h6, .screen strong, .screen small { margin: 0; }
.screen s { text-decoration: none; }
.screen .ln { display: block; height: .45em; background: #dbe2ec; border-radius: 1px; margin-bottom: .55em; }

/* 1 · Tienda */
.sc-shop { background: #fff; }
.sh-nav { display: flex; align-items: center; gap: 1.5em; padding: .9em 1.6em; border-bottom: 1px solid #eef1f5; font-size: .8em; color: #475569; }
.sh-nav b { font-size: 1.3em; color: #0f172a; margin-right: auto; letter-spacing: -.02em; }
.sh-nav i:first-of-type { margin-left: 1em; }
.sh-hero {
  display: flex; align-items: center; height: 36%; margin: 1em 1.6em; padding: 0 2.2em; border-radius: .25em; color: #fff;
  background: radial-gradient(circle at 78% 60%, #e9a27a 0 18%, transparent 19%), linear-gradient(100deg, #1e293b 0 52%, #b45a3a 52% 100%);
}
.sh-hero small { display: block; font-size: .65em; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.sh-hero strong { display: block; font-size: 1.7em; letter-spacing: -.02em; margin: .15em 0 .55em; }
.sh-hero em { font-style: normal; font-size: .72em; font-weight: 600; background: #fff; color: #0f172a; padding: .45em 1em; border-radius: .15em; }
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; padding: 0 1.6em; }
.sh-grid span { display: block; aspect-ratio: 4 / 3; background: var(--c); border-radius: .15em; }
.sh-grid p { font-size: .72em; color: #334155; margin-top: .45em; }
.sh-grid b { font-size: .72em; }

/* 2 · API */
.sc-api { display: flex; background: #0f1a2c; color: #cbd5e1; }
.api-side { width: 34%; padding: 1em; background: #132036; border-right: 1px solid #1f2d45; font-size: .72em; }
.api-side b { display: block; color: #fff; font-size: 1.15em; margin-bottom: .9em; }
.api-side span { display: flex; gap: .6em; padding: .45em .5em; border-radius: .2em; font-family: var(--mono); color: #94a3b8; }
.api-side span.on { background: #1d3050; color: #e2e8f0; }
.api-side em { font-style: normal; font-weight: 600; color: #fbbf24; width: 2.6em; }
.api-side em.g { color: #4ade80; } .api-side em.o { color: #60a5fa; } .api-side em.r { color: #f87171; }
.api-main { flex: 1; padding: 1em 1.2em; min-width: 0; }
.api-req { display: flex; align-items: center; gap: .6em; border: 1px solid #24344f; border-radius: .2em; padding: .4em .6em; font-family: var(--mono); font-size: .72em; }
.api-req em { font-style: normal; color: #fbbf24; font-weight: 600; }
.api-req span { flex: 1; color: #e2e8f0; }
.api-req i { font-style: normal; background: #3b82f6; color: #fff; padding: .25em .8em; border-radius: .15em; font-family: var(--font); }
.api-status { display: flex; gap: 1em; margin: .9em 0 .5em; font-size: .72em; }
.api-status b { color: #4ade80; }
.api-status span { color: #64748b; }
.sc-api pre { margin: 0; font-family: var(--mono); font-size: .74em; line-height: 1.5; color: #cbd5e1; overflow: hidden; }
.sc-api k { color: #93c5fd; } .sc-api s { color: #86efac; } .sc-api n { color: #fca5a5; }

/* 3 · Dashboard */
.sc-dash { display: flex; background: #f4f6fa; }
.sc-dash aside { width: 22%; background: #0f1d33; padding: 1.1em .8em; font-size: .75em; color: #94a3b8; }
.sc-dash aside b { display: block; color: #fff; font-size: 1.15em; margin-bottom: 1.1em; padding-left: .4em; }
.sc-dash aside span { display: flex; align-items: center; gap: .6em; padding: .5em .5em; border-radius: .2em; }
.sc-dash aside span.on { background: #1e3a64; color: #fff; }
.sc-dash main { flex: 1; padding: 1.1em 1.3em; display: flex; flex-direction: column; min-width: 0; }
.d-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9em; }
.d-head strong { font-size: 1em; }
.d-head span { font-size: .65em; color: #64748b; border: 1px solid #dbe2ec; padding: .2em .6em; border-radius: .2em; background: #fff; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; margin-bottom: .8em; }
.d-kpis div { background: #fff; border: 1px solid #e3e8ef; border-radius: .25em; padding: .6em .7em; }
.d-kpis small { display: block; font-size: .62em; color: #64748b; }
.d-kpis b { display: block; font-size: 1.05em; margin: .1em 0; }
.d-kpis em { font-style: normal; font-size: .6em; font-weight: 600; }
.d-kpis .up { color: #16a34a; } .d-kpis .dn { color: #dc2626; }
.d-chart { flex: 1; background: #fff; border: 1px solid #e3e8ef; border-radius: .25em; padding: .6em .8em; display: flex; flex-direction: column; }
.d-chart small { font-size: .62em; color: #64748b; }
.d-bars { flex: 1; display: flex; align-items: flex-end; gap: .45em; padding-top: .6em; border-bottom: 1px solid #e3e8ef; }
.d-bars i { flex: 1; height: var(--h); background: #3b82f6; border-radius: .1em .1em 0 0; opacity: .85; }
.d-bars i:last-child { opacity: 1; background: #1d4ed8; }

/* 4 · Kanban */
.sc-kanban { background: #f1f4f8; padding: .9em 1.1em; display: flex; flex-direction: column; }
.k-top { display: flex; align-items: center; gap: 1em; margin-bottom: .8em; }
.k-top b { font-size: .95em; }
.k-top span { font-size: .68em; color: #64748b; }
.k-av { margin-left: auto; display: flex; }
.k-av i { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: .62em; display: grid; place-items: center; margin-left: -.35em; border: 2px solid #f1f4f8; font-weight: 600; }
.k-cols { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.k-col { background: #e7ecf3; border-radius: .25em; padding: .5em; }
.k-col h6 { font-size: .66em; font-weight: 600; color: #334155; margin-bottom: .5em; }
.k-col h6 small { color: #94a3b8; font-weight: 500; margin-left: .2em; }
.k-card { background: #fff; border: 1px solid #dde3ec; border-radius: .2em; padding: .45em .5em; margin-bottom: .45em; }
.k-card span { display: inline-block; font-size: .52em; font-weight: 600; padding: .1em .45em; border-radius: .2em; margin-bottom: .3em; }
.k-card p { font-size: .62em; color: #1e293b; line-height: 1.3; }
.k-card.done p { color: #94a3b8; text-decoration: line-through; }
.t1 { background: #fce7f3; color: #be185d; } .t2 { background: #dbeafe; color: #1d4ed8; }
.t3 { background: #fef3c7; color: #b45309; } .t4 { background: #dcfce7; color: #15803d; }

/* 5 · Landing */
.sc-landing { background: #0d0f14; color: #e5e7eb; display: flex; flex-direction: column; }
.l-nav { display: flex; align-items: center; gap: 1.6em; padding: 1em 1.8em; font-size: .72em; color: #9ca3af; }
.l-nav b { font-size: 1.5em; color: #fff; margin-right: auto; letter-spacing: -.03em; }
.l-nav b span { color: #93c5fd; }
.l-nav em { font-style: normal; color: #0d0f14; background: #fff; padding: .35em .9em; border-radius: 2em; }
.l-hero { flex: 1; display: flex; align-items: center; gap: 1.5em; padding: 0 1.8em; }
.l-copy { flex: 1.2; }
.l-copy small { font-size: .62em; text-transform: uppercase; letter-spacing: .14em; color: #93c5fd; }
.l-copy strong { display: block; font-size: 2.3em; line-height: 1.02; letter-spacing: -.04em; font-weight: 600; color: #fff; margin: .25em 0 .35em; }
.l-copy p { font-size: .72em; color: #9ca3af; max-width: 24em; margin-bottom: 1em; }
.l-copy div { display: flex; align-items: center; gap: 1.2em; font-size: .7em; }
.l-copy em { font-style: normal; background: #93c5fd; color: #0d0f14; font-weight: 600; padding: .55em 1.1em; border-radius: 2em; }
.l-copy i { font-style: normal; color: #d1d5db; }
.l-art { flex: 1; position: relative; height: 75%; }
.l-art span { position: absolute; border-radius: .4em; }
.l-art span:nth-child(1) { inset: 0 18% 22% 0; background: linear-gradient(140deg, #1e40af, #172554); }
.l-art span:nth-child(2) { inset: 30% 0 0 30%; background: linear-gradient(140deg, #60a5fa, #2563eb); opacity: .9; }
.l-art span:nth-child(3) { width: 26%; aspect-ratio: 1; border-radius: 50%; top: 8%; right: 6%; background: #f5f5f4; }
.l-logos { display: flex; justify-content: space-between; padding: .9em 1.8em; border-top: 1px solid #1f2229; font-size: .72em; font-weight: 600; color: #4b5563; letter-spacing: .04em; }

/* 6 · CMS */
.sc-cms { display: flex; background: #fff; }
.sc-cms aside { width: 24%; background: #f7f8fa; border-right: 1px solid #e5e8ee; padding: 1em .8em; font-size: .72em; color: #475569; }
.sc-cms aside b { display: block; font-size: 1.15em; color: #0f172a; margin-bottom: .8em; }
.sc-cms aside small { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin: .8em 0 .3em; }
.sc-cms aside span { display: flex; justify-content: space-between; padding: .4em .5em; border-radius: .2em; }
.sc-cms aside span.on { background: #e8eefc; color: #1d4ed8; font-weight: 500; }
.sc-cms aside span i { font-style: normal; font-size: .85em; color: #64748b; }
.sc-cms main { flex: 1; min-width: 0; }
.c-top { display: flex; justify-content: space-between; align-items: center; padding: .7em 1.2em; border-bottom: 1px solid #eef0f4; font-size: .7em; color: #64748b; }
.c-top em { font-style: normal; background: #2563eb; color: #fff; padding: .35em .9em; border-radius: .2em; }
.c-tools { display: flex; gap: .9em; padding: .5em 1.2em; border-bottom: 1px solid #eef0f4; font-size: .7em; color: #475569; }
.c-tools i { font-style: italic; } .c-tools u { text-decoration: underline; }
.c-doc { padding: 1em 1.6em; }
.c-doc strong { display: block; font-size: 1.15em; letter-spacing: -.01em; margin-bottom: .7em; }
.c-img { height: 5.5em; background: #eef2f7; border-radius: .2em; margin: .2em 0 .8em; display: grid; place-items: center; color: #94a3b8; }

/* 7 · Calendario */
.sc-cal { display: flex; background: #fff; }
.cal-main { flex: 1; padding: 1em 1.3em; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7em; }
.cal-head strong { font-size: .95em; }
.cal-head span { display: flex; gap: .8em; font-size: .7em; color: #64748b; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; text-align: center; }
.cal-grid small { font-size: .6em; color: #94a3b8; font-weight: 600; padding-bottom: .2em; }
.cal-grid span { font-size: .68em; padding: .5em 0; border-radius: .2em; color: #1e293b; }
.cal-grid span.we { color: #cbd5e1; }
.cal-grid span.busy { background: #f1f5f9; color: #94a3b8; }
.cal-grid span.sel { background: #0d9488; color: #fff; font-weight: 600; }
.cal-side { width: 32%; border-left: 1px solid #eef0f4; padding: 1em .9em; display: flex; flex-direction: column; gap: .4em; }
.cal-side small { font-size: .62em; color: #64748b; font-weight: 600; margin-bottom: .2em; }
.cal-side span { font-size: .68em; text-align: center; padding: .45em 0; border: 1px solid #d5dde7; border-radius: .2em; }
.cal-side span.off { color: #cbd5e1; border-style: dashed; }
.cal-side span.sel { background: #ccfbf1; border-color: #0d9488; color: #0f766e; font-weight: 600; }
.cal-side em { margin-top: auto; font-style: normal; font-size: .66em; text-align: center; background: #0d9488; color: #fff; padding: .55em 0; border-radius: .2em; }

/* 8 · Facturas */
.sc-inv { background: #f6f7f9; padding: 0 0 .5em; }
.i-top { display: flex; align-items: center; gap: 1.2em; padding: .8em 1.3em; background: #fff; border-bottom: 1px solid #e6e9ef; font-size: .72em; color: #64748b; }
.i-top b { font-size: 1.2em; color: #0f172a; }
.i-top em { margin-left: auto; font-style: normal; background: #4f46e5; color: #fff; padding: .35em .9em; border-radius: .2em; }
.i-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; padding: .8em 1.3em; }
.i-stats div { background: #fff; border: 1px solid #e6e9ef; border-radius: .25em; padding: .5em .7em; }
.i-stats small { display: block; font-size: .6em; color: #64748b; }
.i-stats b { font-size: .95em; } .i-stats b.r { color: #dc2626; }
.sc-inv table { width: calc(100% - 2.6em); margin: 0 1.3em; background: #fff; border: 1px solid #e6e9ef; font-size: .64em; border-collapse: collapse; }
.sc-inv th { text-align: left; font-weight: 600; color: #64748b; background: #fafbfc; padding: .55em .8em; border-bottom: 1px solid #e6e9ef; }
.sc-inv td { padding: .55em .8em; border-bottom: 1px solid #f0f2f5; color: #1e293b; }
.sc-inv td:first-child { font-family: var(--mono); color: #64748b; }
.sc-inv .p { font-style: normal; font-weight: 600; padding: .15em .55em; border-radius: 1em; font-size: .9em; }
.p.ok { background: #dcfce7; color: #15803d; } .p.pe { background: #fef3c7; color: #b45309; } .p.ko { background: #fee2e2; color: #b91c1c; }

/* 9 · Librería de componentes */
.sc-ui { display: flex; background: #fff; }
.u-side { width: 22%; border-right: 1px solid #eceff3; padding: 1em .8em; font-size: .72em; color: #475569; }
.u-side b { display: block; font-size: 1.15em; color: #0f172a; margin-bottom: .6em; }
.u-side small { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .3em; }
.u-side span { display: block; padding: .35em .5em; border-radius: .2em; }
.u-side span.on { background: #f1f5f9; color: #0f172a; font-weight: 600; }
.u-main { flex: 1; padding: 1em 1.4em; min-width: 0; }
.u-main strong { font-size: 1.2em; letter-spacing: -.01em; }
.u-main > p { font-size: .7em; color: #64748b; margin: .2em 0 .9em; }
.u-row { display: flex; align-items: center; gap: .6em; padding: .7em 0; border-top: 1px dashed #e5e7eb; }
.u-row em { font-style: normal; font-size: .68em; font-weight: 500; padding: .45em .9em; border-radius: .25em; }
.b1 { background: #2563eb; color: #fff; } .b2 { background: #eef2ff; color: #3730a3; }
.b3 { color: #334155; border: 1px solid #d4d9e1; } .b4 { background: #dc2626; color: #fff; }
.u-input { flex: 1; max-width: 15em; font-size: .66em; color: #94a3b8; border: 1px solid #2563eb; box-shadow: 0 0 0 .2em #dbeafe; border-radius: .25em; padding: .45em .7em; }
.u-toggle { width: 2.2em; height: 1.2em; border-radius: 1em; background: #2563eb; position: relative; }
.u-toggle::after { content: ""; position: absolute; width: .9em; height: .9em; top: .15em; right: .15em; border-radius: 50%; background: #fff; }
.u-check { width: 1.2em; height: 1.2em; border-radius: .2em; background: #2563eb; color: #fff; display: grid; place-items: center; font-size: .9em; }
.u-badge { font-style: normal; font-size: .6em; font-weight: 600; padding: .2em .65em; border-radius: 1em; }
.u-badge.g { background: #dcfce7; color: #15803d; } .u-badge.y { background: #fef3c7; color: #b45309; }
.u-badge.r { background: #fee2e2; color: #b91c1c; } .u-badge.n { background: #e0e7ff; color: #4338ca; }
.u-code { margin-top: .4em; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: .62em; padding: .7em .9em; border-radius: .25em; white-space: nowrap; overflow: hidden; }
.u-code span { color: #93c5fd; } .u-code s { color: #86efac; }

/* 10 · Tiempo */
.sc-weather { background: linear-gradient(160deg, #3b82f6 0%, #1e40af 100%); color: #fff; display: flex; flex-direction: column; padding: 1.3em 1.6em; }
.w-now small { font-size: .7em; opacity: .85; }
.w-temp { display: flex; align-items: center; gap: .3em; margin: .2em 0 0; }
.w-temp i { font-size: 3em; }
.w-temp b { font-size: 4em; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.w-now p { font-size: .85em; opacity: .9; margin-bottom: .6em; }
.w-meta { display: flex; gap: 1.4em; font-size: .7em; opacity: .9; }
.w-meta i { margin-right: .35em; }
.w-week { margin-top: auto; display: grid; grid-template-columns: repeat(7, 1fr); gap: .4em; }
.w-week div { background: rgba(255, 255, 255, .12); border-radius: .3em; padding: .6em 0; text-align: center; display: flex; flex-direction: column; gap: .2em; }
.w-week small { font-size: .62em; opacity: .85; }
.w-week i { font-size: 1.1em; }
.w-week b { font-size: .72em; font-weight: 600; }
.w-week span { font-size: .62em; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .showcase-item, .project { transition: none; }
}

/* Proyectos reales: captura de la web + ficha "Ver más" */
.screen.sc-img { background: #0b1220; }
.screen.sc-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-foot { gap: 20px; align-items: center; }
.project-more { margin-right: auto; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 500; }
.project-more:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.project-modal .modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); }
.project-modal .modal-header, .project-modal .modal-footer { border-color: var(--line); padding: 20px 28px; }
.project-modal .modal-header { align-items: flex-start; }
.project-modal .modal-title { font-size: 26px; font-weight: 550; letter-spacing: -.04em; margin: 0; }
.project-modal .modal-body { padding: 24px 28px 8px; }
.project-modal .modal-body h3 { font-size: 15px; font-weight: 600; margin: 26px 0 10px; }
.project-modal .modal-body p { color: var(--muted); font-size: 14px; }
.project-modal .modal-body p strong { color: var(--text); font-weight: 600; }
.modal-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 4px; }
.modal-list { columns: 2; column-gap: 28px; padding-left: 18px; margin: 0; color: var(--muted); font-size: 13.5px; }
.modal-list li { break-inside: avoid; padding: 2px 0; }
.modal-list li::marker { color: var(--accent); }
.modal-spec div { grid-template-columns: 170px 1fr; padding: 11px 0; }
.modal-spec .stack li { background: var(--bg); }
[data-bs-theme="dark"] .project-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }
@media (max-width: 575.98px) {
  .modal-list { columns: 1; }
  .modal-spec div { grid-template-columns: 1fr; gap: 4px; }
  .project-modal .modal-header, .project-modal .modal-footer, .project-modal .modal-body { padding-left: 18px; padding-right: 18px; }
}

/* =========================================================
   Pulido visual y movimiento
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
body, .section-alt, #contactForm { transition: background-color .3s, color .3s, border-color .3s; }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1040; background: var(--highlight); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }

/* Navbar: se compacta al hacer scroll */
.navbar { transition: height .3s var(--ease), box-shadow .3s, background-color .3s; }
.navbar.is-scrolled { height: 66px; box-shadow: 0 10px 30px -22px rgba(16, 38, 74, .45); }
.navbar .nav-link { position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.theme-toggle { transition: background-color .2s, transform .4s var(--ease); }
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-18deg); }

/* Botones: micro-movimiento de flechas */
.btn i, .project-foot a i, .hero-bottom a i { transition: transform .3s var(--ease); }
.btn:hover .bi-arrow-up-right, .project-foot a:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .bi-arrow-down-right { transform: translate(2px, 2px); }
.hero-bottom a:hover i { transform: translateY(3px); }
.btn-primary-solid { box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--highlight) 80%, transparent); }
.btn-primary-solid:hover { box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--highlight) 90%, transparent); }

/* Hero: entrada escalonada */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
.hero-copy > :nth-child(6) { animation-delay: .36s; }
.hero-visual { animation: rise 1s .25s var(--ease) both; }
.hero-bottom { animation: rise .8s .5s var(--ease) both; }
.hero-highlight path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s .7s var(--ease) forwards; }
.status-dot { animation: pulse 2.4s ease-out infinite; }

/* Showcase: flotación suave + inclinación con el ratón (js) */
.showcase { transition: transform .5s var(--ease); transform: perspective(1200px) rotate(-3deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.showcase .mock { animation: float 7s ease-in-out infinite; }
.showcase-item:nth-child(2) .mock { animation-delay: -2.3s; }
.showcase-item:nth-child(3) .mock { animation-delay: -4.6s; }
.showcase-item:hover .mock { box-shadow: 0 26px 45px -22px #14366580; }
.showcase-caption { transition: color .2s; }
.showcase-item:hover .showcase-caption span:first-child { color: var(--accent); }

/* Franja de tecnologías en desplazamiento continuo */
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-strip { padding: 22px 0; overflow: hidden; }
.tech-strip .container { flex-wrap: nowrap; gap: 36px; }
.tech-strip .container > span { flex-shrink: 0; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee-group b { white-space: nowrap; transition: color .2s; }
.marquee-group b:hover { color: var(--decoration); }

/* Títulos de sección */
.section .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; opacity: .55; }
.section-title .count { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; transition: background-color .3s, color .3s; }

/* Filtro con indicador deslizante (js) */
.segmented { position: relative; }
.segmented button { position: relative; z-index: 1; transition: color .3s; }
.segmented-indicator { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--text); transition: transform .45s var(--ease), width .45s var(--ease); }
.segmented.has-indicator button.active { background: transparent; }

/* Tarjetas de proyecto */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.project-item.filter-in { animation: cardIn .5s var(--ease) both; }
.project { position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background-color .3s; }
.project:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 45px -30px #14366575; }
.project::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--highlight) 9%, transparent), transparent 45%); }
.project:hover::after { opacity: 1; }
.project .screen { transition: transform .8s var(--ease); transform-origin: top center; }
.project:hover .screen { transform: scale(1.03); }
.project-more::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.project-more:hover { text-decoration: none; }
.project-more:hover::after { transform: translateX(3px); }

/* Perfil y experiencia */
.spec div { transition: padding-left .35s var(--ease); }
.spec div:hover { padding-left: 10px; }
.spec dt { transition: color .25s; }
.spec div:hover dt { color: var(--accent); }
.jobs li { position: relative; }
.jobs li::before { content: ""; position: absolute; left: -18px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--highlight); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.jobs li:hover::before { transform: scaleY(1); }
.jobs h3 { transition: color .25s; }
.jobs li:hover h3 { color: var(--accent); }

/* Contacto */
.contact-mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 24px; }
.contact-mail-row .contact-mail { margin: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
.contact-mail-row .contact-mail:hover { background-size: 100% 1.5px; }
.copy-mail { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 11px var(--mono); transition: background-color .2s, color .2s, border-color .2s; }
.copy-mail:hover { background: var(--surface-2); color: var(--text); }
.copy-mail.is-copied { color: var(--accent); border-color: var(--accent); }
.form-control { transition: border-color .2s, box-shadow .2s, background-color .3s; }
#contactForm { box-shadow: 0 30px 60px -45px #14366555; }

/* Volver arriba */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 1020; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); box-shadow: 0 12px 28px -12px #0d1b3380; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--bg); transform: translateY(-3px); }

/* Aparición al hacer scroll (js añade .reveal) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Modal */
.project-modal.fade .modal-dialog { transform: translateY(18px) scale(.98); transition: transform .4s var(--ease); }
.project-modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .55; }

@media (max-width: 767.98px) {
  .tech-strip .container { flex-wrap: wrap; gap: 14px; }
  .tech-strip .container > span { width: 100%; text-align: center; }
  .marquee { flex-basis: 100%; }
  .jobs li::before { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (hover: none) {
  .showcase { transform: rotate(-3deg); }
  .project::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-highlight path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* Formulario de contacto (Django) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #dc2626; font-size: 12px; }
[data-bs-theme="dark"] .form-error { color: #fca5a5; }
#contactForm button[disabled] { opacity: .7; cursor: progress; }
