:root {
  --navy: #27333f;
  --navy-deep: #1e2a35;
  --sand: #e5d0b8;
  --sand-pale: #f1e5d5;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #27333f;
  --muted: #6e7479;
  --success: #1f6a43;
  --error: #a13434;
  --focus: #a86c26;
  --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --content: 86rem;
  --radius: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
}

body.nav-open {
  overflow: hidden;
}

html.nav-open,
html.nav-open body {
  overscroll-behavior: none;
  overflow: hidden;
}

html.nav-open body {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  transform: translateY(-180%);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

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

/* Cabecera alta y navegación superpuesta, como en el PDF. */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.brand-stage {
  position: relative;
  display: grid;
  min-height: clamp(28rem, 36.4vw, 44rem);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.brand-stage::before,
.brand-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.brand-stage::before {
  inset: -42% -18%;
  background: url("/assets/images/logo-720.webp") center / min(110rem, 85vw) no-repeat;
  opacity: 0.045;
  transform: scale(1.85);
  filter: saturate(0.25);
}

.brand-stage::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 14% 10%, rgba(229, 208, 184, 0.22), transparent 32%),
    radial-gradient(ellipse at 82% 45%, rgba(39, 51, 63, 0.035), transparent 30%);
}

.brand-stage__link {
  width: clamp(18rem, 22vw, 27rem);
  text-decoration: none;
}

.brand-stage__logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 1px solid rgba(229, 208, 184, 0.5);
  border-radius: 50%;
  background: var(--navy);
  color: var(--sand);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.nav-toggle__bars {
  position: relative;
}

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

.nav-toggle__bars::before {
  top: -0.42rem;
}

.nav-toggle__bars::after {
  top: 0.42rem;
}

body.nav-open .nav-toggle__bars {
  background: transparent;
}

body.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 20;
  padding: 0.25rem 2.1rem;
  transform: translate(-50%, 50%);
  border-radius: 0.9rem;
  background: var(--navy);
  color: var(--sand);
  box-shadow: 0 0.45rem 1.2rem rgba(30, 42, 53, 0.12);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav__item {
  display: flex;
  align-items: center;
}

.primary-nav__item + .primary-nav__item::before {
  content: "|";
  color: var(--sand);
  font-size: 1.65rem;
  font-weight: 300;
}

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 3.35rem;
  padding-inline: 1.25rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  font-stretch: condensed;
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav__link:hover,
.primary-nav__link[aria-current="page"] {
  font-weight: 800;
}

/* Portadas fotográficas. */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(30rem, 37.5vw, 45rem);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--sand);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background:
    image-set(
      url("/assets/images/hero-768.webp") 1x,
      url("/assets/images/hero-1920.webp") 2x
    )
    center / cover no-repeat;
}

.hero::after {
  background: rgba(229, 208, 184, 0.58);
}

.hero__title {
  max-width: 24ch;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.55vw, 6.68rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-align: center;
}

.hero--services {
  min-height: clamp(31rem, 37vw, 44.75rem);
  place-items: stretch;
}

.services-page .brand-stage {
  min-height: clamp(28rem, 36.8vw, 44.75rem);
}

.hero--services .hero__inner {
  display: flex;
  width: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  padding-bottom: 7.75rem;
}

.hero--services .hero__title {
  max-width: 17ch;
  font-size: clamp(3.2rem, 6vw, 7.3rem);
  text-align: center;
}

.service-tabs {
  position: absolute;
  right: 0;
  bottom: clamp(5rem, 7.6vw, 9rem);
  left: 0;
  display: grid;
  width: 79%;
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4%;
}

