@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wdth,wght@75..100,400..700&display=swap');

:root { --graphite:#0d0f10; --paper:#f4f5f3; --surface:#e6e9e7; --white:#fafafa; --muted:#666c69; --muted-dark:#a8ada7; --border:#c9cecb; --dark-border:#2a2f30; --signal:#c7ff3d; --sans:'Instrument Sans',system-ui,sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace; }
* { box-sizing:border-box; }
html { background:var(--paper); scroll-behavior:smooth; scroll-padding-top:88px; }
body { margin:0; color:var(--graphite); background:var(--paper); font-family:var(--sans); font-size:18px; line-height:1.55; }
a { color:inherit; text-underline-offset:.2em; }
a:focus-visible,summary:focus-visible { outline:3px solid var(--signal); outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { text-wrap:balance; }
h1 { max-width:10ch; margin:18px 0 36px; font-size:clamp(3.25rem,7.5vw,7rem); font-weight:600; line-height:.93; letter-spacing:-.065em; }
h2 { max-width:15ch; margin:14px 0 36px; font-size:clamp(2.25rem,4.5vw,4rem); line-height:.98; letter-spacing:-.052em; }
h3 { font-size:clamp(1.65rem,2.3vw,2.25rem); line-height:1.05; letter-spacing:-.04em; }
.container { width:min(calc(100% - 40px),1360px); margin-inline:auto; }
.narrow { max-width:860px; margin-left:clamp(20px,8vw,160px); }
.section { padding:clamp(72px,10vw,160px) 0; }
.eyebrow,.wordmark,.site-header nav a,.site-footer,.system-trace li,.text-link,.button { font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:.025em; }
.lead { max-width:51ch; font-size:clamp(1.2rem,1.75vw,1.5rem); line-height:1.48; }
.skip-link { position:fixed; z-index:20; top:-70px; left:16px; padding:10px 14px; background:var(--graphite); color:var(--paper); }.skip-link:focus { top:16px; }
.site-header { position:sticky; z-index:10; top:0; background:color-mix(in srgb,var(--paper) 94%,transparent); border-bottom:1px solid var(--border); backdrop-filter:blur(8px); }.header-inner { display:flex; min-height:72px; align-items:center; gap:26px; }.wordmark { text-decoration:none; white-space:nowrap; }.desktop-nav { display:flex; align-items:center; gap:20px; margin-left:auto; }.site-header nav a { display:grid; min-height:44px; place-items:center; text-decoration:none; }.site-header nav a[aria-current='page'] { text-decoration:underline; text-decoration-thickness:1px; }.language-link { border:1px solid var(--graphite); padding:0 9px; }.mobile-nav { display:none; margin-left:auto; }.mobile-nav summary { min-height:44px; display:grid; place-items:center; cursor:pointer; font:12px var(--mono); }.mobile-nav summary::-webkit-details-marker { display:none; }.menu-close { display:none; }.mobile-nav[open] .menu-open { display:none; }.mobile-nav[open] .menu-close { display:inline; }.mobile-nav nav { display:grid; gap:8px; padding:16px 0; }.mobile-nav[open] nav { position:absolute; right:20px; top:64px; min-width:220px; padding:16px; background:var(--paper); border:1px solid var(--border); }
.site-footer { padding:26px 0; color:var(--muted-dark); background:var(--graphite); }.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:24px; }.site-footer nav { display:flex; flex-wrap:wrap; gap:16px; }.site-footer a { text-decoration:none; }.footer-note { font-size:11px; }
.hero { padding:clamp(72px,11vw,160px) 0; }.hero-grid { display:grid; grid-template-columns:minmax(0,8fr) minmax(240px,4fr); gap:clamp(44px,7vw,112px); align-items:end; }.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:24px; margin-top:34px; }.button { display:inline-flex; min-height:48px; align-items:center; padding:12px 16px; color:var(--paper); background:var(--graphite); text-decoration:none; }.text-link { display:inline-flex; min-height:44px; align-items:center; gap:6px; }.text-link--light { color:var(--paper); }
.system-trace { min-width:0; margin:0; padding-left:22px; border-left:1px solid currentColor; }.system-trace ol { margin:20px 0; padding:0; list-style:none; }.system-trace li { display:grid; grid-template-columns:1fr 16px; align-items:center; gap:14px; min-height:47px; text-transform:uppercase; }.system-trace li:not(:last-child)::after { content:''; grid-column:2; width:1px; height:26px; margin:auto; transform:translateY(25px); background:currentColor; }.system-trace i { width:14px; height:14px; border:2px solid currentColor; border-radius:50%; }.system-trace i.is-signal { background:var(--signal); }.diagram-caption { max-width:38ch; margin-bottom:0; font-size:14px; color:inherit; opacity:.72; }.system-trace--case { color:var(--paper); padding:24px; border:1px solid var(--muted-dark); }.system-trace--case ol { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }.system-trace--case li { position:relative; display:grid; min-height:68px; padding:8px; border:1px solid var(--muted-dark); text-align:center; }.system-trace--case li:not(:last-child)::after { content:'→'; position:absolute; z-index:1; top:19px; right:-17px; width:auto; height:auto; transform:none; color:var(--signal); background:none; font:18px var(--sans); }
.dark-section { color:var(--paper); background:var(--graphite); }.work-section { padding:clamp(72px,10vw,144px) 0; }.project-feature { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(40px,6vw,96px); padding:clamp(48px,7vw,96px) 0; border-top:1px solid var(--dark-border); }.project-feature:last-child { border-bottom:1px solid var(--dark-border); }.project-title { margin:18px 0 20px; font-size:clamp(2.25rem,3.6vw,3rem); }.project-headline { max-width:18ch; font-size:clamp(1.5rem,2.3vw,2rem); font-weight:550; line-height:1.15; }.project-summary { max-width:44ch; color:var(--muted-dark); }
.method-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin:0; padding:0; list-style:none; }.method-list li { position:relative; padding-top:34px; border-top:1px solid var(--graphite); }.method-list li:not(:last-child)::after { content:'→'; position:absolute; top:-16px; right:-23px; padding:0 7px; background:var(--paper); font-size:22px; }.method-list b { font:12px var(--mono); }.method-list p { max-width:31ch; color:var(--muted); font-size:16px; }
.capability-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--border); border-left:1px solid var(--border); }.capability { min-height:200px; padding:28px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }.capability h3 { margin-bottom:15px; }.capability p { max-width:38ch; margin-bottom:0; color:var(--muted); font-size:16px; }.external-validation { display:flex; gap:12px; margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }.external-validation span { width:14px; height:14px; flex:0 0 14px; margin-top:4px; border:2px solid var(--graphite); border-radius:50%; }.external-validation p { font-size:13px; }.external-validation b { color:var(--graphite); font:11px var(--mono); }
.about-home { padding:clamp(72px,10vw,160px) 0; }.about-grid { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,4fr); gap:clamp(40px,7vw,112px); align-items:center; }.about-grid--text-only { grid-template-columns:minmax(0,8fr); }.about-home .lead { color:var(--muted-dark); }.map { max-width:50ch; margin-top:40px; font:12px/1.9 var(--mono); }.map span { color:var(--signal); }.portrait { width:100%; min-width:0; aspect-ratio:4/5; margin:0; overflow:hidden; border:1px solid var(--muted-dark); }.portrait img { width:100%; height:100%; object-fit:cover; }.contact-block { background:var(--paper); }
.page-hero { padding:clamp(72px,10vw,140px) 0 56px; border-bottom:1px solid var(--border); }.page-hero .lead { margin-bottom:0; }.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; font:12px var(--mono); }.breadcrumb a { color:var(--muted); }.case-content { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,8fr); gap:clamp(36px,8vw,144px); padding:clamp(64px,9vw,128px) 0; }.case-aside { align-self:start; position:sticky; top:100px; }.case-aside p { color:var(--muted); font-size:14px; }.case-body { max-width:760px; }.case-body section { padding-bottom:56px; }.case-body h2 { font-size:clamp(2rem,3.5vw,3.25rem); }.case-body h3 { margin-top:28px; }.case-body p,.case-body li { max-width:67ch; }.case-body li { margin-bottom:10px; }.failure-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--border); border-left:1px solid var(--border); }.failure-controls div { padding:22px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }.failure-controls h3 { font-size:18px; }.failure-controls p { font-size:16px; color:var(--muted); }.evidence-note { padding:22px; background:var(--surface); border:1px solid var(--border); }.evidence-note p:last-child { margin-bottom:0; }.work-index { padding:clamp(56px,8vw,128px) 0; }.work-index article { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:24px; align-items:start; padding:32px 0; border-top:1px solid var(--border); }.work-index article:last-child { border-bottom:1px solid var(--border); }.work-index p { max-width:54ch; color:var(--muted); }.work-index .eyebrow { padding-top:10px; }.content-page { padding:clamp(64px,10vw,144px) 0; }.content-page .prose { max-width:760px; margin-left:clamp(0px,8vw,160px); }.content-page .prose p { max-width:66ch; }.cv-grid { display:grid; gap:48px; }.cv-section { padding-top:28px; border-top:1px solid var(--border); }.cv-section h2 { font-size:clamp(1.8rem,3vw,2.8rem); }.contact-page .contact-block { padding-top:0; }.contact-page .narrow { margin-left:0; }
@media (max-width:899px) { .narrow { margin-left:auto; margin-right:auto; }.project-feature { grid-template-columns:1fr; }.system-trace--case ol { grid-template-columns:repeat(5,minmax(0,1fr)); }.case-content { grid-template-columns:1fr; }.case-aside { position:static; }.work-index article { grid-template-columns:90px minmax(0,1fr); }.work-index article .text-link { grid-column:2; } }
@media (max-width:767px) { body { font-size:17px; }.container { width:min(calc(100% - 40px),1360px); }.site-header { min-height:64px; }.header-inner { min-height:64px; }.desktop-nav { display:none; }.mobile-nav { display:block; }.hero,.page-hero { padding-top:64px; }.hero-grid,.about-grid { grid-template-columns:1fr; }.hero h1 { max-width:10ch; }.hero-actions { gap:18px; }.system-trace { max-width:330px; margin-top:18px; }.system-trace--case { max-width:none; padding:18px; overflow:hidden; }.system-trace--case ol { grid-template-columns:1fr; gap:16px; }.system-trace--case li { min-height:48px; }.system-trace--case li:not(:last-child)::after { top:auto; right:auto; bottom:-22px; content:'↓'; }.method-list { grid-template-columns:1fr; gap:24px; }.method-list li:not(:last-child)::after { top:auto; right:auto; bottom:-24px; left:0; content:'↓'; background:var(--paper); }.capability-grid,.failure-controls { grid-template-columns:1fr; }.capability { min-height:0; padding:24px 20px; }.portrait-geometry { min-height:400px; }.narrow,.content-page .prose { margin-left:0; }.footer-inner { flex-direction:column; align-items:flex-start; }.site-footer nav { gap:12px; }.case-content { padding-top:56px; }.work-index article { grid-template-columns:1fr; gap:8px; }.work-index article .text-link { grid-column:auto; }.work-index .eyebrow { padding-top:0; }.page-hero h1 { font-size:clamp(2.8rem,13vw,4rem); } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }


