/* Levera — landing. Sin dependencias: CSS propio + Google Fonts. */

:root {
  --navy: #0b1f3a;      /* base */
  --steel: #1e3a5f;     /* secundario */
  --bone: #f4f1ea;      /* fondo (en vez de blanco) */
  --bone-2: #ebe6db;    /* tono de banda, derivado del hueso */
  --bone-3: #faf8f3;    /* superficie de la maqueta, derivado del hueso */
  --orange: #f26a1b;    /* solo botones, alertas y la punta del logo */
  --orange-dark: #d9570c;
  --concrete: #6b7280;  /* texto secundario */
  --line: rgba(11, 31, 58, 0.14);
  --line-strong: rgba(11, 31, 58, 0.28);
  --line-dark: rgba(244, 241, 234, 0.16);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --col-gap: clamp(16px, 2.4vw, 32px);
  --header-h: 68px;
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grano leve de fondo, sobre toda la página */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: multiply;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Grilla editorial de 12 columnas */
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.g12 > * { grid-column: 1 / -1; }

.mono { font-family: var(--font-mono); font-weight: 400; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: var(--bone);
  padding: 8px 14px; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }

/* Íconos de línea: mismo trazo en pantalla sin importar el tamaño */
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.ico * { vector-effect: non-scaling-stroke; }

/* ---------- Texturas ---------- */

/* Curvas de nivel (assets/topo.svg usado como máscara, se tiñe con background-color) */
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--navy);
  -webkit-mask: url("topo.svg") center / cover no-repeat;
          mask: url("topo.svg") center / cover no-repeat;
  opacity: .065;
}
.topo--light::before { background-color: var(--bone); opacity: .12; }

/* Grilla técnica tipo plano: líneas mayores cada 120 px y menores cada 24 px */
.plan-grid {
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, .085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, .085) 1px, transparent 1px),
    linear-gradient(to right, rgba(30, 58, 95, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, .04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.plan-grid--dark {
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, .07) 1px, transparent 1px),
    linear-gradient(to right, rgba(244, 241, 234, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, .03) 1px, transparent 1px);
}

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { height: 30px; width: auto; }

.client-access {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.9375rem;
  color: var(--navy); text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  transition: background-color .15s, color .15s;
}
.client-access:hover { background: var(--navy); color: var(--bone); }
.client-access .ico { width: 16px; height: 16px; }

main { padding-top: var(--header-h); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1;
  padding: 16px 28px;
  border: 0; border-radius: var(--radius);
  background: var(--orange); color: var(--navy);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-dark { background: var(--navy); color: var(--bone); }
.btn-dark:hover { background: var(--steel); }

/* ---------- 1. Hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.hero .g12 { row-gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--steel); }

.hero h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: .96; }
.hero-sub {
  margin-top: 24px; max-width: 34ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  color: var(--concrete);
}
.hero-actions { margin-top: 34px; }

@media (min-width: 980px) {
  .hero-copy { grid-column: 1 / span 5; }
  .hero-media { grid-column: 6 / -1; }
}

/* Hero con video aéreo de fondo (duotono azul marino ya aplicado al video) */
.hero--video {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: var(--bone);
  border-bottom: 0;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: center;
}
.hero--video > .wrap { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* velo para que el texto se lea: más denso a la izquierda */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.78) 38%, rgba(11,31,58,.30) 72%, rgba(11,31,58,.45) 100%),
    linear-gradient(0deg, rgba(11,31,58,.55) 0%, rgba(11,31,58,0) 30%);
}
@media (max-width: 979px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.72) 45%, rgba(11,31,58,.92) 100%); }
}
.hero--video.topo::before { z-index: 1; background-color: var(--bone); opacity: .08; }
.hero--video .eyebrow { color: rgba(244, 241, 234, .8); }
.hero--video .eyebrow::before { background: rgba(244, 241, 234, .6); }
.hero--video .hero-sub { color: rgba(244, 241, 234, .78); }
.hero--video .panel::before, .hero--video .panel::after { border-color: rgba(244, 241, 234, .55); }
.hero--video .pn { border-color: rgba(244, 241, 234, .25); box-shadow: 18px 18px 0 rgba(11, 31, 58, .55); }

/* ---------- Maqueta del panel (datos ficticios) ---------- */

.panel {
  margin: 0; position: relative;
  container-type: inline-size;
}
/* marcas de esquina tipo plano */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 1.5px solid var(--steel);
}
.panel::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }

.pn {
  background: var(--bone-3);
  border: 1px solid var(--navy);
  font-size: 12px; line-height: 1.35; color: var(--navy);
  overflow: hidden;
  user-select: none;
}
.pn .mono { font-size: 11.5px; }

