/* ==========================================================================
   TELFO NETWORKS — Design System
   Base: blanco + casi negro + azul / verde / naranja corporativos.
   Tipografía: Archivo (variable, eje wdth) + IBM Plex Mono (utilidad).
   Fuentes autoalojadas: sin peticiones a terceros (mejor rendimiento y RGPD).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* --- Tinta corporativa --- */
  --ink:        #08151D;
  --ink-900:    #0A1A24;
  --ink-800:    #0E2231;
  --ink-700:    #143040;
  --ink-600:    #1D4155;

  /* --- Papel --- */
  --paper:      #FFFFFF;
  --paper-2:    #F4F7F9;
  --paper-3:    #E7EEF2;

  /* --- Identidad --- */
  --blue:       #0094D8;
  --blue-700:   #0077B0;
  --blue-300:   #57C3F0;
  --green:      #74CA00;
  --green-700:  #4E8A00;
  --green-300:  #A5E546;
  --orange:     #F59A00;

  /* --- Texto --- */
  --text:       #0C1E28;
  --muted:      #55697A;
  --text-inv:   #EAF2F6;
  --muted-inv:  #91A9B7;

  /* --- Líneas --- */
  --line:       #DDE6EC;
  --line-soft:  #EDF2F5;
  --line-inv:   rgba(255,255,255,.13);

  /* --- Tipografía --- */
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Ritmo --- */
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1280px;
  --section-y: clamp(76px, 9vw, 136px);
  --radius: 14px;
  --radius-sm: 9px;

  /* --- Sombra --- */
  --shadow-1: 0 1px 2px rgba(8,21,29,.05), 0 6px 20px -8px rgba(8,21,29,.10);
  --shadow-2: 0 2px 4px rgba(8,21,29,.06), 0 22px 48px -18px rgba(8,21,29,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.t-dark :focus-visible { outline-color: var(--green-300); }

.skip {
  position: absolute; left: 16px; top: -70px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.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;
}

/* ==========================================================================
   Escala tipográfica — el eje de anchura de Archivo da el carácter
   ========================================================================== */
.d1, .d2, .d3 { font-variation-settings: "wdth" 112; }

.d1 { font-size: clamp(2.55rem, 5.1vw, 4.35rem); letter-spacing: -.032em; line-height: 1.03; }
.d2 { font-size: clamp(2rem, 3.5vw, 3.05rem); letter-spacing: -.028em; line-height: 1.08; }
.d3 { font-size: clamp(1.35rem, 1.9vw, 1.72rem); letter-spacing: -.018em; line-height: 1.22; }

.lede {
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.58;
  color: var(--muted);
}
.t-dark .lede { color: var(--muted-inv); }

.eyebrow {
  font-family: var(--mono);
  font-size: .735rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  flex: none;
  transform: rotate(45deg);
}
.t-dark .eyebrow { color: var(--blue-300); }

.emph { color: var(--green-700); }
.t-dark .emph { color: var(--green); }

.mono-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-dark .mono-label { color: var(--muted-inv); }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(52px, 6vw, 84px); }

.t-light { background: var(--paper); color: var(--text); }
.t-soft  { background: var(--paper-2); color: var(--text); }
.t-dark  { background: var(--ink); color: var(--text-inv); }
.t-dark h1, .t-dark h2, .t-dark h3 { color: #fff; }

.head-block { max-width: 720px; }
.head-block .lede { margin-top: 22px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }

@media (max-width: 900px) {
  .split, .split-wide { grid-template-columns: 1fr; }
}

.stack-l > * + * { margin-top: 20px; }
.mt-l { margin-top: clamp(40px, 5vw, 68px); }
.mt-m { margin-top: 30px; }

/* Rejilla técnica de fondo, muy sutil */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 5%, transparent 72%);
  opacity: .5;
  pointer-events: none;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .28s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: #00699C; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.t-dark .btn-ghost { border-color: rgba(255,255,255,.26); color: #fff; }
.t-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-lime { background: var(--green); color: var(--ink); }
.btn-lime:hover { background: var(--green-300); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem;
  color: var(--blue-700);
  border-bottom: 1px solid transparent;
  transition: gap .22s var(--ease), border-color .22s var(--ease);
}
.link-arrow:hover { gap: 14px; border-bottom-color: currentColor; }
.t-dark .link-arrow { color: var(--blue-300); }