/* Home working revision v0.2 — additional presentation layer; no JavaScript framework. */
:root { color-scheme:light; }
.hero-support { color:var(--muted); max-width:62ch; margin-top:22px; margin-bottom:0; font-size:16px; line-height:1.62; }
.hero .lead { max-width:55ch; }
.hero-actions { margin-top:32px; }
.hero-actions .text-link { font-size:12px; }
.section[id], #work { scroll-margin-top:88px; }
.work-intro { max-width:64ch; margin-bottom:clamp(28px,5vw,68px); }
.project-facts { display:grid; gap:13px; margin:24px 0 25px; }
.project-facts>div { display:grid; grid-template-columns:84px minmax(0,1fr); align-items:start; gap:15px; }
.project-facts dt { color:var(--muted-dark); font:500 10px/1.5 var(--mono); letter-spacing:.06em; }
.project-facts dd { margin:0; font-size:13px; line-height:1.5; color:var(--paper); }
.project-copy .eyebrow { color:var(--muted-dark); }
.project-copy .text-link { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.4em; }
.project-headline { font-weight:600; }
.system-trace--case.artifact-sicalpe { align-self:center; }
.artifact { align-self:center; min-width:0; border:1px solid var(--muted-dark); padding:clamp(20px,2.8vw,32px); }
.artifact figcaption { margin-bottom:27px; }
.artifact .diagram-caption { margin:24px 0 0; color:var(--muted-dark); opacity:1; }
.assurance-list { list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.assurance-list li { border:1px solid var(--dark-border); padding:16px 18px; display:grid; gap:6px; position:relative; }
.assurance-list li + li:before { content:'↓'; position:absolute; top:-18px; left:18px; color:var(--signal); background:var(--graphite); padding:0 4px; }
.artifact-index { font:500 10px/1.5 var(--mono); letter-spacing:.04em; color:var(--muted-dark); }
.assurance-list strong, .handoff-structure strong { display:block; font-size:clamp(17px,1.8vw,22px); font-weight:550; line-height:1.22; letter-spacing:-.025em; }
.assurance-list small, .handoff-structure small { display:block; font-size:12px; line-height:1.5; color:var(--muted-dark); }
.handoff-structure { display:grid; gap:0; }
.handoff-top { border:1px solid var(--muted-dark); padding:20px; display:grid; gap:8px; }
.handoff-decision { height:36px; position:relative; display:flex; align-items:center; justify-content:center; }
.handoff-decision:before { content:''; width:1px; height:100%; background:var(--muted-dark); }
.handoff-decision span { position:absolute; top:13px; width:11px; height:11px; background:var(--graphite); border:2px solid var(--signal); transform:rotate(45deg); }
.handoff-states { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.handoff-states>div { border:1px solid var(--muted-dark); padding:16px; display:grid; align-content:start; gap:10px; }
.handoff-mark { font:500 11px/1.4 var(--mono); width:max-content; color:var(--paper); border:1px solid var(--muted-dark); padding:3px 7px; }
.handoff-mark--signal { border-color:var(--signal); color:var(--signal); }
.handoff-states strong { font-size:18px; }
.external-validation p { margin-bottom:0; color:var(--muted); }
.external-validation b { display:block; margin:0 0 7px; }
.capability-link { margin-top:12px; text-decoration:underline; font-size:11px; }
.about-home .map { margin-top:31px; }
.about-cv { margin-left:25px; }
.contact-actions { display:flex; flex-wrap:wrap; align-items:center; gap:15px 30px; margin-top:30px; }
.contact-actions .text-link { font-size:12px; }
.site-header a:hover, .site-footer a:hover, .text-link:hover { text-decoration:underline; text-underline-offset:.25em; }
@media (max-width:899px){
 .project-feature { grid-template-columns:1fr; }
 .artifact, .system-trace--case { max-width:none; }
}
@media (max-width:767px){
 .hero-support { font-size:15px; }
 .project-facts>div { grid-template-columns:76px minmax(0,1fr); gap:12px; }
 .artifact { padding:20px; }
 .handoff-states { grid-template-columns:1fr; }
 .about-cv { margin-left:0; display:flex; width:max-content; }
 .about-home .text-link { margin-top:12px; }
 .contact-actions { gap:8px 22px; }
}
@media (max-width:375px){
 .system-trace--case .eyebrow { font-size:10px; }
 .artifact figcaption { font-size:10px; }
 .project-headline { max-width:none; }
}

/* Visible keyboard focus on both light and dark surfaces (WCAG-oriented). */
a:focus-visible, summary:focus-visible { outline-color:var(--graphite); }
.dark-section a:focus-visible, .site-footer a:focus-visible, .skip-link:focus-visible { outline-color:var(--signal); }
/* -------------------------------------------------------------------------
   DC.COM / HOME v0.3.1 — REFINAMIENTO HERO EDITORIAL (NO RATIFICADO)
   ADR-022 still in force. Only Hero composition + supporting-copy are tested.
   No diagrams, metrics, new product claims, or new dependencies.
   ------------------------------------------------------------------------- */
.hero--editorial {
  padding: clamp(42px, 4.5vw, 68px) 0 clamp(46px, 4.5vw, 68px);
}
.hero-editorial {
  display: block;
}
.hero--editorial .hero-eyebrow {
  margin: 0 0 clamp(27px, 3vw, 42px);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: normal;
}
.hero-eyebrow-position { white-space: nowrap; }
.hero-editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(300px, .92fr);
  column-gap: clamp(36px, 5vw, 90px);
  align-items: end;
}
.hero--editorial h1 {
  max-width: 11.7ch;
  margin: 0;
  font-size: clamp(4.1rem, 6.55vw, 6.3rem);
  letter-spacing: -.066em;
  line-height: .94;
  text-wrap: balance;
}
.hero--editorial .lead {
  max-width: 35ch;
  margin: 0 0 4px;
  font-size: clamp(1.16rem, 1.55vw, 1.44rem);
  line-height: 1.48;
}
.hero-editorial-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(26px, 3.5vw, 46px);
  padding-top: clamp(17px, 2vw, 26px);
  border-top: 1px solid var(--border);
}
.hero--editorial .hero-support {
  color: var(--muted);
  max-width: 63ch;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.58;
}
.hero--editorial .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 28px;
  margin: 0;
}
.hero--editorial .hero-actions .button { white-space: nowrap; }
.hero--editorial .hero-actions .text-link { white-space: nowrap; }