.pn-top {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--bone);
  padding: 9px 12px;
}
.pn-top img { width: 16px; height: 16px; }
.pn-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.pn-tabs { display: flex; gap: 2px; margin-left: 6px; }
.pn-tabs span { padding: 3px 8px; color: rgba(244,241,234,.65); }
.pn-tabs .on { background: var(--steel); color: var(--bone); }
.pn-date { margin-left: auto; color: rgba(244,241,234,.6); }

.pn-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.pn-kpis > div { padding: 10px 12px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.pn-kpis > div:first-child { border-left: 0; }
.k-label { color: var(--concrete); font-size: 11px; }
.k-val { font-size: 20px !important; letter-spacing: -.01em; color: var(--steel); }
.pn-kpis .is-alert .k-val { color: var(--navy); }
.pn-kpis .is-alert .k-val::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 2px;
  background: var(--orange);
}

.pn-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.pn-table { padding: 4px 0 8px; border-right: 1px solid var(--line); }
.pn-head, .pn-row {
  display: grid; grid-template-columns: 10px 1fr 64px 46px 92px; gap: 8px; align-items: center;
  padding: 6px 12px;
}
.pn-head { color: var(--concrete); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pn-head span:nth-child(n+3), .pn-row .mono { text-align: right; }
.pn-group {
  display: flex; justify-content: space-between;
  padding: 8px 12px 4px; margin-top: 4px;
  font-weight: 500; color: var(--steel);
  border-top: 1px solid var(--line);
}
.pn-group .mono { color: var(--concrete); }
.pn-row { border-top: 1px dashed rgba(11,31,58,.08); }
.st { width: 8px; height: 8px; background: var(--steel); }
.pn-row .eq { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  justify-self: end; font-size: 10.5px; line-height: 1; padding: 4px 6px; white-space: nowrap;
  color: var(--steel); box-shadow: inset 0 0 0 1px rgba(30,58,95,.45);
}
.pn-row.is-alert { background: rgba(242,106,27,.07); }
.pn-row.is-alert .st { background: var(--orange); }
.pn-row.is-alert .chip { background: var(--orange); color: var(--navy); box-shadow: none; font-weight: 500; }

.pn-side { display: grid; align-content: start; }
.pn-card { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.pn-card:last-child { border-bottom: 0; }
.pn-bars { margin-top: 8px; width: 100%; height: auto; display: block; }
.pn-bars rect { fill: var(--steel); }
.pn-bars text { font-family: var(--font-mono); font-size: 9px; fill: var(--concrete); }
.pn-bars line { stroke: var(--line-strong); stroke-width: 1; }

.pn-actions ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: a; }
.pn-actions li {
  counter-increment: a;
  display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start;
  padding: 7px 8px; background: var(--bone); border-left: 3px solid var(--steel);
}
.pn-actions li::before { content: counter(a, decimal-leading-zero); font-family: var(--font-mono); font-size: 10.5px; color: var(--concrete); padding-top: 1px; }
.pn-actions li.is-alert { border-left-color: var(--orange); }
.pn-actions small { display: block; color: var(--concrete); font-size: 10.5px; }

/* Maqueta en anchos chicos */
@container (max-width: 560px) {
  .pn-body { grid-template-columns: 1fr; }
  .pn-table { border-right: 0; }
  .pn-bars-card { display: none; }
  .pn-card { border-top: 1px solid var(--line); }
  .pn-tabs span:not(.on) { display: none; }
}
@container (max-width: 420px) {
  .pn-kpis { grid-template-columns: repeat(2, 1fr); }
  .pn-kpis > div:nth-child(3) { border-left: 0; }
  .pn-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pn-head, .pn-row { grid-template-columns: 8px 1fr 58px 84px; }
  .pn-head span:nth-child(4), .pn-row .lts { display: none; }
  .pn-date { display: none; }
  .pn-extra { display: none; }
}

/* ---------- 2. Franja ---------- */

.strip { background-color: var(--steel); color: var(--bone); padding: clamp(40px, 6vw, 72px) 0; }
.strip-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
}
.strip-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 0;
  font-weight: 500; font-size: 1.0625rem;
  border-top: 1px solid var(--line-dark);
}
.strip-list li:first-child { border-top: 0; }
.strip-list li::before { content: ""; flex: none; width: 12px; height: 2px; background: currentColor; opacity: .55; transform: translateY(-4px); }
@media (min-width: 760px) {
  .strip-list { grid-template-columns: repeat(3, 1fr); }
  .strip-list li { border-top: 0; border-left: 1px solid var(--line-dark); padding: 4px 24px; }
  .strip-list li:first-child { border-left: 0; padding-left: 0; }
}
.strip-highlight {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3.5vw, 40px);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.02;
  text-wrap: balance;
}
@media (min-width: 980px) {
  .strip-highlight { grid-column: 4 / -1; }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tint { background-color: var(--bone-2); }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 980px) {
  .section-head--side { grid-column: 1 / span 4; margin-bottom: 0; }
  .section-body { grid-column: 5 / -1; }
}