/* ==========================================================================
   Header + mega menú
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: var(--maxw); width: 100%; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.brand .logo-dark { display: none; }

/* Modo overlay (sobre hero oscuro) */
.header[data-mode="overlay"] { background: transparent; color: #fff; }
.header[data-mode="solid"] {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--text);
}
.header[data-mode="solid"] .logo-light { display: none; }
.header[data-mode="solid"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 8px;
  font-size: .945rem; font-weight: 500;
  background: none; border: 0; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.header[data-mode="overlay"] .nav-link:hover { background: rgba(255,255,255,.12); }
.header[data-mode="solid"] .nav-link:hover { background: var(--paper-2); }
.nav-link[aria-current="page"] { color: var(--blue); }
.nav-caret { transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.header-cta { margin-left: 10px; padding: 11px 20px; font-size: .92rem; }

.mega {
  position: absolute; top: calc(100% + 12px); right: -180px;
  width: min(880px, calc(100vw - 40px));
  background: #fff; color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: 26px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 22px; }
.mega-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 14px; border-radius: 10px;
  transition: background .18s var(--ease);
}
.mega-card:hover { background: var(--paper-2); }
.mega-ico {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: var(--paper-2); color: var(--blue-700);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.mega-card:hover .mega-ico { background: var(--blue); color: #fff; border-color: var(--blue); }
.mega-t { font-weight: 650; font-size: .95rem; letter-spacing: -.012em; }
.mega-d { font-size: .83rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.mega-foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.mega-foot p { font-size: .87rem; color: var(--muted); max-width: 460px; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: currentColor; transition: transform .28s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 31px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); color: var(--text);
  overflow-y: auto; padding: 26px var(--gutter) 52px;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  visibility: hidden;
}
body.menu-open .drawer { transform: translateX(0); visibility: visible; }
.drawer-group + .drawer-group { margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.drawer-h { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.drawer a { display: block; padding: 11px 0; font-size: 1.06rem; font-weight: 550; border-bottom: 1px solid var(--line-soft); }
.drawer .btn { width: 100%; margin-top: 26px; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(46px, 6vw, 84px));
  padding-bottom: clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .d1 { margin-bottom: 26px; font-size: clamp(2.35rem, 3.9vw, 3.55rem); }
.hero-copy .lede { max-width: 505px; }
.hero-copy .btn-row { margin-top: 34px; }
.hero-micro {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted-inv);
  padding-left: 15px;
  border-left: 2px solid var(--green);
  line-height: 1.5;
}
.hero-art { position: relative; }
.hero-art img {
  width: 100%; height: auto;
  mix-blend-mode: screen;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.1);
  transform-origin: center;
}
.hero-glow {
  position: absolute; z-index: 0;
  width: 62%; aspect-ratio: 1; right: -6%; top: 8%;
  background: radial-gradient(circle, rgba(0,148,216,.20), transparent 66%);
  filter: blur(52px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: none; }
  .hero-art { order: 2; margin-inline: -8%; }
}

/* Hero interior (páginas de solución) */
.hero-page {
  padding-top: calc(var(--header-h) + clamp(46px, 5.5vw, 78px));
  padding-bottom: clamp(48px, 6vw, 78px);
  position: relative; overflow: hidden;
}
.hero-page .d1 { font-size: clamp(2.15rem, 4vw, 3.4rem); }
.hero-page-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 4.5vw, 68px); align-items: center;
}
@media (max-width: 900px) { .hero-page-grid { grid-template-columns: 1fr; } }

.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-inv);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-tall { aspect-ratio: 4 / 3.1; }
@media (max-width: 900px) { .shot-tall { aspect-ratio: 16 / 10; } }
.hero-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(0,148,216,.16), transparent 46%, rgba(8,21,29,.5));
}

/* Breadcrumbs */
.crumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; margin-bottom: 22px; color: var(--muted-inv); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs a:hover { color: var(--blue-300); }
.crumbs [aria-current] { color: #fff; }

/* ==========================================================================
   Tarjetas de solución
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--paper-3); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,21,29,0) 38%, rgba(8,21,29,.55) 100%);
}
.card-tag {
  position: absolute; left: 14px; bottom: 13px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(8,21,29,.55);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 5px;
}
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.16rem; letter-spacing: -.018em; }
.card-body p { margin-top: 11px; font-size: .935rem; color: var(--muted); line-height: 1.56; }
.card-more { margin-top: auto; padding-top: 20px; }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* Rejilla de capacidades */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }
.cap { background: var(--paper); padding: 30px 26px 32px; transition: background .25s var(--ease); }
.cap:hover { background: var(--paper-2); }
.cap-n { display: block; width: 9px; height: 9px; background: var(--blue); transform: rotate(45deg); }
.cap:nth-child(3n+2) .cap-n { background: var(--green); }
.cap:nth-child(3n+3) .cap-n { background: var(--orange); }
.cap h3 { font-size: 1.04rem; margin-top: 14px; letter-spacing: -.014em; }
.cap p { margin-top: 9px; font-size: .9rem; color: var(--muted); line-height: 1.55; }

