@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
  :root {
    --bg: #F4F6F7;
    --ink: #13212B;
    --muted: #586874;
    --line: #D3DADF;
    --net: #C27417;      /* par naranja: capas 1–3 */
    --sec: #2C8656;      /* par verde: capas 4–7 */
    --gov: #1D5FA8;      /* par azul: capa 8 */
    --paper: #FFFFFF;
    --max: 72rem;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
  }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--gov); outline-offset: 3px; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

  /* Cabecera */
  header.top { border-bottom: 1px solid var(--line); }
  header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
  .logo {
    font-weight: 800; font-size: 1.35rem; text-decoration: none;
    font-variation-settings: "wdth" 115; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: .15rem;
  }
  .logo b {
    display: inline-grid; place-items: center;
    width: 1.55rem; height: 1.55rem; border-radius: 4px;
    background: var(--ink); color: #fff; font-size: 1rem;
  }
  nav.main a { text-decoration: none; color: var(--muted); margin-left: 1.5rem; font-size: .975rem; }
  nav.main a:hover { color: var(--ink); }

  /* Hero */
  .hero { padding: 4.5rem 0 5rem; }
  .hero .wrap { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-figure { width: 100%; max-width: 50rem; justify-self: center; }
  h1 {
    font-variation-settings: "wdth" 112;
    font-weight: 750; font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.5rem;
    max-width: 16ch;
  }
  .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
  .btn {
    display: inline-block; text-decoration: none; font-weight: 600;
    background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 6px;
  }
  .btn:hover { background: var(--gov); }
  .btn-alt { margin-left: 1rem; color: var(--ink); font-weight: 600; }

  /* Pila OSI */
  .stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .stack a {
    display: grid; grid-template-columns: 2.25rem 1fr; align-items: center;
    text-decoration: none; background: var(--paper);
    border-left: 6px solid var(--c); border-radius: 3px;
    padding: .45rem .9rem; font-size: .95rem; color: var(--muted);
  }
  .stack a:hover { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--c); }
  .stack .n { font-weight: 700; color: var(--c); }
  .stack .l8 a {
    background: var(--gov); color: #fff; border-left-color: var(--gov);
    padding: 1.15rem .9rem; font-size: 1.15rem; font-weight: 650;
    margin-bottom: .6rem;
  }
  .stack .l8 .n { color: #fff; font-size: 1.4rem; }
  .stack .l8 small { display: block; font-weight: 400; font-size: .875rem; opacity: .85; }
  .stack-note { font-size: .875rem; color: var(--muted); margin: .9rem 0 0; }

  @media (prefers-reduced-motion: no-preference) {
    .stack li { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
    .stack li:nth-child(8) { animation-delay: .05s; }
    .stack li:nth-child(7) { animation-delay: .1s; }
    .stack li:nth-child(6) { animation-delay: .15s; }
    .stack li:nth-child(5) { animation-delay: .2s; }
    .stack li:nth-child(4) { animation-delay: .25s; }
    .stack li:nth-child(3) { animation-delay: .3s; }
    .stack li:nth-child(2) { animation-delay: .35s; }
    .stack li.l8 { animation-delay: .6s; animation-duration: .6s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  }

  /* Secciones */
  section.block { padding: 4.5rem 0; border-top: 1px solid var(--line); }
  h2 {
    font-variation-settings: "wdth" 108; font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.015em;
    line-height: 1.12; margin: 0 0 .75rem;
  }
  .intro { color: var(--muted); max-width: 40rem; margin: 0 0 3rem; }

  /* Servicios por capa */
  .layer-group { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; padding: 2.25rem 0; border-top: 3px solid var(--c); }
  .layer-group + .layer-group { margin-top: 1.5rem; }
  .layer-group h3 { margin: 0; font-size: 1.35rem; font-variation-settings: "wdth" 108; font-weight: 700; line-height: 1.2; }
  .layer-group .range { color: var(--c); font-weight: 700; display: block; margin-bottom: .35rem; font-size: 1rem; }
  .layer-group .why { color: var(--muted); font-size: .95rem; margin: .75rem 0 0; }
  .svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
  .svc h4 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 650; }
  .svc p { margin: 0; color: var(--muted); font-size: .975rem; max-width: 38ch; }

  /* Proceso: secuencia real */
  .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
  .steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 1rem; }
  .steps li::before { content: counter(s); font-weight: 800; font-size: 2rem; font-variation-settings: "wdth" 120; color: var(--gov); display: block; line-height: 1; margin-bottom: .75rem; }
  .steps h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
  .steps p { margin: 0; color: var(--muted); font-size: .95rem; }

  /* Credenciales */
  .about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
  .about p { max-width: 36rem; }
  .creds { list-style: none; margin: 0; padding: 0; }
  .creds li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
  .creds li:first-child { border-top: 1px solid var(--line); }
  .creds span { color: var(--muted); font-size: .95rem; text-align: right; }

  /* Contacto */
  .contact { background: var(--ink); color: #fff; border-top: 0; }
  .contact .intro { color: #B9C6CF; }
  .mail {
    font-variation-settings: "wdth" 115; font-weight: 700;
    font-size: clamp(1.6rem, 4.5vw, 3rem); letter-spacing: -0.01em;
    text-decoration: none; border-bottom: 3px solid var(--gov); padding-bottom: .2rem;
    word-break: break-word;
  }
  .mail:hover { border-bottom-color: #fff; }
  .contact .small { color: #B9C6CF; margin-top: 2rem; font-size: .95rem; }
  .contact :focus-visible { outline-color: #fff; }

  footer { background: var(--ink); color: #8A9AA5; font-size: .875rem; padding: 1.5rem 0 2rem; border-top: 1px solid #26363F; }

  @media (max-width: 860px) {
    .hero .wrap, .about { grid-template-columns: 1fr; gap: 3rem; }
    .layer-group { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    nav.main a:not(:last-child) { display: none; }
    .svc, .steps { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 3.5rem; }
    .btn-alt { display: inline-block; margin: 1rem 0 0; }
    .creds li { flex-direction: column; gap: .2rem; }
    .creds span { text-align: left; }
  }
  .c-gov { --c: var(--gov); }
  .c-sec { --c: var(--sec); }
  .c-net { --c: var(--net); }
  .hero .wrap.nf { display: block; }
  .onion { display: block; width: 100%; max-width: 50rem; height: auto; margin: 0 auto; overflow: visible; }
  .onion text { font-variation-settings: "wdth" 108; }
  .onion-legend { display: none; list-style: none; margin: 1.25rem 0 0; padding: 0; columns: 2; column-gap: 1rem; font-size: .9rem; }
  .onion-legend li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; break-inside: avoid; }
  .onion-legend .sw { width: 1.6rem; height: 1.6rem; padding: .25rem; border-radius: 4px; flex: none; }
  .k1 { background: #C2410C; color: #fff; } .k2 { background: #FF8A1F; color: #3A1A00; }
  .k3 { background: #FFC15A; color: #3A2200; } .k4 { background: #8EE6A8; color: #0E2A1C; }
  .k5 { background: #2EC27E; color: #0E2A1C; } .k6 { background: #109E64; color: #fff; }
  .k7 { background: #0B8452; color: #fff; } .k8 { background: #1E6FE0; color: #fff; }
  @media (prefers-reduced-motion: no-preference) {
    .onion circle { transform-origin: 360px 372px; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
    .onion circle:nth-of-type(1) { animation-delay: 0.49s; }
    .onion circle:nth-of-type(2) { animation-delay: 0.42s; }
    .onion circle:nth-of-type(3) { animation-delay: 0.35s; }
    .onion circle:nth-of-type(4) { animation-delay: 0.28s; }
    .onion circle:nth-of-type(5) { animation-delay: 0.21s; }
    .onion circle:nth-of-type(6) { animation-delay: 0.14s; }
    .onion circle:nth-of-type(7) { animation-delay: 0.07s; }
    .onion circle:nth-of-type(8) { animation-delay: 0.00s; }
    .onion text, .onion .ic { animation: fade .5s .75s both; }
    @keyframes grow { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  }
  @media (max-width: 600px) {
    .onion .lbl { display: none; }
  #u-l8 { transform: translate(345.0px, 35.0px) scale(1.200); }
  #u-l7 { transform: translate(346.0px, 86.0px) scale(1.333); }
  #u-l6 { transform: translate(346.0px, 122.0px) scale(1.333); }
  #u-l5 { transform: translate(346.0px, 158.0px) scale(1.333); }
  #u-l4 { transform: translate(346.0px, 194.0px) scale(1.333); }
  #u-l3 { transform: translate(346.0px, 230.0px) scale(1.333); }
  #u-l2 { transform: translate(346.0px, 266.0px) scale(1.333); }
  #u-l1 { transform: translate(343px, 322px) scale(1.417); }
    .onion-legend { display: block; }
  }
  .stack-note { text-align: center; max-width: 34rem; margin-left: auto; margin-right: auto; }
  .hero-text { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
  .hero-text h1 { margin: 0; }
  .hero-text .lead { margin-bottom: 1.5rem; }
  @media (max-width: 860px) { .hero-text { grid-template-columns: 1fr; gap: 1.5rem; } }