/* ---------- 3. Beneficios: filas editoriales ---------- */

.benefits { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.benefit {
  display: grid; grid-template-columns: 36px 1fr; gap: 6px 18px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.benefit .ico { width: 30px; height: 30px; color: var(--steel); grid-row: span 2; margin-top: 2px; }
.benefit h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); text-transform: uppercase; letter-spacing: 0.02em; }
.benefit p { color: var(--concrete); }
.benefit-media { grid-column: 1 / -1; margin: 14px 0 0; aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
  .benefit {
    grid-template-columns: 44px minmax(0, 5.2fr) minmax(0, 4fr) minmax(170px, 3.2fr);
    align-items: center; padding: 22px 0;
  }
  .benefit .ico { grid-row: auto; margin: 0; }
  .benefit p { font-size: 1.125rem; }
  .benefit-media { grid-column: auto; margin: 0; aspect-ratio: 4 / 3; }
}

/* Fotos: recorte fijo y leve acercamiento al pasar el cursor */
.media { position: relative; overflow: hidden; background: var(--bone-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.benefit:hover .media img, .feature:hover .media img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .media img { transition: none; } }

/* ---------- 4. Cómo funciona ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line-strong);
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step-num {
  font-family: var(--font-mono); font-size: 0.9375rem; color: var(--bone);
  background: var(--steel);
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.step p { font-size: 1.1875rem; font-weight: 500; padding-top: 12px; max-width: 24ch; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); align-items: start; }
  .step { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 0; border-bottom: 0 !important; }
  /* escalonado: cada paso un poco más arriba, como la pluma que sube */
  .step:nth-child(1) { margin-top: 112px; }
  .step:nth-child(2) { margin-top: 56px; }
  .step p { padding-top: 0; }
}

/* Video bajo el título "Cómo funciona" */
.como-media { margin: 0 0 8px; aspect-ratio: 4 / 3; border: 1px solid var(--navy); }
@media (min-width: 980px) {
  .como-media { margin: 36px 0 0; aspect-ratio: 1; max-width: 360px; }
}

/* ---------- 5. Franja de faena a todo el ancho (video en duotono) ---------- */

.faena {
  margin: 0; position: relative; overflow: hidden;
  height: clamp(300px, 46vw, 640px);
  background: var(--navy) center / cover no-repeat;
}
.faena video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* grilla de plano muy tenue sobre el video */
.faena::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, .06) 1px, transparent 1px);
  background-size: 120px 120px;
}

/* Lecturas tipo instrumento en las esquinas (decorativas) */
.hud {
  position: absolute; inset: clamp(14px, 2.4vw, 32px); z-index: 1; pointer-events: none;
  color: rgba(244, 241, 234, .86);
  font-family: var(--font-mono); font-size: clamp(10px, 1vw, 12.5px); letter-spacing: .08em; text-transform: uppercase;
}
.hud span { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.hud-tl { top: 0; left: 0; }
.hud-tr { top: 0; right: 0; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(244, 241, 234, .6);
}
.hud::before { top: 22px; left: 0; border-right: 0; border-bottom: 0; }
.hud::after { bottom: 22px; right: 0; border-left: 0; border-top: 0; }
.hud-dot { width: 8px; height: 8px; background: var(--bone); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 560px) { .hud-br { display: none; } }
@media (prefers-reduced-motion: reduce) { .hud-dot { animation: none; } }

/* ---------- 6. Qué hace Levera ---------- */

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border-top: 3px solid var(--navy);
}
.feature {
  display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr;
  column-gap: 18px; row-gap: 8px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 500;
}
.feature-media { grid-row: 1 / span 2; margin: 0; aspect-ratio: 1; }
.feature .ico { width: 24px; height: 24px; color: var(--steel); }
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature {
    grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 18px; align-content: start;
    padding: 28px 28px 32px 0; font-size: 1.1875rem;
  }
  .feature-media { grid-row: auto; aspect-ratio: 4 / 3; }
  .feature .ico { width: 28px; height: 28px; }
  .feature:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, 1fr); }
  .feature { padding: 28px 20px 8px; border-left: 1px solid var(--line); border-bottom: 0; }
  .feature:first-child { border-left: 0; padding-left: 0; }
  .feature:nth-child(even) { padding-left: 20px; padding-right: 20px; }
  .feature:last-child { padding-right: 0; }
}

