:root {
  color-scheme: dark;
  --ink: #101b29;
  --panel: #162539;
  --paper: #faf7f3;
  --muted: #aab8c4;
  --ember: #ff7152;
  --blue: #90c2ff;
  --blue-button: #2867ad;
  --line: #ffffff1c;
  --shell: min(100% - 96px, 1320px);
  font-family: Inter, system-ui, sans-serif;
  color: var(--paper);
  background: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ember); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 10; transform: translateY(-160%); padding: 10px 16px; color: var(--ink); background: white; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: #101b29f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: flex; gap: 11px; align-items: center; }
.identity img { object-fit: contain; }
.identity strong { display: block; font-size: 29px; line-height: .96; font-weight: 900; letter-spacing: -.065em; }
.identity small { display: block; margin-top: 5px; color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .15em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); color: var(--muted); font-size: .9rem; font-weight: 650; }
.main-nav a { position: relative; padding: 28px 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--paper); }
.main-nav a[aria-current]::after { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--blue); content: ''; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 0 18px; border-radius: 8px; font-size: .9rem; font-weight: 750; transition: background .2s, color .2s, transform .2s; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.entry { border: 1px solid #90c2ff75; color: #d8eaff; }
.entry:hover { background: #90c2ff1d; }
.entry-icon { position: relative; display: inline-block; width: 12px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.entry-icon::before { position: absolute; content: ''; top: -6px; left: 2px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-height: min(676px, calc(100svh - 76px)); background: radial-gradient(ellipse at 70% 34%, #234773 0, #172a42 47%, #101b29 76%); }
.hero-image { position: absolute; inset: 0; z-index: -2; background: url('portada-antofagasta.jpg') center 58% / cover no-repeat; animation: drift 18s ease-out both; opacity: .61; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg,#101b2980 3%,#1429468c 42%,#111e32d9 100%),linear-gradient(0deg,#101b29 0%,transparent 38%,#101b2980 87%); }
@keyframes drift { from { transform: scale(1.045); } to { transform: scale(1); } }
.hero-inner { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); gap: clamp(34px, 5.5vw, 86px); padding-block: clamp(52px, 7vw, 104px) 38px; }
.hero-copy { animation: arrive .7s cubic-bezier(.18,.65,.23,1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #a8cfff; font-size: .75rem; letter-spacing: .16em; font-weight: 800; }
.accent-stroke { flex: 0 0 23px; height: 2px; background: currentColor; }
h1 { margin-top: 20px; font-size: clamp(3.3rem, 5.8vw, 6rem); max-width: 12ch; line-height: .99; letter-spacing: -.075em; font-weight: 880; text-wrap: balance; }
h1 em { color: var(--blue); font-style: normal; }
.hero-description { margin-top: 25px; max-width: 40ch; color: #d4dee5; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary { background: var(--blue-button); color: white; box-shadow: 0 7px 24px #2867ad40; }
.primary:hover { background: #215793; }
.text-button { border: 1px solid #d8e5f54f; background: #10171d83; }
.text-button:hover { background: #273542; }
.play-small { color: #ff967d; font-size: .7rem; }
.console { overflow: hidden; min-width: 0; border: 1px solid #8aa3bc4f; border-radius: 18px; background: var(--panel); box-shadow: 0 26px 58px #02070c88,0 0 0 5px #c3dfff0b; animation: arrive .8s .12s both; }
.console-top { display: flex; gap: 11px; align-items: center; padding: 13px 16px; }
.console-icon { flex: 0 0 34px; height: 34px; display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 10px; border-radius: 8px; background: #f365451e; }
.console-icon i { display: block; width: 3px; height: 7px; border-radius: 2px; background: #ff8c6d; }
.console-icon i:nth-child(2) { height: 12px; }
.console-icon i:nth-child(3) { height: 16px; }
.console-heading { min-width: 0; }
.console-heading h2 { font-size: 1rem; font-weight: 760; line-height: 1.15; }
.console-heading span { color: #adbdc9; font-size: .65rem; letter-spacing: .07em; }
.demo-label { margin-left: auto; border: 1px solid #c6a26c61; border-radius: 5px; padding: 4px 7px; background: #e5ad4e17; color: #ffcf86; font-size: .65rem; font-weight: 850; letter-spacing: .075em; }
.fleet-visual { min-height: 218px; padding: 15px 16px 17px; border-block: 1px solid #a2bfda27; background: radial-gradient(ellipse at 80% 0%,#254b7759,transparent 75%),#101c2d; }
.fleet-scope { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; color: #bed1e8; font-size: .85rem; font-weight: 720; }
.fleet-scope-pill { padding: 5px 9px; border: 1px solid #90c2ff51; border-radius: 20px; color: #b6d7ff; font-size: .76rem; }
.fleet-frame { border: 1px solid #90c2ff38; border-radius: 12px; overflow: hidden; background: #1a2b41; }
.fleet-record { display: flex; align-items: center; gap: 12px; padding: 13px; border-bottom: 1px solid #a2bfda27; }
.fleet-code { flex: 0 0 52px; min-height: 46px; display: grid; place-items: center; border: 1px solid #90c2ff5a; border-radius: 8px; background: #90c2ff18; color: #b9d8ff; font-size: .85rem; font-weight: 840; letter-spacing: .06em; }
.fleet-record h3 { font-size: 1rem; line-height: 1.19; }
.fleet-record p { margin-top: 4px; color: #c2d1e1; font-size: .77rem; }
.fleet-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fleet-metrics > div { display: grid; align-content: start; gap: 4px; padding: 11px 13px 13px; }
.fleet-metrics > div + div { border-left: 1px solid #a2bfda27; }
.fleet-metrics dt { color: #b2c3d6; font-size: .73rem; font-weight: 630; }
.fleet-metrics dd { margin: 0; color: #e6f0fc; font-weight: 820; font-size: .95rem; line-height: 1.25; }
.fleet-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #a2bfda20; }
.fleet-caption-copy small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .12em; }
.fleet-caption-copy strong { display: block; font-size: .95rem; min-height: 1.4em; }
.fleet-status { padding: 6px 9px; border-radius: 5px; background: #90c2ff1d; color: #bedcff; font-size: .72rem; font-weight: 750; text-align: center; }
.console-bottom { padding: 9px 13px; display: flex; align-items: center; gap: 10px; }
.step-track { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; }
.step { position: relative; display: grid; gap: 6px; padding: 4px 1px; justify-items: center; z-index: 0; border: 0; background: none; color: #a5b5c2; font-size: .68rem; font-weight: 650; white-space: nowrap; cursor: pointer; }
.step:not(:last-child)::after { position: absolute; content: ''; top: 8px; left: 50%; width: 100%; height: 1px; z-index: -1; background: #91b0c450; }
.step i { width: 9px; height: 9px; background: #2e414f; border: 1px solid #9eb1bd; border-radius: 50%; }
.step.active { color: #ffc2b0; }
.step.active i { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 3px #ff71522e; }
.step.done i { background: #69aa9c; border-color: #69aa9c; }
.step:hover { color: white; }
.pause { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid #9db3c340; border-radius: 6px; background: #273544; color: #e2eaf0; cursor: pointer; }
.pause:hover { background: #3b4d5d; }
.progress { height: 2px; background: #ffffff14; }
.progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--ember); }
.hero-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-block: 17px 20px; color: #bfccd5; font-size: .66rem; letter-spacing: .14em; font-weight: 800; }
.hero-footer a { display: flex; align-items: center; gap: 10px; }
.hero-footer a span { font-size: .95rem; color: var(--ember); }
.hero-footer a:hover { color: white; }
.tour { background: #18222b; border-top: 1px solid var(--line); }
.tour-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 52px; padding-block: 84px; }
.tour h2, .modules h2, .demo-section h2, .access-strip h2 { margin-top: 13px; font-weight: 850; font-size: clamp(2.2rem, 4.1vw, 4rem); letter-spacing: -.066em; line-height: 1.05; text-wrap: balance; }
.section-copy, .access-strip p:not(.eyebrow) { color: var(--muted); line-height: 1.6; max-width: 45ch; }
.tour .section-copy, .access-strip p:not(.eyebrow) { margin-top: 15px; }
.tour-list { display: grid; border-top: 1px solid #a2bfda32; }
.tour-list button { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #a2bfda32; cursor: pointer; }
.tour-list button:hover .tour-action { color: var(--ember); }
.tour-symbol { display: grid; width: 35px; height: 35px; place-items: center; color: #ff9d86; background: #f365451a; border: 1px solid #f3654540; border-radius: 7px; font-weight: 800; }
.tour-list strong { display: block; }
.tour-list small { display: block; margin-top: 4px; color: #b9c7d0; font-size: .83rem; line-height: 1.35; }
.tour-action { color: #d6e0e7; font-size: .78rem; transition: color .2s; }
.modules { padding-block: 80px; background: #10171d; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module-card { padding: 23px; border: 1px solid #91a5b72f; border-radius: 12px; background: #19232c; transition: border-color .2s, transform .2s, background .2s; }
.module-card:hover { transform: translateY(-4px); border-color: #ff715284; background: #232d37; }
.module-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #ff9b82; background: #f365451b; font-size: 1.45rem; }
.module-card h3 { margin-top: 19px; font-size: 1.1rem; }
.module-card p { margin-top: 9px; color: #b8c6d1; line-height: 1.52; font-size: .92rem; }
.demo-section { padding-block: 64px; background: #15263c; border-top: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid #90c2ff40; border-radius: 13px; background: #172433; }
.demo-card.expanded { background: linear-gradient(120deg,#243d60,#182c46); }
.demo-card h3 { margin-top: 10px; font-size: 1.25rem; }
.demo-card p:not(.eyebrow) { margin: 9px 0 20px; color: #c7d6e5; line-height: 1.55; }
.demo-card .button { margin-top: auto; white-space: normal; text-align: center; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-top: auto; }
.access-strip { padding-block: 56px; background: linear-gradient(120deg,#203755,#151f2d 70%); border-block: 1px solid var(--line); }
.access-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.access-strip h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.site-footer { padding: 23px 0; color: #aab8c4; font-size: .8rem; }
.site-footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer strong { color: var(--paper); }
.reveal.pending { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .58s ease-out, transform .58s ease-out; }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 56px, 1320px); }
  .hero-inner { gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 740px) {
  :root { --shell: calc(100% - 36px); }
  html { scroll-padding-top: 68px; }
  .header-inner { min-height: 62px; gap: 14px; }
  .identity img { width: 29px; height: 35px; }
  .identity strong { font-size: 24px; }
  .identity small { font-size: .55rem; letter-spacing: .09em; }
  .main-nav { display: none; }
  .entry { min-height: 39px; padding-inline: 13px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 44px 25px; gap: 30px; }
  .hero-image { background-position: 38% 40%; }
  .hero::after { background: linear-gradient(0deg,#101b29f5 2%,#111d30a1 65%,#101b2978); }
  h1 { font-size: clamp(3rem, 11vw, 4.7rem); }
  .hero-description { margin-top: 18px; }
  .hero-actions { margin-top: 20px; }
  .hero-footer { font-size: .6rem; letter-spacing: .07em; }
  .tour-inner, .section-intro, .demo-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .tour-inner, .modules, .demo-section { padding-block: 52px; }
  .access-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 390px) {
  .module-card { padding: 15px; }
  .tour-list button { grid-template-columns: 35px 1fr; }
  .tour-action { display: none; }
  .hero-footer span { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal.pending { opacity: 1; transform: none; }
}
