:root {
  /* Marca — hex oficiales de la guía (audit/ImpulsaLx_Guia_de_Marca.md) */
  --navy: #0F2B46;
  --emerald: #1F7A5C;
  --white: #fff;
  /* Gris operativo: la guía pide #6E7882 pero da 4.25:1 sobre --paper (falla WCAG AA
     para texto de cuerpo). Se usa un gris ligeramente más oscuro que cumple AA
     (5.53:1 sobre paper / 5.85:1 sobre white) y mantiene el espíritu de marca. */
  --gray: #5C6670;
  /* Auxiliares derivados de marca — todos con hex explícito */
  --navy-deep: #0F2B46;
  --emerald-dark: #15503D;   /* emerald oscurecido — hover / band bg / text-on-light */
  --emerald-100: #e8f3ed;    /* fondo verde claro */
  --ink: #18231d;
  --line: #d9e2dd;
  --paper: #f7f9f6;
  --shadow: 0 18px 55px rgb(16 32 51 / 12%);
  --radius: 8px;
  --max: 1160px;
  /* Tipografía — serif (logo/títulos) + sans (texto), por guía de marca */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Fraunces, Georgia, "Times New Roman", serif;
  /* Alias retro-compat: nombres viejos → vars de marca (evita tocar 60+ call-sites) */
  --navy-950: var(--navy);
  --navy-900: var(--navy);
  --green-800: var(--emerald);
  --green-900: var(--emerald-dark);
  --green-100: var(--emerald-100);
  --muted: var(--gray);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 1000;
  background: var(--navy-950);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid rgb(217 226 221 / 80%);
  backdrop-filter: blur(14px);
}

#pillars,
#tech,
#finance,
#ops,
#growth,
#models,
#contact-form {
  scroll-margin-top: 150px;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand img {
  width: 150px;
  height: 108px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-950);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-800);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--green-800);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(31 122 92 / 18%);
}

.nav-links .nav-cta {
  color: var(--white);
}

.nav-cta:hover {
  background: var(--green-900);
  color: var(--white);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.language-toggle button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-toggle button[aria-pressed="true"] {
  background: var(--green-800);
  color: var(--white);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 78px 0;
}

.section-tight {
  padding: 54px 0;
}

.hero {
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  background: var(--navy-950);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-video-wrap {
    animation: hero-video-enter 0.7s ease-out both;
  }
}

@keyframes hero-video-enter {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-video-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--navy-950));
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  padding: 40px 0 76px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-100);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green-800);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.08;
  color: inherit;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 760px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
}

.lead {
  margin: 22px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 660px;
}

.body-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: var(--green-800);
  color: var(--white);
}

.button.primary:hover {
  background: var(--green-900);
}

.button.light {
  background: var(--white);
  color: var(--green-900);
}

.button.ghost {
  border-color: var(--green-800);
  color: var(--green-800);
}

.button.ghost:hover {
  background: var(--green-100);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--green-900);
}