@media (max-width: 999px) {
  .hero-editorial-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(245px, .84fr);
    column-gap: 32px;
  }
  .hero--editorial h1 { font-size: clamp(3.7rem, 7.4vw, 5.15rem); }
  .hero--editorial .lead { font-size: clamp(1.12rem, 2.15vw, 1.35rem); }
  .hero-editorial-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 22px; }
}
@media (max-width: 767px) {
  .hero--editorial {
    padding-top: 36px;
    padding-bottom: 44px;
  }
  .hero--editorial .hero-eyebrow {
    display: grid;
    gap: 4px;
    margin-bottom: 23px;
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.45;
  }
  .hero-eyebrow-divider { display: none; }
  .hero-eyebrow-position {
    display: block;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.45;
  }
  .hero-editorial-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero--editorial h1 {
    max-width: 11.7ch;
    font-size: clamp(2.56rem, 11.3vw, 4.5rem);
    line-height: .96;
    letter-spacing: -.063em;
  }
  .hero--editorial .lead {
    max-width: 42ch;
    font-size: clamp(1.065rem, 4.7vw, 1.25rem);
    line-height: 1.45;
    margin: 0;
  }
  .hero-editorial-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
    padding-top: 19px;
  }
  .hero--editorial .hero-support {
    max-width: 53ch;
    font-size: 13px;
    line-height: 1.52;
  }
  .hero--editorial .hero-actions {
    justify-content: flex-start;
    gap: 10px 24px;
  }
}
@media (max-width: 359px) {
  .hero--editorial {
    padding-top: 31px;
    padding-bottom: 37px;
  }
  .hero--editorial .hero-eyebrow { margin-bottom: 20px; }
  .hero--editorial h1 { font-size: clamp(2.45rem, 11.1vw, 2.75rem); }
  .hero-editorial-intro { gap: 16px; }
  .hero-editorial-footer { margin-top: 19px; gap: 15px; }
  .hero--editorial .hero-actions { gap: 10px 18px; }
}


