/* CAMMER — hoja de estilos compartida
   Concepto: ficha técnica / plano de obra sobre azul marino. Texto alineado a la izquierda,
   retícula de plano como textura, líneas de cota como recurso gráfico propio. */
:root {
  /* Colores base */
  --navy: #122744;          /* fondo principal */
  --navy-deep: #0d1d34;     /* bandas alternas, derivado del base */
  --navy-raise: #18304f;    /* superficies elevadas */
  --graphite: #63696e;      /* gris base: bandas y líneas fuertes */
  /* Colores de acento */
  --steel: #26547a;
  --slate: #6a7d89;
  --mist: #ced3d6;
  --white: #f3f5f6;

  --line: rgba(206, 211, 214, .14);
  --line-strong: rgba(206, 211, 214, .32);
  --text: var(--mist);
  --text-dim: #9eabb4;
  --heading: var(--white);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.1rem, 1.3rem + 4.4vw, 4.75rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--white); text-decoration-color: var(--slate); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mist); }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }
p { margin: 0; max-width: 64ch; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--heading);
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
  font-stretch: 75%;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
h2 { font-size: var(--step-3); font-weight: 800; text-transform: uppercase; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; font-stretch: 87.5%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Textura de plano */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #dde1e4;
  box-shadow: 0 1px 0 rgba(18, 39, 68, .04);
}
.site-header :focus-visible { outline-color: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-display);
  font-stretch: 87.5%;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--steel); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav .nav-cta { margin-left: 10px; background: var(--steel); color: var(--white); border-radius: var(--radius); border-bottom: 0; }
.nav .nav-cta:hover { background: #2d628d; }
.menu-btn { display: none; background: none; border: 1px solid var(--navy); color: var(--navy); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--f-display); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #ffffff; border-bottom: 1px solid #dde1e4; padding: 8px var(--gutter) 16px; }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #e6e9eb; }
  .nav a[aria-current="page"] { border-bottom-color: #e6e9eb; color: var(--steel); }
  .brand img { height: 60px; }
  .site-header .wrap { min-height: 76px; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; padding: 14px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--steel); color: var(--white); }
.btn-primary:hover { background: #2d628d; }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--mist); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 26px; position: relative; z-index: 2; min-width: 0; }
.sectors { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; color: var(--mist); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.sectors li { display: flex; align-items: center; gap: 18px; }
.sectors li + li::before { content: ""; width: 6px; height: 6px; background: var(--slate); transform: rotate(45deg); }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: var(--step-1); color: var(--mist); max-width: 40ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-width: 0; aspect-ratio: 1 / .9; max-width: 100%; }
.hero-art canvas { width: 100%; height: 100%; }

/* Cota de 40 años */
.dimension { display: grid; gap: 8px; max-width: 420px; }
.dimension-line { position: relative; height: 14px; border-inline: 1px solid var(--slate); }
.dimension-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--slate); }
.dimension-line::after { content: ""; position: absolute; left: -1px; right: -1px; top: calc(50% - 4px); height: 8px; background:
  linear-gradient(45deg, transparent 45%, var(--slate) 45% 55%, transparent 55%) left / 8px 8px no-repeat,
  linear-gradient(45deg, transparent 45%, var(--slate) 45% 55%, transparent 55%) right / 8px 8px no-repeat; }
.dimension-label { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; color: var(--white); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { position: absolute; inset: 0 -20% auto auto; width: 90%; opacity: .28; z-index: 1; pointer-events: none; }
}

/* ---------- Encabezado de página interior ---------- */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 18px; }
.page-head p { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.crumbs { font-size: var(--step--1); color: var(--text-dim); }
.crumbs a { color: var(--text-dim); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--navy-deep); }
.band-graphite { background: var(--graphite); color: var(--white); }
.band-graphite p { color: var(--white); }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack-lg { display: grid; gap: 48px; }
.kicker { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 1rem; color: var(--slate); letter-spacing: .05em; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pillar { padding: 32px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar .icon { width: 40px; height: 40px; color: var(--mist); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Lista técnica en columnas */
.spec-list { columns: 2 240px; column-gap: 40px; }
.spec-list li { break-inside: avoid; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.4; }
.spec-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 1px; background: var(--mist); }

/* Índice de servicios (inicio) */
.svc-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 22px 20px; text-decoration: none; color: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 1.1rem; line-height: 1.2; transition: background .15s; }
.svc-index a:hover { background: var(--navy-raise); }
.svc-index .icon { color: var(--slate); }
.svc-index a:hover .icon { color: var(--mist); }

/* Banda de cierre */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.statement p { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: var(--step-2); line-height: 1.2; color: var(--white); max-width: 30ch; text-wrap: balance; }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 112px); display: grid; gap: 2px; border-left: 1px solid var(--line); }
.svc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--text-dim); font-size: .95rem; line-height: 1.3; }
.svc-toc a:hover { color: var(--white); }
.svc-toc a.is-active { color: var(--white); border-left-color: var(--mist); }
.svc-toc-title { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; color: var(--white); padding: 0 0 10px 16px; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; }
.svc-chips { display: none; }
@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-toc { display: none; }
  .svc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .svc-chips a { flex: none; white-space: nowrap; font-size: .9rem; text-decoration: none; color: var(--mist); border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 14px; }
}