.service-tab {
  display: flex;
  min-height: clamp(4rem, 5vw, 6rem);
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.52vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.service-tab span {
  font-size: 0.77em;
}

.service-tab[aria-selected="true"] {
  background: var(--navy);
  color: var(--sand);
}

/* Inicio. */
.trust-strip {
  background: var(--navy);
  color: var(--sand);
}

.trust-strip__inner {
  display: flex;
  min-height: clamp(8rem, 11.1vw, 13.6rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  padding-block: 1rem;
  font-size: clamp(1.55rem, 2.9vw, 3.46rem);
  text-align: center;
}

.trust-strip__inner p {
  margin: 0;
}

.trust-strip__inner strong {
  font-weight: 800;
}

.trust-strip__link {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.whatsapp-mark {
  display: block;
  width: clamp(5rem, 9vw, 10.8rem);
  aspect-ratio: 1;
}

.whatsapp-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-section,
.about-section {
  background: var(--sand);
}

.intro-section__inner {
  width: min(84%, 104rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 2.4vw, 3rem);
  text-align: center;
}

.intro-section h2 {
  max-width: 29ch;
  margin: 0 auto clamp(2rem, 2.65vw, 3.3rem);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 5.25rem);
  line-height: 1.05;
}

.intro-section p {
  margin: 0 auto clamp(0.65rem, 0.95vw, 1.2rem);
  font-size: clamp(1.25rem, 2.4vw, 2.9rem);
  line-height: 1.2;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.home-services {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.home-services::before {
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: url("/assets/images/logo-720.webp") center / 85rem no-repeat;
  content: "";
  opacity: 0.032;
  transform: rotate(-8deg) scale(1.75);
  filter: saturate(0);
}

.home-services__inner {
  width: calc(100% - 4rem);
  margin-inline: auto;
  padding: clamp(2rem, 2.4vw, 3rem) 0 clamp(1.25rem, 1.6vw, 2rem);
}

.home-services h2 {
  margin: 0 0 clamp(1.6rem, 2.15vw, 2.7rem);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 5.25rem);
  line-height: 1;
  text-align: center;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.5vw, 3rem);
}

.area-card {
  display: block;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.area-card img {
  width: 100%;
  aspect-ratio: 1.72;
  border-radius: 0.85rem;
  object-fit: cover;
}

.area-card h3 {
  margin: 0.8rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.15vw, 2.7rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.area-card h3 span {
  font-size: 0.77em;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.area-card p {
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.6vw, 1.95rem);
  line-height: 1.1;
}

.about-section__inner {
  width: min(84%, 104rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 2.45vw, 3rem) 0 clamp(0.8rem, 1vw, 1.25rem);
  font-size: clamp(1.3rem, 2.4vw, 2.9rem);
  line-height: 1.2;
  text-align: center;
}

.about-section p {
  margin: 0 0 clamp(2rem, 2.9vw, 3.5rem);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section p:nth-child(2) {
  position: relative;
  left: 50%;
  width: min(90vw, 112rem);
  max-width: none;
  margin-inline: 0;
  transform: translateX(-50%);
}

/* Formulario común, conservando la composición del PDF. */
.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-section__inner {
  width: 100%;
  margin-inline: auto;
  padding: clamp(2rem, 2.1vw, 2.65rem) 0 clamp(1.35rem, 1.5vw, 1.9rem);
}

.contact-section h1,
.contact-section h2 {
  margin: 0 0 clamp(2.5rem, 3.45vw, 4.3rem);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.contact-layout {
  display: grid;
  width: 60%;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: 34% 58%;
  gap: 8%;
}

.contact-brand {
  display: flex;
  justify-content: center;
}

.contact-brand img {
  width: min(100%, 20.5vw);
  aspect-ratio: 1;
  object-fit: contain;
}

.contact-form {
  display: grid;
  width: 100%;
  gap: 0.28rem;
}

.contact-form.is-submitted > :not(.form-status) {
  display: none;
}

.field {
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--navy);
  transition: border-color 150ms ease;
}

.field input,
.field select {
  min-height: clamp(2.75rem, 3vw, 3.65rem);
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
}

.field textarea {
  min-height: clamp(9rem, 12vw, 14.5rem);
  padding: 1rem 1.35rem;
  border-radius: 1.35rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9b9fa3;
  opacity: 1;
}

.field select:invalid {
  color: #9b9fa3;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  min-height: 0;
  margin: 0.2rem 1rem 0;
  color: #ffd9d9;
  font-size: 0.88rem;
}

.field-error:empty {
  display: none;
}

.form-submit {
  justify-self: center;
  width: min(70%, 26rem);
  min-height: 3.45rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.15rem;
}

.form-submit:hover {
  background: var(--sand-pale);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  text-align: center;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.form-status[data-state="success"] {
  color: #bbf3d2;
}

.form-status[data-state="error"] {
  color: #ffd4d4;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-strip {
  background: var(--white);
  color: var(--navy);
}

.contact-strip__inner {
  display: grid;
  width: min(94rem, calc(100% - 3rem));
  min-height: clamp(7rem, 10vw, 12rem);
  margin-inline: auto;
  align-items: center;
  grid-template-columns: 0.75fr 1fr 1.45fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 2.45rem);
  text-decoration: none;
}

.contact-detail__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.contact-detail__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Paneles de especialidad: imagen siempre a la izquierda y fondo alternado. */
.category-intro {
  display: grid;
  min-height: clamp(21rem, 27.2vw, 32.65rem);
  place-items: center;
  padding: clamp(4rem, 7vw, 8rem) 2rem;
  text-align: center;
}

.category-intro--dark {
  background: var(--navy);
  color: var(--sand);
}

.category-intro--sand {
  background: var(--sand);
  color: var(--navy);
}

.category-intro__content {
  width: min(88%, 106rem);
}

.category-intro h2 {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.2vw, 2.7rem);
  line-height: 1.05;
}

.category-intro p {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.7rem);
  line-height: 1.2;
}

#geofisica .category-intro__content {
  transform: translateY(-1rem);
}

#geomatica .category-intro__content {
  transform: translateY(-2.4rem);
}

#geologia .category-intro__content {
  transform: translateY(-2.2rem);
}

