/* =========================================================
   INCO | Ingenieros Consultores — Hoja de estilos principal
   Paleta tomada de las referencias de identidad (casco, camisa y adhesivo)
   ========================================================= */

:root {
  /* Azul grisáceo (color principal) */
  --slate-950: #161c27;
  --slate-900: #1e2532;
  --slate-800: #283141;
  --slate-700: #364152;
  --slate-600: #4b576d; /* tono del adhesivo con logotipo */
  --slate-400: #8793a6;
  --slate-200: #cfd5de;
  --slate-100: #e7eaef;

  /* Verde turquesa (acento) */
  --teal: #3cc4a6;
  --teal-logo: #68c5b2; /* barra del logotipo */
  --teal-soft: #d8f3ec;
  --teal-ink: #0c7563; /* texto turquesa sobre blanco (contraste AA) */

  /* Neutros */
  --white: #ffffff;
  --paper: #f4f6f8;
  --ink: #1b2230;
  --muted: #566175;
  --line: rgba(75, 87, 109, 0.18);
  --line-dark: rgba(231, 234, 239, 0.14);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 76px;
  --wrap: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--teal);
  color: var(--slate-950);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Etiquetas técnicas ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 18px;
}
.tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.on-dark .tag,
.tag--light {
  color: var(--teal);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.on-dark .lead {
  color: var(--slate-200);
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--slate-950);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.btn:hover {
  background: #57d3b7;
  border-color: #57d3b7;
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--dark {
  --btn-bg: var(--slate-800);
  --btn-fg: var(--white);
}
.btn--dark:hover {
  background: var(--slate-600);
  border-color: var(--slate-600);
}

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--slate-800);
  border-color: var(--slate-200);
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}
.btn--line:hover {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: var(--white);
}

/* =========================================================
   ENCABEZADO
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(30, 37, 50, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-200);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover {
  color: var(--white);
}
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}
.nav a[aria-current="page"] {
  color: var(--white);
}
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav .btn {
  min-height: 44px;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle .bars span:nth-child(1) {
  top: 0;
}
.nav-toggle .bars span:nth-child(2) {
  top: 5px;
}
.nav-toggle .bars span:nth-child(3) {
  top: 10px;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: var(--slate-900);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(10, 14, 22, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav li + li {
    border-top: 1px solid var(--line-dark);
  }
  .nav a:not(.btn) {
    padding: 16px 0;
    font-size: 1.05rem;
  }
  .nav a:not(.btn)::after {
    left: 0;
    right: auto;
    width: 32px;
    bottom: 10px;
  }
  .nav .btn {
    margin-top: 18px;
    min-height: 50px;
  }
}

/* =========================================================
   PATRONES GEOMÉTRICOS (inspirados en planos)
   ========================================================= */
.grid-bg {
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.on-dark.grid-bg,
.grid-bg--dark {
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
}

/* Marcas de esquina tipo plano */
.frame {
  position: relative;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--teal);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.frame::before {
  top: -10px;
  left: -10px;
  border-width: 1px 0 0 1px;
}
.frame::after {
  bottom: -10px;
  right: -10px;
  border-width: 0 1px 1px 0;
}

/* Línea de cota */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 9px;
  border-left: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.dim::after {
  border-left: 0;
  border-right: 1px solid currentColor;
}

/* =========================================================
   PORTADA DE INICIO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-950);
}
@supports (min-height: 100svh) {
  .hero {
    min-height: calc(100svh - var(--header-h));
  }
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  animation: slowzoom 18s var(--ease) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 28, 39, 0.94) 0%, rgba(22, 28, 39, 0.78) 38%, rgba(22, 28, 39, 0.25) 75%, rgba(22, 28, 39, 0.1) 100%),
    linear-gradient(0deg, rgba(22, 28, 39, 0.85) 0%, rgba(22, 28, 39, 0) 45%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0 72px;
}
.hero__content > * {
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero h1 .accent {
  display: block;
  color: var(--teal);
}
.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--slate-100);
  max-width: 58ch;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__meta {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__meta .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-200);
}
.hero__meta span:nth-child(2) {
  color: var(--teal);
}

/* Animación de entrada */
.hero .rise {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero .rise:nth-child(2) {
  animation-delay: 0.12s;
}
.hero .rise:nth-child(3) {
  animation-delay: 0.24s;
}
.hero .rise:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slowzoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Banda de áreas en Inicio */
.areas {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.areas__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 72px 0;
  align-items: start;
}
.areas h2 {
  font-size: 1.6rem;
}
.areas ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line);
}
.areas li {
  border-right: 1px solid var(--line);
}
.areas li a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 8px 20px 12px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.areas li .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-ink);
  letter-spacing: 0.1em;
}
.areas li svg {
  width: 38px;
  height: 38px;
  color: var(--slate-600);
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.areas li strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}
.areas li a:hover svg {
  color: var(--teal-ink);
  transform: translateY(-3px);
}
@media (max-width: 1040px) {
  .areas__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .areas ol {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    gap: 0;
  }
  .areas li {
    border: 0;
    border-top: 1px solid var(--line);
  }
  .areas li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .areas li a {
    padding: 20px 16px;
  }
}

