/* ==========================================================================
   Rocosa Construcciones — hoja de estilos
   Implementación de "Rocosa Construcciones.dc.html" (Claude Design).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --rojo: #A81E32;
  --rojo-oscuro: #7E1626;

  /* Tinta y superficies */
  --tinta: #121315;
  --negro: #0B0B0C;
  --blanco: #ffffff;
  --gris-fondo: #F3F3F4;

  /* Texto */
  --texto: #3B3D41;
  --texto-suave: #5A5C61;
  --texto-tenue: #9A9A9E;

  /* Bordes / líneas */
  --linea: #E4E4E6;
  --linea-fuerte: #DDDDDF;
  --linea-campo: #D6D6D9;
  --linea-boton: #D0D0D3;
  --linea-oscura: #26272A;

  /* Texto sobre fondo oscuro */
  --sobre-oscuro: #E4E4E6;
  --sobre-oscuro-suave: #A9AAAE;
  --sobre-oscuro-tenue: #8E9095;
  --numero-oscuro: #2E3034;

  /* Tipografía */
  --fuente-titulo: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fuente-texto: Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --ancho: 1320px;
  --margen-lateral: clamp(16px, 4vw, 48px);
  --seccion-y: clamp(72px, 10vw, 128px);
  --alto-header: 80px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rojo); text-decoration: none; }
a:hover { color: var(--rojo-oscuro); }

h1, h2, h3, p, figure, address, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

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

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

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.u-hidden { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--fuente-titulo);
  font-weight: 700;
  padding: 14px 20px;
}
.skip-link:focus {
  left: 0;
  color: var(--blanco);
}

/* --------------------------------------------------------------------------
   3. Primitivas de layout y tipografía
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen-lateral);
}

.section {
  padding-block: var(--seccion-y);
  scroll-margin-top: calc(var(--alto-header) + 8px);
}
.section--muted {
  background: var(--gris-fondo);
  border-top: 1px solid var(--linea);
}
.section--dark {
  background: var(--negro);
  color: var(--blanco);
}

.eyebrow {
  font-family: var(--fuente-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--tinta);
  text-wrap: balance;
}
.h2--sm { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; margin-bottom: 28px; }
.h2--invert { color: var(--blanco); }

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--texto);
  text-wrap: pretty;
}
.lede--invert { color: var(--sobre-oscuro-suave); line-height: 1.65; }

.rule {
  width: 6px;
  height: 56px;
  background: var(--rojo);
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--fuente-titulo);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--sm { font-size: 13px; padding: 14px 22px; }
.btn--lg { padding: 18px 30px; }

.btn--primary { background: var(--rojo); color: var(--blanco); }
.btn--primary:hover { background: var(--tinta); color: var(--blanco); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--blanco);
}
.btn--ghost:hover { background: var(--blanco); color: var(--tinta); }

/* Contorno sobre fondo claro: es el equivalente de .btn--ghost para las
   secciones en blanco. Se usa en acciones secundarias —descargar el
   currículum— que no deben competir con «Solicitar cotización». */
.btn--outline {
  border-color: var(--tinta);
  color: var(--tinta);
}
.btn--outline:hover { background: var(--tinta); color: var(--blanco); }

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn--icon svg { flex: none; }

/* El peso del archivo va en minúsculas y sin tracking: es un dato, no parte
   de la etiqueta del botón. */
.btn__meta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: .7;
}

/* En el hero el botón primario invierte a blanco (según el diseño). */
.hero__actions .btn--primary:hover,
.cta__actions .btn--primary:hover {
  background: var(--blanco);
  color: var(--tinta);
}

/* --------------------------------------------------------------------------
   5. Media / marcadores de imagen
   Cada <figure data-media> muestra el texto de `data-placeholder` cuando la
   fotografía todavía no existe (main.js marca el figure con .is-empty).
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--gris-fondo);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* `--fill` cubre a un contenedor posicionado; las demás variantes fijan su
   propia proporción. No mezclar: `height:100%` anularía `aspect-ratio`. */
.media--fill { height: 100%; }
.media--portrait { aspect-ratio: 4 / 5; min-height: 340px; }
.media--4x3 { aspect-ratio: 4 / 3; }

.media.is-empty { background: #E9E9EB; }
.media.is-empty img { display: none; }
.media.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  text-align: center;
  font-family: var(--fuente-titulo);
  font-size: 13px;
  /* 700 y no 600: así no hace falta cargar un peso extra de Archivo. */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #86878C;
  background-image:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .035) 0 12px, transparent 12px 24px);
}

