/* home.css — estilos específicos de la home */

/* Section headlines — same H1 editorial scale as cover hero */
.page-home {
  --home-h1-min: 2.75rem;
  --home-h1-fluid: min(4.35vw, 5.9vh);
  --home-h1-max: 4.95rem;
}

@media (min-width: 1024px) and (min-height: 900px) {
  .page-home {
    --home-h1-min: 2.9rem;
    --home-h1-fluid: min(4.55vw, 6vh);
    --home-h1-max: 5.1rem;
  }
}

@media (min-width: 1024px) and (max-height: 940px) {
  .page-home {
    --home-h1-min: 2.45rem;
    --home-h1-fluid: min(4vw, 5.5vh);
    --home-h1-max: 4.05rem;
  }
}

@media (max-width: 760px) {
  .page-home {
    --home-h1-min: 2.4rem;
    --home-h1-fluid: 10vw;
    --home-h1-max: 3.5rem;
  }
}

.page-home .services--editorial .services__headline,
.page-home .metodo-home__headline,
.page-home .work h2,
.page-home .criterio-teaser__title,
.page-home .manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(var(--home-h1-min), var(--home-h1-fluid), var(--home-h1-max));
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: rgba(246, 242, 235, 0.98);
}

.page-home .services--editorial .services__headline,
.page-home .metodo-home__headline,
.page-home .work h2 {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 10px);
}

/* Lockup alineado al shell v3 (misma altura que el resto del sitio público) */

/* HERO — base (cover editorial: cover-portrait.css) */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-header-height, 96px) + var(--space-lg));
  padding-bottom: var(--space-xl);
  display: flex;
  align-items: flex-start;
}

.cover--site .hero-inner,
.cover--site .hero-main {
  position: relative;
  z-index: 2;
  max-width: min(600px, 88%);
  min-width: 0;
}

.cover--site .hero-inner::before,
.cover--site .hero-main::before {
  content: "";
  position: absolute;
  inset: -20px -28px -16px -12px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 115% 100% at 0% 18%, rgba(7, 28, 54, 0.34) 0%, rgba(10, 21, 38, 0.48) 48%, transparent 72%);
}

/* Hero P0 — single column + mini-anexo below */
.cover--site .hero-main {
  position: relative;
  z-index: 2;
  max-width: min(900px, 62vw);
  min-width: 0;
}

.cover--site .hero-eyebrow {
  margin-bottom: clamp(10px, 1.4vh, 14px);
}

.hero-anchor {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, min(2.05vw, 2.5vh), 1.48rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--hme84-champagne-bright, #e6c27a);
  line-height: 1.45;
  max-width: none;
}

@media (min-width: 769px) {
  .hero-anchor {
    white-space: nowrap;
  }
}

.cover--site .hero-headline {
  --hero-h1-min: 2.75rem;
  --hero-h1-fluid: min(4.35vw, 5.9vh);
  --hero-h1-max: 4.95rem;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 10px);
  line-height: 1.06;
  max-width: min(900px, 62vw);
  margin-top: 0;
  margin-bottom: clamp(14px, 1.9vh, 22px);
  font-size: clamp(var(--hero-h1-min), var(--hero-h1-fluid), var(--hero-h1-max));
}

.hero-headline__line {
  display: block;
}

@media (min-width: 1180px) {
  .hero-headline__line {
    white-space: nowrap;
  }
}

.hero-headline__line--primary {
  color: var(--text-primary);
}

.hero-headline__line--claim em {
  color: var(--hme84-champagne-bright, #e6c27a);
  font-style: italic;
}

.hero-headline__punch {
  color: var(--hme84-amber, #e39a3b);
  text-shadow: 0 0 20px rgba(227, 154, 59, 0.18);
  font-style: italic;
}

.cover--site .hero-sub {
  max-width: min(84ch, 62vw);
  font-size: 15.5px;
  line-height: 1.56;
  color: rgba(240, 237, 230, 0.78);
  margin-top: 0;
  margin-bottom: clamp(14px, 1.9vh, 22px);
}

.hero-sub__line {
  display: block;
}

.hero-sub__line + .hero-sub__line {
  margin-top: 0.65em;
}

.hero-sub__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.45;
  color: rgba(240, 237, 230, 0.94);
  padding-left: var(--space-md);
  border-left: 1px solid rgba(216, 181, 106, 0.32);
}

.hero-sub__em {
  font-style: normal;
  color: rgba(217, 206, 171, 0.92);
}

.hero-sub__warm {
  color: rgba(240, 237, 230, 0.88);
}

.hero-sub__strong {
  font-weight: 500;
  color: rgba(240, 237, 230, 0.92);
}

.cover--site .hero-cta {
  gap: 14px 36px;
  align-items: flex-end;
  margin-top: 0;
}

/* Home — CTAs editoriales (ghost + fill, punto decorativo) */
.page-home .btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.page-home .btn-cta::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
}

