/* ============================================================
   SimMonitor.es — hoja de estilos global
   Paleta tomada del logo: verde → cian → azul, con acentos.
   ============================================================ */

:root {
  --tint: 255,255,255;
  --green: #22d37f;
  --cyan: #1fd1d1;
  --blue: #2b8fff;
  --purple: #7c5cff;
  --red: #ff4d5e;
  --amber: #ffb23e;

  --grad: linear-gradient(135deg, #22d37f 0%, #1fbfae 45%, #2b8fff 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,127,.15), rgba(43,143,255,.15));

  --bg: #0b1220;
  --bg-2: #10192a;
  --bg-3: #16233a;
  --panel: #172438;
  --panel-2: #1e2e46;
  --line: rgba(var(--tint),.11);
  --line-strong: rgba(var(--tint),.18);

  --text: #eaf1f8;
  --muted: #9db0c4;
  --muted-2: #6f8399;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --maxw: 1180px;

  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(34,211,127,.14), transparent 60%),
    radial-gradient(1000px 640px at 100% 2%, rgba(43,143,255,.16), transparent 55%),
    radial-gradient(900px 700px at 50% 115%, rgba(124,92,255,.10), transparent 60%),
    var(--bg);
}

/* Red tenue de nodos: capa decorativa fija sobre el degradado (z-index -1),
   por debajo de todo el contenido. Difuminada hacia el centro/abajo con una
   máscara radial para no competir con el texto ni los formularios. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%3E%3Cg%20fill='none'%20stroke='rgba(150,195,210,0.40)'%20stroke-width='1'%3E%3Cpath%20d='M120%20120L0%200M120%20120L240%200M120%20120L0%20240M120%20120L240%20240M120%20120L120%200M120%20120L0%20120M120%20120L240%20120M120%20120L120%20240'/%3E%3C/g%3E%3Cg%20fill='rgba(120,220,180,0.55)'%3E%3Ccircle%20cx='120'%20cy='120'%20r='2.2'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='2.2'/%3E%3Ccircle%20cx='240'%20cy='0'%20r='2.2'/%3E%3Ccircle%20cx='0'%20cy='240'%20r='2.2'/%3E%3Ccircle%20cx='240'%20cy='240'%20r='2.2'/%3E%3Ccircle%20cx='120'%20cy='0'%20r='1.5'/%3E%3Ccircle%20cx='0'%20cy='120'%20r='1.5'/%3E%3Ccircle%20cx='240'%20cy='120'%20r='1.5'/%3E%3Ccircle%20cx='120'%20cy='240'%20r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% -5%, #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
  mask-image: radial-gradient(130% 90% at 50% -5%, #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.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; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
/* Secciones alternas con un tono ligeramente más claro para dar ritmo al scroll. */
.section--alt {
  background: linear-gradient(180deg, rgba(var(--tint),.022), rgba(var(--tint),.008));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center { text-align: center; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #04121a; box-shadow: 0 12px 30px -12px rgba(34,211,127,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(43,143,255,.65); }
.btn--ghost { background: rgba(var(--tint),.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--green); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,11,18,.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .b-sim { color: var(--green); }
.brand .b-monitor { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(var(--tint),.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden;
  font-family: var(--mono); font-size: .78rem;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--muted-2);
  padding: 7px 12px; cursor: pointer; transition: .2s;
}
.lang-toggle button.active { background: var(--grad); color: #04121a; font-weight: 700; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); }
.hero-badge svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- Monitor mockup (SVG/CSS) ---------- */
.monitor {
  background: linear-gradient(160deg, #0b1017, #0a0e14);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
}
.monitor::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.monitor-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: .72rem; color: var(--muted-2);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.monitor-top .dot { color: var(--green); }
.monitor-body { display: grid; grid-template-columns: 1fr 118px; gap: 14px; }
.trace-box { display: grid; gap: 8px; }
.trace { height: 52px; background: rgba(var(--tint),.02); border-radius: 8px; overflow: hidden; }
.trace svg { width: 100%; height: 100%; }
.trace .path { fill: none; stroke-width: 2; }
.vitals { display: grid; gap: 8px; }
.vital {
  background: rgba(var(--tint),.02); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.vital .lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted-2); }
.vital .val { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.vital .unit { font-family: var(--mono); font-size: .58rem; color: var(--muted-2); }

/* animación del trazo */
@keyframes sweep { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.trace .path.animate { stroke-dasharray: 1000; animation: sweep 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .trace .path.animate { animation: none; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; color: var(--green); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .96rem; }

/* Product card */
.pcard { display: flex; flex-direction: column; }
.pcard .tag {
  align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
  border: 1px solid var(--line-strong);
}
.tag--green { color: var(--green); background: rgba(34,211,127,.08); }
.tag--cyan { color: var(--cyan); background: rgba(31,209,209,.08); }
.tag--purple { color: var(--purple); background: rgba(124,92,255,.10); }
.pcard ul { list-style: none; padding: 0; margin: 14px 0 22px; }
.pcard li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--muted); font-size: .95rem; }
.pcard li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px;
  background: var(--grad); border-radius: 4px; opacity: .9;
}
.pcard .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Product detail block ---------- */
.product {
  padding: 70px 0; border-top: 1px solid var(--line);
}
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.product--rev .product-grid { direction: rtl; }
.product--rev .product-grid > * { direction: ltr; }
.spec-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.spec-list li { display: flex; gap: 13px; align-items: flex-start; }
.spec-list .k { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); }
.spec-list .k svg { width: 15px; height: 15px; color: var(--green); }
.spec-list .t strong { color: var(--text); font-weight: 600; }
.spec-list .t span { color: var(--muted); font-size: .93rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-family: var(--mono); font-size: .74rem; padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--tint),.03); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Stats / audience ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aud-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--grad-soft); }
.aud-card h3 { display: flex; align-items: center; gap: 10px; }
.aud-card svg { width: 24px; height: 24px; color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 26px; padding: 56px 40px; text-align: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band .btn { margin-top: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--sans); font-size: .96rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.field textarea { min-height: 130px; resize: vertical; }

.contact-info { display: grid; gap: 20px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer p { font-size: .9rem; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin: 0 0 14px; font-family: var(--mono); }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-2); }

