/* Glove Systems - web local del SPXOne. Sin dependencias externas (fuentes del sistema). */
:root {
  --bg: #0d1014;
  --bg2: #141920;
  --panel: #1a2029;
  --line: #2a323e;
  --text: #e6eaf0;
  --muted: #9aa5b4;
  --blue: #2472b5;
  --blue-l: #4b9be0;
  --red: #d42a2f;
  --oled: #5fd6d0;
  --ok: #6cc070;
  --radius: 10px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-l); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue-l); margin-bottom: .8em; }
.spx { font-weight: 800; }
.spx b { color: var(--red); }

/* ---------- cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13, 16, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 6px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.on { background: var(--panel); text-decoration: none; }
.nav a.cw { border: 1px solid var(--blue); color: var(--blue-l); margin-left: 6px; }
.nav a.cw:hover { background: var(--blue); color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 7px 11px; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a.cw { margin: 6px 0 0; text-align: center; }
}

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.pri { background: var(--blue); color: #fff; }
.btn.sec { border-color: var(--line); color: var(--text); background: var(--panel); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- secciones ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 1.08rem; }

/* hero */
.hero { padding: 56px 0 0; background: var(--bg); }
.hero .wrap { position: relative; z-index: 2; }
.heroimg { max-width: 1400px; margin: 8px auto 0; position: relative; z-index: 1; }

.heroimg img { width: 100%; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 780px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 13px; font-size: .86rem; color: var(--muted); }

/* tarjetas */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .ic { width: 40px; height: 40px; border-radius: 9px; background: rgba(36, 114, 181, .16); color: var(--blue-l); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.num { font-size: 2.1rem; font-weight: 800; color: var(--text); line-height: 1; }
.num small { font-size: .95rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .card { padding: 20px; }
.kpi .card p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* filas con imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 28px; position: relative; margin-bottom: .55em; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* pasos */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* tablas */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; width: 34%; }
.tbl tr.grp td { background: var(--bg2); color: var(--blue-l); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding-top: 16px; }
.tblwrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }

/* normativa */
.law { display: flex; gap: 14px; align-items: flex-start; }
.law .badge { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ok); color: var(--ok); display: grid; place-items: center; }

