/* wallcolor.cl · sobrio e industrial · sin fuentes externas ni JavaScript */
:root {
  --ink: #1C1E22;        /* grafito */
  --ink-2: #2A2D33;
  --steel: #5B6370;
  --line: #D9DCE0;
  --paper: #FFFFFF;
  --concrete: #F1F2F3;
  --text: #22252A;
  --muted: #5B6370;
  --accent: #E8590C;     /* naranjo del logo */
  --accent-dark: #C2470A;
  --grad: linear-gradient(90deg, #F7B32B, #E8590C 35%, #D6336C 65%, #5F3DC4);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Cabecera */
.top { background: var(--ink); border-bottom: 4px solid transparent; border-image: var(--grad) 1; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.nav a { color: #E6E8EB; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: #fff; border-bottom-color: var(--accent); }

/* Secciones */
section { padding: 72px 0; }
.dark { background: var(--ink); color: #E9EBEE; }
.dark h1, .dark h2 { color: #fff; }
.light { background: var(--concrete); }
.white { background: var(--paper); }
.hero { padding: 96px 0 88px; background:
  linear-gradient(90deg, rgba(28,30,34,.97) 0%, rgba(28,30,34,.9) 55%, rgba(28,30,34,.75) 100%),
  repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.05) 119px 120px),
  repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.05) 79px 80px), var(--ink); }
.hero h1 { max-width: 16ch; }
.page-head { padding: 64px 0 56px; background:
  repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.04) 119px 120px), var(--ink); }
.page-head h1 { max-width: 22ch; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #F7B32B; margin-bottom: 14px; }
.lead { font-size: 1.15rem; max-width: 60ch; color: #C9CDD3; }
.sec-head { margin-bottom: 32px; max-width: 64ch; }
.sec-head p { color: var(--muted); }
.bar { display: block; width: 56px; height: 4px; background: var(--grad); margin-bottom: 16px; }

/* Botones */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-weight: 650; text-decoration: none; border: 2px solid transparent; border-radius: 2px; font-size: 1rem; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: #8A929C; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

/* Grillas y tarjetas */
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 26px 24px; }
.light .card { background: #fff; }
.card p { color: var(--muted); margin: 0 0 .5em; }
.card p a { font-weight: 650; overflow-wrap: anywhere; }
.card .small, .small { font-size: .92rem; }
.icon { display: inline-block; width: 30px; height: 30px; color: var(--accent); flex: none; }
.icon svg { width: 100%; height: 100%; }
.card > .icon { margin-bottom: 12px; }

.service { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.service:hover { border-color: var(--ink); color: var(--text); }
.service .foto img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service > div { padding: 22px 22px 24px; }
.service p { color: var(--muted); }
.more { font-weight: 700; color: var(--accent-dark); }

/* Bloques de servicio */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--line); }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose { max-width: 68ch; }
.narrow { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checks .icon { width: 22px; height: 22px; margin-top: 3px; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* Banda de trayectoria */
.band { padding: 56px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band p { color: #C9CDD3; max-width: 62ch; margin: 0; }

/* Trayectoria */
.origin { font-weight: 650; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 20px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.obras { width: 100%; border-collapse: collapse; font-size: .95rem; }
.obras th, .obras td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.obras thead th { background: var(--ink); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.obras tbody th { font-weight: 650; }
.obras td { color: var(--muted); }
.obras .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.obras tbody tr:nth-child(even) { background: #FAFAFB; }

/* Llamado final */
.cta { background: #fff; border-top: 1px solid var(--line); padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta p { color: var(--muted); margin: 0; }
.cta .btns { margin-top: 0; }

/* Pie */
.foot { background: var(--ink); color: #BFC4CA; padding: 48px 0 24px; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.foot img { height: 56px; width: auto; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; display: flex; gap: 10px; align-items: center; }
.foot a { color: #E6E8EB; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .icon { width: 18px; height: 18px; color: #F7B32B; }
.foot-legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid #3A3E45; color: #8E959E; }

/* Responsive */
@media (max-width: 980px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .top { position: static; }
  .top-in { flex-direction: column; align-items: flex-start; padding: 12px 16px 10px; gap: 8px; }
  .brand img { height: 44px; }
  .nav { gap: 2px 16px; }
  .nav a { font-size: .9rem; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .band-in, .cta-in { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .obras { font-size: .88rem; }
  .obras th, .obras td { padding: 10px 12px; }
  .obras thead { display: none; }
  .obras tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .obras th, .obras td { display: block; border: 0; padding: 2px 14px; text-align: left; }
  .obras .num { text-align: left; color: var(--accent-dark); font-weight: 650; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.table-wrap + .note { margin-top: 16px; }
