@charset "UTF-8";
/*
 * QyQ Public Affairs — hoja de estilos de la web.
 * Base global (tokens en :root) + un bloque por componente, aislado bajo .c-<componente>:
 * en las plantillas cada componente va dentro de <div class="c-<componente>">.
 *
 * Colores: los de la web original de QyQ.
 *   azul corporativo #2B3F8E · azul secundario #34398E · dorado #E6A94A
 *   blanco · grises #F8F8F8 / #F6F6F6 / #E1E1E1 · textos #000 / #6F6F6F / #818A91
 * Accesibilidad: el dorado se usa como fondo, filete o detalle (o sobre azul), nunca como
 * texto pequeño sobre blanco (contraste 2:1). Los enlaces de texto van en azul.
 */
/* Fuentes autoalojadas (sin Google Fonts: no se ceden las IP de los visitantes). */
@font-face {
  font-family: "Public Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Public Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
}
/* Transición suave entre páginas (navegadores que la soportan; el resto navega normal). */
@view-transition {
  navigation: auto;
}
:root {
  --paper: #ffffff;
  --paper-deep: #f6f6f6;
  --paper-soft: #f8f8f8;
  --ink: #000000;
  --ink-soft: #6f6f6f;
  --ink-mute: #818a91;
  --brand: #2b3f8e;
  --brand-raised: #34398e;
  --on-brand: #ffffff;
  --on-brand-soft: #e1e1e1;
  --accent: #e6a94a;
  --on-accent: #000000;
  --link: #2b3f8e;
  --rule: #e1e1e1;
  /* Solo para estados de formularios (error / enviado); no forman parte de la marca. */
  --danger: #b3261e;
  --ok: #2b3f8e;
  --font-sans: 'Public Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Spectral', Georgia, 'Times New Roman', serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-display: clamp(2.5rem, 1.2rem + 5.6vw, 5.5rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius-control: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sobre fondos azules el contorno de foco pasa a dorado para seguir viéndose. */
.c-hero :focus-visible,
.section--brand :focus-visible,
.c-page-head :focus-visible {
  outline-color: var(--accent);
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

main:focus {
  outline: none;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--soft {
  background: var(--paper-deep);
}

.section--brand {
  background: var(--brand);
  color: var(--on-brand);
}

.section-title {
  font-size: var(--fs-h2);
  max-width: 18ch;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

.section--brand .lead {
  color: var(--on-brand-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Controles ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-control);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.button--accent:hover {
  background: var(--paper);
  border-color: var(--accent);
  color: var(--brand);
}

.button--brand {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.button--brand:hover {
  background: transparent;
  color: var(--brand);
}

.button--ghost:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: var(--fs-small);
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field input[aria-invalid=true],
.field textarea[aria-invalid=true],
.field select[aria-invalid=true] {
  border-color: var(--danger);
}
.field textarea {
  resize: vertical;
}

.error {
  font-size: var(--fs-small);
  color: var(--danger);
  font-weight: 600;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, #fff);
}

.notice--error {
  border-left-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, #fff);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition {
    navigation: none;
  }
}
/* ---------- Saltar al contenido ---------- */
.c-skip .skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  border-radius: 4px;
}
.c-skip .skip:focus {
  top: 12px;
}

/* ---------- Sello de QyQ ---------- */
.c-seal {
  display: inline-block;
  color: inherit;
}
.c-seal svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.c-seal .outer {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.c-seal .inner {
  fill: var(--accent);
}
.c-seal .legend {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 13.4px;
  font-weight: 600;
}
.c-seal .mono {
  fill: var(--brand);
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.c-seal .ring {
  transform-origin: 100px 100px;
}
.c-seal .ring.spin {
  animation: seal-turn 90s linear infinite;
}

@keyframes seal-turn {
  to {
    transform: rotate(360deg);
  }
}
/* ===== Cabecera ===== */
/* Como en la web original: cabecera clara, menú en negro y página activa marcada en dorado. */
.c-header .header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.c-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.c-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.c-header .brand-seal {
  width: 40px;
  color: var(--brand);
}
.c-header .brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.c-header .brand-name span {
  font-weight: 400;
}
.c-header .nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-header .nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
  /* Subrayado que crece desde la izquierda: indica la página actual. */
}
.c-header .nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.c-header .nav a:hover, .c-header .nav a.is-active {
  color: var(--brand);
}
.c-header .nav a.is-active::after {
  transform: scaleX(1);
}
.c-header .menu-toggle {
  display: none;
}
@media (max-width: 760px) {
  .c-header .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .c-header .burger,
  .c-header .burger::before,
  .c-header .burger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-out), background-color 0.2s;
  }
  .c-header .burger {
    position: relative;
  }
  .c-header .burger::before, .c-header .burger::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .c-header .burger::before {
    transform: translateY(-7px);
  }
  .c-header .burger::after {
    transform: translateY(7px);
  }
  .c-header .burger.is-open {
    background: transparent;
  }
  .c-header .burger.is-open::before {
    transform: rotate(45deg);
  }
  .c-header .burger.is-open::after {
    transform: rotate(-45deg);
  }
  .c-header .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.4s var(--ease-out), visibility 0s 0.4s;
  }
  .c-header .nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.4s var(--ease-out);
  }
  .c-header .nav ul {
    flex-direction: column;
    padding: 8px var(--gutter) 20px;
  }
  .c-header .nav a {
    padding: 14px 0;
    font-size: 1.25rem;
  }
  .c-header .nav a::after {
    left: 0;
    right: auto;
    width: 32px;
  }
}

/* ===== Pie ===== */
.c-footer .footer {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border-top: 3px solid var(--brand);
  padding-block: 64px 28px;
  font-size: 0.9375rem;
}
.c-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.c-footer .name {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.c-footer .label {
  color: var(--ink);
  font-weight: 650;
  margin-bottom: 10px;
}
.c-footer address {
  font-style: normal;
  line-height: 1.7;
}
.c-footer p + p {
  margin-top: 4px;
}
.c-footer .legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
@media (max-width: 760px) {
  .c-footer .grid {
    grid-template-columns: 1fr 1fr;
  }
  .c-footer .grid > :first-child {
    grid-column: 1/-1;
  }
}

/* ===== Cabecera de páginas interiores ===== */
/* Banda azul con la textura de puntos del mapa y un arco dorado que se dibuja al entrar. */
.c-page-head .page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 72px);
  background: radial-gradient(circle, color-mix(in srgb, var(--on-brand) 22%, transparent) 1.4px, transparent 1.8px) 0 0/18px 18px, var(--brand);
  color: var(--on-brand);
}
.c-page-head .arc {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 40%;
  height: 120%;
  pointer-events: none;
}
.c-page-head .arc path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: arc-draw 1.6s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.c-page-head .wrap {
  position: relative;
}
.c-page-head h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 16ch;
  animation: head-in 0.8s var(--ease-out) both;
}
.c-page-head .lead {
  margin-top: 24px;
  color: var(--on-brand-soft);
}