.service-row {
  --service-image-top: clamp(1.23rem, 2.27vw, 2.73rem);
  --service-image-bottom: clamp(0.67rem, 1.23vw, 1.48rem);
  display: grid;
  position: relative;
  min-height: clamp(31rem, 40vw, 48.75rem);
  grid-template-columns: 1fr 1fr;
  overflow: visible;
}

.service-row--sand {
  background: var(--sand);
  color: var(--navy);
}

.service-row--dark {
  background: var(--navy);
  color: var(--sand);
}

.service-row__media {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.service-row__media picture {
  position: absolute;
  inset:
    calc(var(--service-image-top) * -1)
    -0.25rem
    calc(var(--service-image-bottom) * -1)
    clamp(1rem, 1.56vw, 1.875rem);
  display: block;
  overflow: hidden;
  border-radius: clamp(2rem, 2.8vw, 3.4rem);
}

.service-row__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.service-row:nth-of-type(odd) .service-row__media picture {
  -webkit-clip-path: url("#service-image-wide-right");
  clip-path: url("#service-image-wide-right");
}

.service-row:nth-of-type(even) .service-row__media picture {
  -webkit-clip-path: url("#service-image-narrow-right");
  clip-path: url("#service-image-narrow-right");
}

/* El PDF desplaza cada máscara de forma distinta; estos valores evitan que dos
   fotografías se monten entre sí y conservan la invasión exacta de cada franja. */
#geofisica .service-row:nth-of-type(1) {
  --service-image-top: clamp(0.6rem, 1.1vw, 1.32rem);
  --service-image-bottom: clamp(1.15rem, 2.1vw, 2.53rem);
}

#geofisica .service-row:nth-of-type(2) {
  --service-image-top: clamp(2.58rem, 4.78vw, 5.73rem);
  --service-image-bottom: clamp(-0.69rem, -0.58vw, -0.31rem);
}

#geofisica .service-row:nth-of-type(3) {
  --service-image-top: clamp(0.39rem, 0.71vw, 0.86rem);
  --service-image-bottom: clamp(2.34rem, 4.32vw, 5.19rem);
}

#geofisica .service-row:nth-of-type(4) {
  --service-image-top: clamp(1.4rem, 2.6vw, 3.12rem);
  --service-image-bottom: clamp(1.11rem, 2.05vw, 2.46rem);
}

#geofisica .service-row:nth-of-type(5) {
  --service-image-top: clamp(-1.48rem, -1.23vw, -0.67rem);
  --service-image-bottom: clamp(3.09rem, 5.72vw, 6.86rem);
}

#geofisica .service-row:nth-of-type(6) {
  --service-image-top: clamp(0.69rem, 1.29vw, 1.54rem);
  --service-image-bottom: clamp(1.81rem, 3.35vw, 4.03rem);
}

#geomatica .service-row:nth-of-type(1),
#geologia .service-row:nth-of-type(1) {
  --service-image-top: clamp(1.23rem, 2.27vw, 2.73rem);
  --service-image-bottom: clamp(0.67rem, 1.23vw, 1.48rem);
}

#geomatica .service-row:nth-of-type(2),
#geologia .service-row:nth-of-type(2) {
  --service-image-top: clamp(2.58rem, 4.78vw, 5.73rem);
  --service-image-bottom: 0rem;
}

#geomatica .service-row:nth-of-type(3) {
  --service-image-top: clamp(0.18rem, 0.33vw, 0.39rem);
  --service-image-bottom: clamp(0.77rem, 1.43vw, 1.71rem);
}

#geomatica .service-row:nth-of-type(4) {
  --service-image-top: clamp(2.76rem, 5.12vw, 6.14rem);
  --service-image-bottom: clamp(-2.96rem, -2.47vw, -1.33rem);
}

#geomatica .service-row:nth-of-type(5),
#geomatica .service-row:nth-of-type(7) {
  --service-image-top: clamp(0.39rem, 0.71vw, 0.86rem);
  --service-image-bottom: clamp(0.77rem, 1.43vw, 1.71rem);
}

