/* ==========================================================================
   NIS2 Manager - Landing
   Hoja unica. Cada bloque corresponde a una <section> del HTML y a un
   Container de Elementor Pro. Ver css/style.css -> bloque :id equivalente.

   Sistema de radios (regla unica, aplicada en toda la pagina):
     badges / pills ....... 999px
     botones .............. 8px
     tarjetas / tiles ..... 16px
     avatares / sellos ..... 50%
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

/* Plus Jakarta Sans (variable, 200-800) self-hosted.
   En Elementor: "Plus Jakarta Sans" ya esta en el selector de fuentes. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  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;
}

:root {
  /* Marca. Cambiar aqui para re-tematizar la web completa. */
  --color-bg:        #f4f7fb;
  --color-surface:   #ffffff;
  --color-surface-2: #eef2f8;
  --color-dark:      #00235a;
  --color-dark-2:    #001a42;
  --color-accent:    #00a1fc;
  --color-text:      #00235a;
  --color-text-muted:#55637a;
  --color-line:      #dde3ec;
  --color-line-dark: rgba(255, 255, 255, .12);
  /* Cian oscuro para el anillo de foco: el cian de marca (#00a1fc) no
     llega a 3:1 sobre crema ni sobre marino. Este si, en ambos. */
  --color-focus:     #0072c6;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-pill:  999px;
  --radius-btn:   8px;
  --radius-card:  16px;

  --shadow-card:  0 1px 2px rgba(0, 35, 90, .04), 0 12px 32px rgba(0, 35, 90, .08);
  --shadow-btn:   0 6px 18px rgba(0, 35, 90, .22);

  --container:    1200px;
  --gutter:       24px;
  --section-pad:  clamp(64px, 8vw, 112px);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Tipografia utilitaria
   -------------------------------------------------------------------------- */
.u-underline {
  white-space: nowrap;
  /* El padding inferior reserva sitio para que la barra no corte la
     descendente de la "g". */
  padding: 0 .05em .09em;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% .13em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--plain {
  background: var(--color-surface);
  color: var(--color-dark);
  box-shadow: 0 1px 2px rgba(0, 35, 90, .06);
}
.badge--dark {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-dark);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: #0b3d80; }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 6px 18px rgba(0, 161, 252, .28);
}
.btn--accent:hover { background: #33b0fd; }

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-dark);
}
.btn--ghost:hover { background: var(--color-surface-2); }

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-line);
}
.btn--outline:hover { background: var(--color-surface); border-color: #c3ccdb; }

.btn--light {
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.btn--light:hover { background: #f2f5fa; }

.btn--lg { padding: 14px 26px; font-size: 16px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 251, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(244, 247, 251, .95);
  border-bottom-color: var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-dark);
}
.brand__logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav { margin-right: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: 0;
  background: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: #33405c;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--color-dark); background: rgba(0, 35, 90, .05); }
.nav__chevron { transition: transform .25s var(--ease); }
.nav__item--open .nav__chevron { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: #33405c;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__menu a:hover { background: var(--color-surface-2); color: var(--color-dark); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-dark);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
/* Grid tecnico de fondo: evoca la matriz de controles de la directiva.
   Es decoracion y viene del boceto aprobado por el cliente. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 35, 90, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 35, 90, .05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 40%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 15em;
  margin: 22px auto 0;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.hero__text {
  max-width: 56ch;
  margin: 22px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* --- Entrada del hero al cargar la pagina ---
   Fade-in escalonado de arriba abajo, igual que el boceto (frames 1-9):
   header -> sellos -> badge -> titular -> subtexto -> CTAs.
   Solo con movimiento permitido: con prefers-reduced-motion se ve todo
   directamente, sin animacion. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .badge,
  .hero__title,
  .hero__text,
  .hero__actions,
  .seal {
    animation: hero-in .7s var(--ease) both;
  }
  .hero .badge          { animation-delay: .10s; }
  .hero__title         { animation-delay: .22s; }
  .hero__text          { animation-delay: .36s; }
  .hero__actions       { animation-delay: .48s; }
  .seal--tl            { animation-delay: .58s; }
  .seal--tr            { animation-delay: .64s; }
  .seal--bl            { animation-delay: .70s; }
  .seal--br            { animation-delay: .76s; }
}

/* --- Sellos de certificacion (sustituyen a los avatares del boceto) ---
   Se posicionan contra los bordes del contenedor, no contra el titular,
   para no solaparse con el texto en ninguna anchura. */
.seals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.seal__disc {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-dark);
  box-shadow: 0 0 0 5px var(--color-bg), 0 0 0 6px rgba(0, 35, 90, .12), var(--shadow-card);
}
.seal--bl .seal__disc, .seal--br .seal__disc { box-shadow: 0 0 0 5px var(--color-bg), 0 0 0 6px rgba(0, 161, 252, .9), var(--shadow-card); }
.seal__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--color-text-muted);
}
.seal__cursor { color: var(--color-dark); }

/* El cursor "apunta" al sello, como en el boceto.
   Base del SVG: flecha hacia abajo-derecha.
   Arriba: cursor debajo y girado hacia el sello.
   Abajo: cursor encima y girado hacia el sello. */
.seal--tl .seal__cursor { transform: rotate(180deg); }
.seal--tr .seal__cursor { transform: rotate(-90deg); }
.seal--bl .seal__cursor { order: -1; transform: rotate(90deg); }
.seal--br .seal__cursor { order: -1; transform: rotate(0deg); }

.seal--tl { top: 15%; left:  max(14px, calc(50% - 560px)); }
.seal--tr { top: 22%; right: max(14px, calc(50% - 560px)); }
.seal--bl { bottom: 7%; left: max(14px, calc(50% - 528px)); }
.seal--br { bottom: 1%; right: max(14px, calc(50% - 528px)); }

/* --------------------------------------------------------------------------
   7. Cabecera de seccion
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(44px, 5vw, 64px);
  text-align: center;
}
.section-title {
  margin-top: 20px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.03em;
}
.section-text {
  margin-top: 18px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. Features (bento)
   -------------------------------------------------------------------------- */
.features { padding: var(--section-pad) 0; background: var(--color-surface-2); }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bento__cell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.bento__cell--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 8px;
}
.bento__body { padding: 34px 34px 30px; }
.bento__cell--wide .bento__body { padding: 44px 20px 44px 44px; }