@keyframes arc-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes head-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* ===== Portada: mapa de influencia ===== */
.c-hero .hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-brand);
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px);
}
.c-hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.c-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.c-hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.c-hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.c-hero .claim {
  margin-top: 22px;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--on-brand-soft);
  min-height: 4.4em;
}
.c-hero {
  /* El ámbito que se alterna: subrayado dorado que se dibuja con cada cambio. */
}
.c-hero .pillar {
  color: var(--on-brand);
  font-weight: 650;
  background: linear-gradient(var(--accent), var(--accent)) left bottom/0 2px no-repeat;
  animation: pillar-line 0.9s 0.2s var(--ease-out) forwards;
}
.c-hero .pillar.is-swapping {
  animation: none;
  opacity: 0;
}
.c-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.c-hero .button--ghost {
  color: var(--on-brand);
}
.c-hero .cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--on-brand-soft);
}
.c-hero .cities li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
@media (max-width: 900px) {
  .c-hero .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-hero .claim {
    min-height: 0;
  }
}

@keyframes pillar-line {
  to {
    background-size: 100% 2px;
  }
}
.c-map {
  position: relative;
}
.c-map .map-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.c-map .dots {
  stroke: var(--on-brand);
  stroke-opacity: 0.4;
  stroke-width: 3.4;
  stroke-linecap: round;
}
.c-map .arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: arc-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: var(--delay, 0s);
  transition: stroke-width 0.25s, opacity 0.25s;
}
.c-map .comet {
  fill: var(--on-brand);
  opacity: 0;
}
.js .c-map .comet {
  opacity: 1;
}
.c-map .city {
  cursor: default;
}
.c-map .city .pin {
  fill: var(--accent);
}
.c-map .city .halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.8s ease-out infinite;
  animation-delay: var(--delay, 0s);
}
.c-map .city text {
  fill: var(--on-brand);
  font-size: 15px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--brand);
  stroke-width: 4px;
  stroke-linejoin: round;
  opacity: 0;
  animation: label-in 0.6s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}