#geomatica .service-row:nth-of-type(6) {
  --service-image-top: clamp(2.58rem, 4.78vw, 5.73rem);
  --service-image-bottom: clamp(-2.55rem, -2.13vw, -1.15rem);
}

#geologia .service-row:nth-of-type(3) {
  --service-image-top: clamp(0.39rem, 0.72vw, 0.86rem);
  --service-image-bottom: clamp(2.34rem, 4.32vw, 5.19rem);
}

#geologia .service-row:nth-of-type(4) {
  --service-image-top: clamp(1.4rem, 2.6vw, 3.12rem);
  --service-image-bottom: clamp(1.11rem, 2.05vw, 2.46rem);
}

#geologia .service-row:nth-of-type(5) {
  --service-image-top: clamp(-1.48rem, -1.23vw, -0.67rem);
  --service-image-bottom: clamp(3.09rem, 5.72vw, 6.86rem);
}

.service-row__content {
  display: flex;
  position: relative;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 3.1vw, 3.75rem);
}

.service-row h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.2vw, 5.2rem);
  line-height: 0.98;
}

.service-row__subtitle {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.54em;
  line-height: 1.06;
}

.service-row p {
  max-width: 41rem;
  margin: 0 0 1.2rem;
  font-size: clamp(1.1rem, 1.7vw, 2.1rem);
  line-height: 1.2;
}

.applications-title {
  margin-top: 0.55rem !important;
  margin-bottom: 0.25rem !important;
  font-weight: 800;
}

.application-list {
  padding-left: 1.3rem;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 2rem);
  line-height: 1.2;
}

#geofisica .service-row h3 {
  font-size: clamp(3rem, 5vw, 6.1rem);
}

#geofisica .service-row:last-of-type {
  min-height: clamp(33rem, 42.75vw, 51.5rem);
}

#geomatica .service-row:nth-of-type(6) h3 {
  font-size: clamp(2.7rem, 3.85vw, 4.7rem);
}

#geomatica .service-row:nth-of-type(7) h3 {
  font-size: clamp(2.7rem, 3.7vw, 4.55rem);
}

#geomatica .service-row:nth-of-type(3),
#geomatica .service-row:nth-of-type(4) {
  min-height: clamp(32rem, 42vw, 50.5rem);
}

#geomatica .service-row:nth-of-type(6) {
  min-height: clamp(31.5rem, 41.2vw, 49.5rem);
}

#geomatica .service-row:nth-of-type(7) {
  min-height: clamp(33rem, 42.45vw, 51rem);
}

.services-page[data-service="geofisica"] .contact-section__inner {
  padding-top: clamp(5rem, 7.6vw, 9.1rem);
}

.services-page[data-service="geomatica"] .contact-section__inner {
  padding-top: clamp(6rem, 10.7vw, 12.85rem);
}

.services-page[data-service="geologia"] .contact-section__inner {
  padding-top: clamp(6.5rem, 11.7vw, 14rem);
}

.application-list li::marker {
  font-size: 0.72em;
}

.contact-page-spacer {
  min-height: clamp(8rem, 14vw, 16rem);
  background: var(--sand);
}

.error-page {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding: 5rem 2rem;
  background: var(--sand);
  text-align: center;
}

.error-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
}

.error-page a {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--sand);
  text-decoration: none;
}

@media (min-width: 90rem) {
  .contact-section__inner {
    padding-bottom: 3.6rem;
  }

  .form-submit {
    min-height: 4.2rem;
  }
}

@media (max-width: 70rem) {
  .primary-nav__link {
    font-size: 1.15rem;
  }

  .service-tabs {
    gap: 0.75rem;
  }

  .service-row {
    min-height: 27rem;
  }

  .service-row__content {
    padding: 3rem;
  }

  .area-card h3 span {
    white-space: normal;
  }
}

