/* Espintrónica CG — color tokens. Ground: the optics lab at night.
   Accent: the amber safelight of a photolithography bay.
   Amber/blue = spin up / spin down — use only where it carries that meaning. */
:root{
  /* base */
  --ground:#090C13;
  --surface:#111621;
  --surface-2:#181E2C;
  --line:#252D3F;
  --line-soft:#1B2130;
  --ink:#E9ECF3;
  --ink-dim:#98A0B5;
  --ink-faint:#6B7285;
  --up:#F2A93B;        /* spin up · safelight amber */
  --up-soft:#FFD79A;
  --up-deep:#7A5312;
  --down:#5AB4E8;      /* spin down */
  --down-deep:#1B4F70;
  /* semantic aliases */
  --surface-card:var(--surface);
  --surface-raised:var(--surface-2);
  --text-body:var(--ink);
  --text-secondary:var(--ink-dim);
  --text-tertiary:var(--ink-faint);
  --text-emphasis:#FFFFFF;
  --accent:var(--up);
  --accent-soft:var(--up-soft);
  --accent-contrast:#0A0A0A;
  --border-default:var(--line);
  --border-subtle:var(--line-soft);
  /* form feedback (contact form) */
  --ok-bg:#12251A; --ok-border:#2C6B45; --ok-text:#9BE3B6;
  --err-bg:#2A1618; --err-border:#7A3038; --err-text:#F3A9A9;
  /* diagram fills (layer stacks in figures) */
  /* geek layer: phosphor glows + blueprint grid */
  --grid-line:rgba(37,45,63,.30);
  --glow-amber:0 0 18px rgba(242,169,59,.38);
  --glow-blue:0 0 18px rgba(90,180,232,.32);
  --fm-fill:#231A0C;   /* ferromagnet layer, amber-tinted */
  --dn-fill:#12252F;   /* spin-down layer, blue-tinted */
  color-scheme:dark;
}

/* Espintrónica CG — type tokens.
   Display: Chivo (headlines, marks, buttons). Body: Newsreader (serif prose).
   Mono: IBM Plex Mono (eyebrows, captions, data, metadata). Google Fonts. */
/* vietnamese */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chivo-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chivo-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chivo-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chivo-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chivo-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chivo-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/chivo-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/chivo-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/chivo-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-italic-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --display:"Chivo","Helvetica Neue",Arial,sans-serif; /* @kind font */
  --body:"Newsreader",Georgia,"Times New Roman",serif; /* @kind font */
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace; /* @kind font */
  /* base body */
  --text-size-body:1.0625rem;
  --text-leading-body:1.72;
  /* scale */
  --text-h1:clamp(3rem,10vw,6.25rem);
  --text-h2:clamp(1.75rem,3.4vw,2.5rem);
  --text-h3:1.3rem;
  --text-h4:1rem;
  --text-lede:clamp(1.12rem,2vw,1.3rem);
  --text-eyebrow:.72rem;
  --text-note:.8rem;
  --tracking-display:-0.02em;
  --tracking-h1:-0.045em;
  --tracking-eyebrow:.16em;
}

/* Espintrónica CG — layout, radii, spacing tokens. */
:root{
  /* measure: prose spine + wide band for figures/grids */
  --spine:66ch;
  --wide:1080px;
  --section-pad:5.5rem;   /* section padding-block */
  --stack-gap:1.35rem;    /* .stack */
  --stack-tight-gap:.75rem;
  --grid-gap:1rem;
  /* radii */
  --radius-fig:14px;      /* figure panels */
  --radius-card:12px;     /* cards, tables, metrics */
  --radius-person:10px;   /* portraits */
  --radius-input:9px;     /* inputs, buttons */
  --radius-pill:999px;    /* chips, lang switch */
  --radius-chart:3px;     /* bars inside SVG diagrams */
  /* header */
  --bar-height:58px;
}

/* Espintrónica CG — element defaults, exactly as espintronica.cl sets them. */
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse 90% 40% at 50% -6%,rgba(242,169,59,.055),transparent),linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px),var(--ground);background-size:auto,52px 52px,52px 52px,auto;background-attachment:fixed;color:var(--ink);font-family:var(--body);font-size:var(--text-size-body);line-height:var(--text-leading-body);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--display);font-weight:700;text-wrap:balance;margin:0;line-height:1.12;letter-spacing:var(--tracking-display)}
h1{font-size:var(--text-h1);font-weight:800;letter-spacing:var(--tracking-h1);line-height:.94}
h2{font-size:var(--text-h2)}
h3{font-size:var(--text-h3);letter-spacing:-0.01em;line-height:1.25}
h4{font-size:var(--text-h4);letter-spacing:0}
p{margin:0}
::selection{background:var(--up);color:#0A0A0A}
a{color:var(--up-soft);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--up) 35%,transparent);transition:border-color .18s,color .18s}
a:hover{color:var(--up);border-bottom-color:var(--up)}
strong{font-weight:500;color:#FFFFFF}
em{font-style:italic;color:var(--up-soft)}
:focus-visible{outline:2px solid var(--up);outline-offset:3px;border-radius:3px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms !important;transition-duration:.001ms !important}}



