.home-hero,
.page-hero,
.service-hero {
  position: relative;
  overflow: hidden;
  color: var(--bone);
  background: var(--ink);
}

.home-hero {
  min-height: 88dvh;
  padding: 132px 0 64px;
}

.home-hero-bg,
.home-hero-bg::after {
  position: absolute;
  inset: 0;
}

.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.home-hero-bg::after {
  content: "";
  background:
    radial-gradient(58% 52% at 68% 36%, rgba(155, 105, 64, 0.24), transparent 70%),
    linear-gradient(90deg, rgba(23, 22, 20, 0.94), rgba(23, 22, 20, 0.56) 48%, rgba(23, 22, 20, 0.78)),
    linear-gradient(0deg, rgba(23, 22, 20, 0.93), transparent 55%);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.68fr);
  gap: 50px;
  align-items: center;
}

.home-copy h1,
.page-hero h1,
.service-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.7vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.service-hero p {
  max-width: 660px;
  color: rgba(251, 250, 246, 0.78);
  font-size: 1.08rem;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-kicker li {
  padding: 7px 10px;
  color: rgba(251, 250, 246, 0.82);
  border: 1px solid rgba(251, 250, 246, 0.18);
  border-radius: 4px;
  background: rgba(251, 250, 246, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.home-showcase {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
}

.home-showcase img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.home-showcase::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(23, 22, 20, 0.74), transparent 54%);
}

.showcase-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 20px;
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.72);
  backdrop-filter: blur(16px);
}

.showcase-note span,
.directory-card span,
.project-case span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.showcase-note strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.showcase-note p {
  margin: 0;
  color: rgba(251, 250, 246, 0.72);
}

.home-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 40px), 720px);
  margin: 36px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.48);
}

.home-metrics div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-metrics div:last-child {
  border-right: 0;
}

.home-metrics strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
}

.home-metrics span {
  color: rgba(251, 250, 246, 0.72);
}

.seo-claim {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.04) 1px, transparent 1px) 0 0 / 86px 86px,
    var(--paper);
}

.seo-claim::before {
  position: absolute;
  right: -14%;
  top: -24%;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 105, 64, 0.18), transparent 64%);
}

.seo-claim-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.seo-claim h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 5.8rem);
  line-height: 0.92;
  text-wrap: balance;
}

.seo-claim p {
  max-width: 66ch;
  color: rgba(23, 22, 20, 0.72);
}

.seo-routes {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.seo-route {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  color: var(--ink);
  border: 1px solid rgba(23, 22, 20, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.72);
  box-shadow: 0 18px 48px rgba(33, 28, 21, 0.1);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.seo-route:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 36, 28, 0.34);
  box-shadow: 0 26px 64px rgba(33, 28, 21, 0.16);
}

.seo-route b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--bone);
  background: var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.seo-route strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.seo-route span {
  color: rgba(23, 22, 20, 0.62);
  font-size: 0.9rem;
}

.seo-route i {
  color: var(--red);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 800;
}

.quote-panel {
  position: sticky;
  top: 118px;
  padding: 26px;
  color: var(--bone);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(223, 36, 28, 0.18), transparent 42%),
    var(--ink);
  box-shadow: 0 34px 90px rgba(33, 28, 21, 0.28);
}

.quote-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 0.98;
}

.quote-panel p {
  color: rgba(251, 250, 246, 0.72);
}

.quote-panel .btn {
  width: 100%;
  margin-top: 12px;
}

.quote-checks {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 22px 0 16px;
  list-style: none;
  color: rgba(251, 250, 246, 0.78);
  font-size: 0.92rem;
}

.quote-checks li::before {
  content: "+";
  margin-right: 9px;
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 800;
}

.floating-quote {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  color: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 20px 50px rgba(108, 19, 15, 0.35);
  font-weight: 850;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.floating-quote:hover {
  transform: translateY(-3px);
  background: var(--red-dark);
  box-shadow: 0 26px 64px rgba(108, 19, 15, 0.44);
}

.floating-quote:active {
  transform: translateY(1px) scale(0.98);
}

.floating-quote svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.page-section {
  padding: 104px 0;
  background: var(--bone);
}

.service-directory {
  padding-top: 74px;
}

.service-directory-head {
  margin-bottom: 34px;
}

.page-section.muted {
  background: var(--paper);
}

.section-split,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-split h2,
.detail-grid h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-split > p {
  margin: 0;
  color: rgba(23, 22, 20, 0.7);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.directory-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: var(--bone);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.directory-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.directory-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(23, 22, 20, 0.92), rgba(23, 22, 20, 0.12) 64%);
}

.directory-card:hover img {
  transform: scale(1.05);
}

.directory-card span,
.directory-card strong,
.directory-card small {
  position: relative;
  z-index: 1;
}

.directory-card strong {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.directory-card small {
  font-weight: 800;
}

.dark-band {
  padding: 88px 0;
  color: var(--bone);
  background: var(--steel);
}

.dark-band .section-split > p {
  color: rgba(251, 250, 246, 0.72);
}

.process-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.process-mini article {
  min-height: 220px;
  padding: 24px;
  background: rgba(23, 22, 20, 0.32);
}

.process-mini span {
  font-family: var(--font-mono);
  color: var(--wood-soft, #b8874e);
}

.process-mini strong {
  display: block;
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.project-grid.large {
  grid-template-columns: repeat(2, 1fr);
}

.project-case {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: stretch;
  min-height: 240px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.project-case img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
}

.project-case div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-case h3 {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.project-case p {
  margin: 0;
  color: rgba(23, 22, 20, 0.68);
}

.page-hero.compact {
  padding: 150px 0 95px;
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.92), rgba(23, 22, 20, 0.62)),
    url("/assets/fondo-proyectos.webp") center / cover;
}

.service-hero {
  padding: 150px 0 92px;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 70px;
  align-items: center;
}

.service-hero img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.28);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-list article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-list span {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 30px;
  background: var(--red);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.contact-lab {
  background: var(--bone);
}

@media (max-width: 980px) {
  .home-hero-grid,
  .section-split,
  .detail-grid,
  .service-hero-grid,
  .seo-claim-grid {
    grid-template-columns: 1fr;
  }

  .directory-grid,
  .project-grid,
  .project-grid.large {
    grid-template-columns: 1fr;
  }

  .home-showcase,
  .home-showcase img,
  .service-hero img {
    min-height: 380px;
  }

  .process-mini,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .home-hero,
  .page-hero.compact,
  .service-hero {
    padding: 112px 0 54px;
  }

  .home-copy h1,
  .page-hero h1,
  .service-hero h1 {
    font-size: 2.6rem;
  }

  .hero-kicker {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-kicker li {
    font-size: 0.62rem;
  }

  .home-showcase {
    display: none;
  }

  .home-metrics {
    grid-template-columns: repeat(3, 1fr);
    width: calc(100% - 40px);
  }

  .home-metrics div {
    padding: 14px 10px;
  }

  .home-metrics strong {
    font-size: 1.18rem;
  }

  .home-metrics span {
    display: block;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .page-section {
    padding: 76px 0;
  }

  .seo-claim {
    padding: 76px 0;
  }

  .seo-route {
    grid-template-columns: 42px 1fr;
    min-height: 0;
  }

  .seo-route b {
    width: 42px;
    height: 42px;
  }

  .seo-route i {
    display: none;
  }

  .floating-quote {
    left: 12px;
    right: 12px;
    justify-content: center;
    bottom: 12px;
  }

  .directory-card {
    min-height: 360px;
  }

  .project-case {
    grid-template-columns: 1fr;
  }
}