@media (max-width: 56rem) {
  .container {
    width: min(100% - 2rem, var(--content));
  }

  .brand-stage {
    min-height: 18rem;
  }

  .services-page .brand-stage {
    min-height: 18rem;
  }

  .brand-stage__link {
    width: 11.5rem;
  }

  .nav-toggle {
    position: absolute;
    right: 1rem;
    bottom: -1.75rem;
    z-index: 40;
    display: inline-flex;
    transform: none;
    box-shadow: 0 0.45rem 1.1rem rgba(30, 42, 53, 0.2);
  }

  body.nav-open .nav-toggle {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    bottom: auto;
    z-index: 40;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    visibility: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding:
      max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem))
      max(1rem, env(safe-area-inset-right))
      max(2rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    place-items: start stretch;
    transform: scale(0.99);
    border-radius: 0;
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  }

  .primary-nav[data-open="true"] {
    visibility: visible;
    transform: scale(1);
    opacity: 1;
  }

  .primary-nav__list {
    display: grid;
    width: min(100%, 24rem);
    margin-inline: auto;
    gap: 0.65rem;
  }

  .primary-nav__item {
    display: block;
  }

  .primary-nav__item + .primary-nav__item::before {
    display: none;
  }

  .primary-nav__link {
    width: 100%;
    min-height: 3.75rem;
    justify-content: center;
    border: 1px solid rgba(229, 208, 184, 0.22);
    border-radius: 0.8rem;
    font-size: 1.2rem;
  }

  .hero {
    min-height: 32rem;
  }

  .hero--services {
    min-height: 42rem;
  }

  .hero--services .hero__inner {
    width: calc(100% - 2rem);
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
    padding-bottom: 17.5rem;
  }

  .hero--services .hero__title {
    width: 100%;
    max-width: min(12ch, 100%);
    text-align: center;
    overflow-wrap: anywhere;
  }

  .service-tabs {
    bottom: 2rem;
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .service-tab {
    min-height: 4.2rem;
    padding-block: 0.7rem;
    font-size: 0.92rem;
  }

  .area-grid,
  .contact-layout,
  .contact-strip__inner,
  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row {
    min-height: 0;
    overflow: hidden;
  }

  .area-grid {
    gap: 3.5rem;
  }

  .area-card {
    max-width: 42rem;
    margin-inline: auto;
  }

  .contact-layout {
    width: 100%;
    gap: 2rem;
  }

  .contact-brand img {
    width: min(65vw, 21rem);
  }

  .service-row__media {
    overflow: hidden;
    padding: 1.25rem 1rem 0.5rem;
  }

  .service-row__media picture {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 1.3rem;
  }

  .service-row__media img {
    height: 100%;
    min-height: 0;
  }

  #geofisica .category-intro__content,
  #geomatica .category-intro__content,
  #geologia .category-intro__content {
    transform: none;
  }

  .services-page[data-service] .contact-section__inner {
    padding-block: 4rem;
  }

  .service-row__content {
    padding: 2rem 1.25rem 3rem;
    text-align: center;
  }

  .service-row p {
    margin-inline: auto;
  }

  .application-list {
    display: inline-block;
    margin-inline: auto;
    text-align: left;
  }

  .contact-strip__inner {
    justify-items: start;
    gap: 0.7rem;
    padding-block: 2rem;
  }
}

@media (max-width: 40rem) {
  .brand-stage {
    min-height: 15rem;
  }

  .services-page .brand-stage {
    min-height: 15rem;
  }

  .brand-stage__link {
    width: 9.5rem;
  }

  .hero {
    min-height: 29rem;
  }

  .hero__title {
    max-width: 13ch;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero--services {
    min-height: 39.5rem;
  }

  .hero--services .hero__title {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.5vw, 3.5rem);
    line-height: 1.04;
  }

  .trust-strip__inner {
    flex-direction: column;
  }

  .intro-section__inner,
  .about-section__inner,
  .contact-section__inner {
    width: calc(100% - 2rem);
  }

  .intro-section p,
  .about-section__inner {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .home-services__inner {
    width: calc(100% - 2rem);
  }

  .area-card h3 {
    font-size: 1.65rem;
  }

  .area-card h3 span {
    white-space: normal;
  }

  .area-card p {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
  }

  .contact-section__inner {
    padding-block: 4rem;
  }

  .contact-brand img {
    width: min(52vw, 12rem);
  }

  .field input,
  .field select {
    min-height: 3.25rem;
  }

  .form-submit {
    width: 100%;
  }

  .category-intro {
    min-height: 20rem;
    padding-inline: 1rem;
  }

  .category-intro p {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.55;
  }

  .service-row h3 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  #geomatica .service-row:nth-of-type(3) h3 {
    font-size: clamp(1.95rem, 9vw, 2.3rem);
  }

  #geomatica .service-row:nth-of-type(7) h3,
  #geologia .service-row:nth-of-type(1) h3,
  #geologia .service-row:nth-of-type(5) h3 {
    font-size: clamp(1.9rem, 8.6vw, 2.25rem);
  }

  .service-row p,
  .application-list {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
  }

  .contact-detail {
    min-width: 0;
  }

  .contact-detail span,
  .contact-detail address {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