/* ---------- Image placeholder (for real classroom photos) ---------- */
.photo-slot {
  border-radius: var(--radius); border: 1px dashed var(--line-strong);
  background: var(--grad-soft); aspect-ratio: 16/10; display: grid; place-items: center; text-align: center;
  color: var(--muted-2); font-family: var(--mono); font-size: .8rem; padding: 20px;
}
.photo-slot.has-img { border: 1px solid var(--line); background: none; padding: 0; overflow: hidden; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   HOME REDISEÑO (Fase 2) — bloques aditivos.
   Estas clases son nuevas; no modifican las anteriores.
   ============================================================ */

/* Botón compacto (usado en header y tarjetas) */
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Device frame (visual del hero) ---------- */
.device-frame {
  background: linear-gradient(160deg, #0b1017, #0a0e14);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
}
.device-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.device-frame__bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: .72rem; color: var(--muted-2);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.device-frame__rec { color: var(--green); }

/* ---------- B · Hero media (foto real) ---------- */
.hero-media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative;
}
.hero-media::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .45; pointer-events: none; z-index: 1;
}
.hero-media img { width: 100%; height: auto; display: block; }

/* Carrusel del hero: apila las 5 salas y hace cross-fade cada 6 s. */
.hero-carousel { aspect-ratio: 1400 / 788; }
.hero-carousel .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.1s ease;
}
.hero-carousel .hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-slide { transition: none; }
}

/* ---------- C · Value-prop strip ---------- */
.valuestrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden;
}
.vs-item { padding: 28px 24px; border-right: 1px solid var(--line); }
.vs-item:last-child { border-right: 0; }
.vs-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 14px;
}
.vs-icon svg { width: 22px; height: 22px; color: var(--green); }
.vs-item h3 { font-size: 1.02rem; margin-bottom: .35em; }
.vs-item p { margin: 0; font-size: .9rem; }