/* Sobre secciones oscuras el marcador no debe brillar. */
.hero .media.is-empty,
.cta .media.is-empty { background: #17181A; }
.hero .media.is-empty::before,
.cta .media.is-empty::before { color: #6C6E73; }

/* --------------------------------------------------------------------------
   6. Header + navegación
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.header.is-solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--linea);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.header__brand { display: flex; align-items: center; }

.header__logo {
  height: 52px;
  width: auto;
  /* Sobre el hero oscuro el logotipo se lee en blanco; al fijarse vuelve a color. */
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
.header.is-solid .header__logo { filter: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  color: var(--blanco);
  transition: color .35s ease;
}
.header.is-solid .nav { color: var(--tinta); }

.nav__link {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--rojo); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--blanco);
  cursor: pointer;
  transition: color .35s ease;
}
.header.is-solid .nav-toggle { color: var(--tinta); }

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 24px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--margen-lateral) 24px;
    background: var(--blanco);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .1);
    color: var(--tinta);
    display: none;
  }
  .nav.is-open { display: flex; }

  .nav__link {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--linea);
  }
  .nav .btn { margin-top: 18px; text-align: center; }
}

/* Con el menú abierto el header siempre es sólido para que se lea. */
.header.is-nav-open { background: rgba(255, 255, 255, .98); }
.header.is-nav-open .header__logo { filter: none; }
.header.is-nav-open .nav-toggle { color: var(--tinta); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 820px);
  background: var(--negro);
  overflow: hidden;
  scroll-margin-top: 0;
}
.hero__media { position: absolute; inset: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  opacity: .3;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11, 11, 12, .72) 0%,
    rgba(11, 11, 12, .35) 40%,
    rgba(11, 11, 12, .9) 100%);
}

.hero__body {
  position: relative;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(56px, 8vh, 88px);
  pointer-events: none;
}

.hero__title {
  max-width: 16ch;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--blanco);
  text-wrap: balance;
}
.hero__lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: #D8D8DA;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. Intro
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.intro .lede { font-size: clamp(17px, 1.4vw, 20px); }

.capabilities {
  display: grid;
  /* Dos columnas fijas: con `auto-fit` los 4 rótulos dejan una celda huérfana
     (un bloque gris) en cuanto caben 3 por fila. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--linea);
  border-top: 2px solid var(--tinta);
}
.capabilities li {
  background: var(--blanco);
  padding: 22px 18px;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--tinta);
}

/* --------------------------------------------------------------------------
   9. Servicios
   -------------------------------------------------------------------------- */
.section__head {
  max-width: 620px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--linea-fuerte);
  border: 1px solid var(--linea-fuerte);
}
.service {
  background: var(--blanco);
  padding: clamp(26px, 3vw, 38px);
  transition: background .3s ease, box-shadow .3s ease;
}
.service:hover {
  background: #FAFAFA;
  box-shadow: inset 0 3px 0 0 var(--rojo);
}
.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.service__icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--rojo);
}
.service__num {
  font-family: var(--fuente-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--texto-tenue);
}
.service__title {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--tinta);
  margin-bottom: 10px;
}
.service__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--texto-suave);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   10. Proceso
   -------------------------------------------------------------------------- */
.process__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.process__head .lede { font-size: clamp(16px, 1.3vw, 19px); }

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--linea-oscura);
}
.step {
  background: var(--negro);
  padding: clamp(26px, 2.6vw, 34px) clamp(20px, 2vw, 28px);
  border-top: 2px solid var(--rojo);
}
.step__num {
  display: block;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  color: var(--numero-oscuro);
}
.step__title {
  display: block;
  margin-top: 18px;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 19px;
  color: var(--blanco);
}

/* --------------------------------------------------------------------------
   11. Nosotros
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about .lede { margin-top: 24px; max-width: 56ch; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--linea);
}
.value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 26px 26px 0;
  border-bottom: 1px solid var(--linea);
}
.about__cv { margin-top: 36px; }

.value__bullet {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  flex: none;
  background: var(--rojo);
}
.value__title {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--tinta);
}
.value__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--texto-suave);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   12. Proyectos
   -------------------------------------------------------------------------- */
.projects__head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  font-family: var(--fuente-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
  border: 1px solid var(--linea-boton);
  background: transparent;
  color: var(--texto-suave);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--tinta); color: var(--tinta); }
.filter.is-active {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--blanco);
}

.projects {
  display: grid;
  /* `auto-fill` (no `auto-fit`): al filtrar a un solo proyecto la tarjeta
     conserva su ancho en vez de estirarse a todo el contenedor. */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}
.project { background: var(--blanco); }
.project[hidden] { display: none; }
.project__body {
  padding: 22px 24px 26px;
  border-top: 2px solid var(--tinta);
}
.project__cat {
  font-family: var(--fuente-titulo);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
}
.project__title {
  margin-top: 8px;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 19px;
  color: var(--tinta);
}

.projects__empty {
  margin-top: 32px;
  font-size: 17px;
  color: var(--texto-suave);
}