/* SICALPE conceptual image: shared styling */
.artifact-image--case{margin:0;align-self:center}
.artifact-image__img{display:block;width:100%;max-width:760px;height:auto;border:1px solid var(--dark-border);background:var(--graphite)}
@media (max-width: 1100px){.artifact-image__img{max-width:100%}}

/* EN copy fit: retain the editorial design with the longer canonical translated tagline. */
html[lang="en"] .hero--editorial h1 { max-width: 13.5ch; font-size: clamp(3.5rem, 5.7vw, 5.65rem); }
html[lang="en"] .hero--editorial .lead { max-width: 38ch; }
@media (max-width: 999px) and (min-width: 768px) {
  html[lang="en"] .hero--editorial h1 { font-size: clamp(3.2rem, 6vw, 4.6rem); }
}
@media (max-width: 767px) {
  html[lang="en"] .hero--editorial h1 { max-width: 13.8ch; font-size: clamp(2.25rem, 9.7vw, 4.0rem); }
  html[lang="en"] .artifact-image__img { max-width: 100%; }
}
@media (max-width: 359px) { html[lang="en"] .hero--editorial h1 { font-size: clamp(2.15rem, 10vw, 2.65rem); } }

/* SICALPE responsive: layout del recurso externo */
.project-feature > figure { min-width: 0; max-width: 100%; }
.artifact-image--case { width: 100%; min-width: 0; max-width: 100%; margin: 0; overflow: hidden; }
.artifact-image--case picture { display: block; width: 100%; min-width: 0; }
.artifact-image--case img, .artifact-image__img { display: block; width: 100%; max-width: 100%; height: auto; }