.t-dark .caps { background: var(--line-inv); border-color: var(--line-inv); }
.t-dark .cap { background: var(--ink); }
.t-dark .cap:hover { background: var(--ink-800); }
.t-dark .cap p { color: var(--muted-inv); }

/* ==========================================================================
   Constelación — elemento firma
   ========================================================================== */
.constel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
@media (max-width: 980px) { .constel { grid-template-columns: 1fr; } }

.constel-stage { position: relative; overflow: visible; aspect-ratio: 1 / .78; min-height: 380px; }
.constel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constel-wire { fill: none; stroke: rgba(87,195,240,.34); stroke-width: 1.2;
  stroke-dasharray: 3 5; opacity: .9; }
.constel-wire.is-on { stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(116,202,0,.55)); }
.constel-wire.is-on { stroke: var(--green); stroke-width: 1.8; }
.constel-pulse { fill: var(--blue-300); }

.constel-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 148px; height: 148px;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  border: 1px solid rgba(87,195,240,.4);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 0 0 8px rgba(0,148,216,.07), 0 0 60px rgba(0,148,216,.30);
}
.constel-core b { display: block; font-variation-settings: "wdth" 112; font-size: 1.02rem; letter-spacing: .04em; color: #fff; }
.constel-core span { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .17em; color: var(--blue-300); margin-top: 5px; text-transform: uppercase; }

.node {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(14,34,49,.9);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--text-inv);
  font-size: .885rem; font-weight: 550; white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
}
.node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); flex: none; transition: background .25s; }
.node:hover { border-color: rgba(87,195,240,.6); }
.node[aria-pressed="true"] {
  background: var(--green); color: var(--ink); border-color: var(--green);
  box-shadow: 0 0 34px rgba(116,202,0,.4);
}
.node[aria-pressed="true"]::before { background: var(--ink); }

.constel-panel {
  border-left: 2px solid var(--green);
  padding-left: 26px;
  min-height: 210px;
}
.constel-panel h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-variation-settings: "wdth" 110; }
.constel-panel p { margin-top: 15px; color: var(--muted-inv); line-height: 1.62; }
.constel-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.constel-links li {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .07em;
  padding: 5px 11px; border: 1px solid var(--line-inv); border-radius: 999px;
  color: var(--muted-inv);
}
.constel-hint { font-family: var(--mono); font-size: .72rem; color: var(--muted-inv); margin-top: 26px; letter-spacing: .04em; }

@media (max-width: 620px) {
  .constel-stage { display: none; }
  .constel-mobile { display: flex; flex-wrap: wrap; gap: 8px; }
}
.constel-mobile { display: none; }
.constel-mobile .node { position: static; transform: none; }

/* ==========================================================================
   Vídeo
   ========================================================================== */
.videoblock { position: relative; }
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--line-inv);
}
.video-frame video, .video-frame img.poster { width: 100%; height: 100%; object-fit: cover; }
.video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(8,21,29,.55);
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 3;
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(8,21,29,.42);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer;
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.video-play:hover { background: var(--blue); border-color: var(--blue); transform: translate(-50%,-50%) scale(1.06); }
.video-frame.is-playing .video-play { opacity: 0; visibility: hidden; }
.video-sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(8,21,29,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.video-sound:hover { background: var(--blue); border-color: var(--blue); }

/* ==========================================================================
   Metodología (secuencia real → numeración justificada)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 0; }
.step { padding: 30px 28px 34px 0; border-top: 2px solid var(--line); position: relative; }
.step + .step { padding-left: 28px; }
.step-n {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em;
  color: var(--blue); display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; letter-spacing: -.016em; }
.step p { margin-top: 11px; font-size: .92rem; color: var(--muted); line-height: 1.56; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0;
  background: var(--green); transition: width 1.1s var(--ease);
}
.step.is-in::before { width: 100%; }
@media (max-width: 760px) { .step + .step { padding-left: 0; } }

/* ==========================================================================
   Tecnologías / chips
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .05em;
  padding: 8px 14px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-700); background: #fff; }
.t-dark .chip { background: var(--ink-800); border-color: var(--line-inv); color: var(--muted-inv); }
.t-dark .chip:hover { border-color: var(--blue-300); color: #fff; }

.techgroup + .techgroup { margin-top: 30px; }
.techgroup h3 { font-size: .95rem; margin-bottom: 14px; letter-spacing: -.01em; }

/* ==========================================================================
   Bloques de contenido de servicio
   ========================================================================== */
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-variation-settings: "wdth" 110; letter-spacing: -.024em; }
.prose h3 { font-size: 1.1rem; letter-spacing: -.015em; }
.prose p { margin-top: 16px; color: var(--muted); }
.prose > * + h2 { margin-top: clamp(48px, 5vw, 72px); }

