/* tokens.css */
/* Tokens de Nouron (SPEC §2). Usar SIEMPRE estas variables; nunca colores sueltos. */
:root {
  /* Superficie y texto */
  --bg: #FFFFFF;
  --ink: #0A0E14;      /* texto */
  --ink-2: #4B5563;    /* texto secundario (contraste AA sobre blanco) */
  --ink-3: #8B94A3;    /* solo decorativo */
  --line: #E6E8EC;
  --chip: #F1F2F4;     /* cajas del diagrama */
  --chip-line: #D0D4DA;

  /* Aurora */
  --sky: #6BCBFF;
  --sky-2: #9BE0FF;
  --aqua: #7FE3D0;
  --green: #5ED08A;
  --mint: #BFF3D6;

  /* Boton principal */
  --accent: var(--sky);
  --accent-hover: var(--sky-2);
  --accent-ink: var(--ink);

  /* Radios y sombras */
  --r-btn: 4px;
  --r-card: 16px;
  --r-card-lg: 24px;
  --shadow-line: 0 1px 0 var(--line);

  /* Espaciado y ancho */
  --space: 8px;
  --container: 1200px;
  --gutter: 32px;
  --section-y: 128px;
  --header-h: 72px;

  /* Tipografia */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: clamp(48px, 8vw, 120px);
  --fs-h2: clamp(32px, 4.4vw, 56px);
  --fs-body: 18px;
  --fs-mono: 15px;

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 720px) {
  :root { --section-y: 80px; --gutter: 20px; --header-h: 64px; }
}

/* base.css */
/* Fuentes autoalojadas (Geist y Geist Mono, paquete `geist`, licencia OFL) */
@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Geist-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Geist-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Geist-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/GeistMono-Regular.woff2') format('woff2'); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* Tipografia */
h1, h2, h3 { font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; color: var(--ink-2); font-weight: 400; }

/* Enlaces y foco */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sky-2); color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-btn); font-size: 14px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Botones (la flecha ↗ es una mascara CSS: no hace falta marcado) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-btn);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary::after, .btn-arrow::after, .link-arrow::after {
  content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .2s var(--ease);
}
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 12.5l9-9M5 3.5h7.5V11' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='square'/%3E%3C/svg%3E"); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:hover::after, .btn-arrow:hover::after, .link-arrow:hover::after { transform: translate(2px, -2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* Pildora «Proximamente» */
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; font-weight: 400; white-space: nowrap; }

/* Utilidades de maquetacion */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* Aparicion al hacer scroll (una sola vez). Solo se oculta si el JS esta activo. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* layout.css */
/* Anuncio ---------------------------------------------------------------- */
.announce { position: relative; z-index: 60; background: var(--sky); color: var(--ink); font-size: 14px; line-height: 1.4; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 10px var(--gutter); text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s var(--ease); }
.announce a:hover { text-decoration-color: currentColor; }
.announce a span { display: inline-block; transition: transform .2s var(--ease); }
.announce a:hover span { transform: translateX(3px); }

/* Encabezado -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.site-header.is-scrolled { background: rgb(255 255 255 / .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.brand img { width: 50px; height: 24px; }
.header-end { justify-self: end; display: flex; align-items: center; gap: 12px; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--ink); border-radius: var(--r-btn); transition: background-color .2s var(--ease); }
.nav-link:hover, .nav-trigger:hover, .has-menu.is-open > .nav-trigger { background: rgb(10 14 20 / .06); }
.nav-sep { width: 1px; height: 18px; margin-inline: 12px; background: var(--ink-3); opacity: .6; }
.chev { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.has-menu.is-open > .nav-trigger .chev { transform: rotate(180deg); }

.menu { position: absolute; left: 50%; top: calc(100% + 8px); min-width: 280px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s; }
.has-menu.is-open > .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) {
  .has-menu:hover > .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .has-menu:hover > .nav-trigger { background: rgb(10 14 20 / .06); }
  .has-menu:hover > .nav-trigger .chev { transform: rotate(180deg); }
  /* puente invisible para que el cursor no pierda el menu al cruzar el hueco */
  .has-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; font-size: 16px; color: var(--ink); transition: background-color .15s var(--ease); }