/* ---------- D · Five-solutions ecosystem ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eco-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.eco-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.eco-logo {
  width: 96px; height: 96px; border-radius: 22px; margin-bottom: 20px;
  object-fit: cover; border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.75), 0 0 0 6px rgba(var(--tint),.02);
}
.eco-card:hover .eco-logo { box-shadow: 0 16px 40px -14px rgba(34,211,127,.4), 0 0 0 6px rgba(34,211,127,.06); }
.eco-card h3 { margin-bottom: .35em; }
.eco-pitch { margin: 0 0 18px; font-size: .95rem; }
.eco-devices {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.eco-devices svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.eco-card .btn { margin-top: auto; align-self: flex-start; }
.eco-card--note { background: var(--grad-soft); border-color: var(--line-strong); justify-content: center; }
.eco-note-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(var(--tint),.05); border: 1px solid var(--line-strong); margin-bottom: 16px;
}
.eco-note-icon svg { width: 24px; height: 24px; color: var(--cyan); }

/* ---------- E · How-it-works flow ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flow-node {
  flex: 1 1 220px; max-width: 300px; text-align: center; padding: 28px 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.flow-device {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong);
}
.flow-device svg { width: 26px; height: 26px; color: var(--green); }
.flow-node h3 { font-size: 1.05rem; }
.flow-node p { margin: 0; font-size: .9rem; }
.flow-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 70px; color: var(--muted-2);
}
.flow-link svg { width: 46px; height: 22px; color: var(--blue); }
.flow-link__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- F · Product showcase ---------- */
.showcase {
  border-radius: 26px; padding: 40px; text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(43,143,255,.14), transparent 70%), var(--panel);
  border: 1px solid var(--line-strong); position: relative; overflow: hidden;
}
.showcase-badge {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(34,211,127,.08); margin-bottom: 30px;
}
.showcase-img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); margin-bottom: 26px;
}
.showcase-caption { max-width: 60ch; margin: 0 auto; font-size: .95rem; }

/* ---------- G · Complete solution includes ---------- */
.includes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.inc-item {
  display: flex; align-items: center; gap: 13px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  font-size: .93rem; color: var(--text); font-weight: 500;
}
.inc-item svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* ---------- J · CTA actions ---------- */
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.cta-band .cta-actions .btn { margin-top: 0; }

/* ---------- Legal disclaimer ---------- */
.disclaimer {
  max-width: 820px; margin: 0 auto; text-align: center;
  font-size: .84rem; color: var(--muted-2); line-height: 1.6;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(var(--tint),.02);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- i18n visibility ---------- */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-es] { display: none; }
html[lang="en"] [data-lang-en] { display: inline; }
html[lang="en"] li[data-lang-en], html[lang="en"] p[data-lang-en],
html[lang="en"] div[data-lang-en], html[lang="en"] span[data-lang-en].block { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .valuestrip { grid-template-columns: repeat(2, 1fr); }
  .vs-item:nth-child(2) { border-right: 0; }
  .vs-item:nth-child(1), .vs-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid, .product-grid, .grid-3, .grid-2, .grid-4, .audience, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .product--rev .product-grid { direction: ltr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; }
  .section { padding: 62px 0; }
  .footer-bottom { justify-content: flex-start; }
  /* Flow apilado en vertical */
  .flow { flex-direction: column; align-items: stretch; }
  .flow-node { max-width: none; }
  .flow-link { flex-basis: auto; padding: 6px 0; }
  .flow-link svg { transform: rotate(90deg); }
}
@media (max-width: 620px) {
  .eco-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .valuestrip { grid-template-columns: 1fr; }
  .vs-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .vs-item:last-child { border-bottom: 0; }
  .showcase { padding: 28px 18px; }
}
@media (max-width: 520px) {
  .hero-cta, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-actions .btn { justify-content: center; }
  .nav-actions .btn--sm { display: none; }
}

