/* Propuesta final (A + ajustes) — estructura, cabecera, hero, botones y pie. */
body {
  background: var(--ink-950);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  max-width: 22ch;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Grafito sobre naranja: 6,9:1 */
.btn--accent {
  background: var(--orange);
  color: var(--ink-950);
}

.btn--accent:hover {
  background: var(--white);
}

.btn--ghost {
  border-color: rgb(255 255 255 / 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink-950);
}

.btn--large {
  min-height: 3.75rem;
  padding-inline: 2.25rem;
  font-size: 1.0625rem;
}

/* Cabecera: siempre visible. Transparente sobre el hero, vidrio oscuro al bajar. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s var(--ease);
}

.header.is-scrolled,
.header.is-open {
  background: rgb(18 19 21 / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}

.header__brand img {
  width: 7rem;
}

.header__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

.header__toggle svg {
  width: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.header__toggle .icon-close,
.header.is-open .icon-open {
  display: none;
}

.header.is-open .icon-close {
  display: block;
}

/* Móvil: panel desplegable bajo la barra */
.header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 0.25rem;
  padding: 1rem var(--pad) 1.75rem;
  background: rgb(18 19 21 / 0.97);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.75rem);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.header.is-open .header__nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.header__nav a {
  position: relative;
  padding-block: 0.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.header__nav a:hover,
.header__nav a[aria-current='true'] {
  color: var(--white);
}

.header__nav a[aria-current='true'] {
  color: var(--orange);
}

.header__cta {
  margin-top: 0.75rem;
  justify-self: start;
}

/* Escritorio: barra horizontal permanente con indicador de sección activa */
@media (min-width: 64em) {
  .header__toggle {
    display: none;
  }

  .header__nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .header__nav a {
    padding-block: 0.35rem;
    font-size: 0.9375rem;
  }

  .header__nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }

  .header__nav a:not(.btn):hover::after,
  .header__nav a[aria-current='true']::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header__nav a[aria-current='true'] {
    color: var(--white);
  }

  .header__nav .header__cta {
    margin: 0 0 0 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.2rem;
    color: var(--ink-950);
    font-size: 0.875rem;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-block: 8rem 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(18 19 21 / 0.55) 0%, rgb(18 19 21 / 0.15) 35%, rgb(18 19 21 / 0.9) 82%, var(--ink-950) 100%),
    linear-gradient(90deg, rgb(18 19 21 / 0.75) 0%, transparent 70%);
}

.hero__title {
  max-width: 16ch;
  font-family: var(--font-sans);
  font-size: clamp(2.475rem, 0.9rem + 5.85vw, 6.3rem); /* −10 % */
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__title .is-accent,
.cta__title .is-accent {
  color: var(--orange);
}

.hero__bottom {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__lead {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 64em) {
  .hero__bottom {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll span {
  position: relative;
  width: 1px;
  height: 4rem;
  overflow: hidden;
  background: var(--line);
}

.hero__scroll span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@media (min-width: 80em) {
  .hero__scroll {
    display: flex;
  }
}

/* Pie */
.footer {
  padding-block: 5rem 6rem;
  border-top: 1px solid var(--line);
  background: var(--ink-950);
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

.footer__logo {
  width: 11rem;
}

.footer__offices {
  display: grid;
  gap: 2rem;
}

.office h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.office p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.office .office__phone {
  margin-top: 0.5rem;
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer__bottom a {
  color: var(--text-muted);
}

@media (min-width: 64em) {
  .footer__grid {
    grid-template-columns: 1fr 2fr;
  }

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