.page-home .btn-cta--ghost {
  padding: 9px 16px;
  color: var(--hme84-champagne, #d8b56a);
  background: transparent;
  border: 1px solid rgba(216, 181, 106, 0.55);
  border-radius: 0;
  box-shadow: none;
}

.page-home .btn-cta--ghost::after {
  right: 5px;
  bottom: -5px;
  background: var(--hme84-champagne, #d8b56a);
}

.page-home .btn-cta--ghost:hover,
.page-home .btn-cta--ghost:focus-visible {
  color: var(--hme84-champagne-bright, #e6c27a);
  border-color: rgba(230, 194, 122, 0.72);
  box-shadow: 0 0 18px rgba(216, 181, 106, 0.12);
}

.page-home .btn-cta--ghost:focus-visible {
  outline: 2px solid rgba(216, 181, 106, 0.45);
  outline-offset: 3px;
}

.page-home .services__all-link {
  align-self: flex-start;
  margin-top: clamp(1.35rem, 2.8vw, 1.85rem);
  padding: 4px 0;
}

.page-home .home-link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.25vw, 0.92rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: rgba(245, 245, 245, 0.9);
  text-decoration: none;
  background: none;
  border: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cover--site .hero-cta .home-link-editorial {
  padding: 8px 0;
  margin-left: 0.25rem;
}

.page-home .home-link-editorial__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.page-home .home-link-editorial:hover,
.page-home .home-link-editorial:focus-visible {
  color: var(--hme84-champagne-bright, #e6c27a);
}

.page-home .home-link-editorial:hover .home-link-editorial__arrow,
.page-home .home-link-editorial:focus-visible .home-link-editorial__arrow {
  transform: translateX(4px);
}

.page-home .home-link-editorial:focus-visible {
  outline: 2px solid rgba(216, 181, 106, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Mini-anexo — Nos buscan cuando… (debajo del hero) */
.cover--site .hero-when-band {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding:
    clamp(12px, 1.7vh, 18px)
    max(var(--space-lg, 32px), clamp(24px, 4vw, 48px))
    clamp(14px, 2vh, 24px);
  opacity: 1;
  transform: none;
  background:
    linear-gradient(90deg, rgba(12, 14, 21, 0.72) 0%, rgba(12, 14, 21, 0.42) 52%, rgba(12, 14, 21, 0.18) 100%);
  border-top: 0.5px solid rgba(212, 201, 168, 0.1);
}

.hero-when-band__title {
  margin: 0 0 clamp(10px, 1.6vh, 14px);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(217, 206, 171, 0.9);
  line-height: 1.35;
}

.hero-when-band__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}

.hero-when-band__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 12px 13px 12px 14px;
  font-size: clamp(12px, 0.86vw, 13.5px);
  line-height: 1.4;
  text-align: center;
  color: rgba(240, 237, 230, 0.76);
  border: 0.5px solid rgba(212, 201, 168, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%),
    rgba(12, 14, 21, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-when-band__item::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 201, 168, 0.72), rgba(227, 154, 59, 0.28), transparent);
  opacity: 0.75;
}

.hero-when-band__item:hover {
  color: rgba(240, 237, 230, 0.88);
  border-color: rgba(212, 201, 168, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.026) 100%),
    rgba(12, 14, 21, 0.48);
}

.hero-when-band__item--support {
  color: rgba(217, 206, 171, 0.66);
  border-color: rgba(212, 201, 168, 0.14);
  background:
    linear-gradient(180deg, rgba(212, 201, 168, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(12, 14, 21, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.11);
}

.hero-when-band__item--support::before {
  background: linear-gradient(90deg, rgba(212, 201, 168, 0.4), transparent);
  opacity: 0.55;
}

.hero-when-band__item--support:hover {
  color: rgba(232, 220, 188, 0.82);
  border-color: rgba(212, 201, 168, 0.24);
}

@media (min-width: 900px) and (max-width: 1100px) {
  .hero-when-band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hero P0 — wide desktop: limit copy width vs artwork */
@media (min-width: 1440px) {
  .cover--site .hero-main {
    max-width: min(920px, 58vw);
  }
}

/* Desktop alto — más presencia editorial sin volver al hero cargado */
@media (min-width: 1024px) and (min-height: 900px) {
  .cover--site .hero-main {
    max-width: min(920px, 58vw);
  }

  .cover--site .hero-headline {
    --hero-h1-min: 2.9rem;
    --hero-h1-fluid: min(4.55vw, 6vh);
    --hero-h1-max: 5.1rem;
    max-width: min(920px, 58vw);
  }

  .cover--site .hero-sub {
    font-size: 15.5px;
    max-width: min(84ch, 62vw);
  }
}

/* Hero P0 — wide/short: laptop, horizontal window, low vh */
@media (min-width: 1024px) and (max-height: 940px) {
  .cover--site .cover__inner {
    justify-content: flex-start;
    padding-top: calc(var(--nav-header-height, 96px) + clamp(42px, 6vh, 62px));
    padding-bottom: 10px;
  }

  .cover--site .hero-main {
    max-width: min(900px, 62vw);
  }

  .cover--site .hero-eyebrow {
    margin-bottom: 8px;
  }

  .hero-anchor {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, min(1.7vw, 2.3vh), 1.36rem);
  }

  .cover--site .hero-headline {
    --hero-h1-min: 2.45rem;
    --hero-h1-fluid: min(4vw, 5.5vh);
    --hero-h1-max: 4.05rem;
    gap: 6px;
    line-height: 1.08;
    max-width: min(900px, 62vw);
    margin-bottom: 14px;
  }

  .cover--site .hero-sub {
    max-width: min(84ch, 62vw);
    font-size: 15px;
    line-height: 1.52;
    margin-bottom: 14px;
  }

  .cover--site .hero-cta {
    gap: 10px 16px;
    margin-bottom: 0;
  }

  .cover--site .hero-when-band {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .hero-when-band__item {
    min-height: 72px;
    padding: 10px 11px;
    font-size: 12.2px;
    line-height: 1.34;
  }
}

@media (min-width: 1280px) and (min-aspect-ratio: 16/9) and (max-height: 820px) {
  .cover--site .hero-headline {
    --hero-h1-min: 2.5rem;
    --hero-h1-fluid: min(4.2vw, 6.2vh);
    --hero-h1-max: 4.1rem;
  }
}

@media (max-width: 760px) {
  .hero-anchor {
    white-space: normal;
    font-size: 1.14rem;
    margin-bottom: 14px;
  }

  .cover--site .hero-headline {
    --hero-h1-min: 2.4rem;
    --hero-h1-fluid: 10vw;
    --hero-h1-max: 3.5rem;
    gap: 8px;
    max-width: none;
    margin-bottom: 16px;
  }

  .hero-headline__line {
    white-space: normal;
  }

  .cover--site .hero-sub {
    max-width: none;
    font-size: 15px;
    line-height: 1.66;
    margin-bottom: 16px;
  }

  .hero-sub__line {
    display: inline;
  }

  .hero-sub__line + .hero-sub__line::before {
    content: " ";
  }

  .cover--site .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cover--site .hero-cta .btn-cta--ghost {
    width: 100%;
    justify-content: center;
  }

  .cover--site .hero-when-band {
    padding:
      18px
      max(var(--space-md, 20px), clamp(18px, 5vw, 28px))
      28px;
    background: linear-gradient(180deg, rgba(12, 14, 21, 0.74) 0%, rgba(12, 14, 21, 0.35) 100%);
  }

  .hero-when-band__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-when-band__item {
    min-height: 0;
    font-size: 12.5px;
    padding: 11px 12px;
  }
}

.metodo-home,
#metodo {
  scroll-margin-top: calc(var(--nav-header-height, 96px) + 16px);
}

/* Eyebrow en hero/cover */
.cover--site .section-eyebrow,
.hero .section-eyebrow {
  margin-bottom: var(--space-sm);
}

.cover--site .hero-headline {
  letter-spacing: -0.022em;
}

.hero-headline {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-sm);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  padding-top: 0.06em;
  padding-bottom: 0.08em;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  hyphens: manual;
  text-wrap: balance;
}
.hero-headline em {
  color: rgba(217, 206, 171, 0.96);
  font-style: italic;
}
.hero-br-desktop {
  display: inline;
}
.hero-headline em span {
  opacity: 0;
  transition: opacity 0.04s ease-out;
}
.hero-headline em span.visible { opacity: 1; }
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-sm);
}

.cover--site .hero-cta {
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.cover--site .hero-tags {
  gap: 8px;
  margin-top: 2px;
}

.cover--site .hero-tags .tag {
  font-size: 10px;
  padding: 3px 10px;
  opacity: 0.78;
  color: rgba(232, 236, 228, 0.72);
  border-color: rgba(227, 154, 59, 0.22);
  background: rgba(255, 255, 255, 0.045);
}
.hero-inner > .hero-sub:last-of-type {
  margin-bottom: var(--space-md);
}
.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.hero-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Viewports bajos (tablet/desktop reducido): compactar solo spacing */
@media (max-height: 820px) and (min-width: 769px) {
  .cover--site .cover__inner {
    min-height: max(560px, calc(90svh - var(--nav-header-height, 96px)));
    padding-bottom: clamp(24px, 3vh, 36px);
  }

  .cover--site .section-eyebrow,
  .hero .section-eyebrow,
  .cover--site .hero-eyebrow {
    margin-bottom: 6px;
  }

  .cover--site .hero-main .hero-anchor {
    margin-bottom: 8px;
  }

  .cover--site .hero-headline {
    --hero-h1-min: 2.55rem;
    --hero-h1-fluid: min(4.6vw, 6.2vh);
    --hero-h1-max: 4.2rem;
    margin-bottom: 10px;
    padding-bottom: 0.04em;
  }

  .cover--site .hero-sub {
    margin-bottom: 12px;
  }

  .cover--site .hero-cta {
    margin-top: 0;
    margin-bottom: 10px;
    gap: 8px;
  }

  .hero-inner > .hero-sub:last-of-type {
    margin-bottom: clamp(12px, 2vh, 20px);
  }

  .hero-tags {
    margin-top: 0;
  }
}

/* Desktop alto: un poco más de aire inferior (hero legacy sin cover) */
@media (min-width: 1025px) and (min-height: 900px) {
  .hero {
    padding-bottom: var(--space-2xl);
  }
}

/* Brand mark — detrás del texto; pointer-events none (no capta clics) */
.hero-visual-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  display: flex;
  right: var(--space-sm);
  left: 40%;
  top: 4rem;
  bottom: auto;
  height: min(42vh, 320px);
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-dogs-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: soft-light;
  filter: saturate(0.9);
  /* Degradado un poco más temprano a la izquierda para no “invadir” el titular */
  -webkit-mask-image: linear-gradient(to left, #000 42%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
  mask-image: linear-gradient(to left, #000 42%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
  opacity: 0.26;
  max-width: min(92vw, 520px);
  max-height: min(38vh, 360px);
  transform: translate(1vw, 0);
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(227,154,59,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,154,59,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 30%, transparent 100%);
}

@media (min-width: 769px) {
  .hero-visual-bg {
    top: 0;
    bottom: 0;
    left: 51%;
    right: var(--space-md);
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .hero-dogs-img {
    opacity: 0.42;
    max-width: min(680px, 58vw);
    max-height: min(70vh, 640px);
    -webkit-mask-image: linear-gradient(to left, #000 44%, rgba(0, 0, 0, 0.52) 73%, transparent 100%);
    mask-image: linear-gradient(to left, #000 44%, rgba(0, 0, 0, 0.52) 73%, transparent 100%);
    transform: translate(2vw, 0.5vh);
  }
}

@media (min-width: 1025px) {
  .hero-visual-bg {
    left: calc(50% + var(--space-sm));
    right: max(var(--space-md), calc((100vw - min(100vw, 1100px)) / 2 + var(--space-lg)));
  }

  .hero-dogs-img {
    opacity: 0.52;
    max-width: min(920px, 68vw);
    max-height: min(80vh, 920px);
    -webkit-mask-image: linear-gradient(to left, #000 44%, rgba(0, 0, 0, 0.52) 74%, transparent 100%);
    mask-image: linear-gradient(to left, #000 44%, rgba(0, 0, 0, 0.52) 74%, transparent 100%);
    transform: translate(3vw, 0.5vh);
  }
}

/* SERVICIOS */
.services { background: var(--bg-surface); }
.section-intro {
  font-size: 15px; color: var(--text-secondary);
  max-width: 56ch; margin-bottom: var(--space-md);
}
.section-method-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}
.section-method-note strong {
  color: var(--text-secondary);
  font-weight: 500;
}
.method-phases {
  display: inline;
}
.method-phase {
  display: inline;
}

/* === Wordmarks inline (HME84 hero / Loop84 method-note) === */
.wordmark-inline {
  display: inline-block;
  height: 0.95em;
  width: auto;
  vertical-align: -0.12em;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-sub .wordmark-inline {
  height: 1.68em;
  width: auto;
  vertical-align: -0.18em;
  margin-right: 0.08em;
}
.wordmark-inline-loop84 {
  height: 1.1em;
  vertical-align: -0.18em;
  margin: 0 0.04em;
  filter: brightness(1.05);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
}
.services-grid h3 { margin-bottom: var(--space-sm); }
.services-grid p { font-size: 13px; line-height: 1.7; margin-bottom: var(--space-sm); }
.service-note {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; border-left: 2px solid var(--accent-border);
  padding-left: var(--space-sm); margin-top: var(--space-sm) !important;
}
.service-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--accent); margin-top: var(--space-md);
  transition: gap var(--ease);
}
.service-link:hover { gap: 8px; }
.services-cta { margin-top: var(--space-xl); text-align: center; }

.work {
  background:
    radial-gradient(ellipse 95% 70% at 72% 42%, rgba(216, 181, 106, 0.045), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, rgba(20, 23, 20, 0.98) 100%);
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.45fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 5.5vw, 4.25rem);
}

.work-heading .section-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(0.45rem, 1.2vw, 0.7rem);
}

.work h2 {
  margin: 0;
  max-width: 10.5em;
}

.portfolio-title span,
.portfolio-title em {
  display: block;
}

.portfolio-title em {
  margin-top: 0.08em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--hme84-champagne-bright, #e6c27a);
}

.work-intro {
  max-width: 38ch;
  padding-bottom: clamp(0.2rem, 1vw, 0.55rem);
}

.work-intro p {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 15.5px);
  line-height: 1.72;
  color: rgba(181, 184, 196, 0.84);
}

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

/* TRABAJO — editorial selection on home */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.work-card,
.proyecto-card {
  position: relative;
  min-height: clamp(14rem, 24vw, 19rem);
  background: #08090c;
  border: 0.5px solid rgba(216, 181, 106, 0.14);
  border-radius: 0;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.work-card:hover,
.proyecto-card:hover {
  border-color: rgba(216, 181, 106, 0.34);
  transform: translateY(-4px);
}
a.work-card {
  cursor: pointer;
  outline: none;
}
a.work-card::-moz-focus-inner {
  border: 0;
}
a.work-card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.work-card-internal { cursor: default; opacity: 0.85; }

.work-img {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
}
.work-img img,
.proyecto-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.08);
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-img img,
.proyecto-card:hover .proyecto-img {
  transform: scale(1.04);
  opacity: 0.9;
  filter: saturate(0.96) contrast(1.12);
}
.work-img-dark { background: #080808; }
.work-img-logo { background: var(--bg); }
.work-img-aap {
  background:
    radial-gradient(ellipse 85% 60% at 50% 36%, rgba(232, 93, 15, 0.62), transparent 62%),
    linear-gradient(160deg, #1a0903 0%, #08090c 78%);
}
.work-img-hme84 {
  background:
    radial-gradient(ellipse 82% 72% at 46% 38%, rgba(216, 181, 106, 0.13), transparent 60%),
    linear-gradient(145deg, #10131a 0%, #06070a 100%);
}
.work-img-hme84 img {
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.work-img-wtl {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 82% 72% at 50% 42%, rgba(227, 154, 59, 0.14), transparent 62%),
    linear-gradient(145deg, #11100d 0%, #050607 100%);
}
.work-img-wtl img {
  padding: clamp(1.35rem, 3.5vw, 2.75rem);
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.08);
}
.work-img-miranda {
  background:
    radial-gradient(ellipse 82% 76% at 70% 42%, rgba(216, 181, 106, 0.1), transparent 58%),
    linear-gradient(145deg, #111018 0%, #050608 100%);
}
.work-img-logo-plate {
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(165deg, #101018 0%, #060608 100%);
}
.work-info {
  position: relative;
  z-index: 2;
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.3vw, 0.85rem);
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 7, 10, 0.74) 38%, rgba(6, 7, 10, 0.96) 100%);
}
.work-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-content: flex-start;
  min-height: 0;
}
.work-info h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 300;
  line-height: 1.05;
  color: rgba(246, 242, 235, 0.96);
}
.work-info p {
  max-width: 34ch;
  font-size: clamp(12.5px, 1.2vw, 14px);
  line-height: 1.62;
  margin: 0;
  color: rgba(181, 184, 196, 0.86);
}
.work-card--featured-wide {
  grid-column: 1 / -1;
  min-height: clamp(12rem, 21vw, 17rem);
}
.work-card--featured-wide .work-img img {
  object-fit: contain;
  padding: clamp(2rem, 5vw, 4rem);
}
.work-card--featured-wide .work-info {
  padding: clamp(1.35rem, 3vw, 2.15rem);
}
.work-card--featured-wide .work-info p {
  max-width: 42ch;
}
.work-cta { text-align: center; }

/* MANIFIESTO */
.manifesto { background: var(--bg-surface); }
.manifesto-inner { max-width: 640px; }
.manifesto-quote {
  margin: var(--space-lg) 0;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
}
.manifesto-sub {
  max-width: 52ch; margin-bottom: var(--space-lg);
  font-size: 14px; line-height: 1.75;
}
.manifesto-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline em span {
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 768px) {
  .cover--site .cover__inner {
    padding-top: calc(var(--nav-header-height, 96px) + 24px);
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero .section-eyebrow {
    margin-bottom: 10px;
  }

  .cover--site .hero-headline {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 1.04;
    max-width: 11.5ch;
    margin-bottom: 12px;
  }

  .hero-br-desktop {
    display: none;
  }

  .hero-headline {
    font-size: clamp(2.35rem, 11.5vw, 3.55rem);
    line-height: 1.03;
    margin-bottom: 12px;
    max-width: 10.5ch;
  }

  .cover--site .hero-sub {
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .hero-sub {
    max-width: 31ch;
    font-size: 15px;
    line-height: 1.58;
    margin-bottom: 16px;
  }

  .cover--site .hero-tags .tag {
    font-size: 9px;
    padding: 2px 8px;
    opacity: 0.72;
    border-color: rgba(227, 154, 59, 0.2);
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-cta .btn {
    min-height: 46px;
    width: 100%;
    padding: 12px 14px;
  }

  .hero-cta .btn-cta--ghost {
    grid-column: 1 / -1;
  }

  .hero-cta .btn:nth-child(n + 3) {
    display: none;
  }

  .cover--site .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 360px);
  }

  .cover--site .hero-cta .btn-cta--ghost {
    width: 100%;
  }

  .cover--site .home-link-editorial {
    width: auto;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tags .tag {
    font-size: 10px;
    padding: 3px 9px;
  }

  .services {
    padding-top: var(--space-xl);
  }

  .section-intro {
    max-width: 33ch;
    line-height: 1.65;
    margin-bottom: var(--space-md);
  }

  .section-method-note {
    max-width: none;
    margin-bottom: var(--space-lg);
    line-height: 1.45;
  }

  .method-note-intro {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .method-phases {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method-phase {
    display: block;
    padding: 10px 12px;
    border: 0.5px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
  }

  .services-grid {
    gap: 12px;
  }

  .card {
    padding: 18px;
  }

  .service-num {
    margin-bottom: 10px;
  }

  .services-grid h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .services-grid p {
    line-height: 1.58;
    margin-bottom: 8px;
  }

  .services:not(.services--editorial) .service-note {
    display: none;
  }

  .services-cta {
    margin-top: var(--space-lg);
  }

  .services-cta .btn,
  .work-cta .btn,
  .manifesto-cta .btn {
    width: 100%;
    min-height: 46px;
  }

  .work h2 {
    max-width: 11em;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: clamp(2rem, 8vw, 3rem);
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: var(--space-lg);
  }

  .work-card,
  .work-card--featured-wide {
    min-height: clamp(11rem, 46vw, 15rem);
  }

  .work-card--featured-wide {
    min-height: clamp(12.5rem, 54vw, 17rem);
  }

  .work-info {
    padding: 18px;
    gap: 8px;
  }

  .work-tags {
    min-height: 0;
  }

  .work-info h3 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .work-info p {
    line-height: 1.55;
  }

  .manifesto {
    padding-top: var(--space-xl);
  }

  .manifesto-quote {
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
  }

  .manifesto-sub {
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 430px) {
  .hero-headline {
    max-width: 9.8ch;
  }
}

@media (max-width: 390px) {
  .hero-headline {
    font-size: clamp(2.25rem, 11.5vw, 3.2rem);
  }

  .hero-cta {
    grid-template-columns: 1fr;
  }
}

/* Perfil / About — home teaser (links to /about/, not full profile) */
.criterio-teaser {
  position: relative;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(227, 154, 59, 0.06), transparent 42%),
    rgba(12, 14, 21, 0.55);
}
.criterio-teaser__inner {
  max-width: min(720px, 100%);
}
.criterio-teaser__title {
  margin: 0 0 var(--space-md);
}
.criterio-teaser__copy {
  margin: 0 0 var(--space-lg);
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.criterio-teaser__cta {
  margin-top: var(--space-sm);
}

/* ============================================
   Método HME84 — home block
   ============================================ */
.metodo-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 78% 68% at 86% 42%, rgba(255, 75, 32, 0.08) 0%, transparent 54%),
    linear-gradient(180deg, rgba(7, 28, 54, 0.08) 0%, var(--bg-surface) 34%, var(--bg-surface) 100%);
  padding: clamp(4.75rem, 10vw, 7.5rem) 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.metodo-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.95fr);
  grid-template-areas:
    "copy visual"
    "body visual"
    "actions visual";
  column-gap: clamp(2.5rem, 7vw, 6rem);
  row-gap: clamp(1.35rem, 3vw, 2.2rem);
  align-items: center;
}

.metodo-home__copy {
  grid-area: copy;
  max-width: 780px;
}

.metodo-home__eyebrow {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.8rem);
}

.metodo-home__headline {
  max-width: 11.5em;
  margin: 0;
}

.metodo-home__headline span,
.metodo-home__headline em {
  display: block;
}

.metodo-home__headline em {
  margin-top: 0.08em;
  font-style: italic;
  font-weight: 300;
  color: var(--hme84-champagne-bright, #e6c27a);
}

.metodo-home__statement {
  margin: clamp(1.1rem, 2vw, 1.45rem) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.32;
  color: rgba(181, 184, 196, 0.82);
}

.metodo-home__body-block {
  grid-area: body;
  max-width: 62ch;
  color: rgba(181, 184, 196, 0.9);
}

.metodo-home__body-block p {
  margin: 0 0 0.95rem;
  font-size: clamp(15.5px, 1.45vw, 18px);
  line-height: 1.72;
}

.metodo-home__body-block p:last-child {
  margin-bottom: 0;
  color: rgba(246, 242, 235, 0.96);
}

.metodo-home__principle {
  position: relative;
  margin: clamp(1.55rem, 3.2vw, 2.35rem) 0 clamp(1.55rem, 3vw, 2.1rem) clamp(0.65rem, 2vw, 1.2rem);
  padding-left: clamp(1rem, 2vw, 1.35rem);
  border-left: 1px solid rgba(216, 181, 106, 0.5);
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(230, 194, 122, 0.86);
}

.metodo-home__principle p {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.58;
}

.metodo-home__principle p + p {
  margin-top: 0.55rem;
}

.metodo-home__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 36px;
  padding-top: clamp(0.25rem, 1vw, 0.5rem);
}

.metodo-home__actions .home-link-editorial {
  padding: 8px 0;
}

.metodo-home__visual {
  grid-area: visual;
  position: relative;
  overflow: hidden;
  width: min(100%, 430px);
  justify-self: end;
  aspect-ratio: 0.92;
  margin: 0;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  border: 0.5px solid rgba(216, 181, 106, 0.16);
  border-radius: var(--r-sm);
  background:
    radial-gradient(circle at 68% 25%, rgba(255, 75, 32, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(10, 21, 38, 0.72), rgba(10, 13, 22, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metodo-home__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 0.5px solid rgba(216, 181, 106, 0.08);
  transform: rotate(-8deg);
}

.metodo-home__visual-mark {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(0.4rem, 1vw, 0.8rem);
}

.metodo-home__logo {
  width: min(52%, 180px);
  height: auto;
  object-fit: contain;
  opacity: 0.94;
  filter: saturate(0.96);
}

.metodo-home__signal-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-top: -0.8rem;
}

.metodo-home__trace {
  fill: none;
  stroke: url("#loop84LineEs");
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

html[lang="en"] .metodo-home__trace {
  stroke: url("#loop84LineEn");
}

.metodo-home__trace--quiet {
  opacity: 0.35;
}

.metodo-home__trace--thin {
  stroke-width: 0.85;
  opacity: 0.48;
}

.metodo-home__node {
  fill: url("#loop84NodeEs");
  opacity: 0.92;
}

html[lang="en"] .metodo-home__node {
  fill: url("#loop84NodeEn");
}

.metodo-home__node--focus {
  filter: drop-shadow(0 0 10px rgba(255, 75, 32, 0.38));
}

.metodo-home__ghost-node {
  fill: rgba(216, 181, 106, 0.34);
}

@media (max-width: 900px) {
  .metodo-home {
    padding: clamp(3.75rem, 12vw, 5rem) 0;
  }

  .metodo-home__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "body"
      "actions";
    row-gap: clamp(1.25rem, 5vw, 1.9rem);
  }

  .metodo-home__visual {
    justify-self: stretch;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.35;
  }

  .metodo-home__actions {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .metodo-home__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .metodo-home__visual {
    aspect-ratio: 1.42;
  }

  .metodo-home__signal-map {
    height: clamp(170px, 54vw, 215px);
    margin-top: -0.35rem;
  }

}

/* ============================================
   Premium editorial hybrid — home refresh
   ============================================ */

.page-home .cover--site.cover--poster::before {
  background:
    radial-gradient(ellipse 110% 88% at 8% 12%, rgba(7, 31, 27, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 120% 95% at 12% 22%, rgba(10, 21, 38, 0.99) 0%, rgba(10, 21, 38, 0.92) 36%, rgba(10, 21, 38, 0.58) 56%, transparent 72%),
    linear-gradient(90deg, rgba(10, 21, 38, 0.98) 0%, rgba(10, 21, 38, 0.9) 42%, rgba(10, 21, 38, 0.28) 64%, rgba(10, 21, 38, 0.04) 84%, rgba(10, 21, 38, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 21, 38, 0.12) 0%, rgba(10, 21, 38, 0.2) 54%, rgba(10, 21, 38, 0.88) 100%);
}

.page-home .cover--site.cover--poster::after {
  opacity: 0.07;
}

.page-home .cover--site.cover--poster .cover__artwork {
  opacity: 0.58;
  filter: saturate(0.78) contrast(0.92) brightness(0.58);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0.42) 34%, #000 52%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0.42) 34%, #000 52%, #000 100%);
}

.page-home .hero-main::before {
  background:
    radial-gradient(ellipse 115% 100% at 0% 18%, rgba(7, 28, 54, 0.42) 0%, rgba(7, 31, 27, 0.28) 48%, transparent 72%);
}

/* Cuando necesites — continuación del hero (mismo fondo y asset) */
.page-home .cover--site .home-situaciones--hero-continuum {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding:
    clamp(2px, 0.5vh, 6px)
    max(var(--space-lg, 32px), clamp(24px, 4vw, 48px))
    clamp(12px, 1.8vh, 18px);
  background: none;
  border: none;
  box-shadow: none;
}

.page-home .home-situaciones__title {
  width: fit-content;
  max-width: 12em;
  margin: 0 15% clamp(1.05rem, 2.2vw, 1.4rem) auto;
  text-align: right;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--hme84-champagne-bright, #e6c27a);
}

.page-home .home-situaciones__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 1.65rem);
  row-gap: clamp(0.45rem, 1vw, 0.7rem);
  overflow: visible;
}

@media (min-width: 769px) {
  .page-home .home-situaciones__grid {
    row-gap: clamp(0.55rem, 1.1vw, 0.8rem);
  }

  .page-home .home-situaciones__cell:nth-child(n + 4) {
    margin-top: clamp(1.15rem, 2.5vw, 1.75rem);
  }
}

.page-home .home-situaciones__cell {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 0;
  min-height: clamp(2.35rem, 4vw, 2.85rem);
  border: none;
  background: none;
  box-shadow: none;
}

.page-home .home-situaciones__ghost {
  position: absolute;
  top: 50%;
  left: -0.18em;
  z-index: 0;
  transform: translateY(-52%);
  font-family: var(--font-serif);
  font-size: clamp(4.75rem, 9.8vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--hme84-champagne, #d8b56a);
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.page-home .home-situaciones__text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.12em 0 0.12em clamp(1.35rem, 2.8vw, 1.75rem);
  font-size: clamp(12.5px, 1.2vw, 13.5px);
  line-height: 1.42;
  color: rgba(240, 237, 230, 0.78);
}

@media (max-width: 768px) {
  .page-home .cover--site .home-situaciones--hero-continuum {
    padding:
      clamp(6px, 1vh, 10px)
      max(var(--space-lg, 32px), clamp(20px, 5vw, 32px))
      clamp(10px, 1.6vh, 14px);
  }

  .page-home .home-situaciones__title {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    font-size: clamp(1rem, 4.2vw, 1.15rem);
    color: var(--hme84-champagne-bright, #e6c27a);
  }

  .page-home .home-situaciones__grid {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }

  .page-home .home-situaciones__cell:nth-child(4) {
    margin-top: 0.7rem;
  }

  .page-home .home-situaciones__cell {
    min-height: 2.15rem;
  }

  .page-home .home-situaciones__ghost {
    font-size: clamp(3.85rem, 17vw, 5.25rem);
    opacity: 0.26;
  }
}

.page-home .work-cta,
.page-home .criterio-teaser__cta,
.page-home .manifesto-cta {
  margin-top: var(--space-md);
}

.page-home .manifesto-cta {
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: center;
}

.page-home .work-cta .home-link-editorial,
.page-home .criterio-teaser__cta,
.page-home .manifesto-cta .home-link-editorial {
  padding: 6px 0;
}

/* Qué hacemos — layout editorial (narrativa | oferta) */
.page-home .services--editorial {
  padding-top: clamp(4rem, 9vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.page-home .services--editorial .services__layout {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-home .services--editorial .services__intro {
  position: sticky;
  top: calc(var(--nav-header-height, 96px) + 1.5rem);
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

.page-home .services--editorial .services__headline {
  margin: 0 0 clamp(1.15rem, 2.4vw, 1.5rem);
  max-width: 11em;
}

.page-home .services--editorial .services__headline-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(246, 242, 235, 0.98);
}

.page-home .services--editorial .services__headline-line--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--hme84-champagne-bright, #e6c27a);
}

.page-home .services--editorial .section-intro {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 28ch;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.45vw, 15px);
  line-height: 1.65;
}

.page-home .services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.page-home .services-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(2.75rem, 5.5vw, 3.5rem) minmax(0, 1fr);
  column-gap: clamp(0.9rem, 1.8vw, 1.2rem);
  width: min(100%, 34rem);
  margin: 0;
  padding: clamp(0.95rem, 1.75vw, 1.35rem) clamp(1.1rem, 2vw, 1.5rem);
  border-radius: var(--r-lg);
  transition: border-color 0.25s ease;
}

.page-home .services-card--01 {
  z-index: 1;
  margin-bottom: clamp(0.35rem, 1vw, 0.65rem);
}

.page-home .services-card--02 {
  margin-left: clamp(2.25rem, 7.5vw, 5.5rem);
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
  z-index: 2;
}

.page-home .services-card--03 {
  margin-left: clamp(4.75rem, 14vw, 10rem);
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
  z-index: 3;
  width: min(100%, 36rem);
}

.page-home .services-card__glyph {
  grid-row: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 5vw, 3.25rem);
  height: clamp(2.5rem, 5vw, 3.25rem);
  color: var(--hme84-champagne, #d8b56a);
  opacity: 0.88;
}

.page-home .services-card__glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .services-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-home .services-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

.page-home .services-card__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(240, 237, 230, 0.96);
}

.page-home .services-card__copy p {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.page-home .services-card__copy p:last-child {
  margin-bottom: 0;
}

.page-home .services--editorial .service-note {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid rgba(216, 181, 106, 0.35);
  padding-left: var(--space-sm);
  margin-top: 0.65rem !important;
}

.page-home .services--editorial .card-accent {
  border-color: rgba(216, 181, 106, 0.28);
  background:
    linear-gradient(145deg, rgba(7, 28, 54, 0.35) 0%, rgba(22, 25, 34, 0.92) 100%);
}


@media (max-width: 1024px) {
  .page-home .services--editorial .services__layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 2.75rem);
  }

  .page-home .services--editorial .services__intro {
    position: static;
    padding-right: 0;
  }

  .page-home .services--editorial .services__headline {
    max-width: none;
  }

  .page-home .services--editorial .section-intro {
    max-width: 42ch;
  }

  .page-home .services-card {
    width: 100%;
    max-width: 40rem;
  }

  .page-home .services-card--02 {
    margin-left: clamp(1.5rem, 5vw, 3.25rem);
  }

  .page-home .services-card--03 {
    margin-left: clamp(3rem, 9vw, 6rem);
  }
}

@media (max-width: 640px) {
  .page-home .services-card {
    grid-template-columns: clamp(2.75rem, 14vw, 3.5rem) minmax(0, 1fr);
    padding: 1rem 1.05rem;
  }

  .page-home .services-card--02,
  .page-home .services-card--03 {
    margin-left: clamp(0.65rem, 3.5vw, 1.25rem);
  }

  .page-home .services-card__glyph {
    width: clamp(2.25rem, 11vw, 2.85rem);
    height: clamp(2.25rem, 11vw, 2.85rem);
  }

  .page-home .services__all-link {
    align-self: stretch;
    justify-content: center;
  }

}

/* Log & Logic */
.manifesto-quote em {
  font-style: italic;
  color: var(--hme84-champagne, #d8b56a);
}

.manifesto-closer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
  max-width: 28ch;
}

.page-home .manifesto {
  padding: clamp(4rem, 9vw, 5.5rem) 0;
}

/* ── FUGAS — puente al diagnóstico (bloque comercial, no rediseño) ──
   Reusa la retícula editorial de .services--editorial: intro a la izquierda,
   contenido a la derecha. Sin color propio: todo sale de tokens.css. */

.page-home .fugas-home {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--border);
}

.page-home .fugas-home__layout {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-home .fugas-home__headline {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 10px);
  font-family: var(--font-serif);
  font-size: clamp(var(--home-h1-min), var(--home-h1-fluid), var(--home-h1-max));
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: rgba(246, 242, 235, 0.98);
  margin-bottom: var(--space-md);
}
.page-home .fugas-home__headline-line--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--hme84-champagne-bright, #e6c27a);
}

.page-home .fugas-home__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .fugas-home__list li {
  position: relative;
  padding: 0 0 var(--space-sm) var(--space-md);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-home .fugas-home__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.page-home .fugas-home__ofertas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  min-width: 0;
}
.page-home .fugas-oferta {
  padding: var(--space-lg);
  min-width: 0;
}
.page-home .fugas-oferta__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--accent);
}
.page-home .fugas-oferta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-home .fugas-home__cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.page-home .fugas-home__cta-copy {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.page-home .fugas-home__cta-btn {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .page-home .fugas-home__layout {
    grid-template-columns: 1fr;
  }
  .page-home .fugas-home__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .page-home .fugas-home__cta-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
}