html{scroll-behavior:smooth}
.spine{width:min(var(--spine),calc(100vw - 2.5rem));margin-inline:auto}
.wide{width:min(var(--wide),calc(100vw - 2.5rem));margin-inline:auto}
section{padding-block:5.5rem}
section + section{border-top:1px solid var(--line-soft)}
.stack{display:flex;flex-direction:column;gap:1.35rem}
.stack-tight{display:flex;flex-direction:column;gap:.75rem}
.grid2{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid3{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(258px,1fr))}
.chips{display:flex;flex-wrap:wrap;gap:.6rem}
.fig{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.1rem .95rem}
.fig-canvas{overflow-x:auto}
.fig-cap{display:flex;flex-direction:column;gap:.55rem;margin-top:.9rem;padding-top:.85rem;border-top:1px solid var(--line-soft);font-family:var(--mono);font-size:.78rem;line-height:1.65;color:var(--ink-dim)}
.fig-cap b{font-weight:500;color:var(--up-soft)}
.fig-note{color:var(--ink-faint);font-size:.74rem}
/* ── barra superior ───────────────────────────────────────────────── */
.bar{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--ground) 88%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line-soft)}
.bar-in{width:min(var(--wide),calc(100vw - 2.5rem));margin-inline:auto;display:flex;align-items:center;gap:1.5rem;height:var(--bar-height)}
.wordmark{font-family:var(--display);font-weight:800;font-size:.9rem;letter-spacing:.02em;color:var(--ink);display:flex;align-items:center;gap:.55rem;border:0;flex:none}
.wordmark:hover{color:var(--ink)}
.wordmark svg{flex:none}
.wordmark-dim{color:var(--ink-faint)}
.nav-escritorio{display:flex;gap:1.4rem;margin-left:auto;flex-wrap:nowrap;min-width:0}
.navlink{font-family:var(--mono);font-size:.78rem;letter-spacing:.04em;color:var(--ink-dim);border:0;white-space:nowrap}
.navlink:hover{color:var(--up)}
.bar-lang{margin-left:1.25rem;flex:none}
.nav-boton{display:none;margin-left:auto;align-items:center;justify-content:center;width:38px;height:34px;background:transparent;border:1px solid var(--line);border-radius:9px;color:var(--ink-dim);cursor:pointer}
.nav-boton:hover{color:var(--up);border-color:var(--up)}
.nav-movil{display:none}

@media (max-width:900px){
  .nav-escritorio{display:none}
  .nav-boton{display:inline-flex}
  .bar-lang{margin-left:.75rem}
  .nav-movil{display:block;border-top:1px solid var(--line-soft);background:var(--surface)}
  .nav-movil[hidden]{display:none}
  .nav-movil ul{list-style:none;margin:0;padding:.5rem 0;width:min(var(--wide),calc(100vw - 2.5rem));margin-inline:auto}
  .nav-movil li + li{border-top:1px solid var(--line-soft)}
  .nav-movil .navlink{display:block;padding:.85rem .1rem;font-size:.85rem}
}
@media (max-width:420px){
  .wordmark-largo{display:none}
}

/* ── formulario de contacto ───────────────────────────────────────── */
.form-contacto{display:grid;gap:1rem;margin-top:.4rem}
.form-fila{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.trampa{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.aviso{font-family:var(--mono);font-size:.82rem;line-height:1.6;padding:.75rem .95rem;border-radius:9px}
.aviso-ok{background:var(--ok-bg);border:1px solid var(--ok-border);color:var(--ok-text)}
.aviso-error{background:var(--err-bg);border:1px solid var(--err-border);color:var(--err-text)}
.aviso a{color:inherit}

/* ── utilidades ───────────────────────────────────────────────────── */
.solo-lectores{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.saltar{position:absolute;left:-9999px;top:0;z-index:100;background:var(--up);color:#0A0A0A;font-family:var(--mono);font-size:.8rem;padding:.6rem 1rem;border-radius:0 0 9px 0}
.saltar:focus{left:0}
img{max-width:100%}

