/* =========================================================================
   Ecominser — hoja de estilos
   Paleta mineral: granito, caliza y crisocola (mineral de cobre).
   Una sola familia (Archivo): expandida para titulares y cifras, normal para texto.
   ========================================================================= */

:root {
  --granite: #1E262B;
  --granite-2: #2B353B;
  --limestone: #EEF0EC;
  --paper: #F8F9F6;
  --stone: #5F696F;
  --line: #CDD3CE;
  --chrys: #1D6F68;
  --chrys-dark: #14514C;
  --chrys-light: #8CC7BE;
  --signal: #E5B620;
  --error: #A3312A;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --narrow: 100%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.3rem + 3vw, 3.25rem);
  --step-5: clamp(2.4rem, 1.2rem + 4.6vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --header-h: 72px;
}

*, *::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);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--granite);
  background: var(--limestone);
  font-stretch: var(--narrow);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-stretch: var(--wide); font-weight: 700; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--signal); color: var(--granite); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Botones y enlaces ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  background: var(--chrys); color: #fff; border: 1px solid var(--chrys);
  border-radius: 2px; font: 600 var(--step-0)/1.2 var(--font); text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--chrys-dark); border-color: var(--chrys-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--light { background: #fff; color: var(--chrys-dark); border-color: #fff; }
.btn--light:hover { background: var(--limestone); border-color: var(--limestone); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: var(--step--1); }

.link {
  color: var(--chrys); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.link:hover { color: var(--chrys-dark); text-decoration-thickness: 2px; }
.link--light { color: var(--chrys-light); }
.link--light:hover { color: #fff; }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--granite); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand__mark { width: 34px; height: 34px; color: var(--chrys-light); flex: none; }
.brand__name { font-stretch: var(--wide); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }

.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; color: rgba(255,255,255,.82); text-decoration: none;
  font: 500 .95rem/1 var(--font); background: none; border: 0; cursor: pointer;
}
.nav__link svg { width: 12px; height: 12px; transition: transform .15s; }
.nav__link:hover, .nav__item.is-active > .nav__link { color: #fff; }
.nav__item.is-active > .nav__link { box-shadow: inset 0 -2px 0 var(--chrys-light); }
.nav__item--cta { margin-left: .75rem; }
.nav__item--cta .btn.is-current { background: var(--chrys-dark); }

.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  list-style: none; margin: 0; padding: .5rem 0;
  background: #fff; color: var(--granite); border-radius: 2px;
  box-shadow: 0 18px 40px -12px rgba(15, 22, 26, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__sub a { display: block; padding: .7rem 1.1rem; text-decoration: none; font-size: .95rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--limestone); color: var(--chrys-dark); }
.has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}

.nav-toggle {
  display: none; align-items: center; gap: .6rem;
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: .5rem .8rem; border-radius: 2px; font: 500 .95rem var(--font); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--granite);
    overflow-y: auto; padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1.1rem 0; font-size: 1.1rem; }
  .nav__item.is-active > .nav__link { box-shadow: none; color: var(--chrys-light); }
  .nav__sub {
    position: static; min-width: 0; background: transparent; color: #fff; box-shadow: none;
    padding: 0 0 .75rem; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub.is-open .nav__sub { display: block; }
  .nav__sub a { padding: .65rem 0 .65rem 1rem; color: rgba(255,255,255,.8); }
  .nav__sub a:hover, .nav__sub a[aria-current] { background: none; color: var(--chrys-light); }
  .nav__item--cta { border: 0; margin: 1.5rem 0 0; }
  .nav__item--cta .btn { width: 100%; min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero de portada ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  background: var(--granite); color: #fff;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(30,38,43,.92) 0%, rgba(30,38,43,.7) 45%, rgba(30,38,43,.2) 100%),
    linear-gradient(0deg, rgba(30,38,43,.75) 0%, rgba(30,38,43,0) 50%);
}
.hero__contours {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  color: var(--chrys-light); opacity: .28; pointer-events: none;
}
.hero__contours path { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.hero__inner { position: relative; z-index: 3; padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 9vh, 6rem); }
.hero__title { font-size: var(--step-5); max-width: 14ch; line-height: 1.02; letter-spacing: -0.02em; }
.hero__lead { font-size: var(--step-1); max-width: 46ch; margin: 1.5rem 0 2.25rem; color: rgba(255,255,255,.86); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__contours path { stroke-dashoffset: 1200; animation: draw 2.4s cubic-bezier(.4,0,.2,1) .2s forwards; }
  .hero__contours path:nth-child(2) { animation-delay: .32s; }
  .hero__contours path:nth-child(3) { animation-delay: .44s; }
  .hero__contours path:nth-child(4) { animation-delay: .56s; }
  .hero__contours path:nth-child(5) { animation-delay: .68s; }
  .hero__contours path:nth-child(6) { animation-delay: .8s; }
  .hero__title, .hero__lead, .hero__actions { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__lead { animation-delay: .15s; }
  .hero__actions { animation-delay: .3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero de páginas interiores ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--granite); color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30,38,43,.94) 0%, rgba(30,38,43,.78) 55%, rgba(30,38,43,.45) 100%);
}
.page-hero__inner { position: relative; }
.page-hero__inner::before {
  content: ""; display: block; width: 56px; height: 4px; background: var(--chrys-light); margin-bottom: 1.5rem;
}
.page-hero__title { font-size: var(--step-4); max-width: 18ch; }
.page-hero__lead { font-size: var(--step-1); max-width: 52ch; margin-top: 1rem; color: rgba(255,255,255,.82); line-height: 1.5; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--flush-top { padding-top: 0; }
.section__title { font-size: var(--step-3); max-width: 22ch; margin-bottom: 1.25rem; }

.prose { max-width: 64ch; }
.prose p { color: #3A454B; }
.prose--lead p:first-child { font-size: var(--step-1); color: var(--granite); line-height: 1.5; }

.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Líneas de servicio */
.lines { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.lines .section__title { margin-bottom: 2.25rem; }
.lines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .lines__grid { grid-template-columns: 1fr; } }
.line__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--granite-2); }
.line__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.line:hover .line__media img { transform: scale(1.03); }
.line__body { padding-top: 1.5rem; }
.line__title { font-size: var(--step-2); margin-bottom: .75rem; }
.line__title a { text-decoration: none; }
.line__title a:hover { color: var(--chrys); }
.line__body > p { color: var(--stone); max-width: 52ch; }
.line__list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.line__list li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* ---------- Cifras (informe de producción) ---------- */

.ledger-section { background: var(--granite); color: #fff; }
.ledger-section__head { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ledger-section__head p { color: rgba(255,255,255,.7); margin: 0 0 1.25rem; max-width: 40ch; }
@media (max-width: 860px) { .ledger-section__head { grid-template-columns: 1fr; gap: 0; } }

.ledger { margin: 0; }
.ledger__num {
  font-stretch: var(--wide); font-weight: 300; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums; line-height: 1;
}
.ledger__unit { font-weight: 500; font-size: .95rem; color: var(--chrys-light); white-space: nowrap; }

.ledger--featured { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.ledger--featured .ledger__row {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .9rem;
  padding: 1.75rem 1.5rem 0 0; border-right: 1px solid rgba(255,255,255,.12);
}
.ledger--featured .ledger__row + .ledger__row { padding-left: 1.5rem; }
.ledger--featured .ledger__row:last-child { border-right: 0; }
.ledger--featured .ledger__value { margin: 0; }
.ledger--featured .ledger__num { display: block; font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); }
.ledger--featured .ledger__unit { display: block; margin-top: .4rem; }
.ledger--featured .ledger__label { color: rgba(255,255,255,.78); font-size: .98rem; max-width: 22ch; }
@media (max-width: 960px) {
  .ledger--featured { grid-template-columns: 1fr 1fr; }
  .ledger--featured .ledger__row { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ledger--featured .ledger__row + .ledger__row { padding-left: 0; }
  .ledger--featured .ledger__row:nth-child(even) { padding-left: 1rem; border-right: 0; }
}
@media (max-width: 520px) {
  .ledger--featured { grid-template-columns: 1fr; }
  .ledger--featured .ledger__row, .ledger--featured .ledger__row:nth-child(even) { padding-left: 0; border-right: 0; }
}
.ledger-section__more { margin-top: 2.5rem; }

/* Página de obras ejecutadas */
.ledger-page { background: var(--paper); }
.ledger-group { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; padding-block: 2.5rem; border-top: 2px solid var(--granite); }
.ledger-group:first-child { padding-top: 0; border-top: 0; }
.ledger-group__title { font-size: var(--step-2); max-width: 14ch; }
.ledger-group .ledger__row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.ledger-group .ledger__row:first-child { padding-top: 0; }
.ledger-group .ledger__label { font-size: 1.05rem; }
.ledger-group .ledger__value { margin: 0; text-align: right; }
.ledger-group .ledger__num { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--granite); }
.ledger-group .ledger__unit { color: var(--chrys); display: inline-block; min-width: 4.2em; text-align: left; margin-left: .35rem; }
.ledger-page__note { margin-top: 2rem; font-size: var(--step--1); color: var(--stone); max-width: 70ch; }
@media (max-width: 760px) {
  .ledger-group { grid-template-columns: 1fr; gap: 1.25rem; }
  .ledger-group .ledger__row { grid-template-columns: 1fr; gap: .35rem; }
  .ledger-group .ledger__value { text-align: left; }
  .ledger-group .ledger__unit { min-width: 0; }
}

/* ---------- Galería ---------- */

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--granite-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--strip { margin-top: 0; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 20, 23, .9); }
.lightbox img { max-width: 100%; max-height: 82vh; margin-inline: auto; }
.lightbox__caption { color: rgba(255,255,255,.85); text-align: center; margin-top: .85rem; font-size: .95rem; }
.lightbox__close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; border-radius: 2px;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Misión y visión ---------- */

.purpose__grid { display: grid; grid-template-columns: 1fr 1fr; }
.purpose__item { padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.purpose__item:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.purpose__item:last-child { padding-right: 0; }
.purpose__title { font-size: var(--step-2); color: var(--chrys); margin-bottom: 1rem; }
.purpose__item p { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.purpose--boxed { background: var(--paper); border-block: 1px solid var(--line); }
@media (max-width: 760px) {
  .purpose__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .purpose__item, .purpose__item:first-child { padding: 0; border: 0; }
  .purpose__item:first-child { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
}

/* Quiénes somos */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split__figure { margin: 0; }
.split__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pillars { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillars > div { border-top: 3px solid var(--chrys); padding-top: 1.25rem; }
.pillars dt { font-stretch: var(--wide); font-weight: 700; font-size: var(--step-1); margin-bottom: .6rem; line-height: 1.2; }
.pillars dd { margin: 0; color: var(--stone); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Página de servicio ---------- */

.service { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.service__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.service__intro p { color: var(--stone); max-width: 42ch; margin-bottom: 1.75rem; }
.service__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--granite); }
.service__list li {
  display: grid; grid-template-columns: 14px 1fr; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); line-height: 1.35;
}
.service__list li::before { content: ""; width: 9px; height: 9px; background: var(--chrys); transform: translateY(-1px); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service__intro { position: static; }
}

.crosslink { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.crosslink p { margin: 0; color: var(--stone); }
.crosslink__link { font-stretch: var(--wide); font-weight: 700; font-size: var(--step-3); color: var(--granite); text-decoration: none; line-height: 1.15; }
.crosslink__link:hover { color: var(--chrys); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* ---------- Clientes y catálogo ---------- */

.clients { margin: 0; background: #fff; border: 1px solid var(--line); padding: clamp(1rem, 4vw, 3rem); }
.clients img { margin-inline: auto; }
.clients-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.clients-grid li { background: #fff; display: grid; place-items: center; padding: 2rem; aspect-ratio: 3 / 2; }
.clients-grid img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; }

.catalog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 1.75rem; }
.catalog__viewer { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); background: #fff; display: block; }
.catalog__fallback { padding: 2rem; }

/* ---------- Contacto ---------- */

.contact { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__block { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.contact__block:first-child { padding-top: 0; }
.contact__title { font-size: var(--step--1); font-stretch: var(--narrow); font-weight: 600; color: var(--stone); letter-spacing: 0; margin-bottom: .6rem; }
.contact__phone { font-stretch: var(--wide); font-weight: 600; font-size: var(--step-1); text-decoration: none; }
.contact__phone:hover { color: var(--chrys); }
.contact__block p { margin-bottom: .35rem; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

.contact__form { background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field__opt { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--granite);
  padding: .75rem .9rem; background: var(--paper);
  border: 1px solid #B7BFB9; border-radius: 3px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--chrys); box-shadow: 0 0 0 3px rgba(29,111,104,.2); background: #fff; }
.has-error input, .has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: .9rem; margin: .4rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; border-left: 4px solid; margin-bottom: 1.5rem; }
.notice--error { border-color: var(--error); background: #FBEFEE; color: #6E1F1A; }
.notice--ok { border-color: var(--chrys); background: #E9F3F1; padding: 1.75rem; margin: 0; }
.notice--ok h2 { font-size: var(--step-2); margin-bottom: .75rem; }

.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.6) contrast(1.05); }

/* ---------- Franja de llamado y pie ---------- */

.cta-band { background: var(--chrys-dark); color: #fff; padding-block: clamp(2.75rem, 6vw, 4rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__title { font-size: var(--step-3); max-width: 24ch; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-band__phone { font-stretch: var(--wide); font-weight: 600; text-decoration: none; font-size: var(--step-1); }
.cta-band__phone:hover { text-decoration: underline; }

.site-footer { background: var(--granite); color: rgba(255,255,255,.75); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.brand--footer { margin-bottom: 1rem; }
.site-footer__about p { max-width: 36ch; }
.site-footer__title { font-size: .95rem; font-stretch: var(--narrow); font-weight: 600; color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__address { margin-bottom: .75rem; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; font-size: .88rem; color: rgba(255,255,255,.55);
}
.site-footer__legal p { margin: 0; }

/* ---------- 404 ---------- */
.notfound .page-hero__title { color: var(--granite); }
.notfound .page-hero__lead { color: var(--stone); margin-bottom: 1.5rem; }
.notfound__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Logo oficial (SVG) */
:root { --header-h: 84px; }
.brand__logo { height: 58px; width: auto; }
.brand--footer .brand__logo { height: 72px; }
@media (max-width: 560px) { :root { --header-h: 72px; } .brand__logo { height: 48px; } }
