/* =========================================================================
   SOLISEL — hoja de estilos principal
   Móvil primero. Párrafos de 17 px en móvil (requisito), 18 px desde 1024 px.
   Elemento distintivo: el hexágono del lente del logo (foto principal e íconos).
   ========================================================================= */

/* Sora (títulos). instalar.sh la descarga en assets/fonts/Sora.woff2; si falta, los títulos usan Inter. */
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  /* Paleta corporativa 2026: #102A43 · #42B9DC · #A98AC4 · #F4F8FB · #263746 (los acentos de acción van en cian) */
  --navy: #102A43;        /* azul profundo: cabeceras, franjas, pie */
  --navy-2: #1A3A57;      /* superficie elevada sobre azul profundo */
  --navy-3: #2A4A68;      /* bordes sobre azul profundo */
  --cyan: #42B9DC;        /* azul claro: botones, íconos, texto sobre oscuro */
  --cyan-ink: #11708F;    /* azul claro para texto sobre blanco (contraste 5.6:1) */
  --cyan-soft: #A9E1F1;   /* cian claro: brillos */
  --lila: #A98AC4;        /* lavanda: segundo acento, degradados y detalles */
  --lila-ink: #6E4C93;    /* lavanda para texto sobre claro (contraste 6.3:1) */
  /* Acento de acción (antes violeta #7C5CFF; el cliente lo cambió a cian #42B9DC el 26/10/2026).
     Sobre cian el texto va en azul profundo (#102A43, contraste 6.6:1); el texto pequeño sobre claro usa --cyan-ink. */
  --violet: var(--cyan);
  --violet-2: #6BCBE7;    /* cian al pasar el cursor */
  --violet-ink: var(--cyan-ink);
  --lead: var(--cyan);    /* acento de los dos sitios */

  /* Degradados de marca */
  --grad-accent: linear-gradient(110deg, var(--cyan) 0%, var(--lila) 100%);
  --grad-flow: linear-gradient(90deg, var(--cyan), var(--lila), var(--cyan));
  --grad-dark:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(66, 185, 220, .26), transparent 70%),
    radial-gradient(ellipse 50% 65% at 0% 100%, rgba(169, 138, 196, .24), transparent 70%),
    linear-gradient(135deg, #102A43 0%, #15344F 55%, #1E3A5C 100%);
  --grad-soft:
    radial-gradient(ellipse 45% 60% at 100% 0%, rgba(66, 185, 220, .09), transparent 70%),
    radial-gradient(ellipse 40% 55% at 0% 100%, rgba(169, 138, 196, .10), transparent 70%),
    var(--mist);

  /* Neutros */
  --paper: #FFFFFF;
  --mist: #F4F8FB;        /* fondo claro alterno */
  --line: #DCE6EF;
  --text: #263746;        /* texto principal */
  --text-soft: #4A5D6E;   /* texto secundario (6.4:1 sobre #F4F8FB) */
  --on-dark: #EAF1F7;
  --on-dark-soft: #B4C4D4;

  --wa: #25D366;
  --danger: #B42318;

  /* Tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-h1: clamp(2.05rem, 1.35rem + 3vw, 3.45rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.45rem);
  --fs-h3: 1.15rem;

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1240px;
  --sec-y: clamp(64px, 6vw + 24px, 112px);
  --r: 14px;
  --r-sm: 10px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --header-h: 68px;
}

@media (min-width: 1024px) {
  :root { --fs-body: 18px; --fs-small: 15.5px; --header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 64px; /* espacio para la barra de contacto en móvil */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650; }
.skip:focus { top: 12px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.3em;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--lg { min-height: 54px; padding: .8em 1.5em; }
.btn--sm { min-height: 42px; padding: .5em .95em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--navy); }
.btn--wa:hover { background: #1FBE5B; color: var(--navy); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-3); color: #fff; }
.btn--light { background: var(--cyan); color: var(--navy); }
.btn--light:hover { background: #6BCBE7; color: var(--navy); }
.btn--ghost-light { border-color: rgba(232, 238, 247, .35); color: var(--on-dark); background: transparent; }
.btn--ghost-light:hover { border-color: var(--cyan); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-3);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 30px; }
@media (min-width: 1024px) { .brand img { height: 38px; } }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__phone { display: none; align-items: center; min-height: 42px; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-header__phone:hover { color: var(--cyan); }
.site-header__phone .icon { color: var(--cyan); }
.site-header__actions .btn--wa span { display: none; }
@media (min-width: 420px) { .site-header__actions .btn--wa span { display: inline; } }

.menu-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--navy-3); border-radius: var(--r-sm);
  color: var(--on-dark); cursor: pointer;
}
.menu-btn .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: block; }

/* Menú móvil (panel) */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--navy); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 32px;
  display: none;
}
.menu-open .nav { display: block; }
.menu-open { overflow: hidden; }
.nav__list { display: flex; flex-direction: column; }
.nav__item { border-bottom: 1px solid var(--navy-3); }
.nav__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; background: none; border: 0;
  color: var(--on-dark); font: inherit; font-size: 1.1rem; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--cyan); }
