/* =========================================================
   Operalis Flota — sitio del producto (operalis.tech/flota)
   ========================================================= */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}
:root {
  --navy-950: #040C1B;
  --navy-900: #071630;
  --navy-850: #0A1D3D;
  --navy-800: #0E2650;
  --brand: #0B2559;
  --cyan: #18AEF0;
  --cyan-600: #0796DC;
  --cyan-700: #0577B0;
  --ink: #0B1B33;
  --muted: #4B5D78;
  --muted-on-dark: #A9B8CF;
  --line: #DCE5F0;
  --line-dark: rgba(255,255,255,.10);
  --bg: #FFFFFF;
  --bg-soft: #F1F5FA;
  --ok: #22C55E;
  --warn: #F5B000;
  --bad: #EF4444;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(7,22,48,.06), 0 12px 32px -12px rgba(7,22,48,.18);
  --shadow-lg: 0 30px 80px -30px rgba(2,10,25,.55);
  --wrap: 1200px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--navy-950); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Tipografía display (eco de las piezas gráficas) ---------- */
.display {
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -.005em;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(1.9rem, 3.9vw, 3.2rem); }
.display--sm { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.08; }
.accent { color: var(--cyan); }
.light .accent, .soft .accent { color: var(--cyan-600); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted-on-dark); max-width: 60ch; }
.lead--dark { color: var(--muted); }
.lead a { color: var(--cyan-700); font-weight: 600; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan-700); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--cyan); }
.kicker--on-dark { color: var(--cyan); }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #D7E2F2; margin-bottom: 28px;
}
.eyebrow i, .footer__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--cyan); color: var(--navy-950);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(24,174,240,.7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: #3CC2FF; box-shadow: 0 16px 36px -12px rgba(24,174,240,.85); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.dark { background: var(--navy-900); color: #fff; }
.light { background: var(--bg); }
.soft { background: var(--bg-soft); }
.center-head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(48px, 6vw, 72px); }
.center-head .kicker { margin-bottom: 0; }