/* =========================================================
   CABECERA DE PÁGINAS INTERNAS
   ========================================================= */
.page-hero {
  position: relative;
  color: var(--white);
  background: var(--slate-900);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--slate-900) 20%, rgba(30, 37, 50, 0.55) 100%);
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 88px);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 22px;
}
.page-hero .lead {
  color: var(--slate-200);
}
.page-hero .rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}
.page-hero .rise:nth-child(2) {
  animation-delay: 0.1s;
}
.page-hero .rise:nth-child(3) {
  animation-delay: 0.2s;
}
.page-hero__index {
  position: absolute;
  right: 0;
  bottom: clamp(56px, 7vw, 88px);
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 600;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section--paper {
  background: var(--paper);
}
.section--dark {
  background: var(--slate-900);
  color: var(--white);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.section--dark .section-head p {
  color: var(--slate-200);
}
@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Reveal al desplazarse */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.intro__media {
  position: relative;
}
.intro__media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: var(--radius);
}
.intro__media figcaption,
.caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.facts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.facts span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  padding-top: 4px;
}
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
  }
  .intro__media {
    order: -1;
  }
  .intro__media img {
    aspect-ratio: 16 / 11;
  }
}
@media (max-width: 520px) {
  .facts li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Misión / visión */
.mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-dark);
}
.mv article {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
}
.mv article + article {
  border-left: 1px solid var(--line-dark);
}
.mv h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 22px;
}
.mv p {
  color: var(--slate-200);
}
.mv p:last-child {
  margin-bottom: 0;
}
.mv .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.12em;
}
@media (max-width: 860px) {
  .mv {
    grid-template-columns: 1fr;
  }
  .mv article + article {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
}

.philosophy {
  margin: clamp(48px, 7vw, 88px) auto 0;
  max-width: 900px;
  text-align: center;
}
.philosophy blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.philosophy blockquote em {
  font-style: normal;
  color: var(--teal);
}

/* Valores */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.values li {
  position: relative;
  padding: 34px 32px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.3s var(--ease);
}
.values li:hover {
  background: var(--paper);
}
.values .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-ink);
  letter-spacing: 0.12em;
}
.values h3 {
  font-size: 1.25rem;
  margin: 14px 0 10px;
}
.values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* Equipo */
.team {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
}
.team__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.team__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.team__list .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-ink);
  padding-top: 6px;
}
.team__list h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.team__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
@media (max-width: 900px) {
  .team {
    grid-template-columns: 1fr;
  }
}

/* Políticas */
.policies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.policies details {
  border-bottom: 1px solid var(--line);
}
.policies summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.policies summary::-webkit-details-marker {
  display: none;
}
.policies summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(var(--teal-ink), var(--teal-ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--teal-ink), var(--teal-ink)) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.policies details[open] summary::after {
  transform: rotate(45deg);
}
.policies details p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .policies {
    grid-template-columns: 1fr;
  }
}

