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

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

main section[id] {
  scroll-margin-top: var(--header);
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line-mask > span { display: block; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 300;
  transform: translateY(-120%);
  background: var(--blanco);
  color: var(--noche);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip:focus {
  transform: none;
}

.container {
  width: min(1440px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azul-medio);
}

.eyebrow__line {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  font-size: clamp(3rem, 9vw, 9rem);
}

.display--sm {
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
}

h2.display {
  max-width: 16ch;
}

#servicios-title,
#obras-title {
  max-width: none;
  font-size: clamp(1.55rem, 5.2vw, 4.8rem);
}

.lead {
  max-width: 62ch;
  color: var(--texto-2);
  font-size: 1.05rem;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section[data-theme="light"] {
  background: var(--papel);
  color: var(--texto);
}

.section[data-theme="dark"] {
  background-color: var(--noche);
  color: var(--blanco);
  background-image:
    linear-gradient(to right, rgb(143 168 212 / 16%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(143 168 212 / 16%) 1px, transparent 1px);
  background-size: 88px 88px;
}

.section[data-theme="dark"] .lead,
.section[data-theme="dark"] .muted {
  color: rgb(143 168 212 / 82%);
}

.marks {
  pointer-events: none;
  position: absolute;
  inset: 1.25rem;
}

.marks span {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgb(143 168 212 / 55%);
}

.marks span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.marks span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.marks span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.marks span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.plano {
  display: block;
  width: min(1440px, calc(100% - var(--gutter) * 2));
  height: 28px;
  margin: -0.5rem auto;
  overflow: visible;
}

.plano path {
  fill: none;
  stroke: var(--cielo);
  stroke-opacity: 0.35;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