.nav__chev { transition: transform .2s; color: var(--on-dark-soft); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__sub { display: none; padding: 0 0 12px; }
.nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__grid { display: grid; gap: 4px; }
.nav__card {
  display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--on-dark);
}
.nav__card:hover, .nav__card.is-current { background: var(--navy-2); color: #fff; }
.nav__txt { display: flex; flex-direction: column; line-height: 1.3; }
.nav__txt strong { font-weight: 600; font-size: 1rem; }
.nav__txt small { color: var(--on-dark-soft); font-size: .85rem; }
.nav__mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
/* Menú amplio (Software): dos columnas y enlaces al pie. */
.nav__group { margin: 14px 0 4px; padding: 0 8px; color: var(--cyan); font-weight: 650; font-size: 1.0625rem; }
.nav__mega-foot { display: grid; gap: 12px; padding: 14px 8px 4px; }
.nav__more { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; text-decoration: none; }
.nav__more:hover, .nav__more:focus-visible { color: #fff; text-decoration: underline; }
.nav__more-chev { width: 16px; height: 16px; transform: rotate(-90deg); }
.nav__mega-foot .btn--primary { background: var(--cyan); color: var(--navy); justify-self: start; }
.nav__mega-foot .btn--primary:hover { background: #fff; color: var(--navy); }


/* Menú completo desde 1200 px; por debajo se usa el menú hamburguesa. */
@media (min-width: 1200px) {
  .site-header__phone { display: inline-flex; }
  .site-header__phone span { display: none; }
  .menu-btn, .nav__item--mobile, .nav__mobile-cta { display: none; }
  .nav { position: static; display: block; background: none; padding: 0; overflow: visible; margin-left: 20px; }
  .menu-open { overflow: auto; }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__item { border: 0; position: relative; }
  .nav__link { padding: 10px 9px; font-size: .95rem; gap: 6px; border-radius: 8px; }
  .nav__link:hover { background: var(--navy-2); }
  .nav__chev { width: 16px; height: 16px; }
  .nav__sub {
    position: absolute; top: calc(100% + 14px); left: -12px; width: 380px;
    background: var(--navy); border: 1px solid var(--navy-3); border-radius: var(--r);
    padding: 10px; box-shadow: 0 24px 48px rgba(10, 26, 42, .45);
  }
  .nav__sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { display: block; }
  .nav__sub--mega { width: 740px; left: 50%; transform: translateX(-50%); padding: 14px; }
  .nav__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .nav__sub--mega .nav__group { margin: 2px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-soft); }
  .nav__sub--mega .nav__card { padding: 8px; }
  .nav__mega-foot {
    grid-auto-flow: column; justify-content: space-between; align-items: center;
    margin-top: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--navy-3);
  }
}
@media (min-width: 1440px) {
  .nav { margin-left: 32px; }
  .nav__link { padding: 10px 12px; }
  .site-header__phone span { display: inline; }
}

/* ---------- Hexágono (firma visual) ---------- */
.hex-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 58px;
  clip-path: var(--hex);
  background: color-mix(in srgb, var(--cyan) 16%, #fff);
  color: var(--cyan-ink);
}
.hex-badge .icon { width: 24px; height: 24px; }
.cards > li:nth-child(even) .hex-badge { background: color-mix(in srgb, var(--lila) 22%, #fff); color: var(--lila-ink); }
.card--link:hover .hex-badge { background: var(--grad-accent); color: var(--navy); }
.hex-badge--sm { width: 40px; height: 44px; background: var(--navy-2); color: var(--cyan); }
.hex-badge--sm .icon { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-dark); color: var(--on-dark);
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 6vw, 96px);
}
.hero__glow {
  position: absolute; z-index: -1; inset: auto -20% -40% auto; width: 80vmax; height: 80vmax;
  background:
    radial-gradient(closest-side, rgba(66, 185, 220, .18), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(169, 138, 196, .16), transparent 70%);
  pointer-events: none;
}
/* Red animada de fondo (assets/js/hero-fx.js). Más tenue bajo el texto para no restar legibilidad. */
.hero__fx {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
@media (min-width: 900px) {
  .hero__fx {
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 35%, #000 65%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 35%, #000 65%);
  }
  .hero--simple .hero__fx, .hero--center .hero__fx {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 70%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 70%);
  }
}
.hero h1 { color: #fff; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__lead { font-size: 1.08em; color: var(--on-dark); max-width: 60ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero__ctas .btn { flex: 1 1 240px; }
@media (min-width: 640px) { .hero__ctas .btn { flex: 0 0 auto; } }
.hero__ctas--center { justify-content: center; }
.hero__points { display: grid; gap: 10px; margin-top: 28px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-soft); line-height: 1.5; }
.hero__points .icon { color: var(--cyan); margin-top: .1em; }
.hero--center { text-align: center; }
.hero--center .hero__lead, .hero--center p { margin-inline: auto; }

/* La foto principal dentro del hexágono del lente: anillo azul claro → morado. */
.hero__media {
  position: relative; width: min(100%, 340px); margin-inline: auto;
  aspect-ratio: 0.88; padding: 7px;
  clip-path: var(--hex);
  background: linear-gradient(150deg, var(--cyan) 0%, var(--lila) 70%, var(--navy-3) 100%);
}
.hero__media::before {
  content: ""; position: absolute; inset: 7px; clip-path: var(--hex); background: var(--navy);
}
.hero__media > .media,
.hero__media > .img-slot {
  position: absolute; inset: 13px; width: calc(100% - 26px); height: calc(100% - 26px);
  max-width: none; clip-path: var(--hex); object-fit: cover; object-position: center; aspect-ratio: auto !important;
}
.hero--inner .hero__media { width: min(100%, 320px); }
/* Barrido de escaneo sobre la foto, como el lente de una cámara. */
.hero__media::after {
  content: ""; position: absolute; inset: 13px; z-index: 2; pointer-events: none;
  clip-path: var(--hex);
  background: linear-gradient(180deg,
    transparent 0%, transparent 44%,
    rgba(66, 185, 220, .10) 48%, rgba(66, 185, 220, .45) 50%, rgba(66, 185, 220, 0) 50.6%,
    transparent 100%);
  background-size: 100% 220%;
  background-position: 0 100%;
  mix-blend-mode: screen;
  animation: hero-scan 6s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes hero-scan {
  0%   { background-position: 0 100%; }
  60%  { background-position: 0 0%; }
  100% { background-position: 0 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media::after { animation: none; display: none; }
}


@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; }
  .hero__media { width: 100%; max-width: 480px; margin-right: 0; }
  .hero--inner .hero__media { max-width: 420px; }
}
/* Escritorio: la imagen hexagonal ocupa todo el ancho de su columna (móvil y tableta sin cambios). */
@media (min-width: 1024px) {
  .hero__media, .hero--inner .hero__media { width: 100%; max-width: 540px; margin-right: 0; }
}

/* Migas de pan */
.crumbs { margin-bottom: clamp(16px, 2vw, 28px); font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { color: var(--on-dark-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--navy-3); }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding: var(--sec-y) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.theme-light { background: var(--paper); }
.theme-soft { background: var(--grad-soft); }
.theme-dark { background: var(--grad-dark); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.theme-dark h2, .theme-dark h3 { color: #fff; }
.theme-dark a:not(.btn) { color: var(--cyan); }

.eyebrow { margin: 0 0 12px; font-size: var(--fs-body); font-weight: 650; color: var(--cyan-ink); letter-spacing: 0; }
.eyebrow--light, .theme-dark .eyebrow { color: var(--cyan); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head__body { color: var(--text-soft); }
.section-head__body p:last-child { margin-bottom: 0; }
.section__cta { margin: clamp(32px, 4vw, 48px) 0 0; text-align: center; max-width: none; }
.section__cta--left { text-align: left; }

/* ---------- Cifras ---------- */
.stats { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-accent); }
.stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats__item {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.stats__item:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.stats__item:nth-child(even) { padding-left: 14px; }
.stats__item:nth-last-child(-n + 2) { border-bottom: 0; }
.stats__icon { width: 26px; height: 26px; color: var(--cyan-ink); margin-bottom: 6px; }
.stats__item { grid-template-columns: 1fr; }
@media (min-width: 900px) { .stats__item { grid-template-columns: auto 1fr; } .stats__icon { grid-row: span 2; margin: 0; } }
.stats__value { font-weight: 750; color: var(--navy); line-height: 1.25; font-size: 1rem; }
.stats__label { font-size: .88rem; line-height: 1.35; color: var(--text-soft); }
@media (min-width: 900px) {
  .stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats__item, .stats__item:nth-child(odd), .stats__item:nth-child(even) { padding: 28px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stats__item:first-child { padding-left: 0; }
  .stats__item:last-child { border-right: 0; }
  .stats__value { font-size: 1.1rem; }
}

/* ---------- Tarjetas (servicios, soluciones, tipos) ----------
   Rejilla con líneas divisorias, sin sombras: se lee como un catálogo técnico. */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.card__title { margin: 6px 0 0; font-size: 1.2rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.card__text { margin: 0; color: var(--text-soft); }
.card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; font-weight: 650; font-size: var(--fs-small); color: var(--cyan-ink); }
.card__chev { width: 1em; height: 1em; transform: rotate(-90deg); }
.card--link:hover .card__title { color: var(--cyan-ink); }
.card--link:hover .hex-badge { background: var(--cyan); color: var(--navy); }
.card--link:focus-within { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: var(--r-sm); }
.card--link .card__title a:focus-visible { outline: none; }

@media (min-width: 640px) {
  .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 36px; }
  .card { padding: 32px 0 36px; }
}
/* En fondo gris, las soluciones se presentan como fichas blancas. */
.theme-soft .cards { border-top: 0; gap: 16px; }
.theme-soft .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.theme-soft .card--link:hover { border-color: var(--cyan); }
@media (min-width: 640px) { .theme-soft .cards { column-gap: 16px; } }
@media (min-width: 1024px) { .theme-soft .cards { gap: 20px; } .theme-soft .card { padding: 30px 28px; } }

/* ---------- Pasos (secuencia real) ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 28px 64px; }
.step::before { /* línea que une los pasos */
  content: ""; position: absolute; left: 21px; top: 50px; bottom: 4px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0; width: 44px; height: 50px; display: grid; place-items: center;
  clip-path: var(--hex); background: linear-gradient(150deg, var(--navy) 0%, #2A3F66 100%); color: var(--cyan); font-weight: 750; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.step__title { margin: 10px 0 6px; font-size: 1.15rem; }
.step__text { margin: 0; color: var(--text-soft); }
@media (min-width: 900px) {
  .steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding: 70px 0 0; }
  .step::before { left: 52px; right: -28px; top: 24px; bottom: auto; width: auto; height: 2px; }
  .step__num { top: 0; }
  .steps--6 .step__title { font-size: 1.05rem; }
}

/* ---------- Texto + imagen ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split__copy > p:not(.eyebrow) { color: var(--text-soft); }
.theme-dark .split__copy > p:not(.eyebrow) { color: var(--on-dark-soft); }
.split__media .media, .split__media .img-slot { border-radius: var(--r); width: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; }
.feature-list__icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 40px; clip-path: var(--hex);
  background: color-mix(in srgb, var(--cyan) 16%, #fff); color: var(--cyan-ink);
}
.feature-list__icon .icon { width: 19px; height: 19px; }
.feature-list strong { color: var(--navy); }
.theme-dark .feature-list li { color: var(--on-dark-soft); }
.theme-dark .feature-list strong { color: #fff; }
.theme-dark .feature-list__icon { background: var(--navy-2); color: var(--cyan); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); }
  .split--reverse .split__media { order: -1; }
}

/* ---------- Texto largo (precio, guías) ---------- */
.prose-wrap { display: grid; gap: 32px; }
.prose p:not(.eyebrow) { color: var(--text-soft); }
.factor-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.factor-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.factor-list__icon { color: var(--cyan-ink); display: grid; }
.factor-list__icon .icon { width: 24px; height: 24px; }
.factor-list strong { color: var(--navy); }
@media (min-width: 900px) {
  .prose-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 88px); align-items: start; }
  .prose-wrap .section__cta { grid-column: 1; margin-top: 0; }
  .factor-list { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Clientes y marcas ---------- */
/* Carrusel continuo de logos: gris por defecto, color original al pasar el mouse. */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee calc(var(--count, 20) * 3.2s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  flex: none; display: grid; place-items: center;
  width: 150px; height: 96px; padding: 0 18px;
}
.marquee__item img {
  max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65;
  transition: filter .25s ease, opacity .25s ease;
}
.marquee__item:hover img { filter: none; opacity: 1; }
.logos__name { font-weight: 650; color: var(--text-soft); text-align: center; font-size: .95rem; line-height: 1.3; }
.marquee__controls { display: flex; justify-content: center; margin-top: 16px; }
.marquee__pause {
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--cyan-ink);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer;
}
.marquee__pause:hover { border-color: var(--cyan); }
@media (min-width: 768px) { .marquee__item { width: 190px; height: 112px; padding: 0 26px; } .marquee__item img { max-height: 68px; } }
@media (min-width: 1440px) { .marquee__item { width: 220px; } }

/* En celulares o tabletas no hay "pasar el mouse": al tocar un logo se ve a color. */
@media (hover: none) { .marquee__item:active img { filter: none; opacity: 1; } }

/* Si el visitante pidió reducir el movimiento: logos quietos, en rejilla. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; padding: 0 var(--gutter); }
  .marquee__item[aria-hidden="true"], .marquee__controls { display: none; }
}

.brands .section-head { margin-bottom: 24px; }
.brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.brands__list li {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
}

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 650; color: var(--navy); font-size: 1.04em; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { flex: 1; }
.faq__chev { width: 22px; height: 22px; color: var(--cyan-ink); transition: transform .2s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 0 22px; color: var(--text-soft); }
.faq__a p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.checklist { display: grid; gap: 10px; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 9px; clip-path: var(--hex); background: var(--cyan); }

/* ---------- Banda de cotización ---------- */
.cta-band__grid { display: grid; gap: 40px; align-items: start; }
.cta-band__copy > p:not(.eyebrow) { color: var(--on-dark-soft); }
.cta-band__contact { display: grid; gap: 4px; margin-top: 28px; }
.cta-band__contact a, .cta-band__static {
  display: flex; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none;
  color: var(--on-dark-soft); border-bottom: 1px solid var(--navy-3); font-size: var(--fs-small); line-height: 1.4;
}
.cta-band__contact a:hover strong { color: var(--cyan); }
.cta-band__contact strong { display: block; color: #fff; font-size: 1rem; }
.cta-band__contact .icon { width: 24px; height: 24px; color: var(--cyan); }
.theme-dark .cta-band__contact a { color: var(--on-dark-soft); }
@media (min-width: 1024px) { .cta-band__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; } }

/* ---------- Formulario ---------- */
.lead-form { background: var(--paper); color: var(--text); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.lead-form__title { font-size: 1.35rem; color: var(--navy) !important; margin-bottom: 4px; }
.lead-form__sub { color: var(--text-soft); margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--navy);
  background: var(--paper); border: 1.5px solid #C6D1DF; border-radius: var(--r-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 22px; min-height: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--navy); }
.field--check label { font-weight: 400; font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }
.form-alert { padding: 12px 14px; border-radius: var(--r-sm); background: #FEF3F2; color: var(--danger); font-weight: 600; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__alt { margin: 14px 0 0; text-align: center; color: var(--text-soft); }
.theme-dark .lead-form a:not(.btn) { color: var(--cyan-ink); }
.lead-form .lead-form__alt a { font-weight: 650; }

/* ---------- Espacio de imagen pendiente ---------- */
.media { width: 100%; height: auto; }
/* Mientras falta una foto (y los recuadros de aviso están apagados): fondo tecnológico con la marca. */
.media--empty {
  border-radius: var(--r);
  background:
    radial-gradient(circle at 25% 20%, rgba(66, 185, 220, .38), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(169, 138, 196, .34), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--navy-2);
}
.img-slot {
  display: grid; place-items: center; width: 100%; padding: 20px;
  background: repeating-linear-gradient(135deg, #EEF3F8 0 12px, #E6EDF5 12px 24px);
  border: 2px dashed #9FB3CB; border-radius: var(--r); color: var(--navy); text-align: center;
}
.img-slot__in { display: grid; gap: 6px; max-width: 34ch; font-size: .9rem; line-height: 1.4; }
.img-slot__in strong { font-size: 1rem; }
.img-slot__in code { font-size: .8rem; background: #fff; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.img-slot__in small { color: var(--text-soft); }
.hero .img-slot { border: 0; border-radius: 0; background: repeating-linear-gradient(135deg, #1A3A57 0 12px, #163450 12px 24px); color: var(--on-dark); padding: 18% 14%; }
.hero .img-slot code { background: var(--navy); color: var(--cyan); }
.hero .img-slot small { color: var(--on-dark-soft); }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; background: radial-gradient(ellipse 50% 80% at 100% 100%, rgba(169, 138, 196, .14), transparent 70%), var(--navy); color: var(--on-dark-soft); padding: clamp(56px, 6vw, 88px) 0 24px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-accent); }
.site-footer__grid { display: grid; gap: 40px; }
.site-footer__brand img { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 42ch; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.site-footer__contact .icon { color: var(--cyan); margin-top: .15em; }
.site-footer__contact small { color: #7F8DA8; }
.social { display: flex !important; gap: 10px !important; margin-top: 18px; }
.social a { display: inline-block; padding: 6px 14px; border: 1px solid var(--navy-3); border-radius: 999px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--navy-3); }
.site-footer__legal p { margin: 0; max-width: none; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 40px; } }
@media (min-width: 1024px) { .site-footer__grid--4 { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
/* Enlace al otro sitio de SOLISEL (seguridad ↔ software) */
.site-footer__sister { margin-top: 40px; }
.site-footer__sister a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--navy-3); border-radius: 14px; background: var(--navy-2); color: var(--on-dark); font-weight: 600; text-decoration: none; }
.site-footer__sister a:hover { border-color: var(--cyan); color: #fff; text-decoration: none; }
.site-footer__sister a > .icon:first-child { color: var(--cyan); flex: none; }
.site-footer__sister span { flex: 1; }
.site-footer__sister-chev { flex: none; color: var(--cyan); }

/* ---------- Contacto rápido ---------- */
.contact-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--navy); border-top: 1px solid var(--navy-3);
  padding-bottom: env(safe-area-inset-bottom);
}
.contact-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-weight: 700; text-decoration: none; }
.contact-bar__wa { background: var(--wa); color: var(--navy); }
.contact-bar__call { color: #fff; }
.contact-bar .icon { width: 22px; height: 22px; }
.wa-float { display: none; }
@media (min-width: 1024px) {
  .contact-bar { display: none; }
  .wa-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px;
    background: var(--wa); color: var(--navy); border-radius: 999px; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .25);
  }
  .wa-float .icon { width: 26px; height: 26px; }
  .wa-float:hover { color: var(--navy); background: #1FBE5B; }
}

/* ---------- 404 ---------- */
.link-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-list a { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--navy); }
.link-list a:hover { border-color: var(--cyan); }
.link-list .icon { color: var(--cyan-ink); }

/* Pantallas muy grandes */
@media (min-width: 1600px) { :root { --maxw: 1320px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .contact-bar, .wa-float, .cta-band__form { display: none !important; }
  body { padding: 0; }
}

/* ---------- Páginas simples (contacto, política) ---------- */
.hero--simple { padding-bottom: clamp(48px, 5vw, 72px); }
.hero--simple .hero__lead { max-width: 64ch; }
.legal-block { padding: 0; }
.legal-block:first-of-type { padding-top: var(--sec-y); }
.legal-block:last-of-type { padding-bottom: var(--sec-y); }
.legal > * { max-width: 780px; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin: 2em 0 .6em; }
.legal-block:first-of-type .legal h2 { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal .checklist { margin-bottom: 1.2em; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card:hover { border-color: var(--cyan); }
.post-card__media { text-decoration: none; color: inherit; }
.post-card__media .media, .post-card__media .img-slot { border-radius: 0; border: 0; }
.post-card__media .img-slot { padding: 12px; }
.post-card__media .img-slot__in span, .post-card__media .img-slot__in small { display: none; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.post-card__cat { margin: 0; font-weight: 650; color: var(--cyan-ink); }
.post-card__title { margin: 0; font-size: 1.2rem; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { margin: 0; color: var(--text-soft); }
.post-card__meta { margin: auto 0 0; padding-top: 6px; color: var(--text-soft); }
.post-card:focus-within { outline: 3px solid var(--cyan); outline-offset: 3px; }

.post-meta { color: var(--on-dark-soft); margin: 18px 0 0; }
.post-layout { display: grid; gap: 40px; }
.post-figure { margin: 0 0 32px; }
.post-figure .media, .post-figure .img-slot { border-radius: var(--r); }
.prose-article { max-width: 720px; }
.prose-article h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); margin: 1.8em 0 .55em; }
.prose-article h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose-article p, .prose-article li { color: var(--text); }
.prose-article .checklist { margin-bottom: 1.2em; }
.post-aside__card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--mist); }
.post-aside__title { font-weight: 750; color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.post-aside__card p:not(.post-aside__title) { color: var(--text-soft); }
.post-aside__link { display: inline-block; margin-top: 14px; font-weight: 650; }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
  .post-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.numbered { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; margin: 0 0 1.2em; }
.numbered li::marker { color: var(--cyan-ink); font-weight: 700; }

/* Botón de iniciar sesión en la cabecera */
.site-header__login {
  display: none; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--navy-3); border-radius: 50%; color: var(--on-dark);
}
.site-header__login:hover, .site-header__login:focus-visible { color: var(--cyan); border-color: var(--cyan); }
.site-header__login .icon { width: 20px; height: 20px; }
.nav__login { display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 1200px) { .site-header__login { display: inline-grid; } }


/* =========================================================================
   Identidad corporativa 2026: paleta de 6 colores, Sora en títulos y movimiento.
   Los dos sitios comparten todo, con el cian como acento de acción
   (body.site-software lo define el layout según 'site' en app/config.php).
   ========================================================================= */
.site-software {
  --grad-flow: linear-gradient(90deg, var(--lila), var(--cyan), var(--lila));
}

h1, h2, h3, .card__title, .step__title, .lead-form__title, .stats__value { font-family: var(--font-display); }
h1 { letter-spacing: -0.03em; }

/* Botones: cian con texto azul profundo para la acción principal y WhatsApp */
.btn--primary { background: var(--violet); color: var(--navy); }
.btn--primary:hover { background: var(--violet-2); color: var(--navy); }
.btn--wa { background: var(--cyan); color: var(--navy); }
.btn--wa:hover { background: #6BCBE7; color: var(--navy); }
.site-header .btn--wa { background: var(--violet); color: var(--navy); }
.site-header .btn--wa:hover { background: var(--violet-2); color: var(--navy); }
@media (hover: hover) {
  .btn--primary:hover, .site-header .btn--wa:hover { box-shadow: 0 12px 26px rgba(66, 185, 220, .38); }
}
.btn--ghost-light { border-color: var(--lila); }
.btn--ghost-light:hover { border-color: var(--lead); }
.contact-bar__wa { background: var(--cyan); color: var(--navy); }
@media (min-width: 1024px) {
  .wa-float { background: var(--violet); color: var(--navy); }
  .wa-float:hover { background: var(--violet-2); color: var(--navy); }
}

/* Texto y acentos */
.eyebrow { color: var(--violet-ink); font-weight: 700; }
.eyebrow--light, .theme-dark .eyebrow { color: var(--lila); }
.hero .eyebrow--light { color: var(--lead); }
:focus-visible { outline-color: var(--violet); }
.card__more, .link-list .icon, .faq__chev { color: var(--violet-ink); }
.grad-text { background: linear-gradient(90deg, var(--lead), var(--lila)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Línea de color que corre bajo la cabecera y sobre el pie */
@keyframes brand-flow { to { background-position: 200% 0; } }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--grad-flow); background-size: 200% 100%; animation: brand-flow 6s linear infinite;
}
.site-footer::before { background: var(--grad-flow); background-size: 200% 100%; animation: brand-flow 6s linear infinite; }

/* Luces de la cabecera (hero) que se desplazan despacio */
@keyframes orb-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(50px, -36px, 0) scale(1.18); } }
.hero__glow { animation: orb-drift 18s ease-in-out infinite; }
.hero__orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; animation: orb-drift 14s ease-in-out infinite; }
.hero__orb--a { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(66, 185, 220, .40), transparent 65%); }
.hero__orb--b { width: 460px; height: 460px; bottom: -220px; left: -140px; background: radial-gradient(circle, rgba(66, 185, 220, .38), transparent 65%); animation-duration: 18s; animation-direction: reverse; }
.site-software .hero__orb--a { background: radial-gradient(circle, rgba(66, 185, 220, .46), transparent 65%); }
.site-software .hero__orb--b { background: radial-gradient(circle, rgba(66, 185, 220, .32), transparent 65%); }
/* Fondo de la portada: rejilla (seguridad) o puntos (software) */
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(66, 185, 220, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(66, 185, 220, .07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.site-software .hero--home::before { background-image: radial-gradient(rgba(169, 138, 196, .22) 1.2px, transparent 1.2px); background-size: 26px 26px; }

/* Etiqueta superior de la portada con punto que late */
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(66, 185, 220, .12); border: 1px solid rgba(66, 185, 220, .38); color: var(--cyan); font-size: var(--fs-small);
}

@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(66, 185, 220, .6); } 100% { box-shadow: 0 0 0 16px rgba(66, 185, 220, 0); } }
.pulse-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cyan); animation: pulse-ring 1.8s ease-out infinite; }