.checklist { display: grid; gap: 13px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; line-height: 1.55; }
.checklist svg { flex: none; margin-top: 4px; color: var(--green-700); }
.t-dark .checklist svg { color: var(--green); }

.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 34px; }
.fact { padding: 26px 24px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.fact dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.fact dd { margin: 10px 0 0; font-size: .93rem; color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-h { margin: 0; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 46px 24px 0; position: relative;
  font-size: 1.04rem; font-weight: 600; letter-spacing: -.014em; line-height: 1.35;
}
.faq-q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
  color: var(--blue);
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 26px; padding-right: 46px; color: var(--muted); }

/* Enlazado interno / relacionados */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.rel {
  display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
}
.rel:hover { border-color: var(--blue); transform: translateY(-3px); background: var(--paper-2); }
.rel b { display: block; font-size: 1rem; letter-spacing: -.015em; }
.rel span { display: block; margin-top: 7px; font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { position: relative; overflow: hidden; }
.cta-final .wrap { position: relative; z-index: 2; }
.cta-glow {
  position: absolute; left: 50%; top: 120%; transform: translate(-50%,-50%);
  width: 120%; aspect-ratio: 2/1;
  background: radial-gradient(ellipse, rgba(0,148,216,.28), transparent 62%);
  filter: blur(60px); pointer-events: none;
}

/* ==========================================================================
   Formulario
   ========================================================================== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; letter-spacing: -.005em; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,148,216,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .9rem; padding: 13px 16px; border-radius: 9px; display: none; }
.form-status.is-on { display: block; }
.form-status[data-kind="ok"] { background: rgba(116,202,0,.12); border: 1px solid rgba(116,202,0,.4); color: #3E7000; }
.form-status[data-kind="err"] { background: rgba(245,154,0,.1); border: 1px solid rgba(245,154,0,.45); color: #9a6200; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--muted-inv); padding-block: clamp(56px, 6vw, 84px) 34px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 20px; font-size: .9rem; line-height: 1.6; max-width: 330px; }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a { font-size: .91rem; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(44px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-inv);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: .82rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.pending { color: var(--orange); font-family: var(--mono); font-size: .78rem; }

/* ==========================================================================
   Revelado en scroll
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.rv-1 { transition-delay: .06s; }
.rv-2 { transition-delay: .12s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .24s; }

/* Entrada del hero */
.js .hero-in > * { opacity: 0; transform: translateY(14px); animation: heroUp .8s var(--ease) forwards; }
.js .hero-in > *:nth-child(1) { animation-delay: .05s; }
.js .hero-in > *:nth-child(2) { animation-delay: .13s; }
.js .hero-in > *:nth-child(3) { animation-delay: .21s; }
.js .hero-in > *:nth-child(4) { animation-delay: .29s; }
.js .hero-in > *:nth-child(5) { animation-delay: .37s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .js .hero-in > * { opacity: 1; transform: none; }
}

@media print {
  .header, .drawer, .video-play, .cta-final { display: none; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   AMPLIACIÓN — iconografía, acentos de color, vídeo ambiental y cookies
   ========================================================================== */

/* --- Acentos rotativos: azul / verde / naranja --------------------------- */
/* --accent pinta trazos y superficies; --accent-ink es la versión legible
   sobre blanco, que es la que usan los textos pequeños. */
[data-accent="0"] { --accent: var(--blue);   --accent-ink: #0077B0; --accent-soft: rgba(0,148,216,.10); }
[data-accent="1"] { --accent: #6DBE00;       --accent-ink: #457C00; --accent-soft: rgba(116,202,0,.15); }
[data-accent="2"] { --accent: var(--orange); --accent-ink: #9A5E00; --accent-soft: rgba(245,154,0,.14); }
.t-dark [data-accent="1"] { --accent: var(--green); --accent-ink: var(--green); }
.t-dark [data-accent="2"] { --accent-ink: var(--orange); }
.t-dark [data-accent="0"] { --accent-ink: var(--blue-300); }

/* --- Marca más presente en la cabecera ---------------------------------- */
.brand img { height: 56px; width: auto; }
.header { --header-h: 88px; }
:root { --header-h: 88px; }

/* --- Mega menú: título y descripción en bloques separados --------------- */
.mega-txt { display: block; min-width: 0; }
.mega-t { display: block; line-height: 1.3; }
.mega-d { display: block; }
.mega-card { align-items: center; }
.mega-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper-2); color: var(--blue-700);
  border: 1px solid var(--line);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

/* --- Icono flotante en las tarjetas de solución ------------------------- */
.card-ico {
  position: absolute; z-index: 2; right: 14px; top: 14px;
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; background: color-mix(in srgb, var(--accent) 82%, transparent);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  transition: transform .32s var(--ease);
}
.card:hover .card-ico { transform: translateY(-3px) scale(1.06); }
.card { border-top: 3px solid transparent; }
.card:hover { border-top-color: var(--accent, var(--blue)); }

/* --- Capacidades con icono --------------------------------------------- */
.cap-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 18px;
}
.cap { position: relative; }
.cap::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--accent); transition: height .34s var(--ease);
}
.cap:hover::after { height: 100%; }

/* --- Alcance del servicio: tarjetas con vida ---------------------------- */
.factgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.4vw, 20px);
  background: none; border: 0; border-radius: 0; overflow: visible;
  margin-top: 34px;
}
.fact {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.fact-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 16px;
}
.fact dt { color: var(--accent-ink); }
.t-soft .fact { background: var(--paper); }

/* --- Datos de contacto en el pie ---------------------------------------- */
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--blue-300); }
.footer-contact span { font-size: .91rem; line-height: 1.5; }
.footer-legal-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .82rem; color: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-btn:hover { color: #fff; }

/* --- Vídeo ambiental de fondo ------------------------------------------ */
.ambient { position: relative; overflow: hidden; isolation: isolate; }
.ambient-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .3;
  filter: grayscale(.35) contrast(1.05);
}
.ambient-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, var(--ink) 26%, rgba(8,21,29,.72) 62%, rgba(8,21,29,.86)),
    linear-gradient(180deg, var(--ink), transparent 22%, transparent 78%, var(--ink));
}
.ambient .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .ambient-video { opacity: .22; }
  .ambient-veil { background: linear-gradient(180deg, rgba(8,21,29,.9), rgba(8,21,29,.94)); }
}

