/* landing.css: portada comercial pública de SGIA (landing.php). Autónoma: no depende de app.css. */
:root {
  --azul: #1e71b8; --azul-cl: #5aa7ea; --azul-os: #155a96;
  --marino: #1d273f; --marino-os: #131b2e;
  --tinta: #1d273f; --txt2: #475569; --suave: #f0f5ff; --linea: #dbe6f5;
  --ok: #15803d;
  --fuente: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { font-family: var(--fuente); color: var(--tinta); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--azul-cl); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1600px) { .wrap { max-width: 1320px; } }

.saltar { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--marino); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.saltar:focus { left: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .98rem; padding: .78rem 1.45rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .18s, transform .18s, border-color .18s; white-space: nowrap; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 8px 22px rgba(30,113,184,.35); }
.btn-primary:hover { background: var(--azul-os); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-os); margin-bottom: .8rem; }
.eyebrow--claro { color: var(--azul-cl); }
h1 em, h2 em { font-style: normal; color: var(--azul); }

/* Barra de navegación */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(19,27,46,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(90,167,234,.18); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand svg { height: 36px; width: auto; flex-shrink: 0; }
.brand__by { font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.62); white-space: nowrap; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.22); }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 600; transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__menu { display: none; position: relative; }
.nav__menu-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.nav__menu-btn::-webkit-details-marker { display: none; }
.nav__menu[open] .nav__menu-btn { background: rgba(90,167,234,.25); }
.nav__menu-panel { position: absolute; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; min-width: 220px; padding: .5rem; background: var(--marino-os); border: 1px solid rgba(90,167,234,.3); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.nav__menu-panel a { color: rgba(255,255,255,.88); font-size: .95rem; font-weight: 600; padding: .65rem .8rem; border-radius: 8px; }
.nav__menu-panel a:hover { background: rgba(90,167,234,.2); color: #fff; }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
}
@media (max-width: 560px) {
  .brand { gap: .5rem; }
  .brand svg { height: 28px; }
  .brand__by { font-size: .68rem; padding-left: .5rem; }
  .nav__cta .btn-sm { padding: .45rem .7rem; font-size: .82rem; }
}
@media (max-width: 370px) {
  .brand__by { display: none; }
}

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--marino-os); color: #fff; padding: 5.5rem 0 5.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 40%, transparent 75%); }
.hero__glow { position: absolute; width: 60vw; height: 40vw; border-radius: 50%; background: radial-gradient(ellipse, rgba(30,113,184,.32), transparent 65%); top: -16vw; right: -10vw; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 900; line-height: 1.07; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--azul-cl); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.8); font-weight: 400; max-width: 620px; margin-bottom: 1.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-row--centro { justify-content: center; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.pill { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .32rem .8rem; border: 1px solid rgba(90,167,234,.45); border-radius: 999px; color: rgba(255,255,255,.88); }

.hero .oferta { display: inline-block; margin: -.6rem 0 1.8rem; padding: .55rem 1rem; border-radius: 10px; background: rgba(21,128,61,.2); border: 1px solid rgba(74,222,128,.45); color: #dcfce7; font-size: .98rem; }
.hero .oferta strong { color: #86efac; }
.condiciones { max-width: 880px; text-align: center; }
.condiciones h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 1rem; }
.condiciones p:not(.eyebrow) { color: var(--txt2); font-size: 1.07rem; margin-bottom: 1.8rem; }

/* Maqueta ilustrativa de la aplicación (decorativa, aria-hidden) */
.mock { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 34px 80px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12); color: var(--tinta); }
.mock__barra { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; background: #eef3fb; border-bottom: 1px solid var(--linea); }
.mock__barra span { width: 10px; height: 10px; border-radius: 50%; background: #c7d4e8; }
.mock__barra b { margin-left: .6rem; font-family: Orbitron, var(--fuente); font-size: .72rem; color: var(--marino); letter-spacing: .06em; }
.mock__cuerpo { display: grid; grid-template-columns: 46px 1fr; flex: 1; min-height: 0; }
.mock__lateral { background: var(--marino); display: flex; flex-direction: column; align-items: center; gap: .7rem; padding-top: .9rem; }
.mock__lateral i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.16); }
.mock__lateral i.on { background: var(--azul); }
.mock__main { padding: .9rem; min-width: 0; }
.mock__tabs { display: flex; gap: .35rem; flex-wrap: nowrap; overflow: hidden; margin-bottom: .8rem; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.mock__tabs b { flex-shrink: 0; white-space: nowrap; font-size: .68rem; font-weight: 700; padding: .28rem .6rem; border-radius: 6px; background: var(--suave); color: var(--txt2); }
.mock__tabs b.on { background: var(--azul); color: #fff; }
.mock__doc { display: grid; grid-template-columns: 42% 1fr; gap: .8rem; }
.mock__arbol { border: 1px solid var(--linea); border-radius: 8px; padding: .6rem; font-size: .7rem; color: var(--txt2); }
.mock__arbol p { padding: .22rem .4rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__arbol p:not(.dir) { padding-left: 1rem; }
.mock__arbol .dir { font-weight: 800; color: var(--marino); }
.mock__arbol .sel { background: #e3eefb; color: var(--azul-os); font-weight: 700; }
.mock__editor { border: 1px solid var(--linea); border-radius: 8px; padding: .8rem; }
.mock__editor .tit { font-weight: 800; font-size: .85rem; margin-bottom: .6rem; }
.mock__editor .lin { height: 7px; border-radius: 4px; background: #e6edf7; margin-bottom: .45rem; }
.w90 { width: 90%; } .w85 { width: 85%; } .w75 { width: 75%; } .w60 { width: 60%; }
.mock__editor .hueco { font-size: .68rem; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px dashed #f59e0b; border-radius: 6px; padding: .3rem .5rem; margin: .5rem 0 .6rem; }
.mock__estado { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.chip { font-size: .64rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; background: var(--suave); color: var(--txt2); border: 1px solid var(--linea); }
.chip--ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.chip--pdf { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.chip--doc { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }

/* Carrusel de pantallas (landing.js). Alto fijo: sin saltos de maquetación al cambiar. */
.carr { position: relative; }
.carr__vista { position: relative; aspect-ratio: 16 / 11.4; }
.carr__slide { position: absolute; inset: 0; display: flex; flex-direction: column; margin: 0; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.carr__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.carr__slide .mock { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.carr__slide figcaption { flex: 0 0 auto; margin-top: .9rem; text-align: center; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.88); min-height: 1.5em; }
.mock__main { display: flex; flex-direction: column; overflow: hidden; }
.mock__pant { flex: 1; min-height: 0; overflow: hidden; }
.carr__ctrl { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .7rem; }
.carr__ctrl[hidden] { display: none; }
.carr__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.carr__btn:hover { background: rgba(255,255,255,.16); }
/* [multicliente] 25-oct-2026 (ACC-12): pausa del carrusel; el icono cambia con aria-pressed. */
.carr__pausa .carr__ic-play, .carr__pausa[aria-pressed="true"] .carr__ic-pausa { display: none; }
.carr__pausa[aria-pressed="true"] .carr__ic-play { display: inline; }
.carr__puntos { display: flex; gap: .2rem; }
.carr__punto { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.carr__punto::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .2s, inset .2s; }
.carr__punto[aria-current="true"]::before { background: var(--azul-cl); inset: 6px; }
.carr__vivo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .carr__slide, .carr__slide.is-on { transition: none; transform: none; } }

/* Contenido de las maquetas (ficticio) */
/* Mapa del ciclo: placa de circuito simplificada (primera pantalla) */
.m-mapa { width: 100%; height: auto; max-height: 100%; }
.m-mapa .mm-placa { fill: #1d273f; }
.m-mapa .mm-rej { stroke: rgba(255,255,255,.05); stroke-width: 1; fill: none; }
.m-mapa .mm-hueco { fill: #141b2c; stroke: #cfd8e3; stroke-opacity: .5; stroke-width: 2; }
.m-mapa .mm-pista { fill: none; stroke: #1e71b8; stroke-width: 6; stroke-linecap: round; opacity: .8; }
.m-mapa .mm-pista--ok { stroke: #a9dbb9; opacity: 1; }
.m-mapa .mm-flujo { fill: none; stroke: #f2fff6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; animation: mm-flujo 1.1s linear infinite; }
@keyframes mm-flujo { to { stroke-dashoffset: -11; } }
.m-mapa .mm-pad { fill: #2a3a5c; stroke: #cfd8e3; stroke-width: 1.5; }
.m-mapa .mm-pad--ok { fill: #2f5a45; stroke: #a9dbb9; }
.m-mapa .mm-ret { fill: #1d273f; stroke: #5fa3dd; stroke-width: 2; }
.m-mapa .mm-ret-f { fill: none; stroke: #cfe3f6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-mapa .mm-cpu { fill: #2b3a60; stroke: rgba(207,216,227,.45); stroke-width: 1.5; }
.m-mapa .mm-anillo { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 5; }
.m-mapa .mm-anillo-v { fill: none; stroke: #a9dbb9; stroke-width: 5; }
.m-mapa .mm-t { font-family: var(--fuente); fill: #f2f6fb; }
.m-mapa .mm-t--pct { font-size: 10px; font-weight: 800; text-anchor: middle; }
.m-mapa .mm-t--lbl { font-size: 7px; font-weight: 800; letter-spacing: .12em; fill: #9cc7ec; }
.m-mapa .mm-t--val { font-size: 10px; font-weight: 800; }
.m-mapa .mm-t--n { font-size: 7px; font-weight: 700; fill: #cfd8e3; }
.m-mapa .mm-t--nom { font-size: 9.5px; font-weight: 700; }
.m-mapa .mm-chip rect:first-child { fill: #263352; stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.m-mapa .mm-led { fill: #5b6a83; }
.m-mapa .mm-bar { fill: rgba(255,255,255,.14); }
.m-mapa .mm-bar-v { fill: #9cc7ec; }
.m-mapa .mm-chip--ok rect:first-child { fill: #24533f; stroke: #a9dbb9; filter: drop-shadow(0 0 5px rgba(169,219,185,.75)); }
.m-mapa .mm-chip--ok .mm-led, .m-mapa .mm-chip--ok .mm-bar-v { fill: #a9dbb9; }
.m-mapa .mm-chip--cur rect:first-child { stroke: #7fb3e2; }
.m-mapa .mm-chip--cur .mm-led { fill: #9cc7ec; }
.m-mapa .mm-chip--at rect:first-child { stroke: #eba7a5; }
.m-mapa .mm-chip--at .mm-led, .m-mapa .mm-chip--at .mm-bar-v { fill: #eba7a5; }
.m-mapa .mm-chip--pen text { fill-opacity: .75; }
.m-mapa .mm-actual { fill: none; stroke: #9cc7ec; stroke-width: 1.5; stroke-dasharray: 3 3; }
@media (prefers-reduced-motion: reduce) { .m-mapa .mm-flujo { animation: none; stroke-dasharray: none; opacity: .5; } }
.mock__pant:has(.m-mapa) { display: flex; align-items: center; justify-content: center; }
.m-sub { font-size: .7rem; font-weight: 800; color: var(--marino); margin: .2rem 0 .5rem; }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .8rem; }
.m-kpi { border: 1px solid var(--linea); border-radius: 8px; padding: .5rem .6rem; border-top: 3px solid var(--azul); }
.m-kpi b { display: block; font-size: .6rem; color: var(--txt2); font-weight: 700; }
.m-kpi span { font-size: 1.25rem; font-weight: 800; color: var(--marino); }
.m-kpi--am { border-top-color: #f59e0b; } .m-kpi--ok { border-top-color: #16a34a; }
.m-lista li { display: flex; align-items: center; gap: .5rem; font-size: .7rem; color: var(--tinta); padding: .4rem .5rem; border: 1px solid var(--linea); border-radius: 7px; margin-bottom: .35rem; }
.niv { font-style: normal; font-size: .6rem; font-weight: 800; padding: .14rem .5rem; border-radius: 999px; white-space: nowrap; }
.niv--ok { background: #dcfce7; color: #166534; } .niv--bajo { background: #e0f2fe; color: #075985; }
.niv--medio { background: #fef3c7; color: #92400e; } .niv--alto { background: #ffedd5; color: #9a3412; }
.niv--crit { background: #fee2e2; color: #991b1b; } .niv--gris { background: #f1f5f9; color: #475569; }
.m-doc { display: grid; grid-template-columns: 38% 1fr; gap: 1rem; align-items: center; }
.m-anillo { aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--azul) 0 76%, #e6edf7 76% 100%); display: grid; place-items: center; max-width: 170px; margin: 0 auto; width: 100%; }
.m-anillo > div { width: 72%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-anillo b { font-size: 1.4rem; font-weight: 900; color: var(--marino); line-height: 1; }
.m-anillo span { font-size: .58rem; color: var(--txt2); font-weight: 700; }
.m-barra { display: grid; grid-template-columns: 34% 1fr 2.6rem; align-items: center; gap: .5rem; font-size: .68rem; margin-bottom: .55rem; }
.m-barra b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-barra i, .m-norma i { display: block; height: 7px; border-radius: 4px; background: #e6edf7; overflow: hidden; }
.m-barra s, .m-norma s { display: block; height: 100%; background: var(--azul); border-radius: 4px; }
.m-barra em { font-style: normal; font-weight: 800; color: var(--marino); text-align: right; }
s.am { background: #f59e0b; }
.p55 { width: 55%; } .p62 { width: 62%; } .p78 { width: 78%; } .p84 { width: 84%; } .p91 { width: 91%; }
.m-tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.m-norma { border: 1px solid var(--linea); border-radius: 8px; padding: .6rem; display: flex; flex-direction: column; gap: .35rem; background: #f8fafc; }
.m-norma.on { background: #fff; border-left: 3px solid var(--azul); }
.m-norma b { font-size: .72rem; } .m-norma span { font-size: .6rem; font-weight: 700; color: var(--txt2); }
.m-norma.on span { color: #166534; }
.m-tabla { width: 100%; border-collapse: collapse; font-size: .66rem; }
.m-tabla th { text-align: left; background: var(--suave); color: var(--marino); font-weight: 800; padding: .4rem .5rem; }
.m-tabla td { padding: .42rem .5rem; border-bottom: 1px solid var(--linea); color: var(--tinta); white-space: nowrap; }
.m-aud__barra { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; flex-wrap: wrap; }
.m-btn { font-size: .68rem; font-weight: 800; color: #fff; background: var(--azul); padding: .35rem .7rem; border-radius: 6px; }
.m-nota { font-size: .64rem; font-weight: 700; color: #92400e; background: #fef3c7; padding: .25rem .55rem; border-radius: 999px; }
.m-aud__doc { border: 1px solid var(--linea); border-radius: 8px; padding: .6rem .8rem; }
.m-aud__doc .tit { font-weight: 800; font-size: .85rem; margin-bottom: .5rem; }
.m-aud__sec { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; padding: .32rem 0; border-bottom: 1px solid var(--linea); }
.m-aud__cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: .7rem; }
.m-aud__cifras div { border: 1px solid var(--linea); border-radius: 7px; padding: .25rem .3rem; text-align: center; border-top: 3px solid #94a3b8; }
.m-aud__cifras div.am { border-top-color: #f59e0b; } .m-aud__cifras div.az { border-top-color: var(--azul); } .m-aud__cifras div.ok { border-top-color: #16a34a; }
.m-aud__cifras b { display: block; font-size: .95rem; font-weight: 900; color: var(--marino); }
.m-aud__cifras span { font-size: .56rem; font-weight: 700; color: var(--txt2); }

/* Secciones */
.seccion { padding: 5.5rem 0; }
.seccion--suave { background: var(--suave); }
.seccion--oscura { background: var(--marino); color: #fff; }
.cabecera { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.cabecera h2, .final h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: .9rem; }
.cabecera p:not(.eyebrow) { color: var(--txt2); font-size: 1.07rem; }
h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin-bottom: .45rem; }
.ico { width: 26px; height: 26px; color: var(--azul); }

.ventajas { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.4rem; }
.ventaja { padding: 1.7rem 1.5rem; border: 1px solid var(--linea); border-radius: 14px; background: #fff; }
.ventaja .ico, .perfil .ico { width: 44px; height: 44px; padding: 9px; border-radius: 11px; background: #e6f0fb; margin-bottom: 1rem; }
.ventaja p, .funcion p, .perfil p, .paso p { color: var(--txt2); font-size: .96rem; }

.normas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.normas .norma { flex: 0 1 calc(25% - .75rem); min-width: 220px; }
.norma { display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--azul); border-radius: 10px; }
.norma strong { font-size: 1.05rem; font-weight: 800; }
.norma span { color: var(--txt2); font-size: .93rem; }

.funciones { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.funcion { padding: 1.5rem; border-radius: 14px; border: 1px solid var(--linea); background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.funcion:hover { border-color: #b9d3f0; box-shadow: 0 14px 30px rgba(29,39,63,.08); transform: translateY(-2px); }
.funcion .ico { margin-bottom: .8rem; }

.pasos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.4rem; counter-reset: paso; }
.paso { position: relative; padding: 1.6rem 1.4rem; background: #fff; border-radius: 14px; border: 1px solid var(--linea); }
.paso__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; margin-bottom: 1rem; }


.perfiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
.perfil { padding: 1.8rem 1.6rem; border-radius: 14px; border: 1px solid var(--linea); }
.seguridad { margin-top: 2.5rem; padding: 1.6rem 1.8rem; border-radius: 14px; background: var(--suave); border: 1px solid var(--linea); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.seguridad h3 { display: flex; align-items: center; gap: .55rem; margin: 0; }
.seguridad ul { display: flex; flex-wrap: wrap; gap: .8rem 2rem; flex: 1; }
.seguridad li { display: flex; align-items: center; gap: .5rem; color: var(--txt2); font-size: .95rem; }
.seguridad li .ico { width: 20px; height: 20px; flex-shrink: 0; }

.final { background: linear-gradient(135deg, var(--marino-os), #1b3a63); color: #fff; padding: 5rem 0; text-align: center; }
.final__inner { max-width: 780px; }
.final h2 em { color: var(--azul-cl); }
.final p { color: rgba(255,255,255,.82); font-size: 1.08rem; margin-bottom: 1.6rem; }

.pie { background: var(--marino-os); color: rgba(255,255,255,.72); padding: 2.2rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.pie__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pie__marca { display: flex; align-items: center; gap: .9rem; }
.pie__marca svg { height: 30px; width: auto; }
.pie__marca p, .pie__legal { font-size: .9rem; }
.pie__enlaces { display: flex; gap: 1.5rem; }
.pie__enlaces a { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }
.pie__enlaces a:hover { color: #fff; text-decoration: underline; }

/* Adaptación */
@media (max-width: 1100px) {
  .ventajas, .pasos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .funciones { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .hero { padding: 3.8rem 0 4rem; }
  .hero__grid { grid-template-columns: minmax(0,1fr); gap: 2.6rem; }
  .perfiles { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .seccion { padding: 3.8rem 0; }
  .ventajas, .pasos, .funciones { grid-template-columns: minmax(0,1fr); }
  .normas .norma { flex-basis: 100%; min-width: 0; }
  .hero .lead { font-size: 1.05rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .mock__doc { grid-template-columns: 1fr; }
  .mock__arbol { display: none; }
  .mock__lateral { display: none; }
  .mock__cuerpo { grid-template-columns: 1fr; }
  .carr__vista { aspect-ratio: 4 / 4.2; }
  .m-kpis { grid-template-columns: repeat(2, 1fr); }
  .m-tabla th:nth-child(3), .m-tabla td:nth-child(3), .m-tabla th:nth-child(4), .m-tabla td:nth-child(4) { display: none; }
  .m-tarjetas { grid-template-columns: repeat(2, 1fr); }
  .m-doc { grid-template-columns: 1fr; }
  .m-anillo { display: none; }
  .pie__inner { flex-direction: column; align-items: flex-start; }
}

/* Pie común de las webs de producto de Zerolynx (igual que el de TrainIA): sellos y enlaces legales */
.footer { background: var(--marino-os); color: rgba(255,255,255,.6); padding: 2.4rem 0; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__certs { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 2.2rem; margin-bottom: 2rem; }
.certs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 2.8rem; }
.certs-row a { display: inline-flex; align-items: center; justify-content: center; opacity: .82; transition: opacity .2s, transform .2s; }
.certs-row a:hover { opacity: 1; transform: scale(1.05); }
.certs-row a:focus-visible { outline: 2px solid var(--azul-cl); outline-offset: 4px; border-radius: 6px; }
.certs-row img { display: block; width: auto; height: 62px; object-fit: contain; }
.certs-row img.cert--wide { height: 34px; }
.certs-row img.cert--wide2 { height: 48px; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem; font-size: .82rem; }
.footer__brand { display: inline-flex; align-items: center; margin-right: .4rem; }
.footer__brand svg { height: 26px; width: auto; }
.footer__legal a, .footer__copy, .footer__copy a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer__legal a:hover, .footer__copy a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .certs-row { gap: 1.2rem 1.4rem; }
  .certs-row img { height: 46px; }
  .certs-row img.cert--wide { height: 26px; }
  .certs-row img.cert--wide2 { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .certs-row a { transition: none; } .certs-row a:hover { transform: none; } }

/* Página de política de privacidad (privacidad.php) */
.hero--legal { padding: 3.6rem 0 3.2rem; }
.legal { padding: 3rem 0 4rem; background: #fff; }
.legal__wrap { max-width: 860px; }
.legal__fecha { font-size: .9rem; color: var(--txt2); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; color: var(--marino); margin: 2.2rem 0 .7rem; }
.legal h3 { font-size: 1.05rem; font-weight: 700; color: var(--marino); margin: 1.3rem 0 .4rem; }
.legal p { color: var(--txt2); margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: .9rem; color: var(--txt2); }
.legal li { margin-bottom: .45rem; }
.legal strong { color: var(--tinta); }
.legal a { color: var(--azul); text-decoration: underline; }
.legal a:hover { color: var(--azul-os); }

/* Cabecera: enlace a la web corporativa y botón «Acceder» (como la landing de TrainIA). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav__links a .ext, .nav__menu-panel a .ext { display: inline-block; vertical-align: baseline; margin-left: .15rem; opacity: .8; }
.nav__cta .ico-acc { flex-shrink: 0; }

/* TrainIA, complemento de SGIA para el GRC: panel oscuro breve con la marca a la izquierda. */
.duo { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.6fr); gap: 2.5rem 3.5rem; align-items: center; padding: 3rem 3.2rem; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1b3a63 0%, var(--marino) 55%, var(--marino-os) 100%); border: 1px solid rgba(90,167,234,.22); box-shadow: 0 24px 50px rgba(19,27,46,.18); }
.duo__marca { display: flex; flex-direction: column; gap: 1.2rem; padding-right: 2.5rem; border-right: 1px solid rgba(255,255,255,.14); }
.duo__logo { width: 100%; max-width: 250px; height: auto; }
.duo__grc { font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,.9); }
.duo__grc em { font-style: normal; color: var(--azul-cl); }
.duo h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.15; margin: .4rem 0 .8rem; }
.duo h2 em { font-style: normal; color: var(--azul-cl); }
.duo__texto > p:not(.eyebrow) { color: rgba(255,255,255,.82); font-size: 1.02rem; }
.duo__lista { display: grid; gap: .6rem; margin: 1.3rem 0 1.7rem; }
.duo__lista li { display: flex; align-items: flex-start; gap: .6rem; color: rgba(255,255,255,.86); font-size: .96rem; }
.duo__lista .ico { width: 20px; height: 20px; flex-shrink: 0; margin-top: .2rem; color: var(--azul-cl); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; }
  .duo__marca { padding-right: 0; padding-bottom: 1.6rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .duo__logo { max-width: 200px; }
}