/* ============================================================
   PRODUCTOS (Fase 3) — catálogo comercial. Bloques aditivos.
   Reutilizan variables y patrones existentes; no redefinen clases previas.
   ============================================================ */

/* Foco visible global para accesibilidad por teclado */
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- A · Hero del catálogo ---------- */
.cat-hero { padding: 58px 0 46px; }
.cat-hero .lead { margin-bottom: 26px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.logo-strip img {
  width: 62px; height: 62px; border-radius: 16px; flex: none;
  border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0b1017, #0a0e14);
  box-shadow: 0 12px 28px -14px rgba(0,0,0,.7);
  transition: transform .2s, box-shadow .2s;
}
.logo-strip img:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(34,211,127,.4); }
.cat-hero-note {
  margin-top: 22px; font-family: var(--mono); font-size: .82rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px;
}
.cat-hero-note svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- B · Subnav interna sticky ---------- */
.subnav {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(11,18,32,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .subnav-track {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 11px 24px; max-width: var(--maxw); margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.subnav .subnav-track::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap; padding: 8px 15px; border-radius: 999px;
  font-size: .9rem; color: var(--muted); font-family: var(--mono); letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.subnav a:hover { color: var(--text); background: rgba(var(--tint),.05); }
.subnav a.active { color: #04121a; background: var(--grad); font-weight: 600; }

/* ---------- C · Esquema del ecosistema ---------- */
.schematic { display: grid; gap: 16px; max-width: 880px; margin: 34px auto 0; }
.schematic-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.schematic-row .sr-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); flex: 0 0 100%; margin-bottom: 4px;
}
.sr-node {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--tint),.03);
  font-size: .9rem; color: var(--text);
}
.sr-node svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.sr-plus { color: var(--muted-2); font-family: var(--mono); }

/* ---------- D · Sección de producto ---------- */
.prod-title { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.prod-logo {
  width: 58px; height: 58px; border-radius: 15px; flex: none;
  border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0b1017, #0a0e14);
  box-shadow: 0 12px 28px -14px rgba(0,0,0,.7);
}
.prod-title h2 { margin: 0; }
.prod-claim { font-size: 1.18rem; color: var(--text); font-weight: 600; line-height: 1.4; margin: 0 0 16px; }
.devicetag {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 22px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; color: var(--green);
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(34,211,127,.08);
}
.devicetag svg { width: 16px; height: 16px; flex: none; }
.prod-media { position: relative; }
.prod-media .devicetag {
  position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0;
  background: rgba(7,11,18,.78); backdrop-filter: blur(6px);
}
.prod-note { font-size: .8rem; color: var(--muted-2); margin: 16px 0 0; line-height: 1.55; }

/* Zona secundaria: 4 bloques compactos */
.prod-detail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.subcard {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.subcard h3 { font-size: .96rem; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.subcard h3 svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.subcard ul { list-style: none; margin: 0; padding: 0; }
.subcard li { font-size: .86rem; color: var(--muted); padding-left: 16px; position: relative; margin-bottom: 7px; line-height: 1.45; }
.subcard li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }

/* Banda "El sistema incluye" */
.device-band {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px; padding: 20px 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(var(--tint),.02);
}
.device-band .db-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-right: 4px;
}
.db-item {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--tint),.03);
}
.db-item svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- E · Tabla comparativa ---------- */
.cmp-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .9rem; }
.cmp caption { text-align: left; padding: 15px 18px 0; color: var(--muted-2); font-size: .8rem; }
.cmp th, .cmp td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th {
  font-size: .8rem; color: var(--text); background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong); vertical-align: bottom;
}
.cmp thead th .th-logo { width: 34px; height: 34px; border-radius: 9px; margin: 0 auto 7px; border: 1px solid var(--line-strong); }
.cmp tbody th {
  text-align: left; font-weight: 500; color: var(--muted);
  position: sticky; left: 0; background: var(--bg-2); z-index: 1; min-width: 190px;
}
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--bg-3); }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .opt { color: var(--amber); font-weight: 600; }
.cmp .na { color: var(--muted-2); }
.cmp-hint { display: none; font-family: var(--mono); font-size: .78rem; color: var(--muted-2); margin: 12px 0 0; }
.cmp-hint svg { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- F · FAQ acordeón ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.4;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; cursor: pointer;
}
.faq-q .ic { flex: none; width: 20px; height: 20px; color: var(--green); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a > div { padding: 0 22px 20px; color: var(--muted); font-size: .94rem; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---------- G · "¿Ya dispones de hardware?" ---------- */
.sw-aside {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 30px 34px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--grad-soft);
}
.sw-aside .sw-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(var(--tint),.05); border: 1px solid var(--line-strong);
}
.sw-aside .sw-icon svg { width: 26px; height: 26px; color: var(--cyan); }
.sw-aside .sw-body { flex: 1 1 340px; }
.sw-aside .sw-body h3 { margin: 0 0 .3em; }
.sw-aside .sw-body p { margin: 0; font-size: .94rem; }
.sw-aside .btn { flex: none; }