/* --- Núcleo de la constelación con el isotipo -------------------------- */
.constel-core { flex-direction: column; gap: 6px; padding: 18px; }
.constel-core img { width: 62px; height: 62px; object-fit: contain; }
.constel-core span {
  display: block; font-family: var(--mono); font-size: .58rem;
  letter-spacing: .18em; color: var(--blue-300); text-transform: uppercase;
}

/* ==========================================================================
   Aviso de cookies
   ========================================================================== */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: clamp(12px, 2vw, 22px);
  display: flex; justify-content: center;
  animation: cookieUp .4s var(--ease) both;
}
.cookie[hidden] { display: none; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(18px); } }
.cookie-box {
  width: min(720px, 100%);
  background: var(--ink);
  color: var(--text-inv);
  border: 1px solid var(--line-inv);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.65);
}
.cookie-h { font-size: 1.12rem; font-variation-settings: "wdth" 108; color: #fff; }
.cookie-p { margin-top: 12px; font-size: .91rem; line-height: 1.58; color: var(--muted-inv); }
.cookie-prefs { margin-top: 20px; display: grid; gap: 12px; }
.cookie-opt {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .87rem; line-height: 1.5; color: var(--muted-inv);
  padding: 13px 15px; border: 1px solid var(--line-inv); border-radius: 10px;
}
.cookie-opt b { color: #fff; font-weight: 600; }
.cookie-opt input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--green); }
.cookie-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cookie-actions .btn { padding: 12px 20px; font-size: .92rem; }
.cookie-link {
  background: none; border: 0; cursor: pointer; color: var(--blue-300);
  font-size: .88rem; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; padding: 6px 2px;
}
.cookie-link:hover { color: #fff; }
.cookie-link[hidden] { display: none; }
.cookie-more { margin-top: 16px; font-size: .8rem; color: var(--muted-inv); }
.cookie-more a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-more a:hover { color: #fff; }

/* Correcciones del aviso de cookies */
.cookie-prefs[hidden] { display: none; }
.cookie-box .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.cookie-box .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Núcleo de la constelación: isotipo centrado y con más presencia */
.constel-core { display: grid; place-content: center; gap: 9px; padding: 0; }
.constel-core img { width: 70px; height: 70px; }
.constel-stage { aspect-ratio: 1 / .72; }

/* Ritmo vertical algo más apretado: menos aire muerto entre secciones */
:root { --section-y: clamp(68px, 7.4vw, 112px); }

.cookie-inline {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--blue-700); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-inline:hover { color: var(--ink); }
.legal h2 { margin-top: clamp(40px, 4vw, 60px); }
.legal > h2:first-child { margin-top: 0; }
.legal .factgrid { margin-top: 24px; }

/* ==========================================================================
   Vídeo ambiental — revisión
   El texto se agrupa a la izquierda para que el vídeo tenga una mitad libre
   donde se vea de verdad, en lugar de taparlo entero con un velo uniforme.
   ========================================================================== */
.ambient { padding-block: clamp(76px, 8vw, 128px); }
.ambient-copy { max-width: 560px; }
.ambient-copy .d2 { margin-block: 6px 4px; }

.ambient-video {
  opacity: 1;
  filter: saturate(.78) contrast(1.08) brightness(.92);
}

/* Velo direccional: opaco donde está el texto, casi limpio a la derecha. */
.ambient-veil {
  background:
    linear-gradient(96deg,
      rgba(8,21,29,.97) 0%,
      rgba(8,21,29,.95) 30%,
      rgba(8,21,29,.72) 48%,
      rgba(8,21,29,.30) 66%,
      rgba(8,21,29,.16) 100%),
    linear-gradient(180deg, rgba(8,21,29,.85), transparent 16%, transparent 84%, rgba(8,21,29,.85));
}

/* Filo de color que ata el vídeo a la marca */
.ambient::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--blue) 0 38%, var(--green) 38% 72%, var(--orange) 72% 100%);
  opacity: .85;
}