/* ---------- Portada: panel visual (cámaras o panel de negocio) ---------- */
.hero--home .hero__grid { align-items: center; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; padding: 24px 0; }
@media (min-width: 900px) { .hero-visual { min-height: 520px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-visual__ring {
  position: absolute; width: min(500px, 100%); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(66, 185, 220, .45); animation: spin 30s linear infinite; pointer-events: none;
}
.hero-visual__ring--2 { width: min(420px, 86%); border: 2px solid rgba(169, 138, 196, .35); border-top-color: var(--violet); animation-duration: 40s; animation-direction: reverse; }
.hero-visual--soft .hero-visual__ring { border-color: rgba(66, 185, 220, .5); }

.cam-panel, .dash {
  position: relative; width: min(100%, 460px); background: #0B1F33; border: 1px solid var(--navy-3);
  border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); animation: float-y 6s ease-in-out infinite;
}
.cam-panel { padding: 14px; }
.cam-panel__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; font-size: .85rem; font-weight: 650; color: var(--on-dark); }
.cam-panel__live { display: inline-flex; align-items: center; gap: 8px; }
.cam-panel__brand { color: var(--lila); letter-spacing: .08em; }
@keyframes blink { 50% { opacity: .15; } }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF5A6E; animation: blink 1.2s steps(2) infinite; }
.cam-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cam { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.cam__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.cam__empty {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(66, 185, 220, .35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(66, 185, 220, .30), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--navy-2);
}
@keyframes scan { 0% { transform: translateY(-120%); } 100% { transform: translateY(1100%); } }
.cam__scan { position: absolute; left: 0; right: 0; top: 0; height: 10%; background: linear-gradient(180deg, transparent, rgba(66, 185, 220, .55), transparent); animation: scan 3.2s linear infinite; }
.cam:nth-child(2) .cam__scan { animation-delay: .8s; background: linear-gradient(180deg, transparent, rgba(66, 185, 220, .55), transparent); }
.cam:nth-child(3) .cam__scan { animation-delay: 1.6s; background: linear-gradient(180deg, transparent, rgba(169, 138, 196, .55), transparent); }
.cam:nth-child(4) .cam__scan { animation-delay: 2.4s; }
.cam__label { position: absolute; left: 8px; bottom: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

.hero-chip {
  position: absolute; display: none; align-items: center; gap: 10px; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3); animation: float-y 7s ease-in-out 1.2s infinite; line-height: 1.3;
}
@media (min-width: 640px) { .hero-chip { display: flex; } }
.hero-chip--alert { left: 0; bottom: 36px; background: var(--mist); padding: 12px 16px; color: var(--text); }
.hero-chip__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--violet); color: var(--navy); display: inline-grid; place-items: center; flex: none; }
.hero-chip__txt { display: flex; flex-direction: column; }
.hero-chip__txt strong { color: var(--navy); font-size: .95rem; }
.hero-chip__txt small { font-size: .85rem; color: var(--text-soft); }
.hero-chip--ok { right: 0; top: 30px; background: var(--navy); border: 1px solid var(--cyan); padding: 10px 14px; color: var(--on-dark); font-weight: 650; font-size: .9rem; animation-delay: 0s; }
.hero-chip--ok .icon { color: var(--cyan); }