/* Identidad */
.identity {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.identity figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal);
}
.identity img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.identity figure:hover img {
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .identity {
    grid-template-columns: 1fr 1fr;
  }
  .identity figure:first-child {
    grid-column: 1 / -1;
  }
  .identity figure:first-child img {
    aspect-ratio: 16 / 11;
  }
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.service-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.service-nav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
.service-nav ul::-webkit-scrollbar {
  display: none;
}
.service-nav a {
  display: block;
  white-space: nowrap;
  padding: 16px 16px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.service-nav a:hover {
  color: var(--ink);
  border-color: var(--teal);
}
.service-nav a span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal-ink);
  margin-right: 6px;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.service:last-child {
  border-bottom: 0;
}
.service__head {
  position: sticky;
  top: calc(var(--header-h) + 90px);
  align-self: start;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--slate-600);
  background: var(--white);
  position: relative;
}
.service__icon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}
.service__icon svg {
  width: 40px;
  height: 40px;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--teal-ink);
}
.service h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 10px 0 18px;
}
.service__desc {
  color: var(--muted);
}
.service__goal {
  margin: 26px 0 30px;
  padding: 18px 0 18px 20px;
  border-left: 2px solid var(--teal);
  font-size: 0.98rem;
}
.service__goal strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 6px;
}
.service__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
  border-top: 1px solid var(--line);
}
.service__list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.service__list li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-400);
  padding-top: 4px;
}
.service__list-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
@media (max-width: 900px) {
  .service {
    grid-template-columns: 1fr;
  }
  .service__head {
    position: static;
  }
}

/* Servicios técnicos especializados */
.tech {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.tech article {
  background: var(--slate-900);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.tech .service__icon {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--teal);
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}
.tech .service__icon svg {
  width: 34px;
  height: 34px;
}
.tech h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.tech p {
  color: var(--slate-200);
  font-size: 0.99rem;
}
.tech details {
  margin: 4px 0 26px;
  border-top: 1px solid var(--line-dark);
}
.tech summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.tech details ul {
  margin: 0 0 6px;
  padding-left: 18px;
  color: var(--slate-200);
  font-size: 0.95rem;
}
.tech details li {
  margin-bottom: 6px;
}
.tech .btn {
  margin-top: auto;
  align-self: flex-start;
}
.tech .btn--line {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.tech .btn--line:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--slate-950);
}
@media (max-width: 800px) {
  .tech {
    grid-template-columns: 1fr;
  }
}

/* Forma de trabajo */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--slate-400) 0 6px, transparent 6px 12px);
}
.steps li {
  position: relative;
  padding-right: 28px;
}
.steps .marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-600);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.steps li:hover .marker {
  background: var(--teal);
  border-color: var(--teal);
}
.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }
  .steps::before {
    display: none;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .steps li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    padding: 0 0 36px;
  }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 58px;
    bottom: 4px;
    border-left: 1px dashed var(--slate-400);
  }
  .steps .marker {
    margin: 0;
  }
}

/* Nota de contenido pendiente (eliminar antes de publicar) */
.pending-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a4b00;
  background: #fff4dc;
  border: 1px dashed #d79b2b;
  border-radius: var(--radius);
}
.pending-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d79b2b;
}

/* Llamado a la acción */
.cta {
  position: relative;
  background: var(--slate-800);
  color: var(--white);
  overflow: hidden;
}
.cta .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 12px;
  max-width: 22ch;
}
.cta p {
  margin: 0;
  color: var(--slate-200);
  max-width: 56ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 800px) {
  .cta .wrap {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PROYECTOS
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filters button span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-400);
}
.filters button:hover {
  border-color: var(--slate-600);
}
.filters button[aria-pressed="true"] {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: var(--white);
}
.filters button[aria-pressed="true"] span {
  color: var(--teal);
}

