/* Service Landing: critical hero overrides */
body.is-service-landing #section-hero-header {
  background:
    radial-gradient(circle at top right, rgba(var(--color-brand-blue-rgb), 0.2), transparent 34%),
    linear-gradient(180deg, var(--color-surface-deep) 0%, var(--color-surface-dark) 100%);
}

body.is-service-landing #section-hero-header .component-home-hero {
  gap: 36px;
  padding: 40px 30px 120px;
}

body.is-service-landing #section-hero-header .component-two-columns-title > .column:nth-child(1),
body.is-service-landing #section-hero-header .component-two-columns-title > .column:nth-child(2) {
  width: 50%;
  max-width: 50%;
}

body.is-service-landing #section-hero-header .component-home-hero .description-container {
  grid-template-columns: 1fr;
  padding-bottom: 0;
}

body.is-service-landing #section-hero-header .component-home-hero h1,
body.is-service-landing #section-hero-header .component-home-hero b {
  max-width: 500px;
  margin-bottom: 0;
  font-size: 36px;
  line-height: 36px;
}

body.is-service-landing #section-hero-header .video-container {
  overflow: hidden;
  border-radius: 18px;
}

body.is-service-landing #section-hero-header .video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--color-surface-deep-rgb), 0.1) 0%,
    rgba(var(--color-surface-deep-rgb), 0.55) 100%
  );
  pointer-events: none;
}

body.is-service-landing #section-hero-header .button-container {
  gap: 22px;
}

body.is-service-landing #section-hero-header .button-container .button {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  body.is-service-landing #section-hero-header .component-home-hero {
    gap: 20px;
    padding: 30px 20px 60px;
  }

  body.is-service-landing #section-hero-header .component-two-columns-title {
    flex-direction: column;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.is-service-landing #section-hero-header .component-home-hero h1,
  body.is-service-landing #section-hero-header .component-home-hero b {
    font-size: 32px;
    line-height: 36px;
  }

  body.is-service-landing #section-hero-header .component-home-hero h1 {
    max-width: 100%;
    margin: 0 0 30px;
    text-align: left;
  }

  body.is-service-landing #section-hero-header .component-home-hero .description-container {
    justify-items: start;
    justify-content: start;
    gap: 0;
  }

  body.is-service-landing #section-hero-header .component-home-hero h3 {
    font-size: 17px;
    line-height: 30px;
    text-align: left;
  }

  body.is-service-landing #section-hero-header .component-home-hero .description-container h3 {
    width: 100%;
  }

  body.is-service-landing #section-hero-header .component-two-columns-title > .column:nth-child(1),
  body.is-service-landing #section-hero-header .component-two-columns-title > .column:nth-child(2) {
    width: 100%;
    max-width: 100%;
  }

  body.is-service-landing #section-hero-header .component-home-hero .column:nth-child(1) {
    padding-bottom: 0;
  }

  body.is-service-landing #section-hero-header .component-home-hero .button-container {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 30px;
  }

  body.is-service-landing #section-hero-header .component-home-hero .video-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  body.is-service-landing #section-hero-header .video-container::after {
    background: var(--color-transparent);
  }

  body.is-service-landing #section-hero-header #home-video {
    display: block;
    height: auto;
  }
}

/* Lawyers: title, description and CTA share the video overlay. */
body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.is-service-landing-abogados #section-hero-header .component-home-hero #home-video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container::after {
  background: linear-gradient(
    180deg,
    rgba(var(--color-surface-deep-rgb), .1) 0%,
    rgba(var(--color-surface-deep-rgb), .8) 100%
  );
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px;
}

body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container {
  width: 100%;
  max-width: 490px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy h1 {
  width: 100%;
  max-width: 490px;
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy h1 {
  font-weight: 700;
}

body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container,
body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy h1 {
  max-width: 660px;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy h1 span {
  font-weight: inherit;
}

body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container h3 {
  width: 100%;
  max-width: 490px;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  text-align: left;
  color: var(--color-text-light);
  font-size: 28px;
  line-height: 1.35;
  white-space: normal;
  text-wrap: balance;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy .button-container {
  position: static;
  margin: 0;
  flex-wrap: wrap;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-benefit {
  margin: 8px 0 0;
  color: var(--color-text-light-soft);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: balance;
}

body.is-service-landing-abogados #section-hero-header .service-landing-hero-benefit a {
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 981px) {
  body.is-service-landing-abogados #section-hero-header {
    min-height: calc(var(--app-stable-viewport-height, 100svh) - 80px);
    overflow: hidden;
    isolation: isolate;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero {
    position: relative;
    align-items: stretch;
    justify-content: flex-end;
    max-width: 1200px;
    min-height: calc(var(--app-stable-viewport-height, 100svh) - 80px);
    padding: 0 30px 50px;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container {
    position: absolute;
    inset: -80px 0 0;
    left: 50%;
    width: 100vw;
    height: auto;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 0;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 100px;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero #home-video {
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  body.is-service-landing-abogados #section-hero-header {
    padding-top: 0;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero {
    min-height: 100vh;
    min-height: var(--app-stable-viewport-height, 100svh);
    max-width: none;
    justify-content: flex-end;
    padding: 24px 20px 50px;
    isolation: isolate;
    overflow: hidden;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container {
    position: static;
    display: block;
    overflow: visible;
    border-radius: 0;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero #home-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container::after {
    z-index: -1;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy {
    padding: 0;
    padding-bottom: 60px;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy {
    gap: 25px;
    padding-bottom: 0;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero h1 {
    margin-top: 70px;
    margin-bottom: 0;
    font-size: 40px;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container {
    gap: 20px;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container h3 {
    font-size: 20px;
    white-space: normal;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy .button {
    font-size: 12px;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy .button-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy .button-container .button {
    width: 100%;
    box-sizing: border-box;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy .button-container {
    gap: 10px;
  }
}

@media (max-width: 980px) {
  body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container h3,
  body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container h3 > div {
    text-align: left !important;
  }
}


@media (min-width: 981px) {
  body.is-service-landing-abogados #section-hero-header .component-home-hero .description-container {
    max-width: 620px;
  }

  body.is-service-landing-abogados #section-hero-header .service-landing-hero-video-copy h1 {
    font-size: 60px;
    max-width: 620px;
  }

  body.is-service-landing-abogados #section-hero-header .component-home-hero .video-container::after {
    background: linear-gradient(
      180deg,
      rgba(var(--color-surface-deep-rgb), .1) 0%,
      rgba(var(--color-surface-deep-rgb), .55) 55%,
      rgba(var(--color-surface-deep-rgb), .92) 100%
    );
  }
}

@media (min-width: 981px) {
  body.is-service-landing-contadores #section-hero-header .component-home-hero .description-container,
  body.is-service-landing-contadores #section-hero-header .service-landing-hero-video-copy h1 {
    max-width: 660px;
  }
}