.card__title { font-size: clamp(21px, 2.1vw, 27px); letter-spacing: -.025em; }
.card__text {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--color-text-muted);
}
.bento__body .btn { margin-top: 26px; }

/* --- Mini-UI: preview real de componente, no captura falsa --- */
.ui {
  background: var(--color-surface);
  font-size: 13px;
}
.ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-line);
}
.ui__org { font-weight: 700; color: var(--color-dark); }
.ui__meta { font-size: 11px; font-weight: 600; color: var(--color-text-muted); }
.ui__faces { display: flex; }
.ui__face {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: #dbe2ec;
  font-size: 9.5px;
  font-weight: 800;
  color: #3c4a63;
}
.ui__face:nth-child(2) { background: #e6e2d8; }
.ui__face:nth-child(3) { background: #d6e2ec; }
.ui__face:nth-child(4) { background: #e5dde6; }

.ui__chart { padding: 22px 22px 18px; }
.ui__chart svg { width: 100%; height: 210px; }
.ui__grid line { stroke: #e8edf5; stroke-width: 1; }
.ui__bars rect { fill: #dde3ec; }
.ui__bars rect:nth-child(5),
.ui__bars rect.ui__bar--hl { fill: var(--color-dark); }
.ui__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6a7689;
}

.ui--rows { padding: 8px 20px 18px; }
.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.ui-row + .ui-row { border-top: 1px solid #eef2f7; }
.ui-row__label { flex: 1 1 auto; font-weight: 600; color: #3c4a63; }
.ui-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
  border-radius: var(--radius-pill);
  background: #d8dfea;
  position: relative;
}
.ui-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.ui-toggle--on { background: var(--color-dark); }
.ui-toggle--on::after { left: 17px; }

.ui-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px; height: 19px;
  border-radius: 6px;
  background: var(--color-dark);
  color: #fff;
}
.ui-check--pending { background: none; border: 1.5px solid #c8d0dd; }
.ui-tag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #e8f3fd;
  font-size: 11px;
  font-weight: 700;
  color: #0a5c96;
}
.ui-tag--warn { background: #fdf0d8; color: #8a6413; }
.ui-tag--muted { background: #f0f3f8; color: #5f6b84; }

/* --- Mini-UI: expediente por dominios (celda ancha de features) --- */
.ui--domains { padding: 6px 22px 20px; }
.domains { display: flex; flex-direction: column; }
.domain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
}
.domain + .domain { border-top: 1px solid #eef2f7; }
.domain__name { font-size: 12.5px; font-weight: 600; color: #3c4a63; }
.domain__level {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
/* Rampa de color de la escala de madurez: gris (sin empezar) -> azul
   (previsto) -> ambar (a medias) -> verde (casi completo) -> marino
   (cumplimiento operativo). Mismos pares que .ui-tag*, ya verificados AA. */
.domain__level--pendiente{ background: #eef2f8; color: #5f6b84; }
.domain__level--ninguno  { background: #eef2f8; color: #4b5871; }
.domain__level--plan     { background: #e8f3fd; color: #0a5c96; }
.domain__level--parcial  { background: #fdf0d8; color: #8a6413; }
.domain__level--subst    { background: #e4f4ec; color: #1e6b46; }
.domain__level--operativo{ background: var(--color-dark); color: #fff; }
.domain__level--na       { background: #eef2f8; color: #5f6b84; font-style: italic; }

/* --- Mini-UI: evidencias (celda "Evidencias con validacion real") --- */
.ui-file {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--color-surface-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--color-text-muted);
}
.ui-file--empty { color: #97a3b8; border: 1.5px dashed #c8d0dd; background: none; }

/* --- Mini-UI: historico de cambios (celda "Historico y trazabilidad") --- */
.ui-row--event { align-items: flex-start; padding: 11px 0; }
.ui-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.ui-event { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ui-event__text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.ui-event__text strong,
.ui-event__text em,
.ui-event__text b { font-style: normal; font-weight: 700; color: #3c4a63; }
.ui-event__time { font-size: 11px; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   9. Seguridad y confianza (fondo oscuro)
   -------------------------------------------------------------------------- */
.integrations { padding: 0 0 var(--section-pad); background: var(--color-surface-2); }
.integrations__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 0;
  border-radius: var(--radius-card);
  background: var(--color-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.integrations__head {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}
.integrations__title {
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.03em;
}
.integrations__text {
  margin-top: 18px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(255, 255, 255, .68);
}

/* --- Grid de argumentos de seguridad (sustituye al marquee) --- */
.security-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 60px);
  background: rgba(255, 255, 255, .1);
}
.security-item {
  padding: 30px clamp(20px, 3vw, 34px);
  background: var(--color-dark);
}
.security-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .08);
  color: var(--color-accent);
}
.security-item__title {
  margin-top: 16px;
  font-size: 16.5px;
  letter-spacing: -.015em;
  color: #fff;
}
.security-item__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .64);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { gap: 13px; border-color: var(--color-accent); }

.marquee {
  margin-top: clamp(40px, 5vw, 62px);
  padding-bottom: clamp(40px, 5vw, 56px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__row {
  display: flex;
  width: max-content;
  animation: marquee-scroll 52s linear infinite;
}
.marquee__row + .marquee__row { margin-top: 14px; }
.marquee__row--reverse { animation-direction: reverse; }
.marquee__track {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}
.marquee__item {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.marquee__item img { width: 28px; height: 28px; }

/* La fila contiene 2 pistas identicas: -50% las encaja sin costura. */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Testimonio
   -------------------------------------------------------------------------- */
.testimonial { padding: var(--section-pad) 0; background: var(--color-bg); }
.testimonial__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.testimonial__mark { margin: 0 auto 26px; color: var(--color-dark); }
.testimonial__quote {
  margin: 0;
  font-size: clamp(23px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--color-dark);
}
.testimonial__person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.testimonial__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__meta { text-align: left; }
.testimonial__name { display: block; font-style: normal; font-weight: 800; font-size: 16px; }
.testimonial__role { display: block; font-size: 14px; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats { padding: 0 0 var(--section-pad); background: var(--color-bg); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: clamp(30px, 4vw, 44px) clamp(20px, 4vw, 48px);
  background: var(--color-surface-2);
  border-radius: var(--radius-card);
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
}
.stats__value {
  margin: 0 0 8px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--color-dark);
}
.stats__label { font-size: 14.5px; font-weight: 600; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   12. CTA final
   -------------------------------------------------------------------------- */
.cta-final {
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--color-dark);
}
.cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
.cta-final__head {
  flex: 1 1 460px;
  max-width: 640px;
}
.cta-final__title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -.03em;
  color: #fff;
}
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 34px;
  background: var(--color-dark-2);
  color: rgba(255, 255, 255, .74);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
}
.brand--footer { color: #fff; }
.brand--footer .brand__logo { width: 38px; height: 38px; }
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer__owner {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.site-footer__contact {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}
.site-footer__contact li + li { margin-top: 8px; }
.site-footer__contact a {
  color: rgba(255, 255, 255, .74);
  transition: color .2s var(--ease);
}
.site-footer__contact a:hover { color: var(--color-accent); }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.site-footer__coltitle {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.site-footer__col li + li { margin-top: 11px; }
.site-footer__col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .62);
  transition: color .2s var(--ease);
}
.site-footer__col a:hover { color: var(--color-accent); }

.site-footer__base {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line-dark);
}
.site-footer__copy { font-size: 13.5px; color: rgba(255, 255, 255, .48); }
.social { display: flex; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .07);
  transition: background-color .2s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .15); }
.social img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: .82; }

/* --------------------------------------------------------------------------
   14. Reveal on scroll (IntersectionObserver, sin listener de scroll)

   El estado inicial oculto solo se aplica si hay JS (.js en <html>, puesto
   por el script inline del <head>). Asi el contenido nunca hace el
   ciclo visible -> oculto -> visible, y sin JS se ve siempre.
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento__cell--wide { grid-template-columns: 1fr; }
  .bento__cell--wide .bento__body { padding: 38px 32px 26px; }
  .seal--tl { left: 0; }
  .seal--tr { right: 0; }
  .seal--bl { left: 2%; }
  .seal--br { right: 2%; }
  .seal__disc { width: 54px; height: 54px; }
}

@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; gap: 16px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 12px 10px; }
  .nav__menu {
    position: static;
    min-width: 0;
    padding: 0 0 6px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__item--open .nav__menu { display: block; }
  .nav__menu a { padding: 9px 6px; }

  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn--ghost { display: none; }

  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .bento__body { padding: 28px 24px 24px; }
  .bento__cell--wide .bento__body { padding: 30px 24px 22px; }

  .stats__inner { grid-template-columns: 1fr; gap: 30px; }
  .stats__item + .stats__item { padding-top: 26px; border-top: 1px solid var(--color-line); }

  .security-grid { grid-template-columns: 1fr; }

  .cta-final__inner { flex-direction: column; align-items: flex-start; }
  /* En columna, flex-basis controla el alto: hay que anularlo o el
     titulo reserva 460px y deja un hueco enorme. */
  .cta-final__head { flex: 0 0 auto; max-width: none; }

  .seals { position: static; display: none; }

  .hero { padding-top: 44px; }
}

@media (max-width: 560px) {
  .site-header__actions .btn--primary { padding: 9px 13px; font-size: 13.5px; }
  .hero__actions .btn { width: 100%; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   16. Widgets de Elementor
   -------------------------------------------------------------------------- */

/* Hero: en Elementor el contenedor aporta el ancho, el widget aporta el
   relleno vertical y el lienzo donde se posicionan los sellos. Por eso el
   wrapper tiene su propia clase en vez de reutilizar .hero. */
.nis2-hero {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.nis2-hero .hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Marquee: el widget ya incluye el panel oscuro. Solo hace falta que no
   crezca con el padding del contenedor de Elementor. */
.nis2-marquee .integrations__panel { border-radius: 0; }

/* --------------------------------------------------------------------------
   17. Accesibilidad - movimiento reducido
   -------------------------------------------------------------------------- */

/* Texto solo para lectores de pantalla y buscadores.
   No se usa display:none ni visibility:hidden: esos sacan el texto del
   arbol de accesibilidad, que es justo lo que se quiere exponer. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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