@media (max-width: 900px) {
  /* En móvil no hay mitad libre: el vídeo pasa a ser textura de fondo. */
  .ambient-copy { max-width: none; }
  .ambient-video { opacity: .45; }
  .ambient-veil {
    background: linear-gradient(180deg, rgba(8,21,29,.88), rgba(8,21,29,.93));
  }
}

/* Velo definitivo: opaco bajo el texto, casi limpio en la mitad derecha,
   con el vídeo rebajado para que ningún fotograma claro rompa el contraste. */
.ambient-video { filter: saturate(.72) contrast(1.06) brightness(.66); }
.ambient-veil {
  background:
    linear-gradient(180deg, rgba(8,21,29,.9), transparent 14%, transparent 86%, rgba(8,21,29,.9)),
    linear-gradient(96deg,
      rgba(8,21,29,.97) 0%,
      rgba(8,21,29,.96) 42%,
      rgba(8,21,29,.66) 58%,
      rgba(8,21,29,.22) 78%,
      rgba(8,21,29,.10) 100%),
    linear-gradient(120deg, rgba(0,148,216,.14), transparent 55%, rgba(116,202,0,.08));
}

/* Un punto más de luz: el vídeo se lee sin comprometer el texto */
.ambient-video { filter: saturate(.8) contrast(1.05) brightness(.82); }

/* ==========================================================================
   Ajustes: ancho en monitores grandes, contacto compacto, cookies a lo ancho
   ========================================================================== */

/* --- Más ancho en pantallas grandes -------------------------------------
   El contenedor crece, pero la longitud de línea se mantiene legible
   limitando por separado los bloques de texto corrido. */
:root { --maxw: 1460px; }
.lede { max-width: 68ch; }
.prose p, .stack-l p { max-width: 72ch; }
.head-block { max-width: 760px; }