.menu a:hover, .menu a:focus-visible { background: var(--chip); }

/* Menu movil ---------------------------------------------------------------- */
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--r-btn); }
.menu-toggle span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--ink); transition: background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 40; padding: calc(var(--header-h) + 40px + 16px) var(--gutter) 32px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-group { padding-block: 16px; border-bottom: 1px solid var(--line); }
.mobile-group h2 { margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; color: var(--ink-2); }
.mobile-group a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.mobile-menu .btn { width: 100%; margin-top: 24px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-header nav[aria-label="Principal"], .header-end .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* Pie ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 28ch; }
.footer-col h2 { margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; color: var(--ink-2); }
.footer-col li + li { margin-top: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink-2); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* hero.css */
/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 168px) 0 96px; text-align: center; }
.hero-inner { position: relative; z-index: 1; }

/* Aurora: 3 bandas horizontales desenfocadas que se desvanecen a blanco hacia abajo */
.aurora { position: absolute; inset: 0 0 auto 0; height: 760px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%); }
.band { position: absolute; left: -35%; width: 170%; display: block; filter: blur(40px); will-change: transform, opacity; }
.band-1 { top: -40px; height: 330px; background: linear-gradient(90deg, var(--sky) 0%, var(--sky-2) 22%, var(--aqua) 46%, var(--sky) 70%, var(--sky-2) 100%); animation: drift-a 52s ease-in-out infinite alternate, breathe 11s ease-in-out infinite alternate; }
.band-2 { top: 150px; height: 250px; background: linear-gradient(90deg, var(--aqua) 0%, var(--sky-2) 28%, var(--green) 58%, var(--aqua) 82%, var(--sky-2) 100%); opacity: .85; animation: drift-b 44s ease-in-out infinite alternate, breathe 13s ease-in-out infinite alternate-reverse; }
.band-3 { top: 290px; height: 170px; background: linear-gradient(90deg, var(--mint) 0%, var(--green) 30%, var(--aqua) 55%, var(--green) 80%, var(--mint) 100%); opacity: .8; animation: drift-a 60s ease-in-out infinite alternate-reverse, breathe 9s ease-in-out infinite alternate; }
.aurora-lines { position: absolute; inset: 0; opacity: .06; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 5px); }
@keyframes drift-a { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
@keyframes drift-b { from { transform: translateX(6%); } to { transform: translateX(-8%); } }
@keyframes breathe { from { opacity: .72; } to { opacity: 1; } }

/* Titular: aparece palabra por palabra (700 ms, 60 ms de escalonado) */
.hero-title { max-width: 1080px; margin-inline: auto; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(16px); animation: word-in .7s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 120ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }

.hero-sub { max-width: 560px; margin: 32px auto 0; opacity: 0; animation: fade-in .8s var(--ease) .55s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; opacity: 0; animation: fade-in .8s var(--ease) .7s forwards; }
@keyframes fade-in { to { opacity: 1; } }

/* Diagrama de flujo ---------------------------------------------------------- */
.flow { margin: 88px auto 0; max-width: var(--container); opacity: 0; animation: fade-in 1s var(--ease) .9s forwards; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-m { display: none; max-width: 400px; margin-inline: auto; }
@media (max-width: 900px) { .flow-d { display: none; } .flow-m { display: block; } .flow { margin-top: 64px; } }

.flow .trail { fill: none; stroke: var(--ink-3); stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 2 5; animation: march 1.4s linear infinite; }
.flow .flow-head { fill: none; stroke: var(--ink-3); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.flow .sq { fill: var(--ink-3); opacity: .75; }
.flow .fn rect { fill: var(--chip); stroke: transparent; stroke-width: 1; animation: glow 9s linear infinite; animation-delay: var(--t); }
.flow .fn text { fill: var(--ink-2); font-family: var(--font-mono); font-size: 14px; text-anchor: middle; dominant-baseline: central; }
.flow .pulse { fill: var(--ink-3); opacity: 0; offset-rotate: 0deg; animation: pulse 9s linear infinite; animation-delay: var(--t); }
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes pulse { 0% { offset-distance: 0%; opacity: 0; } 1% { opacity: 1; } 14% { offset-distance: 100%; opacity: 1; } 15% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes glow {
  0%   { fill: var(--chip); stroke: transparent; }
  1%   { fill: color-mix(in srgb, var(--sky-2) 42%, var(--bg)); stroke: var(--sky); }
  10%  { fill: color-mix(in srgb, var(--sky-2) 42%, var(--bg)); stroke: var(--sky); }
  22%  { fill: var(--chip); stroke: transparent; }
  100% { fill: var(--chip); stroke: transparent; }
}
.flow[data-paused] *, .flow[data-paused] *::before { animation-play-state: paused !important; }

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--header-h) + 96px); padding-bottom: 64px; }
  .aurora { height: 560px; }
  .band { filter: blur(32px); }
  .hero-cta .btn { width: 100%; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .w, .hero-sub, .hero-cta, .flow { opacity: 1; transform: none; }
  .flow .pulse { display: none; }
}

/* sections.css */
/* Secciones 03 a 09. Prefijo s-. Solo variables de tokens.css. */

.s-wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.s-section { padding-block: var(--section-y); }
.s-h2 {
  font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink); margin: 0 0 48px; max-width: 18ch;
  text-wrap: balance;
}
.s-eyebrow {
  font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
  font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--ink-2); margin: 0;
}
.s-mono { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; color: var(--ink-2); }
.s-lede { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 36ch; margin: 0; }