/* ---------- Responsive productos ---------- */
@media (max-width: 1000px) {
  .prod-detail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .subnav { top: 68px; }
  .cmp-hint { display: block; }
  .prod-media .devicetag { position: static; margin: 0 0 14px; background: rgba(34,211,127,.08); backdrop-filter: none; }
}
@media (max-width: 620px) {
  .prod-detail { grid-template-columns: 1fr; }
  .sw-aside { padding: 24px; }
}

/* ============================================================
   NOSOTROS · componentes reutilizables
   ============================================================ */

/* Proceso por fases (E · Cómo desarrollamos) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--mono); font-weight: 700; font-size: 1rem; color: #06210f; background: var(--grad);
}
.step h3 { font-size: .98rem; margin-bottom: .45em; }
.step p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Lista de beneficios con check (F · Tecnología) */
.check-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; color: var(--text); line-height: 1.5; }
.check-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }

/* Frase destacada (I · Visión) */
.pullquote {
  margin: 30px auto 18px; max-width: 22ch; text-align: center;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
}

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } }

/* ============================================================
   CONTACTO · formulario, selector de objetivo y validación
   ============================================================ */

/* Agrupación semántica de campos */
.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset legend {
  padding: 0; margin: 0 0 14px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted-2); font-family: var(--mono);
}
.req { color: var(--green); }

/* Selector de objetivo (radios tipo tarjeta) */
.objetivo-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.objetivo-opt { position: relative; display: block; cursor: pointer; }
.objetivo-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.objetivo-card {
  display: block; height: 100%; padding: 16px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--panel);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.objetivo-opt:hover .objetivo-card { border-color: var(--green); }