.c-map .city.is-hub .pin {
  fill: var(--on-brand);
}
.c-map .city.is-hub text {
  font-size: 17px;
}
.c-map {
  /* Al pasar por una ciudad (en el mapa o en la lista) se resalta su ruta. */
}
.c-map.is-focused .arc {
  opacity: 0.25;
}
.c-map.is-focused .arc.is-active {
  opacity: 1;
  stroke-width: 3;
}

@keyframes halo {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
@keyframes label-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ===== Cifras / cinta de ámbitos ===== */
.c-ribbon .ribbon {
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  border-block: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.c-ribbon .track {
  display: flex;
  width: max-content;
  animation: ribbon 38s linear infinite;
}
.c-ribbon ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-ribbon li {
  padding: 14px 28px;
  font-weight: 700;
  white-space: nowrap;
}
.c-ribbon li::after {
  content: "✦";
  margin-left: 56px;
  font-weight: 400;
}
.c-ribbon .ribbon:hover .track {
  animation-play-state: paused;
}

@keyframes ribbon {
  to {
    transform: translateX(-50%);
  }
}
/* ===== Red de servicios ===== */
.c-network .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.c-network .layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
  align-items: center;
}
.c-network .canvas {
  position: relative;
  aspect-ratio: 1.15;
  background: radial-gradient(circle, var(--rule) 1.2px, transparent 1.6px) 0 0/22px 22px, var(--paper-soft);
  border-radius: 8px;
}
.c-network .edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.c-network .edges line {
  stroke: var(--brand);
  stroke-opacity: 0.18;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s, stroke-opacity 0.3s, stroke-width 0.3s;
}
.c-network .edges line.is-linked {
  stroke: var(--accent);
  stroke-opacity: 1;
  stroke-width: 2.5;
}
.c-network [role=tablist] {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-network .node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.c-network .node .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 8%, transparent);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.c-network .node:hover .dot {
  transform: scale(1.12);
}
.c-network .node.is-linked .dot {
  border-color: var(--accent);
}
.c-network .node[aria-selected=true] {
  color: var(--brand);
}
.c-network .node[aria-selected=true] .dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.c-network .panel {
  padding: clamp(24px, 3vw, 40px);
  border-left: 4px solid var(--accent);
  background: var(--paper);
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--brand) 45%, transparent);
}
.c-network .panel h3 {
  font-size: var(--fs-h3);
  color: var(--brand);
}
.c-network .panel p {
  margin-top: 14px;
  color: var(--ink-soft);
}
.c-network .panel ul {
  margin: 18px 0 0;
  padding-left: 1.1em;
}
.c-network .panel li + li {
  margin-top: 6px;
}
.c-network .panel a {
  display: inline-block;
  margin-top: 20px;
  color: var(--link);
  font-weight: 650;
}
.c-network .panel.is-entering {
  animation: panel-in 0.45s var(--ease-out);
}
@media (max-width: 900px) {
  .c-network .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-network .canvas {
    aspect-ratio: auto;
    background: none;
  }
  .c-network .edges {
    display: none;
  }
  .c-network {
    /* En móvil la constelación pasa a ser una fila de pestañas desplazable. */
  }
  .c-network [role=tablist] {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .c-network .node {
    position: static;
    transform: none;
    flex: none;
    flex-direction: row;
    max-width: none;
    padding: 10px 14px;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .c-network .node .dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    box-shadow: none;
  }
  .c-network .node[aria-selected=true] {
    border-color: var(--accent);
  }
  .c-network .node[aria-selected=true] .dot {
    transform: none;
    box-shadow: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* ===== Terminal de desarrollo (sección de David) ===== */
.c-dev .dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.c-dev .eyebrow {
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-dev .section-title {
  margin-top: 14px;
}
.c-dev .copy p {
  margin-top: 18px;
  color: var(--on-brand-soft);
}
.c-dev .copy .cta {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-brand);
}
.c-dev .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.c-dev .stack li {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--on-brand) 35%, transparent);
  border-radius: 999px;
  font-size: var(--fs-small);
}
.c-dev .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .c-dev .dev-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.c-terminal .terminal {
  border-radius: 10px;
  overflow: hidden;
  background: #11183a;
  color: #e1e1e1;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.65;
}
.c-terminal .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #1a2350;
  font-size: 0.75rem;
  color: #818a91;
}
.c-terminal .bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34398e;
}
.c-terminal .bar span:first-child {
  background: var(--accent);
}
.c-terminal .bar em {
  margin-left: 10px;
  font-style: normal;
}
.c-terminal .screen {
  min-height: 300px;
  margin: 0;
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.c-terminal .prompt {
  color: var(--accent);
}
.c-terminal .cmd {
  color: #fff;
}
.c-terminal .out {
  display: block;
  color: #c9cfe6;
}
.c-terminal .step + .step {
  display: block;
  margin-top: 10px;
}
.c-terminal .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* ===== Últimas noticias / tarjetas ===== */
.c-posts .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.c-posts .more {
  color: var(--link);
  font-weight: 650;
}
.c-posts .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  margin-top: 40px;
}
.c-posts .empty {
  margin-top: 32px;
  color: var(--ink-soft);
}