/* --------------------------------------------------------------------------
   13. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--negro);
  overflow: hidden;
}
.cta__media { position: absolute; inset: 0; opacity: .34; }
.cta__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 11, 12, .94) 20%, rgba(11, 11, 12, .55) 100%);
}
.cta__body {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px);
  pointer-events: none;
}
.cta__title {
  max-width: 18ch;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blanco);
  text-wrap: balance;
}
.cta__lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: #C9CACD;
  text-wrap: pretty;
}
.cta__actions {
  display: flex;
  margin-top: 36px;
  pointer-events: auto;
}
.cta__actions .btn { padding: 18px 34px; }

/* --------------------------------------------------------------------------
   14. Contacto
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
}

.contact__details {
  display: grid;
  gap: 22px;
  max-width: 420px;
}
.detail {
  border-top: 1px solid var(--linea);
  padding-top: 18px;
}
.detail__label {
  font-family: var(--fuente-titulo);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-tenue);
  margin-bottom: 8px;
}
.detail__value {
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
}
.detail__link {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  color: var(--tinta);
  transition: color .2s ease;
}
.detail__link:hover { color: var(--rojo); }
.detail__link--lg { font-size: 26px; }
.detail__link--md { font-size: 22px; word-break: break-all; }

.map {
  position: relative;
  margin-top: 32px;
  height: 300px;
  border: 1px solid var(--linea);
  background: var(--gris-fondo);
  overflow: hidden;
}
/* El iframe se agranda de forma simétrica y se recorta: así quedan fuera del
   encuadre los controles +/- (que sin interacción serían botones muertos) y la
   barra de atribución diminuta. Al crecer parejo en los cuatro lados, el centro
   del mapa —donde el bbox pone las coordenadas— no se mueve.
   La atribución de OpenStreetMap se muestra debajo, en .map__meta. */
.map iframe {
  position: absolute;
  top: -44px;
  left: -64px;
  width: calc(100% + 128px);
  height: calc(100% + 88px);
  /* Anula el `max-width: 100%` de la regla base: si no, el iframe no se
     ensancha y el desplazamiento lateral descentra el mapa. */
  max-width: none;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  /* Sin desplazamiento: el pin superpuesto solo es correcto en la vista fija. */
  pointer-events: none;
}

/* La punta del pin queda en el centro exacto del recuadro, que es donde el
   bbox coloca las coordenadas. Va fuera del iframe para que el filtro de
   escala de grises no lo apague. */
.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 37px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .38));
}

.map__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 12px;
}
.map__link {
  font-family: var(--fuente-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  border-bottom: 1px solid var(--linea-boton);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.map__link:hover {
  color: var(--rojo);
  border-color: var(--rojo);
}
/* Atribución obligatoria de OpenStreetMap (ODbL). */
.map__credit {
  font-size: 12px;
  color: var(--texto-tenue);
}
.map__credit a { color: inherit; text-decoration: underline; }
.map__credit a:hover { color: var(--rojo); }

/* --------------------------------------------------------------------------
   15. Formulario
   -------------------------------------------------------------------------- */
.form {
  background: var(--gris-fondo);
  padding: clamp(26px, 3.4vw, 44px);
  border-top: 3px solid var(--rojo);
  align-self: start;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.field { display: grid; gap: 8px; }
.field--full { margin-top: 18px; }
.field__label {
  font-family: var(--fuente-titulo);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.field__input {
  padding: 14px 15px;
  border: 1px solid var(--linea-campo);
  border-radius: 0;
  background: var(--blanco);
  font-size: 16px;
  color: var(--tinta);
  outline: none;
  transition: border-color .2s ease;
}
.field__input:focus { border-color: var(--rojo); }
.field__input--area { resize: vertical; }
.field__input.is-invalid { border-color: var(--rojo); background: #FFF6F7; }

select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-suave) 50%),
                    linear-gradient(135deg, var(--texto-suave) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form__submit {
  margin-top: 26px;
  width: 100%;
  background: var(--tinta);
  color: var(--blanco);
  border: 0;
  padding: 19px 24px;
  font-family: var(--fuente-titulo);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease;
}
.form__submit:hover { background: var(--rojo); }
.form__submit[disabled] { opacity: .65; cursor: default; }

.form__status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--texto-suave);
}
.form__status.is-error { color: var(--rojo); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--negro);
  color: var(--blanco);
  padding-block: clamp(52px, 6vw, 80px);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.footer__logo {
  height: 104px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__tagline {
  margin-top: 22px;
  max-width: 34ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sobre-oscuro-tenue);
}
.footer__label {
  font-family: var(--fuente-titulo);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sobre-oscuro-tenue);
  margin-bottom: 18px;
}
.footer__nav { display: grid; gap: 11px; }
.footer__nav a { color: var(--sobre-oscuro); font-size: 16px; }
.footer__nav a:hover { color: var(--rojo); }

.footer__address {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sobre-oscuro);
}
.footer__phone {
  display: block;
  margin-top: 14px;
  font-family: var(--fuente-titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--blanco);
}
.footer__mail {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--sobre-oscuro);
  word-break: break-all;
}
.footer__phone:hover,
.footer__mail:hover { color: var(--rojo); }

.footer__legal {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--linea-oscura);
  font-size: 14px;
  color: var(--sobre-oscuro-tenue);
}

/* --------------------------------------------------------------------------
   17. Revelado al hacer scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Ajustes por ancho
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .header__logo { height: 42px; }
  .footer__logo { height: 80px; }
  .value { padding-right: 0; }
  .detail__link--lg { font-size: 23px; }
  .detail__link--md { font-size: 19px; }
}

@media print {
  .header, .nav-toggle, .map, .form, .cta { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  body { color: #000; }
}