.objetivo-opt input:checked + .objetivo-card {
  border-color: var(--green); background: var(--grad-soft);
}
.objetivo-opt input:focus-visible + .objetivo-card { outline: 2px solid var(--green); outline-offset: 2px; }
.objetivo-t { display: block; font-weight: 700; font-size: .96rem; margin-bottom: 4px; }
.objetivo-d { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* Pistas y avisos de campo */
.field-hint { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
.field-hint--warn { color: var(--muted-2); margin: 8px 0 0; }

/* Grupo de checkboxes (soluciones) */
.check-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-opt, .consent-opt {
  display: flex; align-items: flex-start; gap: 10px; font-size: .92rem;
  color: var(--text); line-height: 1.4; cursor: pointer;
}
.check-opt { padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); transition: border-color .2s ease; }
.check-opt:hover { border-color: var(--line-strong); }
.check-opt input, .consent-opt input { margin-top: 2px; flex: none; width: 17px; height: 17px; accent-color: var(--green); }
.consent-opt { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.consent-opt a { color: var(--green); text-decoration: underline; }

/* Estados de error accesibles (no solo color) */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e5484d; }
.field-error { margin: 6px 0 0; font-size: .82rem; color: #ff6b6e; display: flex; align-items: center; gap: 6px; }
.field-error::before { content: "⚠"; font-size: .9rem; }
.form-errors {
  padding: 16px 18px; border: 1px solid #e5484d; border-radius: var(--radius-sm);
  background: rgba(229,72,77,.08); color: var(--text);
}
.form-errors ul { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
.form-errors a { color: var(--green); }
.form-note { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
.form-note.is-ok { color: var(--green); }

/* Panel de confianza: pasos apilados en vertical */
.steps--stack { grid-template-columns: 1fr; gap: 14px; }
.steps--stack .step { padding: 18px 18px; }
.steps--stack .step-n { margin-bottom: 12px; }

@media (max-width: 620px) {
  .objetivo-selector { grid-template-columns: 1fr; }
  .check-group { grid-template-columns: 1fr; }
}


/* ============================================================
   MODO CLARO (Dia) . html[data-theme="light"]
   Solo se sobreescriben variables y las pocas superficies fijadas
   en oscuro. Mayor especificidad que :root.
   ============================================================ */
html[data-theme="light"] {
  --tint: 18, 32, 54;
  --bg: #eef2f7;
  --bg-2: #e5ebf3;
  --bg-3: #dae3ef;
  --panel: #ffffff;
  --panel-2: #f4f8fd;
  --text: #14233b;
  --muted: #4c5d73;
  --muted-2: #6a7c92;
  --grad-soft: linear-gradient(135deg, rgba(34,211,127,.16), rgba(43,143,255,.14));
  --shadow: 0 18px 44px -22px rgba(20,40,70,.22);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(34,211,127,.10), transparent 60%),
    radial-gradient(1000px 640px at 100% 2%, rgba(43,143,255,.11), transparent 55%),
    radial-gradient(900px 700px at 50% 115%, rgba(124,92,255,.07), transparent 60%),
    var(--bg);
}
html[data-theme="light"] body::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%3E%3Cg%20fill='none'%20stroke='rgba(38,66,104,0.42)'%20stroke-width='1'%3E%3Cpath%20d='M120%20120L0%200M120%20120L240%200M120%20120L0%20240M120%20120L240%20240M120%20120L120%200M120%20120L0%20120M120%20120L240%20120M120%20120L120%20240'/%3E%3C/g%3E%3Cg%20fill='rgba(22,120,88,0.60)'%3E%3Ccircle%20cx='120'%20cy='120'%20r='2.2'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='2.2'/%3E%3Ccircle%20cx='240'%20cy='0'%20r='2.2'/%3E%3Ccircle%20cx='0'%20cy='240'%20r='2.2'/%3E%3Ccircle%20cx='240'%20cy='240'%20r='2.2'/%3E%3Ccircle%20cx='120'%20cy='0'%20r='1.5'/%3E%3Ccircle%20cx='0'%20cy='120'%20r='1.5'/%3E%3Ccircle%20cx='240'%20cy='120'%20r='1.5'/%3E%3Ccircle%20cx='120'%20cy='240'%20r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .42;
}
html[data-theme="light"] .site-header { background: rgba(255,255,255,.72); }
html[data-theme="light"] .subnav { background: rgba(238,242,247,.9); }

/* ---------- Conmutador de tema (Dia/Noche) ---------- */
.theme-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.theme-toggle button { background: transparent; border: 0; color: var(--muted-2); padding: 6px 11px; cursor: pointer; transition: .2s; display: flex; align-items: center; }
.theme-toggle button svg { width: 16px; height: 16px; display: block; }
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button.active { background: var(--grad); color: #04121a; }
@media (max-width: 560px) { .theme-toggle button { padding: 6px 9px; } }


/* ===== Páginas legales (aviso legal / privacidad) ===== */
.legal-doc h1 { margin: 6px 0 10px; }
.legal-doc .lead { margin-bottom: 22px; }
.legal-doc h2 { margin: 34px 0 10px; font-size: 1.22rem; }
.legal-doc p { color: var(--muted); line-height: 1.7; }
.legal-doc a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .check-list { margin: 10px 0 6px; }
.legal-doc .disclaimer { margin: 18px 0; }
