:root {
  --navy: #1b2e50;
  --navy-900: #132440;
  --navy-950: #0f1c33;
  --orange: #e8872e;
  --orange-700: #c2410c;
  --ink: #101828;
  --muted: #475569;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --max: 1160px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Poppins', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-700);
  font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1b1006; }
.btn-primary:hover { background: #ef9a4c; }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 20, 38, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
/* Logotipo: "Well" + isotipo como la "O" + "ps", con MONITOR debajo */
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: #fff; }
.logo-word {
  font-family: 'Poppins', var(--sans); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.035em;
  display: block; white-space: nowrap;
}
.logo .logo-o { display: inline-block; width: .74em; height: .74em; margin: 0 .01em 0 .03em; vertical-align: baseline; position: relative; top: .1em; }
.logo-sub {
  font-family: 'Poppins', var(--sans); font-weight: 600;
  font-size: .5rem; letter-spacing: .5em;
  color: #a9b4c6; margin-top: 4px; padding-left: .1em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 9px 16px; font-size: .88rem; }
.nav .btn-primary { color: #1b1006; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(241,141,26,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.12rem; color: #cbd5e1; max-width: 34em; }
.hero .eyebrow { color: var(--orange); }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* Strip */
.strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy); font-size: .95rem; }
.strip svg { flex: none; color: var(--orange); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: #cbd5e1; box-shadow: 0 12px 30px rgba(16,24,40,.06); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; margin-bottom: 20px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Showcase */
.showcase { background: var(--bg-soft); }
.shot-main { border-radius: 16px; box-shadow: 0 24px 60px rgba(16,24,40,.14); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.shots figure, .shot-figure { margin: 0; }
.shots img { border-radius: 14px; box-shadow: 0 14px 40px rgba(16,24,40,.10); }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
figcaption strong { color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--bg-soft); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: .85rem; color: var(--orange-700); font-weight: 600;
}
.step h3 { font-size: 1.15rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Security + Email */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: 18px; padding: 40px; }
.panel h2 { font-size: 1.7rem; margin: 12px 0 16px; }
.panel ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; }
.panel li svg { flex: none; margin-top: 3px; }
.panel-dark { background: var(--navy-900); color: #e2e8f0; }
.panel-dark .eyebrow { color: var(--orange); }
.panel-dark h2 { color: #fff; }
.panel-dark li svg { color: var(--orange); }
.panel-light { background: #fff; border: 1px solid var(--line); }
.panel-light p, .panel-light li { color: var(--muted); }
.panel-light li strong { color: var(--ink); }
.panel-light li svg { color: var(--navy); }
.note { font-size: .88rem; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

/* CTA */
.cta {
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(241,141,26,.22), transparent 60%),
    var(--navy-950);
  color: #fff; text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta p { color: #cbd5e1; max-width: 560px; margin: 0 auto 30px; }
.cta .contact-line { margin-top: 22px; font-family: var(--mono); font-size: .9rem; color: #94a3b8; }
.cta .contact-line a { color: #fff; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.copy-btn {
  margin-left: 8px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #cbd5e1;
  font: inherit; font-size: .8rem; cursor: pointer;
}
.copy-btn:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { background: #050c17; color: #94a3b8; padding: 48px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: .85rem; margin: 0 0 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { text-decoration: underline; }

/* Legal pages */
.legal-hero { background: var(--navy-950); color: #fff; padding: 64px 0 48px; }
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 12px; }
.legal-hero p { color: #94a3b8; margin-top: 10px; }
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #334155; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }

/* Responsive */

/* Lamina anatomica (Fig. 1) */
.fig {
  margin: 0; position: relative;
  background: #f7f7f4; color: #2b3138;
  border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.fig-head, .fig-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7480;
}
.fig-head { padding: 0 2px 10px; }
.fig-body {
  border: 1px solid #d9dad4; border-radius: 10px; background: #fbfbf9;
  overflow: hidden; cursor: crosshair;
}
.anatomy { display: block; width: 100%; height: auto; }
.fig-foot { padding: 10px 2px 0; flex-wrap: nowrap; min-height: 38px; }
.fig-status, .fig-note { flex: none; }
#wo-status { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fig-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border: 1px solid #d9dad4; border-radius: 999px; background: #fff; color: #2b3138; font-weight: 600;
}
#wo-status { color: #2b3138; font-weight: 600; }

/* Sensores sobre el dibujo */
.fig-body { position: relative; cursor: default; container-type: inline-size; }
@container (max-width: 460px) {
  .tag-name { display: none; }
  .sensor-tag[data-dir="l"] { transform: translate(calc(-100% - 10px), -50%); }
}
.sensor .sensor-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; opacity: .25; }
.sensor.is-active .sensor-ring { opacity: 1; }
@keyframes ring { 0% { transform: scale(.6); } 100% { transform: scale(1.5); opacity: 0; } }
.sensor-tag {
  position: absolute; z-index: 2; white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .02em; color: #2b3138;
  background: #fff; border: 1px solid #d9dad4; border-radius: 6px; padding: 3px 7px;
  box-shadow: 0 2px 6px rgba(16,24,40,.06);
}
.sensor-tag b { color: var(--orange-700); margin-right: 3px; }
.sensor-tag[data-dir="u"] { transform: translate(-50%, calc(-100% - 12px)); }
.sensor-tag[data-dir="d"] { transform: translate(-50%, 14px); }
.sensor-tag[data-dir="l"] { transform: translate(calc(-100% - 14px), -50%); }

/* Panel de senales y metricas */
.fig-data {
  margin-top: 10px; border: 1px solid #d9dad4; border-radius: 10px; background: #fff;
  padding: 10px 12px; display: grid; gap: 6px;
}
.sig { display: grid; grid-template-columns: 9.5rem 1fr 5.2rem; align-items: center; gap: 10px; }
.sig-name { font-family: var(--mono); font-size: .68rem; color: #4a5260; white-space: nowrap; }
.sig-name b { color: var(--orange-700); margin-right: 4px; }
.spark { width: 100%; height: 26px; display: block; background: linear-gradient(#f3f4f2 1px, transparent 1px) 0 50% / 100% 50%; }
.spark polyline { fill: none; stroke: var(--navy); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sig:nth-child(3) .spark polyline { stroke: var(--orange); }
.sig-val { white-space: nowrap; font-family: var(--mono); font-size: .74rem; font-weight: 600; text-align: right; color: #2b3138; font-variant-numeric: tabular-nums; }
.kpis { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid #ecece7; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpis div { min-width: 0; }
.kpis dt { font-size: .62rem; color: #6b7480; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); line-height: 1.3; }
.kpis dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.fig-note { color: #8a919b; }

/* Accesibilidad */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--orange); color: #1b1006; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .features, .steps, .shots, .footer-grid { grid-template-columns: 1fr; }
  .strip ul { grid-template-columns: 1fr; }
  .panel { padding: 28px 22px; }
    .site-footer ul a, .footer-bottom a { display: inline-block; padding: 6px 0; }
  .nav .btn-primary { display: none; }
  .fig { padding: 10px; }
  .sig { grid-template-columns: 1fr auto; grid-template-areas: "name val" "spark spark"; gap: 2px 8px; }
  .sig-name { grid-area: name; }
  .sig-val { grid-area: val; }
  .spark { grid-area: spark; height: 22px; }
  .tag-name { display: none; }
  .sensor-tag[data-dir="l"] { transform: translate(calc(-100% - 10px), -50%); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sensor-tag { font-size: .58rem; padding: 2px 5px; }
  .logo-word { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .live-dot { animation: none; }
  .sensor .sensor-ring { animation: none; }
}