/* --- Datos de contacto en filas compactas -------------------------------- */
.contact-list { margin-top: 32px; display: grid; gap: 10px; }
.contact-list li {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.contact-list li:hover { transform: translateX(3px); box-shadow: var(--shadow-1); }
.contact-ico {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.contact-txt { display: grid; gap: 2px; min-width: 0; }
.contact-txt b {
  font-family: var(--mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-ink);
}
.contact-txt a, .contact-txt span { font-size: .96rem; line-height: 1.45; }
.contact-txt a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* --- Aviso de cookies: barra a ancho completo ---------------------------- */
.cookie { padding: 0; }
.cookie-box {
  width: 100%;
  border-radius: 0;
  border: 0; border-top: 3px solid var(--blue);
  padding: clamp(18px, 2.4vw, 26px) var(--gutter);
  box-shadow: 0 -14px 46px -14px rgba(0,0,0,.55);
}
.cookie-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.cookie-main { min-width: 0; }
.cookie-p { max-width: 74ch; }
.cookie-prefs { grid-column: 1 / -1; margin-top: 4px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cookie-side { display: grid; gap: 12px; justify-items: start; }
.cookie-actions { margin-top: 0; flex-wrap: nowrap; }
.cookie-more { margin-top: 0; white-space: nowrap; }

@media (max-width: 860px) {
  .cookie-inner { grid-template-columns: 1fr; gap: 18px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-more { white-space: normal; }
}

/* El botón de envío no debe estirarse al ancho de la columna */
.form > .btn { justify-self: start; }
@media (max-width: 620px) { .form > .btn { justify-self: stretch; } }

/* ==========================================================================
   Programa Kit Digital
   ========================================================================== */
.kit-band { text-align: center; background: var(--paper); }
.kit-cofin {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 26px;
}
.kit-cofin::after {
  content: ""; display: block; width: 140px; height: 1px;
  background: var(--line); margin: 22px auto 0;
}
.kit-logos { max-width: 1100px; width: 100%; height: auto; margin: 0 auto; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.kit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.kit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.kit-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 18px;
}
.kit-card h3 { font-size: 1.14rem; letter-spacing: -.018em; line-height: 1.28; }

.kit-meta { margin: 18px 0 0; display: grid; gap: 4px; }
.kit-meta dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink);
}
.kit-meta dd { margin: 0 0 10px; font-size: .93rem; font-weight: 550; }

.kit-desc { margin-top: 6px; font-size: .93rem; line-height: 1.58; color: var(--muted); }

.kit-price {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.kit-price span {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.kit-price b { font-size: 1.02rem; letter-spacing: -.015em; white-space: nowrap; }

.kit-photo { line-height: 0; }
.kit-photo img { width: 100%; height: clamp(220px, 26vw, 380px); object-fit: cover; }

@media (max-width: 620px) {
  .kit-price { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Foto vertical del hero de Kit Digital */
.shot-kit { aspect-ratio: 5 / 4; }
.shot-kit img { object-position: center 38%; }

/* Con Kit Digital la navegación tiene seis elementos: el menú de mano
   entra un poco antes para que no se apriete. */
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* Cuatro soluciones: rejilla 2×2, más cómoda de leer que tres columnas */
@media (min-width: 900px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Conocimiento — índice
   ========================================================================== */
.post-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .post-feat { grid-template-columns: 1fr; } }
.post-feat-media {
  display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/10; background: var(--ink);
}
.post-feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-feat:hover .post-feat-media img { transform: scale(1.04); }
.post-feat-body .d3 { margin-top: 10px; }
.post-feat-body .post-lede { margin-top: 16px; font-size: 1.03rem; }

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.post {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.post-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post-media img { transform: scale(1.045); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.08rem; letter-spacing: -.018em; line-height: 1.32; margin-top: 8px; }

.post-topic {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
}
.post-lede { margin-top: 11px; font-size: .93rem; line-height: 1.56; color: var(--muted); }
.post-meta {
  margin-top: auto; padding-top: 18px;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .05em; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ==========================================================================
   Conocimiento — artículo
   ========================================================================== */
.art-head { max-width: 780px; }
.art-meta {
  margin-top: 26px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .07em;
  color: var(--muted-inv);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.art-hero { margin: 0; background: var(--ink); }
.art-hero img {
  display: block; width: min(1100px, 100%); margin-inline: auto;
  aspect-ratio: 16/7; object-fit: cover;
  border-radius: 0 0 var(--radius) var(--radius);
}

.art-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1080px;
}
@media (max-width: 940px) { .art-wrap { grid-template-columns: 1fr; } }

.art-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.art-toc ul { margin-top: 14px; border-left: 2px solid var(--line); }
.art-toc li a {
  display: block; padding: 8px 0 8px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .87rem; line-height: 1.4; color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.art-toc li a:hover, .art-toc li a.is-current { color: var(--text); border-left-color: var(--blue); }
@media (max-width: 940px) {
  .art-toc { position: static; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
}

.art-body { font-size: 1.06rem; line-height: 1.72; }
.art-body h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-variation-settings: "wdth" 110;
  letter-spacing: -.024em;
  margin-top: clamp(42px, 4.5vw, 62px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.art-body h2:first-child { margin-top: 0; }
.art-body p { margin-top: 18px; color: var(--text); }
.art-body p + p { margin-top: 16px; }
.art-body em { font-style: italic; }

.art-list, .art-steps { margin-top: 20px; display: grid; gap: 13px; }
.art-list li { position: relative; padding-left: 26px; color: var(--text); }
.art-list li::before {
  content: ""; position: absolute; left: 6px; top: .68em;
  width: 7px; height: 7px; background: var(--green-700); transform: rotate(45deg);
}
.art-steps { counter-reset: step; }
.art-steps li { position: relative; padding-left: 42px; counter-increment: step; color: var(--text); }
.art-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--mono); font-size: .78rem; color: var(--blue-700);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 6px; line-height: 1.3;
}

.art-note {
  margin-top: 30px; padding: 22px 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .97rem; line-height: 1.62; color: var(--muted);
}
.art-quote {
  margin-top: 34px !important; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-variation-settings: "wdth" 108;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-weight: 600; letter-spacing: -.018em; line-height: 1.35;
  color: var(--ink) !important;
}

.art-cta {
  margin-top: clamp(48px, 5vw, 68px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2);
}
.art-cta-ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 11px; background: rgba(0,148,216,.10); color: var(--blue-700);
}
.art-cta b { display: block; margin-top: 5px; font-size: 1.03rem; letter-spacing: -.015em; }
.art-cta p:last-child { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.art-cta .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .art-cta { grid-template-columns: auto minmax(0, 1fr); }
  .art-cta .btn { grid-column: 1 / -1; }
}

/* La numeración la dibuja el contador, no el navegador */
.art-steps { list-style: none; padding-left: 0; margin-left: 0; }
.art-list { list-style: none; padding-left: 0; margin-left: 0; }

/* Enlaces dentro de las listas de comprobación */
.checklist a { border-bottom: 1px solid var(--line); transition: border-color .2s var(--ease), color .2s var(--ease); }
.checklist a:hover { color: var(--blue-700); border-bottom-color: currentColor; }

/* Campo trampa para bots: fuera de la vista pero no display:none,
   porque algunos bots ignoran los campos ocultos con display */
.hp {
  position: absolute !important;
  left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.form-note a { border-bottom: 1px solid var(--line); }
.form-note a:hover { color: var(--blue-700); border-bottom-color: currentColor; }

/* Dato destacado dentro de una sección */
.stat {
  margin-top: 30px; padding: 20px 24px;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 20px; align-items: center;
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
}
.stat b {
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -.03em; line-height: 1;
  color: #457C00;
}
.stat span { font-size: .89rem; line-height: 1.55; color: var(--muted); }
.t-dark .stat { background: var(--ink-800); border-color: var(--line-inv); border-left-color: var(--green); }
.t-dark .stat b { color: var(--green); }
@media (max-width: 560px) { .stat { grid-template-columns: 1fr; gap: 10px; } }

/* ==========================================================================
   Etiqueta de imagen generada con IA
   Artículo 50 del Reglamento (UE) 2024/1689. «IA» se lee siempre, sin que
   nadie tenga que interactuar; al pasar por encima o tocar se despliega la
   frase completa.
   ========================================================================== */
.ai-tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 9px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 6px;
  background: rgba(8,21,29,.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .63rem; letter-spacing: .11em; text-transform: uppercase;
  line-height: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ai-tag:hover { background: rgba(8,21,29,.88); border-color: rgba(255,255,255,.5); }
.ai-tag svg { flex: none; }
.ai-lbl { margin-left: 6px; }

/* El texto largo se pliega con grid, que sí anima a «contenido» */
.ai-more {
  display: grid; grid-template-columns: 0fr;
  transition: grid-template-columns .34s var(--ease);
}
.ai-more > span { overflow: hidden; white-space: nowrap; }
.ai-tag:hover .ai-more,
.ai-tag:focus-visible .ai-more,
.ai-tag[aria-expanded="true"] .ai-more { grid-template-columns: 1fr; }
.ai-tag:hover .ai-more > span,
.ai-tag:focus-visible .ai-more > span,
.ai-tag[aria-expanded="true"] .ai-more > span { padding-left: 6px; }

/* La etiqueta va por encima del enlace que cubre la tarjeta */
.card-link::after { z-index: 1; }
.card .ai-tag, .post .ai-tag, .post-feat .ai-tag { z-index: 4; }

/* Cabecera del artículo: la imagen se centra, así que la etiqueta
   necesita un contenedor propio del mismo ancho. */
.art-hero-inner { position: relative; width: min(1100px, 100%); margin-inline: auto; }
.art-hero-inner img { width: 100%; }

/* En pantallas estrechas la frase completa no cabe: se recorta con elegancia */
@media (max-width: 520px) {
  .ai-tag { right: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .ai-more > span { overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-more { transition: none; }
}

/* La imagen de las fichas de Conocimiento necesita su propio contenedor:
   la etiqueta de IA debe anclarse a la foto, no a la tarjeta entera.
   (Va fuera del <a> porque un botón dentro de un enlace no es HTML válido.) */
.post-media-wrap { position: relative; line-height: 0; }
