:root {
  --indigo: #12213d;
  --indigo-deep: #0c1730;
  --indigo-soft: #1b3158;
  --cyan: #00b8d9;
  --cyan-deep: #0a6d82;
  --amber: #ffb020;
  --mist: #eef2f8;
  --white: #ffffff;
  --ink: #1a2740;
  --muted: #4d5d74;
  --line: #d5deea;
  --steel: #14556c;
  --display: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  --body: "Inter", "Calibri", "Segoe UI", sans-serif;
  --header: 4.75rem;
  --wrap: 1120px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(18, 33, 61, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, p {
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--amber);
  color: var(--indigo);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

.skip:focus { top: 1rem; }

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

.container {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--cyan-deep);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker--on-dark { color: var(--cyan); }

.idx {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--indigo);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.idx--quiet {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1.5px var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--cyan);
  color: var(--indigo);
}

.btn--primary:hover { background: #27c8e4; }

.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(18, 33, 61, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 68px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  color: var(--indigo);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--indigo);
  position: relative;
}

.nav-toggle__bars { margin-inline: auto; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.hero {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 184, 217, 0.18), transparent 42%),
    linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 0 4.75rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: #d5deea;
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.readout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 184, 217, 0.35);
  border-radius: 22px;
  padding: 1.25rem 1.15rem 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.readout__label {
  margin: 0 0.4rem 0.7rem;
  color: var(--amber);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.readout ol { list-style: none; }

.readout li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.readout a {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 0.4rem;
  text-decoration: none;
  border-radius: 12px;
}

.readout a:hover strong { color: var(--cyan); }

.readout__text {
  display: grid;
  gap: 0.15rem;
}

.readout__text strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.readout__text span {
  color: #b7c3d6;
  font-size: 0.92rem;
}

.section { padding: 5.25rem 0; }

.section--mist { background: var(--mist); }

.section-head { max-width: 40rem; margin-bottom: 2.2rem; }

.section-head h2,
.service__head h2,
.apartado h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--indigo);
}

.section-head__lead {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.objeto {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.objeto h3,
.statement h3,
.principles h3,
.offer h3,
.solution__head h3,
.cost-band h3 {
  color: var(--indigo);
  font-size: 1.25rem;
}

.objeto > p,
.objeto__list,
.statement p,
.principles p,
.offer p,
.solution__head p {
  color: var(--muted);
}

.objeto > p { margin: 0.7rem 0 1rem; }

.objeto__list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
}

.objeto__list li {
  position: relative;
  padding-left: 1.15rem;
}

.objeto__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--cyan);
}

.statements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.statement {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  border-top: 3px solid var(--cyan);
}

.statement:nth-child(3) { border-top-color: var(--amber); }

.statement p { margin-top: 0.7rem; }

.modelo {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1.28fr;
  gap: 3rem;
  align-items: start;
}

.modelo__intro {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
  margin-bottom: 0;
}

.principles {
  list-style: none;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  padding: 1.25rem 1.4rem 1.3rem;
  border-top: 1px solid var(--line);
}

.principles li:first-child { border-top: 0; }

.principles h3 { grid-column: 2; }