.svc { display: grid; gap: 28px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 108px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.svc-badge { width: 64px; height: 64px; display: grid; place-items: center; background: var(--steel); border-radius: var(--radius); color: var(--white); }
.svc-badge .icon { width: 34px; height: 34px; }
.svc-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.svc-head p { margin-top: 12px; font-size: 1.1rem; color: var(--mist); }
.svc-body { display: grid; gap: 20px; }

.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.sub-grid > div { padding: 22px 24px 22px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); }
.sub-grid > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.sub-grid p { font-size: 1rem; color: var(--text); }
@media (max-width: 700px) {
  .sub-grid { grid-template-columns: 1fr; }
  .sub-grid > div, .sub-grid > div:nth-child(even) { padding: 20px 0; border-left: 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .95rem; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--navy-raise); color: var(--white); line-height: 1.3; }

.note { border-left: 2px solid var(--slate); padding: 4px 0 4px 18px; color: var(--mist); font-size: 1rem; }

.scope { display: grid; border-top: 1px solid var(--line-strong); }
.scope div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.scope dt { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; color: var(--white); font-size: 1.1rem; line-height: 1.3; }
.scope dd { margin: 0; font-size: 1rem; }
@media (max-width: 640px) { .scope div { grid-template-columns: 1fr; gap: 6px; } }

.phases { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.phases li { flex: 1 1 120px; padding: 14px 16px; border-right: 1px solid var(--line); font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; color: var(--white); font-size: 1rem; display: grid; gap: 2px; }
.phases li span { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.phases li:last-child { border-right: 0; }

/* ---------- Nosotros ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.mv > div { padding: 32px 32px 32px 0; display: grid; gap: 14px; align-content: start; }
.mv > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.mv blockquote { margin: 0; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 500; font-size: var(--step-2); line-height: 1.25; color: var(--white); text-wrap: balance; }
@media (max-width: 760px) {
  .mv { grid-template-columns: 1fr; }
  .mv > div, .mv > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.sectors-served { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.sectors-served li { padding: 22px 20px 22px 0; display: grid; gap: 8px; align-content: start; }
.sectors-served li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.sectors-served strong { font-family: var(--f-display); font-stretch: 87.5%; color: var(--white); font-size: 1.2rem; }
.sectors-served span { font-size: .95rem; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 860px) {
  .sectors-served { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors-served li, .sectors-served li + li { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.big-years { font-family: var(--f-display); font-weight: 800; font-stretch: 62.5%; font-size: clamp(6rem, 4rem + 9vw, 11rem); line-height: .85; color: var(--white); letter-spacing: -.02em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; border-top: 1px solid var(--line-strong); }
.contact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list .icon { color: var(--slate); margin-top: 2px; }
.contact-list dt, .c-label { font-size: .85rem; color: var(--text-dim); }
.c-value { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 1.35rem; color: var(--white); line-height: 1.3; overflow-wrap: anywhere; }
.c-value a { text-decoration: none; }
.c-value a:hover { text-decoration: underline; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mini-btn { font: 500 .85rem var(--f-body); color: var(--mist); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; text-decoration: none; }
.mini-btn:hover { border-color: var(--mist); color: var(--white); }

.form { display: grid; gap: 18px; background: var(--navy-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .9rem; color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: var(--navy);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--slate); outline-offset: 0; border-color: var(--slate); }
.form-msg { font-size: .95rem; color: var(--mist); border-left: 2px solid var(--slate); padding-left: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.footer-top h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-top ul { display: grid; gap: 8px; }
.footer-top a { color: var(--text); text-decoration: none; }
.footer-top a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-logo { display: inline-block; justify-self: start; background: #ffffff; padding: 14px 18px; border-radius: var(--radius); }
.footer-logo img { height: 96px; width: auto; }
.footer-brand p { color: var(--text-dim); max-width: 36ch; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; color: var(--text-dim); font-size: .875rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
