/* =====================================================================
   QLM Informática · estilos
   Concepto: consola de operaciones. Fondo índigo casi negro con rejilla
   técnica, paneles con borde fino, etiquetas en monoespaciada y un único
   color de señal (cian) para estados. Azul de marca #475097.
   ===================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	color-scheme: dark;
	--bg: #080B16;
	--bg-2: #0D1123;
	--panel: #11162E;
	--panel-2: #161C3A;
	--line: #232A4C;
	--line-2: #313A66;
	--ink: #E9ECFA;
	--muted: #9BA3C7;
	--dim: #6C759E;
	--brand: #475097;
	--accent: #8D9AFF;
	--btn: #5A67E3;
	--btn-hover: #6E7BF2;
	--signal: #40D9EE;
	--good: #4FDB9C;
	--amber: #F4B451;
	--wa: #1E9E57;

	--f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	--s-h1: clamp(2.3rem, 1.3rem + 4.4vw, 4.6rem);
	--s-h2: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
	--s-h3: 1.22rem;
	--r: 12px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
/* Rejilla técnica y resplandor de marca */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60rem 30rem at 85% -5%, rgba(71, 80, 151, .55), transparent 70%),
		radial-gradient(40rem 26rem at -10% 20%, rgba(64, 217, 238, .08), transparent 70%),
		linear-gradient(rgba(141, 154, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(141, 154, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px;
	-webkit-mask-image: linear-gradient(#000 0, #000 55vh, rgba(0,0,0,.35) 100vh);
	mask-image: linear-gradient(#000 0, #000 55vh, rgba(0,0,0,.35) 100vh);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #B4BDFF; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(64, 217, 238, .3); }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.06; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-h1); font-weight: 800; font-stretch: 114%; }
h2 { font-size: var(--s-h2); font-weight: 750; font-stretch: 112%; }
h3 { font-size: var(--s-h3); font-weight: 700; font-stretch: 106%; }
p { margin: 0; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 48rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--btn); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); display: inline-flex; align-items: center; gap: .55rem; }
.label::before { content: ""; width: 6px; height: 6px; background: var(--signal); box-shadow: 0 0 10px var(--signal); border-radius: 1px; }
.label.plain::before { display: none; }
.muted { color: var(--muted); }
.small { font-size: .82rem; color: var(--dim); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 .95rem/1 var(--f-body); padding: .9rem 1.25rem; border-radius: 8px; border: 1px solid var(--btn); background: var(--btn); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; box-shadow: 0 0 0 4px rgba(90, 103, 227, .22), 0 8px 30px -10px rgba(110, 123, 242, .8); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.signal { background: transparent; border-color: rgba(64, 217, 238, .55); color: var(--signal); }
.btn.signal:hover { background: rgba(64, 217, 238, .1); border-color: var(--signal); color: var(--signal); box-shadow: 0 0 20px -4px rgba(64, 217, 238, .6); }
.btn.full { width: 100%; }
.btn svg { flex: none; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 40; background: rgba(8, 11, 22, .72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .55rem; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 61px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; padding-block: .3rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.dd { position: relative; }
.dd > button { all: unset; cursor: pointer; color: var(--ink); font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: .3rem; padding-block: .3rem; }
.dd > button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.dd > button svg { transition: transform .15s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + .7rem); left: -1rem; min-width: 16rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: .4rem; box-shadow: 0 20px 50px -20px #000; display: none; }
.dd.open .dd-menu { display: grid; }
.dd-menu a { padding: .55rem .75rem; border-radius: 6px; }
.dd-menu a:hover { background: var(--panel-2); }
@media (hover: hover) and (min-width: 1001px) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; } }
.top .btn.signal { padding: .62rem 1rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; padding: .5rem .75rem; font: 500 .9rem var(--f-body); cursor: pointer; }
@media (max-width: 1000px) {
	.menu-btn { display: inline-flex; }
	.top .btn.signal { margin-left: 0; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem var(--gutter) 1.2rem; background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: calc(100vh - 70px); overflow-y: auto; }
	.nav.open { display: flex; }
	.nav > a, .dd > button { padding: .85rem 0; border-bottom: 1px solid var(--line); width: 100%; }
	.dd-menu { position: static; display: grid; background: none; border: 0; box-shadow: none; padding: 0 0 .4rem .8rem; min-width: 0; }
	.dd > button svg { display: none; }
	.nav a[aria-current="page"]::after { display: none; }
}
@media (max-width: 480px) { .logo img { height: 51px; } .top .btn.signal span { display: none; } .top .btn.signal { padding: .6rem; } }

/* Secciones */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); position: relative; }
.section.first { border-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 3rem; align-items: end; margin-bottom: 2.6rem; }
.sec-head h2 { margin-top: .9rem; }
.sec-head p { color: var(--muted); max-width: 34rem; }
@media (max-width: 780px) { .sec-head { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 1.1rem; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 3.9rem); font-stretch: 110%; }
.hero h1 em { font-style: normal; color: var(--signal); text-shadow: 0 0 34px rgba(64, 217, 238, .35); }
.hero .lead { margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.checks { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; color: var(--muted); font-size: .9rem; }
.checks li { display: inline-flex; gap: .5rem; align-items: baseline; }
.checks li::before { content: "▸"; color: var(--good); }

/* Consola */
.console { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(141,154,255,.05) inset, 0 0 60px -20px rgba(71,80,151,.7); font-family: var(--f-mono); font-size: .8rem; }
.console-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(8, 11, 22, .45); color: var(--dim); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B3360; }
.console-bar i:nth-child(1) { background: #E5626A; } .console-bar i:nth-child(2) { background: #E8B84E; } .console-bar i:nth-child(3) { background: #50C878; }
.console-bar span { margin-left: .6rem; }
.console-body { padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: .5rem; }
.console-row { display: grid; grid-template-columns: 6.3rem minmax(0, 1fr); gap: .8rem; }
.console-row .k { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; padding-top: .1rem; }
.console-row .v { color: var(--ink); font-family: var(--f-body); font-size: .9rem; }
.console hr { border: 0; border-top: 1px dashed var(--line-2); margin: .5rem 0; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.log li { display: grid; grid-template-columns: 3.3rem 3.2rem minmax(0, 1fr); gap: .6rem; color: #C9CFEE; line-height: 1.5; }
.log .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.tag { color: var(--good); }
.tag.warn { color: var(--amber); }
.tag.info { color: var(--signal); }
.cursor { display: inline-block; width: .55rem; height: 1rem; background: var(--signal); vertical-align: -2px; margin-left: .2rem; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-foot { padding: .65rem 1rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .72rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 99px; border: 1px solid rgba(79, 219, 156, .35); color: var(--good); background: rgba(79, 219, 156, .08); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.warn { color: var(--amber); border-color: rgba(244, 180, 81, .35); background: rgba(244, 180, 81, .08); }

/* Tarjetas de servicio */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); }
.card { position: relative; background: rgba(17, 22, 46, .72); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .85rem; min-width: 0; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 20px 50px -30px rgba(90, 103, 227, .8); }
.card::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(64, 217, 238, .6), transparent); opacity: 0; transition: opacity .2s; }
.card:hover::after { opacity: 1; }
.card.hl { border-color: rgba(64, 217, 238, .35); background: linear-gradient(180deg, rgba(64, 217, 238, .07), rgba(17, 22, 46, .72) 45%); }
.code { font: 500 .72rem var(--f-mono); letter-spacing: .08em; color: var(--signal); }
.card p { color: var(--muted); font-size: .95rem; }
.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .9rem; color: #CDD2EE; }
.dash li { padding-left: 1.1rem; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: .66em; width: .5rem; height: 1px; background: var(--signal); }
.more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.more::after { content: " →"; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(141, 154, 255, .1); border: 1px solid var(--line-2); color: var(--accent); }

/* Software */
.prod { background: rgba(17, 22, 46, .72); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.chip-logo { background: #fff; border-radius: 8px; height: 72px; display: grid; place-items: center; padding: .7rem 1rem; }
.chip-logo img { max-height: 46px; width: auto; max-width: 100%; }
a.chip-logo { transition: box-shadow .15s ease; }
a.chip-logo:hover, a.chip-logo:focus-visible { box-shadow: 0 0 0 2px var(--signal), 0 0 22px -4px rgba(64, 217, 238, .6); }
.prod p { color: var(--muted); font-size: .95rem; }
.prod.wide { grid-column: 1 / -1; }
.prod.wide .chip-logo { max-width: 22rem; }
.prog-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.prog-list li { border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; background: rgba(8, 11, 22, .45); display: grid; gap: .3rem; align-content: start; }
.prog-list strong { display: block; font: 500 .78rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.prog-list br { display: none; }
.prog-list span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.kv { display: grid; gap: .45rem; font-size: .9rem; margin: .2rem 0 0; }
.kv div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .6rem; border-top: 1px dashed var(--line-2); padding-top: .45rem; }
.kv dt { color: var(--dim); font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .15rem; }
.kv dd { margin: 0; color: #CDD2EE; }
.alert { margin-top: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; border: 1px solid rgba(244, 180, 81, .35); background: rgba(244, 180, 81, .06); border-radius: var(--r); padding: 1.15rem 1.3rem; }
.alert .code { color: var(--amber); border: 1px solid currentColor; border-radius: 4px; padding: .15rem .45rem; flex: none; margin-top: .1rem; }
.alert strong { display: block; font-family: var(--f-display); font-stretch: 108%; font-size: 1.05rem; margin-bottom: .25rem; }
.alert p { color: var(--muted); font-size: .93rem; }

/* Test de seguridad */
.check { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .check { grid-template-columns: 1fr; } }
.qs { background: rgba(17, 22, 46, .72); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.q { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q .n { font: .76rem var(--f-mono); color: var(--dim); }
.q .txt { font-size: .95rem; }
.q .txt small { display: block; color: var(--dim); font-size: .82rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--muted); font: 600 .82rem var(--f-body); padding: .5rem .85rem; cursor: pointer; min-width: 3.1rem; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"].yes { background: rgba(79, 219, 156, .14); color: var(--good); }
.seg button[aria-pressed="true"].no { background: rgba(244, 180, 81, .14); color: var(--amber); }
@media (max-width: 480px) { .q { grid-template-columns: minmax(0, 1fr); gap: .55rem; } .q .n { display: none; } }
.result { position: sticky; top: 6rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.4rem; }
.score { display: flex; align-items: baseline; gap: .4rem; margin: .7rem 0 .4rem; }
.score b { font: 800 3.6rem/1 var(--f-display); font-stretch: 115%; font-variant-numeric: tabular-nums; color: #fff; }
.score span { font: .85rem var(--f-mono); color: var(--dim); }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--btn), var(--signal)); box-shadow: 0 0 12px var(--signal); transition: width .35s ease; }
.verdict { margin-top: 1rem; font-weight: 600; }
.todo { list-style: none; margin: .9rem 0 1.2rem; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.todo li { padding-left: 1.2rem; position: relative; color: var(--muted); }
.todo li::before { content: "›"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.note { font-size: .78rem; color: var(--dim); margin-top: .8rem; }

/* Blog */
.posts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.post-card { background: rgba(17, 22, 46, .72); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--ink); }
.post-card .meta { display: flex; justify-content: space-between; gap: 1rem; font: .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.post-card .meta time { color: var(--dim); }
.post-card h3 { font-size: 1.18rem; }
.post-card p { color: var(--muted); font-size: .92rem; }
.post-card .more { color: var(--accent); }

/* Nosotros */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.method { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: m; border-top: 1px solid var(--line); }
.method li { counter-increment: m; position: relative; padding: 1.05rem 0 1.05rem 3.4rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.method li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font: 500 .82rem var(--f-mono); color: var(--signal); border: 1px solid rgba(64, 217, 238, .35); border-radius: 6px; padding: .1rem .35rem; }
.method strong { display: block; color: var(--ink); font-family: var(--f-display); font-stretch: 106%; font-size: 1.02rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: rgba(17, 22, 46, .6); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--signal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; max-width: 52rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.cdata { margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.cdata div { display: grid; grid-template-columns: 7.3rem minmax(0, 1fr); gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cdata dt { font: .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.cdata dd { margin: 0; font-weight: 500; }
.cdata a { color: var(--ink); text-decoration: none; }
.cdata a:hover { color: var(--accent); }
.form { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.5rem; display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; min-width: 0; }
.form input, .form select, .form textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: .75rem .85rem; width: 100%; }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(64, 217, 238, .18); }
.form .consent { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .consent input { width: auto; margin-top: .3rem; accent-color: var(--btn); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { font-size: .9rem; padding: .85rem 1rem; border-radius: 8px; border: 1px solid; }
.formmsg.ok { color: var(--good); border-color: rgba(79, 219, 156, .4); background: rgba(79, 219, 156, .08); }
.formmsg.warn { color: var(--amber); border-color: rgba(244, 180, 81, .4); background: rgba(244, 180, 81, .08); }

/* Páginas interiores */
.page-hero { padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { font: .74rem var(--f-mono); letter-spacing: .06em; color: var(--dim); display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.page-hero .lead { margin-top: 1.1rem; }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; font: .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 1rem; }
.post-meta time { color: var(--dim); }
.prose { padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .45rem; color: #D2D6F0; }
.prose li::marker { color: var(--signal); }
.prose p { color: #D2D6F0; }
.prose .lead { color: var(--muted); }
.prose strong { color: #fff; }
.prose .ph { color: var(--amber); font-family: var(--f-mono); font-size: .9em; }
.steps-list { list-style: none; padding: 0 !important; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: .85rem 0 .85rem 3.2rem; border-bottom: 1px solid var(--line); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: .78rem; width: 2rem; height: 2rem; border-radius: 8px; border: 1px solid rgba(64, 217, 238, .4); color: var(--signal); font: 500 .9rem var(--f-mono); display: grid; place-items: center; }
.cta { margin-top: 2.6rem !important; border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.6rem; background: radial-gradient(30rem 12rem at 100% 0, rgba(71, 80, 151, .45), transparent 70%), var(--panel); display: grid; gap: .8rem; }
.cta h3 { font-size: 1.3rem; }
.cta p { color: var(--muted); }
.cta .actions { margin-top: .4rem; }
.download { display: grid; gap: .8rem; justify-items: start; border: 1px solid rgba(64, 217, 238, .35); background: rgba(64, 217, 238, .05); border-radius: var(--r); padding: 1.4rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem !important; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .92rem; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: rgba(8, 11, 22, .8); color: var(--muted); font-size: .9rem; padding-block: 3.2rem 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot .logo img { height: 74px; }
.foot h4 { font: 500 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
.foot-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: .5rem; font: .74rem var(--f-mono); color: var(--good); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }

/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .7rem 1.05rem .7rem .8rem; border-radius: 99px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset; }
.wa:hover { background: #22B262; color: #fff; }
@media (max-width: 540px) { .wa span { display: none; } .wa { padding: .8rem; } }

/* 404 */
.e404 { min-height: 55vh; display: grid; align-content: center; gap: 1.2rem; }
.e404 .big { font: 800 clamp(5rem, 18vw, 10rem)/1 var(--f-display); font-stretch: 120%; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* =====================================================================
   Imágenes: fondos muy difuminados, miniaturas y banners
   ===================================================================== */
.has-bg { position: relative; isolation: isolate; }
.has-bg::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: center / cover no-repeat;
	opacity: .55; filter: blur(4px) saturate(120%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%);
}
.hero.has-bg::before { opacity: .62; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
.page-hero.has-bg::before { opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); }
.section.has-bg::before { opacity: .42; }

.card .thumb, .post-card .thumb { display: block; margin: -1.6rem -1.5rem .2rem; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.post-card .thumb { margin: -1.4rem -1.4rem .2rem; }
.card .thumb img, .post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s; opacity: .9; }
.card:hover .thumb img, .post-card:hover .thumb img { transform: scale(1.05); opacity: 1; }
.card .thumb + div { margin-top: .2rem; }

.banner { margin: 0 0 2rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: var(--bg-2); box-shadow: 0 30px 70px -40px rgba(90, 103, 227, .7); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner.small { margin: 1.6rem 0 0; aspect-ratio: 16 / 8; }
.prose > .banner { margin-top: 0; }

.bg-placa-base::before { background-image: url(../img/fotos/fondo-placa-base.jpg); }
.bg-servidores::before { background-image: url(../img/fotos/fondo-servidores.jpg); }
.bg-codigo::before { background-image: url(../img/fotos/fondo-codigo.jpg); }
.bg-red-seguridad::before { background-image: url(../img/fotos/fondo-red-seguridad.jpg); }
.bg-panel-gestion::before { background-image: url(../img/fotos/fondo-panel-gestion.jpg); }
.bg-diagnostico-portatil::before { background-image: url(../img/fotos/fondo-diagnostico-portatil.jpg); }

/* =====================================================================
   Autorizaciones: solicitud de soporte remoto con cargo en cuenta
   ===================================================================== */
.auth-box { margin-top: 1.6rem; display: flex; gap: 1rem 1.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid rgba(64, 217, 238, .35); background: linear-gradient(135deg, rgba(64, 217, 238, .08), rgba(90, 103, 227, .08)); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.auth-box > div { flex: 1 1 16rem; min-width: 0; }
.auth-box p { color: var(--muted); font-size: .92rem; margin-top: .45rem; }
.auth-box strong { color: var(--ink); }
.auth-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }
.note-box { margin-top: 1.8rem; border: 1px solid rgba(244, 180, 81, .35); background: rgba(244, 180, 81, .05); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.note-box h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.note-box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; color: var(--muted); font-size: .92rem; }
.note-box li::marker { color: var(--amber); }
.note-box strong { color: var(--ink); }
.fs { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.1rem 0 0; display: grid; gap: 1rem; min-width: 0; }
.fs:first-child { border-top: 0; padding-top: 0; }
.fs legend { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .2rem; }
.step { width: 1.7rem; height: 1.7rem; border-radius: 6px; border: 1px solid rgba(64, 217, 238, .45); color: var(--signal); font: 500 .85rem var(--f-mono); display: inline-grid; place-items: center; }
.flabel { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .4rem; }
.pills { display: flex; gap: .6rem; }
.radio { position: relative; flex: 1; cursor: pointer; display: block !important; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--line-2); background: var(--bg); border-radius: 8px; padding: .74rem .8rem; font-weight: 600; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.radio input:checked + span { border-color: var(--signal); color: var(--signal); background: rgba(64, 217, 238, .08); box-shadow: 0 0 0 3px rgba(64, 217, 238, .14); }
.radio input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form select:disabled { opacity: .55; cursor: not-allowed; }
.form input[type="date"] { color-scheme: dark; }
#a-iban { font-family: var(--f-mono); letter-spacing: .06em; }
.iban-hint { font: .78rem var(--f-mono); color: var(--dim); margin-top: -.5rem; }
.iban-hint.ok { color: var(--good); }
.iban-hint.bad { color: var(--amber); }

/* Columna lateral fija de distribuidores (Exit ERP, Sage 50, Panda)
   Ocupa el 25 % izquierdo de la ventana; la web se desplaza a la derecha
   para no tapar nada. Fija al hacer scroll. En pantallas < 1280 px se oculta (el menú no cabría). */
:root { --rail-w: 25vw; }
@media (min-width: 1280px) { body { padding-left: var(--rail-w); } }
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 45;
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(.9rem, 2.2vh, 1.6rem);
	padding: 2rem clamp(1.2rem, 3vw, 3.5rem);
	background: linear-gradient(180deg, rgba(13, 17, 35, .96), rgba(8, 11, 22, .96));
	border-right: 1px solid var(--line); box-shadow: 18px 0 40px -30px rgba(0,0,0,.9); overflow-y: auto; }
.rail-label { font: 500 clamp(.66rem, .55rem + .25vw, .8rem) var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); text-align: center; display: inline-flex; align-items: center; gap: .5rem; }
.rail-label::before { content: ""; width: 7px; height: 7px; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.rail-logo { width: 90%; max-width: 306px; max-height: calc((100vh - 17rem) / 4); aspect-ratio: 16 / 9; background: #fff; border-radius: var(--r); display: grid; place-items: center; padding: 8% 10%; transition: transform .15s ease, box-shadow .15s ease; }
.rail-logo img { width: 100%; height: 100%; object-fit: contain; }
.rail-logo img[src*="logo-ncs-software"] { width: 78%; height: 78%; }
a.rail-logo:hover, a.rail-logo:focus-visible { transform: translateX(4px); box-shadow: 0 0 0 2px var(--signal), 0 0 26px -4px rgba(64, 217, 238, .6); }
.rail-brand { display: block; line-height: 0; margin-bottom: clamp(.4rem, 2vh, 1.4rem); }
.rail-brand img { height: clamp(55px, 8.1vh, 83px); width: auto; }
@media (max-width: 1279px) { .rail { display: none; } }
/* Con la columna lateral, el menú tiene menos espacio: evitar que los enlaces se partan */
@media (min-width: 1280px) { .nav a, .dd > button { white-space: nowrap; } }
@media (min-width: 1280px) and (max-width: 1499px) { .top .wrap { gap: 1rem; } .nav { gap: .95rem; } .nav a, .dd > button { font-size: .86rem; } }
@media print { .rail { display: none; } body { padding-left: 0; } }