/* Enlace principal (flecha que se desplaza al pasar el cursor) */
.s-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  font-weight: 500; font-size: 18px; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.s-link span { display: inline-block; transition: transform .2s ease; }
.s-link:hover span { transform: translate(2px, -2px); }
.s-link:focus-visible, .s-logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* 03 aliados */
.s-aliados { padding-block: 64px 24px; }
.s-aliados .s-wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.s-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 56px; }
.s-own { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); width: min(100%, 360px); }
.s-logo { display: inline-flex; align-items: center; }
.s-logo img { height: auto; max-width: 100%; transition: transform .25s ease; }
.s-logo:hover img, .s-logo:focus-visible img { transform: translateY(-1px); }
/* Peso óptico parejo: el ancho se fija por logo (Proxia es macizo y muy ancho; Plexxo y Tarsium pesan menos). */
img[src*="proxia-negro"] { width: 124px; }
img[src*="plexxo-negro"] { width: 108px; }
img[src*="tarsium-global-negro"] { width: 136px; }
img[src*="nouron-pass-negro"] { width: 160px; }

/* Tarjetas (04, 06) */
.s-grid, .s-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.s-card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.s-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.s-icon { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.s-card-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.s-card-text { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.s-pill {
  font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; line-height: 1;
  background: var(--chip); color: var(--ink-2); border-radius: 999px; padding: 6px 10px; margin-top: auto;
}

/* 05 cómo funciona */
.s-steps-wrap { position: relative; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; grid-template-columns: 1fr; counter-reset: none; }
.s-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 28px; border-left: 1px dashed var(--chip-line); }
.s-step-num { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 14px; color: var(--ink); background: var(--chip); border-radius: 4px; padding: 4px 8px; align-self: flex-start; }
.s-step::after { display: none; }
@keyframes s-dash { to { background-position-x: 12px; } }

/* 06 casos */
.s-case { gap: 24px; justify-content: space-between; min-height: 220px; }
.s-case-logo { height: auto; max-width: 100%; transition: transform .25s ease; }
.s-case:hover .s-case-logo { transform: translateY(-1px); }
.s-case-text { font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); margin: 0; }