/* Panel de negocio (software) */
.dash { overflow: hidden; }
.dash__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--navy-3); }
.dash__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.dash__dot:nth-child(2) { background: var(--cyan-soft); }
.dash__dot:nth-child(3) { background: var(--lila); }
.dash__title { margin-left: 8px; color: var(--lila); font-size: .85rem; }
.dash__body { display: grid; gap: 18px; padding: 20px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash__kpi { display: flex; flex-direction: column; background: var(--navy); border-radius: 12px; padding: 10px 12px; }
.dash__kpi small { color: var(--lila); font-size: .78rem; }
.dash__kpi strong { color: #fff; font-size: .9rem; font-family: var(--font-display); line-height: 1.3; }
.dash__kpi .is-ok { color: var(--cyan); }
@keyframes bar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.dash__chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 0 4px; border-bottom: 1px solid var(--navy-3); }
.dash__col { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; transform-origin: bottom; animation: bar 2.8s ease-in-out var(--d) infinite; background: linear-gradient(180deg, var(--violet), rgba(16, 42, 67, .2)); }
.dash__col:nth-child(3n+2) { background: linear-gradient(180deg, var(--cyan-soft), rgba(16, 42, 67, .2)); }
.dash__col:nth-child(3n) { background: linear-gradient(180deg, var(--lila), rgba(16, 42, 67, .2)); }
.dash__log { display: grid; gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
@keyframes type { from { width: 0; } to { width: 100%; } }
.dash__line { display: block; overflow: hidden; white-space: nowrap; width: 100%; }
.dash__line--1 { color: var(--cyan); animation: type 2.4s steps(34) .3s both; }
.dash__line--2 { color: var(--lila); animation: type 2.4s steps(40) 2.8s both; }
.hero-chip--bot { right: -8px; top: -6px; width: 250px; flex-direction: column; align-items: stretch; gap: 8px; background: var(--mist); padding: 14px 16px; color: var(--text); }
.hero-chip__head { display: flex; align-items: center; gap: 10px; }
.hero-chip__head strong { color: var(--navy); font-size: .95rem; }
.hero-chip--bot .hero-chip__icon { width: 36px; height: 36px; border-radius: 50%; }
.hero-chip__msg { background: #fff; border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
@keyframes typing { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.typing { display: flex; gap: 5px; padding: 2px 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

/* ---------- Cifras: tarjeta blanca que se monta sobre la portada ---------- */
.hero--home { padding-bottom: clamp(96px, 9vw, 140px); }
.hero--home + .stats { background: transparent; border: 0; margin-top: -72px; position: relative; z-index: 2; }
.hero--home + .stats::before { display: none; }
.hero--home + .stats .stats__list { background: var(--paper); border-radius: 22px; box-shadow: 0 24px 60px rgba(16, 42, 67, .14); overflow: hidden; }
.hero--home + .stats .stats__item { padding: 22px 20px; border-right: 0; border-bottom: 4px solid var(--cyan); }
.hero--home + .stats .stats__item:nth-child(4n+2) { border-bottom-color: var(--cyan-soft); }
.hero--home + .stats .stats__item:nth-child(4n+3) { border-bottom-color: var(--lila); }
.hero--home + .stats .stats__item:nth-child(4n) { border-bottom-color: var(--navy); }
.stats__icon { color: var(--violet-ink); }
@media (min-width: 900px) {
  .hero--home + .stats .stats__item, .hero--home + .stats .stats__item:first-child { padding: 28px 26px; }
}

/* Franja "Software para:" bajo la portada de software */
.home-chips { margin-top: -72px; position: relative; z-index: 2; }
.home-chips__box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 24px;
  background: var(--paper); border-radius: 22px; box-shadow: 0 24px 60px rgba(16, 42, 67, .14);
}
.home-chips__title { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; margin-right: 6px; }
.home-chips__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s;
}
.chip .icon { color: var(--violet-ink); transition: color .25s; }
.chip:hover { background: var(--violet); border-color: var(--violet); color: var(--navy); }
.chip:hover .icon { color: var(--navy); }

/* ---------- Tarjetas: íconos en los tres acentos y elevación ---------- */
.hex-badge { background: color-mix(in srgb, var(--cyan) 16%, #fff); color: var(--cyan-ink); }
.cards > li:nth-child(3n+2) .hex-badge { background: color-mix(in srgb, var(--navy) 10%, #fff); color: var(--navy); }
.cards > li:nth-child(3n) .hex-badge { background: color-mix(in srgb, var(--lila) 22%, #fff); color: var(--lila-ink); }
.card--link:hover .card__title { color: var(--violet-ink); }
.card--link:hover .hex-badge, .theme-soft .card--link:hover .hex-badge { background: var(--violet); color: var(--navy); }
.theme-soft .card--link:hover { border-color: var(--violet); }
@media (hover: hover) {
  .theme-soft .card--link:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(16, 42, 67, .14); }
}

/* ---------- Pasos: línea de color que corre entre los números ---------- */
.step__num { background: var(--navy); color: var(--cyan); }
.steps > li:nth-child(3n+2) .step__num { color: var(--cyan-soft); }
.steps > li:nth-child(3n) .step__num { color: var(--lila); }
.step::before { background: var(--grad-flow); background-size: 200% 100%; animation: brand-flow 6s linear infinite; }

/* ---------- Banda de marcas (azul profundo, en movimiento) ---------- */
.brand-band { background: var(--navy); color: var(--on-dark); }
.brand-band .section-head h2 { color: #fff; }
.brand-band .section-head__body { color: var(--on-dark-soft); }
.brand-band .marquee__item--text { width: auto; height: 72px; gap: 40px; padding: 0 20px; display: flex; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); color: var(--on-dark); white-space: nowrap; }
.brand-dot { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--cyan); }
.brand-dot.dot--violet { background: var(--cyan-soft); }
.brand-dot.dot--lila { background: var(--lila); }
.brand-band .marquee__pause { color: var(--on-dark); border-color: var(--navy-3); }
.brand-band .marquee__pause:hover { border-color: var(--cyan); }
.marquee__pause { color: var(--violet-ink); }

/* ---------- Pie: enlace al otro sitio ---------- */
.site-footer__sister a:hover { border-color: var(--violet); }

/* ---------- Formulario ---------- */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(66, 185, 220, .25); }
.field--check input { accent-color: var(--violet); }
.checklist li::before { background: var(--lead); }

/* Foto hexagonal de las páginas internas: anillo con los tres acentos */
.hero__media { background: linear-gradient(150deg, var(--cyan) 0%, var(--lila) 70%, var(--navy-3) 100%); }
.brand-band .eyebrow { color: var(--lila); }