/* descargas */
.dl { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }
.dl:hover { border-color: var(--blue); text-decoration: none; }
.dl .ft { flex: none; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: #23303f; color: var(--blue-l); }
.dl .ft.pdf { background: rgba(212, 42, 47, .16); color: #ff7b7f; }
.dl .ft.ext { background: rgba(108, 192, 112, .14); color: var(--ok); }
.dl b { display: block; }
.dl span { color: var(--muted); font-size: .88rem; }
.dl .go { margin-left: auto; color: var(--muted); font-size: 1.2rem; }
.dlgrp { margin-bottom: 42px; }
.dlgrp h2 { font-size: 1.35rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }

/* control web */
.cwbox { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #15283d, #121820 60%); border: 1px solid #284563; border-radius: 14px; padding: 40px; }
@media (max-width: 920px) { .cwbox { grid-template-columns: 1fr; padding: 26px; } }

/* contacto */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-size: .88rem; color: var(--muted); display: block; margin-bottom: 5px; }
.form input, .form textarea, .form select { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form .chk input { width: auto; margin-top: 4px; }
.msg { padding: 12px 14px; border-radius: 8px; display: none; }
.msg.ok { display: block; background: rgba(108, 192, 112, .14); border: 1px solid var(--ok); }
.msg.err { display: block; background: rgba(212, 42, 47, .14); border: 1px solid var(--red); }
.cinfo dt { color: var(--muted); font-size: .85rem; margin-top: 16px; }
.cinfo dd { margin: 2px 0 0; font-size: 1.05rem; }

/* pie */
footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: #0a0c0f; color: var(--muted); font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--text); margin: 0 0 10px; font-size: .95rem; }
footer a { color: var(--muted); display: block; margin-bottom: 6px; }
footer a:hover { color: var(--text); }
footer .copy { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .84rem; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); z-index: 60; }
.wa svg { width: 30px; height: 30px; fill: #fff; }
.pagehead { padding: 64px 0 30px; background: radial-gradient(900px 360px at 80% 0, rgba(36, 114, 181, .2), transparent 60%); border-bottom: 1px solid var(--line); }
.pagehead p { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.spxlogo { height: clamp(46px, 6vw, 68px); width: auto; margin: 4px 0 22px; }

/* fotos reales sobre fondo blanco */
.shot.photo { background: #fff; }
/* algoritmos de limitacion */
.algo { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; background: var(--panel); }
.algo p { margin: 0; }
.algo h3 { margin: 0 0 .4em; }
.algo .tag { display: inline-block; font-weight: 800; letter-spacing: .08em; font-size: .76rem; padding: 3px 11px; border-radius: 99px; background: #23303f; color: var(--blue-l); margin-bottom: 8px; }
.algo.hl { border-color: #6fa84a; background: linear-gradient(135deg, rgba(111, 168, 74, .16), var(--panel) 65%); padding: 20px 22px; }
.algo.hl .tag { background: #badd8d; color: #10140c; }
.card.ota { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
.card.ota .ic { flex: none; margin: 0; }
.sub { max-width: 760px; margin: 60px 0 20px; }
.olegend { margin-top: 18px; }
.olegend b { display: block; margin-bottom: 2px; }
.olegend span { color: var(--muted); font-size: .92rem; }

/* Proyectos financiados: logotipos oficiales sobre blanco */
.fund .logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; background: #fff; border-radius: 10px; padding: 22px 26px; margin-top: 18px; }
.fund .logos img { height: auto; max-height: 90px; width: auto; max-width: 100%; }
/* Informacion legal */
.legal > * { max-width: 860px; }
.legal h2 { margin: 1.6em 0 .6em; padding-top: 12px; scroll-margin-top: 80px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .25em 0; }
.copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Selector de idioma */
.langs { display: flex; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav .langs a { padding: 6px 7px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.nav .langs a.on { color: var(--text); background: var(--panel); }
@media (max-width: 1080px) { .langs { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: center; } }
footer .copy a { display: inline; margin: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .nav a { padding: 8px 9px; font-size: .9rem; } .langs { margin-left: 6px; padding-left: 6px; } }
.brand { flex-shrink: 0; }
/* Display OLED: imagen sin marco (el cristal ya tiene su borde) */
.oledfig { margin: 0; }
.oledfig img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }

/* Adaptacion al ambiente (seccion destacada) */
.adapt { padding: 84px 0; background:
  radial-gradient(700px 380px at 85% 30%, rgba(111, 183, 255, .13), transparent 65%),
  radial-gradient(600px 340px at 10% 90%, rgba(186, 221, 141, .09), transparent 65%), var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adapt h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .35em 0 .5em; }
.adapt .lead { color: var(--muted); font-size: 1.08rem; }
.adapt-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #10140b; background: linear-gradient(90deg, #badd8d, #8fbf5c); border-radius: 99px; padding: 4px 12px; }
.adapt-card { background: linear-gradient(180deg, #141a22, #0f141a); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 16px 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.adapt-chart { width: 100%; height: auto; display: block; }
.adapt-chart .axl { stroke: #3a4350; stroke-width: 1.5; }
.adapt-chart .maxl { stroke: #ef6a55; stroke-width: 2; stroke-dasharray: 8 6; }
.adapt-chart .lbl { fill: #c9d1dc; font: 600 13px system-ui, sans-serif; }
.adapt-chart .lbl.max { fill: #ef8a78; }
.adapt-chart .ax { fill: #8d95a3; font: 600 12px system-ui, sans-serif; }
/* Tarjeta destacada para el tecnico (dos fuentes mono / dos limitadores) */
.card.feat { position: relative; border: 1px solid var(--blue); box-shadow: 0 0 0 1px rgba(36, 114, 181, .35), 0 18px 44px rgba(36, 114, 181, .18);
  background: linear-gradient(180deg, rgba(36, 114, 181, .12), var(--panel) 55%); }
.feat-badge { display: inline-block; margin-bottom: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--blue); border-radius: 99px; padding: 4px 11px; }
/* Adaptacion: leyenda en HTML (legible en movil) y sin desbordar la pantalla */
.adapt .split > * { min-width: 0; }
.adapt-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 2px 6px 10px; font-size: .9rem; font-weight: 600; color: #c9d1dc; }
.adapt-leg .k { display: inline-block; width: 22px; margin-right: -10px; }
.adapt-leg .k.music { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #6fb7ff, #badd8d); }
.adapt-leg .k.noise { height: 10px; border-radius: 2px; background: #8a96a8; opacity: .55; }
.adapt-leg .k.max { height: 0; border-top: 2px dashed #ef6a55; }
.adapt-chart .ax { font-size: 17px; }