.projects {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.project[hidden] {
  display: none;
}
.project.is-entering {
  animation: fadein 0.5s var(--ease);
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.project__info {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.project__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--teal-ink);
}
.project h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 12px 0 24px;
}
.project dl {
  margin: 0;
  border-top: 1px solid var(--line);
}
.project dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.project dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.project dd {
  margin: 0;
  font-weight: 600;
}
.project__count {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.gallery button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  grid-column: span 3;
}
.gallery button:first-child {
  grid-column: 1 / -1;
}
.gallery--three button {
  grid-column: span 2;
}
.gallery--three button:first-child {
  grid-column: 1 / -1;
}
.gallery--pair button,
.gallery--pair button:first-child {
  grid-column: span 3;
}
.gallery--pair button:first-child img {
  aspect-ratio: 4 / 3;
}
@media (max-width: 520px) {
  .gallery--pair button,
  .gallery--pair button:first-child {
    grid-column: 1 / -1;
  }
}
.gallery--single button {
  grid-column: 1 / -1;
}
.gallery--single button:first-child img {
  aspect-ratio: auto;
  max-height: 640px;
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s var(--ease);
}
.gallery button:first-child img {
  aspect-ratio: 16 / 9;
}
.gallery--plans button:not(:first-child) img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--white);
}
.gallery--contain img {
  object-fit: contain !important;
  background: var(--white);
}
.gallery button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 37, 50, 0.82)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233cc4a6' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.035);
}
.gallery button:hover::after,
.gallery button:focus-visible::after {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
  }
  .project__info {
    position: static;
  }
}
@media (max-width: 520px) {
  .gallery {
    gap: 8px;
  }
}

.notice {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--muted);
}
.notice p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(16, 21, 30, 0.96);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--slate-200);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 72px;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.lightbox__stage img.is-loading {
  opacity: 0;
  transform: scale(0.98);
}
.lightbox__caption {
  padding: 18px 24px 26px;
  text-align: center;
}
.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.lightbox__caption span {
  font-size: 0.9rem;
  color: var(--slate-200);
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lb-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--slate-950);
}
.lb-btn svg {
  width: 20px;
  height: 20px;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 14px;
}
.lb-next {
  right: 14px;
}
@media (max-width: 640px) {
  .lightbox__stage {
    padding: 0 12px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: -64px;
    transform: none;
  }
  .lb-prev {
    left: 24px;
  }
  .lb-next {
    right: 24px;
  }
  .lightbox__caption {
    padding: 18px 84px 26px;
  }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-800);
}
.field label .opt {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b576d' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--slate-400);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(60, 196, 166, 0.25);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
}
.field .error {
  display: none;
  font-size: 0.85rem;
  color: #b03325;
}
.field.has-error .error {
  display: block;
}
.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding-top: 6px;
}
.form__foot small {
  color: var(--muted);
  font-size: 0.85rem;
}
.form .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(22, 28, 39, 0.25);
  border-top-color: var(--slate-950);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.is-sending .spinner {
  display: inline-block;
}
.is-sending .btn svg {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 0.97rem;
}
.form-status.is-visible {
  display: flex;
}
.form-status svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.form-status p {
  margin: 0;
}
.form-status strong {
  display: block;
  font-family: var(--font-display);
}
.form-status--ok {
  background: var(--teal-soft);
  color: #0a4f43;
  border: 1px solid rgba(12, 117, 99, 0.3);
}
.form-status--error {
  background: #fdecea;
  color: #8a2418;
  border: 1px solid rgba(176, 51, 37, 0.3);
}

.contact-card {
  position: relative;
  background: var(--slate-900);
  color: var(--white);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-card h2 {
  font-size: 1.45rem;
  margin-bottom: 24px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.contact-list .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--teal);
}
.contact-list .ico svg {
  width: 18px;
  height: 18px;
}
.contact-list .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.contact-list .value {
  display: block;
  font-weight: 600;
  margin-top: 2px;
}
.contact-list .pending {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #f3c66b;
  border: 1px dashed rgba(243, 198, 107, 0.6);
  padding: 2px 8px;
  border-radius: 3px;
}
.contact-photo {
  margin: 16px 0 0;
}
.contact-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 960px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-200);
  font-size: 0.95rem;
}
.site-footer a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-footer a:hover {
  color: var(--teal);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 72px 0 56px;
}
.footer__brand svg {
  height: 56px;
  width: auto;
  margin-bottom: 22px;
}
.footer__brand p {
  max-width: 38ch;
  color: var(--slate-400);
  margin: 0;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.footer__contact li {
  display: flex;
  flex-direction: column;
}
.footer__contact span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.footer__bottom {
  border-top: 1px solid var(--line-dark);
}
.footer__bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.85rem;
  color: var(--slate-400);
}
@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 0;
}
.notfound h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .hero .rise,
  .page-hero .rise {
    opacity: 1;
    transform: none;
  }
}

/* Datos de contacto confirmados */
.contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--teal);
}
.footer__contact .footer__social {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