/* 07 panel */
.s-panel-layout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.s-panel-copy .s-h2 { margin-bottom: 24px; }
.s-window { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.s-window-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--chip); border-bottom: 1px solid var(--line); }
.s-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip-line); }
.s-window-body { padding: 20px; display: grid; gap: 16px; }
.s-window-head { display: flex; justify-content: space-between; align-items: center; }
.s-select { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); border: 1px solid var(--chip-line); border-radius: 4px; padding: 6px 10px; }
.s-select svg { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-kpi { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.s-kpi .s-mono { font-size: 11px; }
.s-kpi strong { font-size: clamp(15px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.s-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px; background: var(--chip); border-radius: 8px; }
.s-bar { flex: 1; height: var(--h); background: var(--sky); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.s-bar:nth-child(even) { background: var(--aqua); }
@supports (animation-timeline: view()) {
  .s-bar { animation: s-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
}
@keyframes s-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.s-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); }
.s-table td { padding: 10px 4px; border-top: 1px solid var(--line); }
.s-table .s-amt { text-align: right; font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); }
.s-table td:nth-child(2) { display: none; }
.s-caption { padding: 12px 20px; border-top: 1px solid var(--line); font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; color: var(--ink-2); }

/* 08 Nouron Pass */
.s-pass { border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; transition: border-color .2s ease; }
.s-pass:hover { border-color: var(--ink); }
.s-pass-logo { height: 40px; width: auto; }
.s-pass-title { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0; max-width: 22ch; color: var(--ink); text-wrap: balance; }
.s-pass-text { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 60ch; }

/* 09 cierre */
.s-cierre { position: relative; overflow: hidden; padding-block: 96px; isolation: isolate; }
.s-aurora-cierre {
  position: absolute; inset: 0; z-index: -1; filter: blur(40px);
  background:
    linear-gradient(90deg, var(--sky) 0%, var(--sky-2) 30%, var(--aqua) 65%, var(--green) 100%) 0 30% / 100% 28% no-repeat,
    linear-gradient(90deg, var(--mint) 0%, var(--sky) 45%, var(--sky-2) 100%) 0 60% / 100% 22% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--ink) 25%, var(--ink) 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, var(--ink) 25%, var(--ink) 65%, transparent);
  animation: s-drift 50s ease-in-out infinite alternate;
}
/* Cristal rayado: las mismas líneas finas del hero (.aurora-lines), sin desenfocar y con la misma máscara que la aurora de abajo. */
.s-aurora-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--ink) 25%, var(--ink) 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, var(--ink) 25%, var(--ink) 65%, transparent);
}
@keyframes s-drift { from { transform: translateX(-3%) scaleX(1.08); } to { transform: translateX(3%) scaleX(1.08); } }
.s-cta { background: var(--bg); border-radius: 24px; padding: 48px 28px; display: flex; flex-direction: column; gap: 32px; }
.s-cta .s-h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 20px; max-width: none; }
.s-cta-text { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-3); margin: 0; max-width: 28ch; }

@media (min-width: 768px) {
  .s-grid, .s-cases { grid-template-columns: repeat(2, 1fr); }
  .s-table td:nth-child(2) { display: table-cell; }
  .s-pass { padding: 48px; }
  .s-cta { padding: 72px 64px; flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .s-cierre { padding-block: 160px; }
}
@media (min-width: 1100px) {
  .s-grid, .s-cases { grid-template-columns: repeat(3, 1fr); }
  .s-steps { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .s-step { border-left: 0; padding-left: 0; }
  .s-step:not(:last-child)::after {
    content: ""; display: block; position: absolute; top: 14px; left: 56px; right: -40px; height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px) 0 0 / 12px 1.5px;
    animation: s-dash 1s linear infinite;
  }
  .s-panel-layout { grid-template-columns: 5fr 7fr; gap: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .s-step::after, .s-aurora-cierre, .s-bar { animation: none !important; }
  .s-card, .s-pass, .s-link span, .s-logo img { transition: none; }
}

/* Altura optica pareja de los logos negros (Proxia pesa mas; Tarsium y Plexxo traen el texto mas chico) */
.s-logo img[src*="proxia"], .s-case-logo[src*="proxia"] { height: 24px; }
.s-logo img[src*="plexxo"], .s-case-logo[src*="plexxo"] { height: 32px; }
.s-logo img[src*="tarsium"], .s-case-logo[src*="tarsium"] { height: 34px; }
.s-logo img[src*="nouron-pass"] { height: 32px; }