.hero-video-wrap .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-video-sound-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-video-sound {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: rgb(15 43 70 / 55%);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-video-sound:hover {
  background: rgb(15 43 70 / 80%);
}

.hero-video-sound:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hero-video-sound[aria-pressed="true"] {
  background: var(--emerald);
}

.hero-video-volume {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 32px;
  /* 90px visible pill + 12px invisible bridge touching the button below, so
     hover never crosses a dead gap while moving the mouse up to the slider. */
  height: 102px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hero-video-volume::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgb(15 43 70 / 85%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-video-sound-wrap:hover .hero-video-volume,
.hero-video-sound-wrap:focus-within .hero-video-volume {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-volume-input {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 70px;
  height: 4px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  transform: translate(-50%, -50%) rotate(-90deg);
  appearance: none;
  -webkit-appearance: none;
  background: rgb(255 255 255 / 25%);
  border-radius: 999px;
  cursor: pointer;
}

.hero-video-volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.hero-video-volume-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.hero-video-volume-input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--white) var(--volume, 100%), rgb(255 255 255 / 25%) 0);
}

.hero-video-play {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: rgb(15 43 70 / 55%);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.hero-video-play:hover {
  background: rgb(15 43 70 / 80%);
}

.hero-video-play:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hero-video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  background: rgb(15 43 70 / 55%);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-video-play-center:hover {
  background: rgb(15 43 70 / 80%);
}

.hero-video-play-center:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hero-video-play-center.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-video-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(640px * 16 / 9 - 32px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-video-wrap:hover .hero-video-controls,
.hero-video-wrap:has(:focus-visible) .hero-video-controls {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-progress {
  flex: 1;
  min-width: 0;
  height: 4px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  background: rgb(255 255 255 / 25%);
  border-radius: 999px;
  cursor: pointer;
}

.hero-video-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.hero-video-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.hero-video-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--emerald) var(--progress, 0%), rgb(255 255 255 / 25%) 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    /* Poster stays visible; JS pauses playback. */
  }
}

.metric-strip {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
}

.metric {
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-top: 16px;
}

.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .6fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

[data-i18n="home.pain.title"] {
  white-space: pre-line;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 32px rgb(16 32 51 / 5%);
}

.card:hover {
  border-color: rgb(31 122 92 / 35%);
}

.card-kicker {
  margin-bottom: 14px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.team-photo-placeholder {
  aspect-ratio: 1 / 1;
  margin: -24px -24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px dashed var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.team-photo {
  aspect-ratio: 1 / 1;
  margin: -24px -24px 18px;
  display: block;
  width: calc(100% + 48px);
  height: auto;
  max-width: none;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card p,
.split p,
.rich-text p {
  color: var(--muted);
}

.band {
  background: var(--green-900);
  color: var(--white);
}

.band .body-lead,
.band .card p {
  color: rgb(255 255 255 / 74%);
}

.band .card {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 14%);
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: center;
}

.split.align-top {
  align-items: start;
}

.split-media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list,
.plain-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  content: "✓";
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.plain-list {
  color: var(--muted);
}

details.card {
  padding: 0;
}

.grid > details.card {
  align-self: start;
}

details.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.card > summary::-webkit-details-marker {
  display: none;
}

details.card > summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
}

details.card[open] > summary::after {
  content: "–";
}

details.card > summary h3,
.card-summary-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.08;
  color: inherit;
}

details.card > .card-body {
  padding: 0 24px 24px;
}

#pillars .grid > details.card[open] > .card-body {
  display: flex;
  flex-direction: column;
}

#pillars .grid > details.card .actions {
  margin-top: auto;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
}

.process details.card > summary {
  padding-top: 42px;
}

.process .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 12px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.quote {
  padding: 34px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 850;
  white-space: pre-line;
}

.quote figcaption {
  margin-top: 20px;
  color: rgb(255 255 255 / 72%);
}

.cta {
  background: var(--navy-950);
  color: var(--white);
  padding: 58px 0;
}

.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 16px;
}

fieldset {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  margin: 0;
}

legend {
  padding: 0;
  font-weight: 850;
  color: var(--navy-950);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
a:focus {
  outline: 3px solid rgb(31 122 92 / 30%);
  outline-offset: 3px;
}

.site-footer {
  background: var(--navy);
  color: rgb(255 255 255 / 78%);
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr .9fr;
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--white);
  font-size: 16px;
}

/* Guía: serif solo para logo/títulos. Las etiquetas de columna del footer son
   labels de navegación (categoría "web/documentos") → sans. El wordmark
   .footer-grid h2 ("ImpulsaLx") es el logo → conserva serif del h2 global. */
.footer-grid h3 {
  font-family: var(--font-sans);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 55%);
  font-size: 13px;
}

.hero-simple {
  background: linear-gradient(135deg, var(--navy-950), var(--green-900));
  color: var(--white);
  padding: 86px 0 70px;
}

.hero-simple p {
  color: rgb(255 255 255 / 78%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy-950);
  background: var(--green-100);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-note {
  border-left: 4px solid var(--green-800);
  background: var(--green-100);
  padding: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--green-900);
}

.mt-24 {
  margin-top: 24px;
}

.mt-30 {
  margin-top: 30px;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-tools {
    gap: 8px;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .language-toggle {
    min-height: 42px;
  }

  .section-head,
  .split,
  .cta-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px 0 46px;
  }

  .hero-video-wrap {
    max-height: 320px;
  }

  .grid.three,
  .grid.four,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: auto;
  }

  .nav-wrap {
    gap: 10px;
  }

  .section {
    padding: 58px 0;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .card,
  .form-shell {
    padding: 20px;
  }
}