.principles p {
  grid-column: 2;
  margin-top: 0.3rem;
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  counter-increment: principle;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 0.1rem;
  color: var(--amber);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.principles { counter-reset: principle; }

.service-nav {
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: var(--white);
  border-block: 1px solid var(--line);
}

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

.service-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.7rem 0.85rem;
  color: var(--indigo);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.service-nav a + a { box-shadow: inset 1px 0 0 var(--line); }

.service-nav a:hover,
.service-nav a.is-active {
  background: var(--mist);
}

.service-nav a.is-active { box-shadow: inset 0 -3px 0 var(--amber); }

.service { padding-top: 3.5rem; padding-bottom: 4.2rem; }

.narrative {
  max-width: 46rem;
  margin-top: 1.6rem;
  color: var(--muted);
}

.narrative p + p { margin-top: 0.9rem; }

.narrative strong {
  color: var(--indigo);
  font-weight: 600;
}

.detail-band {
  margin-top: 2.6rem;
  padding: 3rem 0;
  background: var(--mist);
}

.detail-band h3,
.consequence h3,
.block-title,
.scope h3 {
  color: var(--indigo);
}

.detail-band h3,
.consequence h3,
.block-title {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.detail-band h3,
.consequence h3 { max-width: 28ch; }

.lead {
  max-width: 46rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cases__head,
.cases li {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.9fr) minmax(0, 1.25fr) minmax(0, 1.05fr);
  gap: 0.75rem 1.35rem;
  align-items: start;
}

.cases__head {
  margin-top: 1.35rem;
  padding: 0 1.2rem;
  color: var(--cyan-deep);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cases {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin-top: 0.7rem;
}

.cases li {
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cases h4 {
  color: var(--indigo);
  font-size: 1.05rem;
  line-height: 1.35;
}

.cases p {
  color: var(--muted);
  font-size: 0.98rem;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flow { margin: 1.7rem 0 0; }

.flow__scroll { border-radius: 18px; }

.flow img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.flow figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.moment {
  margin-top: 1.35rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  background: var(--mist);
  color: var(--indigo);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.45;
}

.block-title { margin-top: 2.5rem; }

.includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  list-style: none;
  counter-reset: include;
  margin-top: 1.2rem;
}

.includes li {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  background: var(--mist);
}

.includes li::before {
  content: counter(include, decimal-leading-zero);
  counter-increment: include;
  color: var(--amber);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.includes h4 {
  margin: 0.55rem 0 0.45rem;
  color: var(--indigo);
  font-size: 1.12rem;
}

.includes p {
  color: var(--muted);
  font-size: 0.98rem;
}

.consequence { padding-top: 3rem; }

.impacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  list-style: none;
  margin-top: 1.25rem;
}

.impacts li {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  border-top: 3px solid var(--cyan);
  background: var(--mist);
}

.impacts li:nth-child(even) { border-top-color: var(--amber); }

.impacts h4 {
  margin-bottom: 0.45rem;
  color: var(--indigo);
  font-size: 1.15rem;
}

.impacts p {
  color: var(--muted);
  font-size: 0.98rem;
}

.scope {
  margin-top: 1.7rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-left: 4px solid var(--amber);
  border-radius: 0 18px 18px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.scope h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.scope p { color: var(--muted); }

.service__head { max-width: 48rem; }

.service__name {
  margin-top: 1rem;
  color: var(--cyan-deep);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
}

.triad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1.15rem;
}

.triad li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--indigo);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
}

.offer {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 18px 18px 0;
  background: var(--mist);
}

.offer h3 { margin-bottom: 0.55rem; }

.offer p {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--indigo);
  font-family: var(--display);
  font-weight: 600;
}

.cost-band {
  background:
    linear-gradient(180deg, rgba(0, 184, 217, 0.08), transparent 28%),
    var(--indigo);
  color: var(--white);
  padding: 3.5rem 0 3.7rem;
}

.cost-band h3 {
  max-width: 22ch;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-top: 2rem;
}

.stat__value {
  color: var(--cyan);
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  margin: 0.55rem 0 0.35rem;
  color: var(--amber);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats p:last-child {
  color: #d5deea;
  font-size: 0.98rem;
}

.solution { padding: 3.4rem 0 0.5rem; }

.solution__head { max-width: 40rem; margin-bottom: 1.5rem; }

.solution__head p {
  margin-top: 0.65rem;
  font-size: 1.08rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  counter-reset: pillar;
}

.pillars li {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.15rem 1.45rem;
  border-radius: 22px;
  background: var(--steel);
  color: var(--white);
}

.pillars li:nth-child(even) { background: var(--indigo); }

.pillars li::before {
  content: counter(pillar, decimal-leading-zero);
  counter-increment: pillar;
  color: var(--amber);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.pillars h4 {
  margin: 0.7rem 0 0.75rem;
  font-size: 1.2rem;
}

.pillars h4::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 99px;
  background: var(--cyan);
}

.pillars p {
  color: #e7eef6;
  font-size: 0.98rem;
}

.apartado { padding: 1rem 0 4.5rem; }

.apartado--mist {
  background: var(--mist);
  padding-top: 3rem;
}

.apartado__frame {
  border: 1.5px dashed rgba(0, 184, 217, 0.75);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background:
    linear-gradient(180deg, rgba(0, 184, 217, 0.05), transparent 40%),
    var(--white);
}

.apartado h2 { max-width: 18ch; }

.status {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--cyan-deep);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--indigo-deep);
  color: #d5deea;
  padding-top: 3.2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.footer__brand {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.footer__label {
  margin-bottom: 0.6rem;
  color: var(--amber);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; display: grid; gap: 0.35rem; }

.site-footer a { text-decoration: none; }

.site-footer a:hover { color: var(--cyan); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9aabc2;
  font-size: 0.92rem;
}

section,
article { scroll-margin-top: calc(var(--header) + 1rem); }

#servicios article { scroll-margin-top: calc(var(--header) + 5.2rem); }

@media (max-width: 980px) {
  .hero__grid,
  .modelo,
  .statements,
  .stats,
  .pillars,
  .footer__grid,
  .service-nav__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid,
  .modelo,
  .footer__grid { grid-template-columns: 1fr; }

  .modelo__intro { position: static; }

  .service-nav a + a { box-shadow: none; }

  .pillars,
  .includes,
  .impacts { grid-template-columns: 1fr 1fr; }

  .cases__head { display: none; }

  .cases__head,
  .cases li { grid-template-columns: 1fr; gap: 0.65rem; }

  .field-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0.25rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: block;
    color: var(--cyan-deep);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .statements { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; padding: 0.5rem; }

  .site-nav a { width: 100%; }

  .brand img { height: 54px; }

  .hero__grid { padding: 3rem 0 3.2rem; }

  .hero h1 { max-width: none; }

  .service-nav {
    position: static;
    border: 0;
    background: transparent;
  }

  .service-nav__grid { grid-template-columns: 1fr; gap: 0.5rem; width: min(var(--wrap), calc(100% - 2.5rem)); }

  .service-nav a {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
  }

  #servicios article { scroll-margin-top: calc(var(--header) + 1rem); }

  .stats,
  .pillars,
  .includes,
  .impacts { grid-template-columns: 1fr; }

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

  .flow img {
    width: 760px;
    max-width: none;
    border: 0;
    border-radius: 0;
  }

  .section { padding: 3.6rem 0; }

  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
