/* ==========================================================================
   RP-D — RP Development
   Sistema visual: retícula de 16 columnas, Hanken Grotesk, azul RP-D.
   ========================================================================== */

:root {
  /* Marca */
  --rpd-blue: #0f5cf5;
  --rpd-blue-hover: #0a47c9;
  --rpd-blue-active: #08358f;
  --rpd-blue-10: #edf3ff;
  --rpd-blue-20: #d0e0ff;
  --rpd-sand: #e9c58f;

  /* Neutros */
  --ink: #161616;
  --ink-2: #393939;
  --ink-3: #525252;
  --ink-4: #6f6f6f;
  --line: #e0e0e0;
  --line-strong: #c6c6c6;
  --layer: #f4f4f4;
  --layer-hover: #e8e8e8;
  --bg: #ffffff;
  --bg-inverse: #161616;
  --ink-inverse: #f4f4f4;

  /* Tipografía */
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;

  /* Espaciado (escala 8px) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --gutter: 1rem;
  --max: 1584px;
  --header-h: 56px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--rpd-blue); outline-offset: -2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--rpd-blue); color: #fff; padding: var(--s-3) var(--s-4);
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Retícula
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
}

@media (min-width: 672px) {
  :root { --gutter: 1.5rem; }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1056px) {
  :root { --gutter: 2rem; }
  .grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Encabezado
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
}

.masthead {
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.masthead .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex; align-items: center; gap: var(--s-4);
  height: 100%; text-decoration: none;
}
.brand img { height: 22px; width: auto; }
.brand-divider { width: 1px; height: 20px; background: var(--line-strong); }
.brand-name { font-size: 0.875rem; color: var(--ink-3); display: none; }
@media (min-width: 672px) { .brand-name { display: inline; } }

.mainnav { height: 100%; }
@media (max-width: 1055px) { .mainnav { display: none; } }

.icon-btn {
  width: var(--header-h); height: var(--header-h);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { background: var(--layer-hover); }
.icon-btn svg { width: 20px; height: 20px; }

.menu-toggle { display: inline-flex; }
@media (min-width: 1056px) { .menu-toggle { display: none; } }

.subnav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; height: 100%; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list > li { position: relative; display: flex; }
.subnav-list > li:last-child .subnav-link { padding-right: 0; }
.subnav-list > li:last-child .subnav-link:hover { background: none; color: var(--rpd-blue); }

.subnav-link {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-4);
  font-size: 0.875rem; color: var(--ink-3);
  text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 110ms, box-shadow 110ms, background-color 110ms;
}
.subnav-link:hover { color: var(--ink); background: var(--layer); }
.subnav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rpd-blue); }
.subnav-link svg { width: 16px; height: 16px; transition: transform 150ms; }
.subnav-link[aria-expanded="true"] { background: var(--layer); color: var(--ink); }
.subnav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: fixed; left: 0; right: 0;
  top: var(--header-h);
  background: var(--layer);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  display: none;
}
.mega.is-open { display: block; }
.mega-inner { padding-top: var(--s-6); padding-bottom: var(--s-7); }
.mega-title { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-3); margin: 0 0 var(--s-5); }
.mega-card {
  grid-column: span 4;
  display: block; padding: var(--s-4) 0;
  text-decoration: none; border-top: 1px solid var(--line-strong);
}
.mega-card strong { display: block; font-weight: 400; font-size: 1.125rem; margin-bottom: var(--s-1); }
.mega-card span { color: var(--ink-3); font-size: 0.875rem; }
.mega-card:hover strong { color: var(--rpd-blue); }
@media (min-width: 1056px) { .mega-card { grid-column: span 3; } }

/* Panel móvil */
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 60;
  background: var(--bg-inverse); color: var(--ink-inverse);
  padding: var(--s-5) 0; overflow-y: auto;
  display: none;
}
.mobile-panel.is-open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel a {
  display: block; padding: var(--s-4) var(--gutter);
  text-decoration: none; font-size: 1.25rem; font-weight: 300;
  border-bottom: 1px solid #393939;
}
.mobile-panel a:hover { background: #262626; }
.mobile-panel .sub a { font-size: 1rem; color: #c6c6c6; padding-left: calc(var(--gutter) + var(--s-5)); }

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
.display {
  font-weight: 300;
  font-size: clamp(2.625rem, 6.2vw, 5.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.display .accent { color: var(--rpd-blue); }

.h2 {
  font-weight: 300;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  line-height: 1.2;
  margin: 0;
}
.h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.3; margin: 0; }
.h4 { font-weight: 400; font-size: 1.25rem; line-height: 1.4; margin: 0; }

.eyebrow {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em;
  margin: 0;
}
.mono { font-family: var(--font-mono); }

.lead { font-size: 1.25rem; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.body-s { font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
p { margin: 0 0 var(--s-4); }

/* --------------------------------------------------------------------------
   Botones y enlaces
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-7);
  min-height: 48px; padding: 0 var(--s-4);
  font-size: 0.875rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 110ms;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--rpd-blue); color: #fff; }
.btn-primary:hover { background: var(--rpd-blue-hover); }
.btn-primary:active { background: var(--rpd-blue-active); }
.btn-ghost { background: transparent; color: var(--rpd-blue); padding-left: 0; gap: var(--s-3); }
.btn-ghost:hover { color: var(--rpd-blue-hover); text-decoration: underline; }
.btn-inverse { background: #fff; color: var(--ink); }
.btn-inverse:hover { background: var(--layer-hover); }
.btn-tertiary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-tertiary:hover { background: var(--ink); color: #fff; }

.link {
  color: var(--rpd-blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.link:hover { text-decoration: underline; color: var(--rpd-blue-hover); }
.link svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: var(--s-8) 0 var(--s-9); }
.hero .grid { row-gap: var(--s-7); align-items: start; }
.hero-copy { grid-column: 1 / -1; }
.hero-visual { grid-column: 1 / -1; }
.hero-aside { grid-column: 1 / -1; }

.hero-arrow { width: 64px; height: 64px; color: var(--rpd-blue); margin-top: var(--s-6); }

@media (min-width: 672px) {
  .hero-visual { grid-column: 1 / span 6; }
  .hero-aside { grid-column: 7 / span 2; }
}
@media (min-width: 1056px) {
  .hero { padding: var(--s-9) 0 var(--s-10); }
  .hero-copy { grid-column: 1 / span 8; padding-top: var(--s-2); }
  .hero-visual { grid-column: 9 / span 6; }
  .hero-aside { grid-column: 15 / span 2; }
}

.pattern-tile {
  aspect-ratio: 1 / 1;
  background: var(--rpd-blue);
  overflow: hidden;
  position: relative;
}
.pattern-tile svg { width: 100%; height: 100%; }
.network .net-lines line {
  opacity: .45;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: net-draw 1.2s cubic-bezier(.2,0,.38,.9) var(--d, 0ms) forwards;
  transition: opacity 300ms;
}
.network .net-nodes circle { transition: transform 300ms; transform-box: fill-box; transform-origin: center; }
.network .net-hubs circle { transform-box: fill-box; transform-origin: center; transition: transform 300ms; }
.pattern-tile:hover .net-lines line { opacity: .8; }
.pattern-tile:hover .net-nodes circle { transform: scale(1.3); }
.pattern-tile:hover .net-hubs circle { transform: scale(1.12); }
@keyframes net-draw { to { stroke-dashoffset: 0; } }
/* Plano */
.blueprint .bp-bold { stroke-width: 3; }
.blueprint .bp-text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.blueprint-tile svg { transition: opacity 600ms ease; }
.blueprint-tile.is-out svg { opacity: 0; }
.blueprint-tile.is-run .bp-draw {
  stroke-dasharray: 1;
  animation: bp-draw 1.4s cubic-bezier(.2,0,.38,.9) var(--d, 0s) both;
}
.blueprint-tile.is-run .bp-fill { animation: bp-fade 700ms ease var(--d, 0s) both; }
@keyframes bp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-fade { from { opacity: 0; } }
.blueprint .bp-lg { font-size: 16px; font-weight: 400; letter-spacing: 0.12em; }
.blueprint .bp-sm { font-size: 7px; }
.blueprint .bp-flow { stroke-dasharray: 5 11; }
.blueprint-tile.is-run .bp-flow { animation: bp-fade 700ms ease var(--d, 0s) both, bp-flow 900ms linear var(--d, 0s) infinite; }
.blueprint-tile.is-run .bp-flow.bp-rev { animation-direction: normal, reverse; }
@keyframes bp-flow { to { stroke-dashoffset: -16; } }

/* Rompecabezas */
.puzzle .puzzle-piece {
  transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 10px 14px rgba(0, 20, 80, .35));
  animation: puzzle-fit 7s cubic-bezier(.2,0,.38,.9) infinite;
}
.puzzle .puzzle-gap { animation: puzzle-gap 7s linear infinite; }
.puzzle-tile.is-offscreen .puzzle-piece,
.puzzle-tile.is-offscreen .puzzle-gap { animation-play-state: paused; }
@keyframes puzzle-fit {
  0%   { transform: translate(85px, -105px) rotate(-24deg) scale(1.08); opacity: 0; }
  10%  { transform: translate(85px, -105px) rotate(-24deg) scale(1.08); opacity: 1; }
  42%  { transform: translate(0, 0) rotate(0) scale(1.08); opacity: 1; filter: drop-shadow(0 10px 14px rgba(0, 20, 80, .35)); }
  48%  { transform: translate(0, 0) rotate(0) scale(1); filter: drop-shadow(0 0 0 rgba(0, 20, 80, 0)); }
  88%  { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; filter: drop-shadow(0 0 0 rgba(0, 20, 80, 0)); }
  96%, 100% { transform: translate(0, 0) rotate(0) scale(1); opacity: 0; }
}
@keyframes puzzle-gap {
  0%, 44% { opacity: .6; }
  48%, 92% { opacity: 0; }
  100% { opacity: .6; }
}
.network .net-labels { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }

.aside-link {
  font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.4;
  color: var(--rpd-blue); text-decoration: none;
  display: inline-flex; flex-direction: column; gap: var(--s-4);
}
.aside-link .circle {
  width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 110ms, color 110ms;
}
.aside-link .circle svg { width: 12px; height: 12px; }
.aside-link:hover .circle { background: var(--rpd-blue); color: #fff; }
.aside-link:hover span:first-child { text-decoration: underline; }
.aside-link .circle { color: var(--rpd-blue); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-layer { background: var(--layer); }
.section-inverse { background: var(--bg-inverse); color: var(--ink-inverse); }
.section-inverse .body-s, .section-inverse .lead { color: #c6c6c6; }
.section-blue { background: var(--rpd-blue); color: #fff; }

.section-label { grid-column: 1 / -1; margin-bottom: var(--s-5); }
.section-body { grid-column: 1 / -1; }
@media (min-width: 1056px) {
  .section-label { grid-column: 1 / span 4; margin-bottom: 0; padding-top: var(--s-3); }
  .section-body { grid-column: 5 / span 9; }
  .section-body.wide { grid-column: 5 / span 12; }
}

.section-body .h2 + p,
.section-body .h2 + .lead { margin-top: var(--s-5); }
.measure { max-width: 40rem; }

/* Tiles de servicios */
.tiles {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: var(--s-7);
}
@media (min-width: 672px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1056px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: var(--bg);
  min-height: 18rem;
  padding: var(--s-4) var(--s-4) var(--s-5);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: background-color 110ms;
}
.tile:hover { background: var(--layer); }
.tile .tile-icon { width: 40px; height: 40px; color: var(--rpd-blue); margin-bottom: var(--s-6); }
.tile .h4 { margin-bottom: var(--s-3); }
.tile p { color: var(--ink-3); font-size: 0.875rem; }
.tile .tile-arrow { margin-top: auto; color: var(--rpd-blue); width: 20px; height: 20px; align-self: flex-end; transition: transform 150ms; }
.tile:hover .tile-arrow { transform: translateX(4px); }
.tile.tile-blue { background: var(--rpd-blue); color: #fff; }
.tile.tile-blue p { color: var(--rpd-blue-20); }
.tile.tile-blue .tile-icon, .tile.tile-blue .tile-arrow { color: #fff; }
.tile.tile-blue:hover { background: var(--rpd-blue-hover); }

/* Proceso */
.steps { list-style: none; margin: var(--s-7) 0 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 4rem 1fr; gap: var(--s-4);
  padding: var(--s-5) 0; border-top: 1px solid var(--line-strong);
}
.steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.steps .num { font-family: var(--font-mono); color: var(--rpd-blue); font-size: 0.875rem; padding-top: 0.35rem; }
.steps .h4 { margin-bottom: var(--s-2); }
.steps p { color: var(--ink-3); margin: 0; }
@media (min-width: 1056px) {
  .steps li { grid-template-columns: 6rem minmax(0, 18rem) 1fr; align-items: baseline; }
  .steps .h4 { margin: 0; }
}

/* Lista de tecnologías */
.tech {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #393939; margin-top: var(--s-7);
}
@media (min-width: 672px) { .tech { grid-template-columns: repeat(4, 1fr); } }
.tech div { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid #393939; }
.tech strong { display: block; font-weight: 400; font-size: 1.125rem; }
.tech span { font-size: 0.75rem; color: #a8a8a8; font-family: var(--font-mono); }

/* Banda CTA */
.cta-band .grid { row-gap: var(--s-6); align-items: end; }
.cta-band .h2 { grid-column: 1 / -1; }
.cta-band .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-4); }
@media (min-width: 1056px) {
  .cta-band .h2 { grid-column: 1 / span 10; }
  .cta-band .actions { grid-column: 12 / span 5; justify-content: flex-end; }
}

/* Cabecera de página interior */
.page-hero { padding: var(--s-8) 0 var(--s-8); border-bottom: 1px solid var(--line); }
.page-hero .grid { row-gap: var(--s-5); }
.page-hero .crumbs { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-3); }
.page-hero .crumbs a { color: var(--rpd-blue); text-decoration: none; }
.page-hero .display { grid-column: 1 / -1; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero .lead { grid-column: 1 / -1; max-width: 44rem; margin: 0; }
@media (min-width: 1056px) {
  .page-hero .display { grid-column: 1 / span 11; }
  .page-hero .lead { grid-column: 1 / span 9; }
}

/* Detalle de servicio */
.service { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.service .grid { row-gap: var(--s-6); }
.service-head { grid-column: 1 / -1; }
.service-head .num { font-family: var(--font-mono); color: var(--rpd-blue); font-size: 0.875rem; display: block; margin-bottom: var(--s-4); }
.service-content { grid-column: 1 / -1; }
.service-content .lead { margin-bottom: var(--s-6); }
@media (min-width: 1056px) {
  .service-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; }
  .service-content { grid-column: 7 / span 10; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 672px) { .checklist { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
.checklist li { display: flex; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.checklist svg { width: 16px; height: 16px; color: var(--rpd-blue); flex: none; margin-top: 0.25rem; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 0.75rem; font-family: var(--font-mono); background: var(--rpd-blue-10); color: var(--rpd-blue-active); padding: var(--s-1) var(--s-3); border-radius: 12px; }

/* Valores (nosotros) */
.values { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s-7); }
@media (min-width: 672px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1056px) { .values { grid-template-columns: repeat(4, 1fr); } }
.values div { background: var(--bg); padding: var(--s-5) var(--s-4) var(--s-7); }
.values .num { font-family: var(--font-mono); color: var(--rpd-blue); font-size: 0.875rem; display: block; margin-bottom: var(--s-7); }
.values .h4 { margin-bottom: var(--s-3); }
.values p { color: var(--ink-3); font-size: 0.875rem; margin: 0; }

/* Formulario */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 672px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.75rem; color: var(--ink-3); margin-bottom: var(--s-2); letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 0.875rem; color: var(--ink);
  background: var(--layer); border: 0; border-bottom: 1px solid #8d8d8d;
  padding: 0 var(--s-4); height: 40px; border-radius: 0;
  outline: 2px solid transparent; outline-offset: -2px;
}
.field textarea { height: auto; min-height: 9rem; padding: var(--s-3) var(--s-4); resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23161616' d='M8 11 3 6l.7-.7L8 9.6l4.3-4.3.7.7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--rpd-blue); }
.field .hint { font-size: 0.75rem; color: var(--ink-4); margin-top: var(--s-1); }
.checks { display: grid; grid-template-columns: 1fr; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
@media (min-width: 672px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks legend { font-size: 0.75rem; color: var(--ink-3); margin-bottom: var(--s-3); padding: 0; }
.checks label { display: flex; align-items: center; gap: var(--s-2); font-size: 0.875rem; cursor: pointer; }
.checks input { accent-color: var(--rpd-blue); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }

.notice { padding: var(--s-4); font-size: 0.875rem; border-left: 3px solid; display: none; }
.notice.is-visible { display: block; }
.notice.ok { background: #defbe6; border-color: #24a148; }
.notice.err { background: #fff1f1; border-color: #da1e28; }

.contact-aside { grid-column: 1 / -1; }
.contact-main { grid-column: 1 / -1; }
@media (min-width: 1056px) {
  .contact-aside { grid-column: 1 / span 5; }
  .contact-main { grid-column: 7 / span 10; }
}
.contact-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.contact-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 0.75rem; color: var(--ink-3); margin-bottom: var(--s-1); }

/* Guía de marca */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); margin-top: var(--s-6); }
@media (min-width: 1056px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatch .chip { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.swatch strong { display: block; font-weight: 400; margin-top: var(--s-3); }
.swatch code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); }

.logo-stage { display: grid; grid-template-columns: 1fr; gap: var(--gutter); margin-top: var(--s-6); }
@media (min-width: 672px) { .logo-stage { grid-template-columns: repeat(3, 1fr); } }
.logo-stage figure { margin: 0; }
.logo-stage .stage { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.logo-stage .stage img { width: 52%; }
.logo-stage figcaption { font-size: 0.75rem; color: var(--ink-3); margin-top: var(--s-2); font-family: var(--font-mono); }

.type-specimen { border-top: 1px solid var(--line); margin-top: var(--s-6); }
.type-specimen > div { display: grid; grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1056px) { .type-specimen > div { grid-template-columns: 14rem 1fr; align-items: baseline; } }
.type-specimen code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-inverse); color: var(--ink-inverse); padding: var(--s-8) 0 var(--s-6); }
.site-footer .grid { row-gap: var(--s-7); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 28px; width: auto; margin-bottom: var(--s-5); }
.footer-brand p { color: #a8a8a8; font-size: 0.875rem; max-width: 22rem; }
.footer-col { grid-column: span 2; }
.footer-col h2 { font-size: 0.875rem; font-weight: 600; margin: 0 0 var(--s-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s-3); }
.footer-col a { color: #c6c6c6; text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #393939; padding-top: var(--s-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: 0.75rem; color: #8d8d8d; }
.footer-bottom a { color: #8d8d8d; }
@media (min-width: 672px) { .footer-col { grid-column: span 2; } }
@media (min-width: 1056px) {
  .footer-brand { grid-column: 1 / span 6; }
  .footer-col { grid-column: span 3; }
}

/* --------------------------------------------------------------------------
   Movimiento
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms cubic-bezier(0,0,.38,.9), transform 600ms cubic-bezier(0,0,.38,.9); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile .tile-arrow { transition: none; }
  .network .net-lines line { animation: none; stroke-dashoffset: 0; }
  .network .net-pulses, .network .net-ripples { display: none; }
  .puzzle .puzzle-piece { animation: none; filter: none; }
  .puzzle .puzzle-gap { animation: none; opacity: 0; }
}