.c-post-card {
  height: 100%;
}
.c-post-card .card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.c-post-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--brand) 55%, transparent);
}
.c-post-card .media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: radial-gradient(circle, color-mix(in srgb, var(--on-brand) 22%, transparent) 1.4px, transparent 1.8px) 0 0/16px 16px, var(--brand);
}
.c-post-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-post-card .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1;
}
.c-post-card .meta {
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.c-post-card h3 {
  font-size: 1.25rem;
}
.c-post-card h3 a {
  text-decoration: none;
  color: var(--ink);
  /* Toda la tarjeta es clicable sin anidar enlaces. */
}
.c-post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.c-post-card .card:hover h3 a {
  color: var(--brand);
}
.c-post-card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.c-post-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.c-post-card .tags span {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 3px 9px;
  background: var(--paper-deep);
  color: var(--brand);
}

/* ===== Noticias del blog de WordPress ===== */
.c-wp-feed .status {
  display: none;
  margin-top: 32px;
  color: var(--ink-soft);
}
.c-wp-feed .fallback {
  margin-top: 32px;
}
.c-wp-feed .fallback a {
  color: var(--link);
  font-weight: 650;
}
.c-wp-feed > .button {
  margin-top: 40px;
}
.c-wp-feed {
  /* Artículo del blog leído dentro de Noticias. */
}
.c-wp-feed .source {
  margin-top: 40px;
  font-weight: 650;
}
.c-wp-feed .source a {
  color: var(--link);
}
.c-wp-feed .prose img {
  height: auto;
}

.js .c-wp-feed .status {
  display: block;
}
.js .c-wp-feed .fallback {
  display: none;
}
.js .c-wp-feed.is-error .fallback {
  display: block;
}

/* ===== Contacto ===== */
.c-contact .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.c-contact .aside h2 {
  font-size: var(--fs-h2);
}
.c-contact .aside .lead {
  margin-top: 16px;
}
.c-contact .aside dl {
  margin: 36px 0 0;
  display: grid;
  gap: 18px;
}
.c-contact .aside dt {
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.c-contact .aside dd {
  margin: 4px 0 0;
}
.c-contact .aside a {
  color: var(--link);
}
.c-contact .aside .social {
  display: flex;
  gap: 16px;
}
@media (max-width: 900px) {
  .c-contact .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.c-contact-form .form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper-soft);
  border-top: 4px solid var(--brand);
}
.c-contact-form .full {
  grid-column: 1/-1;
}
.c-contact-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.c-contact-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.c-contact-form .check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
}
.c-contact-form .counter {
  justify-self: end;
  font-size: 0.75rem;
  color: var(--ink-mute);
}
.c-contact-form .submit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.c-contact-form .hint {
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.c-contact-form .sent {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-top: 4px solid var(--accent);
  background: var(--paper-soft);
  animation: panel-in 0.5s var(--ease-out);
}
.c-contact-form .sent strong {
  font-size: var(--fs-h3);
  color: var(--brand);
}
@media (max-width: 640px) {
  .c-contact-form .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Página de servicios: acordeón ===== */
.c-services .list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.c-services .item {
  border-bottom: 1px solid var(--rule);
}
.c-services .trigger {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.c-services .trigger .num {
  font-family: var(--font-read);
  font-size: 1.125rem;
  color: var(--ink-mute);
}
.c-services .trigger .title {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.c-services .trigger .icon {
  position: relative;
  width: 24px;
  height: 24px;
}
.c-services .trigger .icon::before, .c-services .trigger .icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.c-services .trigger .icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.c-services .trigger:hover .title, .c-services .trigger[aria-expanded=true] .title {
  color: var(--brand);
}
.c-services .trigger[aria-expanded=true] .icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.c-services {
  /* Sin JavaScript todo el contenido queda visible; con JS se pliega. */
}
.c-services .content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.js .c-services .item:not(.is-open) .content {
  grid-template-rows: 0fr;
}
.c-services .inner {
  overflow: hidden;
}
.c-services .detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 0 0 36px 72px;
}
.c-services .detail p {
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.c-services .detail ul {
  margin: 16px 0 0;
  padding-left: 1.1em;
}
.c-services .detail li + li {
  margin-top: 8px;
}
.c-services .detail .intro {
  margin-top: 16px;
  font-size: var(--fs-body);
  font-weight: 650;
  color: var(--ink);
}
.c-services .detail img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 760px) {
  .c-services .trigger {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
  }
  .c-services .detail {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }
}

/* ===== Página de desarrollo: CV ===== */
.c-cv .grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
}
.c-cv .profile p {
  font-family: var(--font-read);
  font-size: 1.25rem;
  line-height: 1.55;
}
.c-cv h2 {
  font-size: var(--fs-h3);
  color: var(--brand);
  margin-bottom: 18px;
}
.c-cv .block + .block {
  margin-top: 48px;
}
.c-cv .timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 2px solid var(--rule);
}
.c-cv .job {
  position: relative;
}
.c-cv .job + .c-cv .job {
  margin-top: 32px;
}
.c-cv .job::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
}
.c-cv .job h3 {
  font-size: 1.1875rem;
}
.c-cv .job .meta {
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.c-cv .job ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
}
.c-cv .skills {
  display: grid;
  gap: 16px;
}
.c-cv .skills h3 {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.c-cv .skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.c-cv .skills li {
  padding: 4px 10px;
  background: var(--paper-deep);
  font-size: var(--fs-small);
}
.c-cv .plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-cv .plain li + li {
  margin-top: 12px;
}
.c-cv .plain span {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
@media (max-width: 900px) {
  .c-cv .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Blog ===== */
.c-blog-list .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.c-blog-list .filters a {
  display: block;
  padding: 7px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 650;
  text-decoration: none;
}
.c-blog-list .filters a:hover {
  border-color: var(--brand);
}
.c-blog-list .filters a[aria-current=page] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.c-blog-list .pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  font-weight: 650;
}
.c-blog-list .pager a {
  color: var(--link);
}
.c-blog-list .pager span {
  color: var(--ink-mute);
  font-weight: 400;
}

.c-article .article {
  max-width: 720px;
  margin-inline: auto;
}
.c-article .cover {
  margin: 0 0 40px;
}
.c-article .cover img {
  width: 100%;
}
.c-article .prose {
  font-family: var(--font-read);
  font-size: 1.1875rem;
  line-height: 1.75;
}
.c-article .prose > * + * {
  margin-top: 1.1em;
}
.c-article .prose h2,
.c-article .prose h3 {
  font-family: var(--font-sans);
  margin-top: 1.8em;
  color: var(--brand);
}
.c-article .prose h2 {
  font-size: 1.625rem;
}
.c-article .prose h3 {
  font-size: 1.3125rem;
}
.c-article .prose a {
  color: var(--link);
}
.c-article .prose blockquote {
  margin-inline: 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}
.c-article .prose img {
  margin-block: 1.5em;
}
.c-article .prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--paper-deep);
  font-size: 0.875rem;
}
.c-article .prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}
.c-article .prose th,
.c-article .prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.c-article .back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.c-article .back a {
  color: var(--link);
  font-weight: 650;
}

.c-meta-line {
  margin-top: 20px;
  color: var(--on-brand-soft);
  font-size: var(--fs-small);
}

/* ===== Mensajes y 404 ===== */
.c-messages .wrap {
  padding-top: 20px;
}

.c-not-found .box {
  max-width: 560px;
}
.c-not-found p {
  margin-top: 16px;
  color: var(--ink-soft);
}
.c-not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .c-ribbon .track {
    animation: none;
  }
}