.glow { position: absolute; inset: auto auto -30% -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(24,174,240,.16), transparent 70%); pointer-events: none; }
.glow--right { inset: -30% -15% auto auto; }
.dark::before { /* línea de ruta discontinua, motivo de las piezas */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 14%; height: 2px; transform: rotate(-6deg);
  background: repeating-linear-gradient(90deg, rgba(24,174,240,.22) 0 28px, transparent 28px 56px);
  pointer-events: none;
}
.hero.dark::before { display: none; }
.dark > .wrap { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { color: #fff; display: block; }
.wordmark { height: 44px; width: auto; color: currentColor; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: #DCE6F5; text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--cyan); }
.nav.is-scrolled { background: rgba(4,12,27,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 130px 0 70px; background: var(--navy-950); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: scale(1.03); animation: heroZoom 18s var(--ease) both; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,12,27,.98) 0%, rgba(4,12,27,.94) 32%, rgba(4,12,27,.6) 48%, rgba(4,12,27,.12) 66%, rgba(4,12,27,0) 80%),
    linear-gradient(0deg, rgba(4,12,27,.95) 0%, rgba(4,12,27,0) 30%),
    linear-gradient(180deg, rgba(4,12,27,.55) 0%, rgba(4,12,27,0) 18%); }
.hero__inner { position: relative; z-index: 1; width: min(var(--wrap), 100% - 40px); }
.hero__copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.6rem); margin-bottom: 26px; }
.hero .lead { margin-bottom: 18px; max-width: 56ch; }
.hero .lead:last-of-type { margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { display: flex; flex-wrap: wrap; row-gap: 12px; max-width: 900px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.hero__chips::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--cyan); }
.hero__chips li { display: flex; align-items: center; gap: 10px; padding: 4px 22px 4px 0; margin-right: 22px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #E6EEF9; border-right: 1px solid rgba(255,255,255,.16); }
.hero__chips li:last-child { border-right: 0; margin-right: 0; }
.hero__chips .i { width: 26px; height: 26px; color: #fff; stroke-width: 1.5; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.03); } }

/* ---------- Problema ---------- */
.problem { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.problem__head .display { margin-bottom: 22px; }
.problem__cards { display: grid; gap: 16px; }
.pcard { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 4px; align-items: start; padding: 24px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.pcard:hover { transform: translateX(6px); border-color: rgba(24,174,240,.5); }
.pcard__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: #fff; }
.pcard__icon .i { width: 26px; height: 26px; }
.pcard h3 { font-size: 1.08rem; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.pcard p { color: var(--muted); font-size: .98rem; }

/* ---------- Qué controla ---------- */
.scope { display: grid; grid-template-columns: 1fr 260px 1fr; grid-template-areas: "a hub b" "c c c"; gap: 24px; align-items: center; }
.scope > .scard:nth-of-type(1) { grid-area: a; }
.scope > .scard:nth-of-type(2) { grid-area: b; }
.scope__hub { grid-area: hub; }
.scard--wide { grid-area: c; max-width: 620px; justify-self: center; width: 100%; }
.scard { background: var(--bg); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.scard header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: #fff; }
.scard h3 { font-size: 1.05rem; font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.scard li { display: flex; align-items: center; gap: 14px; padding: 7px 0; color: var(--ink); font-weight: 500; }
.scard li .i { color: var(--cyan-700); }
.scard .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.scard li.more { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--cyan-700); font-weight: 600; font-style: italic; }
.scard li.more--wide { grid-column: 1 / -1; }


.scope__hub { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hub { width: 100%; height: auto; transform: rotate(-90deg); }
.hub__track { fill: none; stroke: var(--line); stroke-width: 3; }
.hub__arc { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .2s; }
.is-in .hub__arc, .scope__hub.is-in .hub__arc { stroke-dasharray: 72 100; }
.hub__inner { fill: var(--navy-900); }
.hub__label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; text-align: center; }
.hub__label .i { width: 34px; height: 34px; color: var(--cyan); }
.hub__label strong { font-stretch: 125%; font-weight: 850; text-transform: uppercase; font-size: 1.05rem; line-height: 1.05; max-width: 9ch; }

/* ---------- Agente IA ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px 22px 24px; display: grid; gap: 14px; align-content: start; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -16px; width: 14px; height: 14px; border-top: 2.5px solid var(--cyan); border-right: 2.5px solid var(--cyan); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy-900); font-weight: 800; font-size: .95rem; }
.step--ai { background: linear-gradient(180deg, rgba(24,174,240,.22), rgba(24,174,240,.06)); border-color: rgba(24,174,240,.45); }
.step--ai .step__n { background: var(--cyan); }
.step h3 { font-size: .98rem; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.step p { color: var(--muted-on-dark); font-size: .95rem; }
.step__art { display: flex; gap: 10px; height: 56px; align-items: center; }
.ftype { display: grid; place-items: center; width: 48px; height: 54px; border-radius: 10px; background: #fff; color: var(--navy-900); font-weight: 800; font-size: .78rem; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.ftype .i { width: 26px; height: 26px; }
.ftype--mail { color: var(--cyan-700); }
.ftype--pdf { background: #E5322D; color: #fff; }
.ftype--cal, .ftype--bell { width: 56px; height: 56px; border-radius: 14px; background: rgba(24,174,240,.14); color: var(--cyan); box-shadow: none; }
.ftype--cal .i, .ftype--bell .i { width: 30px; height: 30px; }
.bot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cyan); color: var(--navy-950); box-shadow: 0 0 0 8px rgba(24,174,240,.16), 0 0 40px rgba(24,174,240,.6); animation: pulse 2.6s ease-in-out infinite; }
.bot .i { width: 30px; height: 30px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(24,174,240,.06), 0 0 50px rgba(24,174,240,.75); } }

.flow { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; margin-top: clamp(72px, 9vw, 110px); }
.flow__copy .display { margin-bottom: 30px; }
.feat { display: grid; gap: 26px; }
.feat li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.feat__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(145deg, #1EA9F0, #0A5FB4); color: #fff; box-shadow: 0 10px 26px -10px rgba(24,174,240,.8); }
.feat__icon .i { width: 26px; height: 26px; }
.feat h4 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.feat p { color: var(--muted-on-dark); font-size: .97rem; }

.flow__demo { position: relative; display: grid; gap: 0; }
.mail { position: relative; z-index: 2; width: min(380px, 88%); justify-self: end; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-lg); font-size: .86rem; }
.mail dl { margin: 0 0 14px; display: grid; gap: 4px; }
.mail dl div { display: flex; gap: 8px; }
.mail dt { color: var(--muted); min-width: 52px; }
.mail dd { margin: 0; font-weight: 600; }
.mail__files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mail__files li { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.mail__files .i { width: 22px; height: 22px; color: var(--brand); }
.flow__arrow { position: relative; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin: -14px 0 -14px 18%; border-radius: 50%; background: var(--cyan); color: var(--navy-950); box-shadow: 0 0 0 8px rgba(24,174,240,.18), 0 0 30px rgba(24,174,240,.6); }
.flow__arrow .i { width: 26px; height: 26px; }
.table { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 22px 14px; box-shadow: var(--shadow-lg); overflow-x: auto; }
.table__title { font-weight: 800; font-size: 1rem; margin-bottom: 12px; color: var(--brand); }
.table table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 440px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; background: var(--bg-soft); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.tag--ok { background: #DCFCE7; color: #166534; }
.reveal.is-in .table tbody tr { animation: rowIn .5s var(--ease) both; }
.reveal.is-in .table tbody tr:nth-child(1) { animation-delay: .5s; }
.reveal.is-in .table tbody tr:nth-child(2) { animation-delay: .75s; }
.reveal.is-in .table tbody tr:nth-child(3) { animation-delay: 1s; }
.reveal.is-in .table tbody tr:nth-child(4) { animation-delay: 1.25s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.banner { margin: clamp(64px, 8vw, 96px) auto 0; max-width: 900px; text-align: center; padding: 26px 30px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #0A78AC, #18AEF0); color: #fff; font-stretch: 125%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.2; box-shadow: 0 30px 60px -30px rgba(24,174,240,.8); }
.banner span { color: var(--navy-950); }

/* ---------- Mantenimiento ---------- */
.maint { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.maint__copy .display { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mcard { display: grid; align-content: start; gap: 12px; padding: 28px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.mcard:hover { transform: translateY(-4px); border-color: rgba(24,174,240,.5); }
.mcard:nth-child(2) { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.mcard__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(24,174,240,.12); color: var(--cyan-700); }
.mcard:nth-child(2) .mcard__icon { background: rgba(24,174,240,.18); color: var(--cyan); }
.mcard__icon .i { width: 26px; height: 26px; }
.mcard h3 { font-size: 1.2rem; font-weight: 850; font-stretch: 120%; text-transform: uppercase; color: var(--brand); }
.mcard:nth-child(2) h3 { color: #fff; }
.mcard > p { color: var(--muted); font-size: .97rem; }
.mcard:nth-child(2) > p { color: var(--muted-on-dark); }
.mcard ul { display: grid; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.mcard:nth-child(2) ul { border-color: var(--line-dark); }
.mcard li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; font-weight: 500; }
.mcard li .i { margin-top: 2px; color: var(--cyan-600); stroke-width: 2.4; width: 1.1em; height: 1.1em; }
.config { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: clamp(40px, 5vw, 56px); padding: 24px 28px; border-radius: var(--radius-lg); background: var(--bg); border: 1px dashed rgba(7,150,220,.45); }
.config__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--navy-950); }
.config__icon .i { width: 26px; height: 26px; }
.config h3 { font-size: 1.05rem; font-weight: 850; font-stretch: 118%; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.config p { color: var(--muted); }

/* ---------- Plataforma ---------- */
.platform { display: grid; grid-template-columns: 210px 1fr 210px; gap: 32px; align-items: center; }
.pillars { display: grid; gap: 48px; }
.pillar__n { display: block; font-stretch: 125%; font-weight: 850; font-size: 1.9rem; line-height: 1; color: var(--cyan-600); margin-bottom: 8px; }
.pillars h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 850; font-stretch: 118%; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.pillars h3 .i { color: var(--cyan-700); }
.pillars p { color: var(--muted); font-size: .97rem; }
.pillars--right { text-align: left; }

.device { position: relative; padding-right: 70px; padding-bottom: 20px; }
.laptop { border-radius: 14px; background: var(--navy-950); padding: 0 0 10px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #1B2A46; }
.laptop__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0D1A33; }
.laptop__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3A5A; }
.laptop__bar span { margin-left: 12px; font-size: .7rem; color: #7F90AD; background: #071630; padding: 3px 12px; border-radius: 6px; }
.app { display: grid; grid-template-columns: 130px 1fr; min-height: 340px; background: #EEF3F9; }
.app__side { background: var(--navy-900); padding: 16px 12px; display: grid; align-content: start; gap: 4px; }
.wordmark--app { height: 11px; color: #fff; margin: 0 6px 16px; }
.app__side span { font-size: .72rem; color: #9FB0CB; padding: 7px 8px; border-radius: 7px; }
.app__side .is-active { background: rgba(24,174,240,.16); color: #fff; }
.app__main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; font-size: .72rem; color: var(--ink); }
.kpi { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(7,22,48,.06); }
.kpi > p { font-weight: 700; color: var(--brand); }
.kpi strong { display: block; font-size: 1.05rem; font-weight: 800; margin: 2px 0 6px; }
.kpi strong span { font-size: 1.5rem; }
.kpi li { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.kpi li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kpi li.ok::before, .dot.ok { background: var(--ok); }
.kpi li.warn::before, .dot.warn { background: var(--warn); }
.kpi li.bad::before, .dot.bad { background: var(--bad); }
.kpi li.bad { color: #B91C1C; }
.kpi table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.kpi td { padding: 4px 2px; border-bottom: 1px solid #EEF2F7; white-space: nowrap; }
.kpi td:first-child { display: flex; align-items: center; gap: 6px; }
.kpi td:last-child { color: var(--muted); text-align: right; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.kpi--donut { display: grid; justify-items: center; align-content: start; }
.kpi--donut > p { justify-self: start; }
.donut { width: 128px; margin-top: 4px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut__bg { stroke: #EEF2F7; }
.donut__ok, .donut__warn, .donut__bad { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease) .3s; }
.donut__ok { stroke: var(--ok); }
.donut__warn { stroke: var(--warn); }
.donut__bad { stroke: var(--bad); }
.is-in .donut__ok { stroke-dasharray: 85 100; }
.is-in .donut__warn { stroke-dasharray: 95 100; }
.is-in .donut__bad { stroke-dasharray: 100 100; }
.donut text { transform: rotate(90deg); transform-origin: 21px 21px; text-anchor: middle; fill: var(--ink); }
.donut__v { font-size: 7px; font-weight: 800; }
.donut__l { font-size: 3.2px; fill: var(--muted) !important; }

.phone { position: absolute; right: 0; bottom: 0; width: 170px; background: var(--navy-950); border-radius: 26px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid #22314F; }
.phone__head { background: var(--navy-900); border-radius: 18px 18px 0 0; padding: 14px 12px 10px; }
.phone__head .wordmark--app { margin: 0 auto; height: 10px; }
.phone__title { background: var(--navy-900); color: #fff; font-size: .78rem; font-weight: 700; padding: 0 12px 10px; }
.phone ul { background: #fff; border-radius: 0 0 18px 18px; padding: 6px 8px 10px; }
.phone li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid #EEF2F7; font-size: .66rem; line-height: 1.3; }
.phone li:last-child { border-bottom: 0; }
.phone li .dot { margin-top: 4px; }
.phone li div { display: grid; }
.phone li strong { font-size: .72rem; }
.phone li span { color: var(--muted); }
.phone li em { font-style: normal; color: #B45309; font-weight: 600; }

.tagline { margin-top: clamp(56px, 7vw, 80px); text-align: center; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; color: var(--brand); }
.tagline strong { font-stretch: 125%; font-weight: 850; color: var(--cyan-600); }

/* ---------- Beneficios ---------- */
.benefits__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.benefits__grid .display { margin-bottom: 20px; }
.benefits__grid .lead { margin-bottom: 34px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.bens { display: grid; gap: 14px; }
.bens li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); transition: background .25s, border-color .25s; }
.bens li:hover { background: rgba(24,174,240,.07); border-color: rgba(24,174,240,.35); }
.ben__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); }
.ben__icon .i { width: 24px; height: 24px; }
.bens h3 { font-size: 1rem; font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.bens p { color: var(--muted-on-dark); font-size: .96rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 84px); border-radius: var(--radius-lg); background: var(--navy-950); border: 1px solid var(--line-dark); }
.stats li { display: grid; gap: 4px; padding: 28px 30px; border-right: 1px solid var(--line-dark); }
.stats li:last-child { border-right: 0; }
.stats strong { font-stretch: 125%; font-weight: 850; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1; color: var(--cyan); }
.stats span { color: var(--muted-on-dark); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq .display { margin-bottom: 20px; }
.faq > div:first-child { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(7,22,48,.04); transition: border-color .2s; }
.qa[open] { border-color: rgba(24,174,240,.55); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.04rem; color: var(--brand); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--cyan-600); border-bottom: 2.5px solid var(--cyan-600); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(1200px 600px at 85% 0%, #0E2A5A 0%, var(--navy-900) 55%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__copy .display { margin-bottom: 22px; }
.contact__copy .lead { margin-bottom: 30px; }
.contact__points { display: grid; gap: 12px; margin-bottom: 34px; }
.contact__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__points .i { color: var(--cyan); }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(24,174,240,.5); }
.contact__mail .i { color: var(--cyan); }
.contact__mail a { text-decoration: none; font-weight: 600; }
.contact__mail a:hover { color: var(--cyan); }

.form { display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); backdrop-filter: blur(6px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 600; color: #CFDBEC; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(4,12,27,.55); color: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9FB0CB 50%), linear-gradient(135deg, #9FB0CB 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field ::placeholder { color: #6E7F9C; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(24,174,240,.18); }
.field.is-invalid input, .field.is-invalid select { border-color: #F87171; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #CFDBEC; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.check a { color: var(--cyan); }
.check.is-invalid { color: #FCA5A5; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.4em; font-size: .95rem; }
.form__status.is-ok { color: #86EFAC; }
.form__status.is-err { color: #FCA5A5; }
.form__status a { color: inherit; }
.cf-turnstile { min-height: 65px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #C9D5E7; padding: 56px 0 28px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.wordmark--footer { height: 58px; color: #fff; margin-bottom: 12px; }
.footer__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #8FA1BD; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links a { text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: var(--cyan); }
.footer__by { text-decoration: none; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); font-size: .9rem; color: #A9B8CF; }
.footer__by strong { display: block; color: #fff; font-stretch: 125%; font-weight: 800; letter-spacing: .12em; font-size: 1.1rem; }
.footer__legal { padding-top: 22px; font-size: .85rem; color: #7F90AD; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__credit a { color: inherit; }
.footer__credit a:hover { color: var(--cyan); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .hero__copy { max-width: 600px; }
}
@media (max-width: 1200px) {
  .hero__shade { background:
      linear-gradient(90deg, rgba(4,12,27,.97) 0%, rgba(4,12,27,.92) 42%, rgba(4,12,27,.6) 60%, rgba(4,12,27,.15) 82%, rgba(4,12,27,0) 100%),
      linear-gradient(0deg, rgba(4,12,27,.95) 0%, rgba(4,12,27,0) 30%); }
}
@media (max-width: 1080px) {
  .platform { grid-template-columns: 1fr 1fr; }
  .device { grid-column: 1 / -1; order: -1; margin-bottom: 24px; }
  .pillars { gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: rgba(4,12,27,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 18px; }
  .nav.menu-open { background: rgba(4,12,27,.97); }
  .problem, .flow, .benefits__grid, .faq, .contact__grid, .maint { grid-template-columns: 1fr; }
  .faq > div:first-child { position: static; }
  .scope { grid-template-columns: 1fr 1fr; grid-template-areas: "hub hub" "a b" "c c"; }
  .scope__hub { width: 220px; justify-self: center; }
  .hero__shade { background:
      linear-gradient(90deg, rgba(4,12,27,.97) 0%, rgba(4,12,27,.85) 50%, rgba(4,12,27,.45) 100%),
      linear-gradient(0deg, rgba(4,12,27,.95) 0%, rgba(4,12,27,0) 30%); }
  .hero__chips { margin-top: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero { padding: 120px 0 64px; }
  .hero__chips { flex-direction: column; }
  .hero__bg img { object-position: 62% 30%; }
  .hero__shade { background: linear-gradient(0deg, rgba(4,12,27,.97) 0%, rgba(4,12,27,.84) 45%, rgba(4,12,27,.6) 100%); }
  .hero__chips li { font-size: .74rem; padding: 2px 0; margin: 0; border-right: 0; gap: 10px; }
  .hero__chips .i { width: 22px; height: 22px; }
  .scope { grid-template-columns: 1fr; grid-template-areas: "hub" "a" "b" "c"; }
  .scard .cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .platform { grid-template-columns: 1fr; }
  .device { padding-right: 0; padding-bottom: 0; }
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__main { grid-template-columns: 1fr; }
  .phone { position: relative; margin: -40px auto 0; }
  .mail { width: 100%; }
  .flow__arrow { margin-left: auto; margin-right: auto; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .stats li:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .mcards { grid-template-columns: 1fr; }
  .config { grid-template-columns: 1fr; justify-items: start; }
  .footer__by { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Operalis: el isologo con slogan necesita un poco menos de alto en pantallas chicas */
@media (max-width: 640px) {
  .wordmark { height: 36px; }
  .wordmark--app { height: 10px; }
  .wordmark--footer { height: 48px; }
}