/* ---------- Galería aérea (cinta en movimiento) ---------- */

.gallery { padding: 0 0 clamp(64px, 8vw, 112px); }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: clamp(190px, 22vw, 330px); width: auto; display: block; background: var(--bone-2); }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- 7. Cierre ---------- */

.closing { background-color: var(--navy); color: var(--bone); padding: clamp(72px, 10vw, 136px) 0; }
.closing .g12 { row-gap: 32px; align-items: end; }
.closing h2 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: .94; }
@media (min-width: 980px) {
  .closing h2 { grid-column: 1 / span 8; }
  .closing .btn { grid-column: 10 / -1; justify-self: end; }
}
.closing .btn { justify-self: start; }

/* ---------- 8. Pie ---------- */

.site-footer {
  background: var(--navy); color: rgba(244, 241, 234, .78);
  border-top: 1px solid var(--line-dark);
  padding: 36px 0 40px;
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.site-footer .logo img { height: 26px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--bone); text-decoration: none; overflow-wrap: anywhere;
}
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact .ico { width: 16px; height: 16px; opacity: .7; }
.footer-legal { width: 100%; color: rgba(244, 241, 234, .5); font-size: 0.8125rem; }

/* ---------- Diálogo "Solicita tu demo" ---------- */

.demo-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 0; border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 0;
  background: var(--bone); color: var(--navy);
}
.demo-dialog::backdrop { background: rgba(11, 31, 58, .6); }
.demo-dialog-body { padding: 28px 24px 24px; }
.demo-dialog h2 { font-size: 2rem; }
.demo-dialog p { margin-top: 10px; color: var(--concrete); font-size: 1rem; }
.demo-email {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bone-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.demo-email a { font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.copy-btn {
  font: 500 0.875rem var(--font-body);
  background: transparent; color: var(--steel);
  border: 1.5px solid var(--steel); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer;
}
.copy-btn:hover { background: var(--steel); color: var(--bone); }
.demo-dialog-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.demo-dialog-actions .btn { font-size: 1.0625rem; padding: 13px 20px; }
.dialog-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--concrete); cursor: pointer;
  display: grid; place-items: center;
}
.dialog-close:hover { background: var(--bone-2); color: var(--navy); }
.dialog-close .ico { width: 18px; height: 18px; }

/* ---------- Página de ingreso ---------- */

.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-page main { flex: 1; display: flex; }
.login-layout { flex: 1; display: grid; grid-template-columns: 1fr; }
.login-pane { padding: clamp(40px, 8vw, 96px) var(--gutter) 64px; display: flex; }
.login-card { width: min(420px, 100%); margin: auto; }
.login-card h1 { font-size: clamp(2.5rem, 6vw, 3.25rem); }
.login-card .lede { margin-top: 8px; color: var(--concrete); font-size: 1rem; }
.login-form { margin-top: 28px; display: grid; gap: 18px; padding-top: 24px; border-top: 3px solid var(--navy); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field input {
  font: 400 1rem var(--font-body);
  color: var(--navy);
  background: var(--bone-3);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(30, 58, 95, .18); }
.login-form .btn { width: 100%; margin-top: 4px; }

.notice {
  margin-top: 22px;
  border-left: 4px solid var(--orange);
  background: rgba(242, 106, 27, .08);
  padding: 16px 16px 18px;
}
.notice[hidden] { display: none; }
.notice p { font-size: 0.9875rem; }
.notice .btn { margin-top: 14px; font-size: 1.0625rem; padding: 13px 20px; }
.notice:focus { outline: none; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 26px; font-size: 0.9375rem; color: var(--steel);
  text-decoration: none; font-weight: 500;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link .ico { width: 16px; height: 16px; }

/* Panel decorativo a la derecha (solo escritorio) */
.login-art { display: none; }
@media (min-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .login-pane { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
  .login-art {
    display: block; position: relative; overflow: hidden;
    background: var(--navy) url("../images/hero-poster.jpg") center / cover no-repeat;
  }
  .login-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .login-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(244, 241, 234, .07) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(244, 241, 234, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(11, 31, 58, .55), rgba(11, 31, 58, 0) 40%);
    background-size: 120px 120px, 120px 120px, auto;
  }
}
.login-page .site-footer { padding: 22px 0; }
.login-page .site-footer .wrap { justify-content: flex-start; }
