/* Aluminios Valle · hoja de estilos
   Diseño: variante A "arquitectónica". Archivo (autoalojada), blanco + antracita,
   azul corporativo #004b97 y verde lima #b2c800 como acento. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #004b97;
  --lime: #b2c800;
  --lime-ink: #5f6b00;
  --ink: #17202b;
  --ink-2: #0f161f;
  --steel: #5b6673;
  --steel-2: #96a3b3;
  --line: #dde2e8;
  --mist: #f3f5f7;
  --paper: #ffffff;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hdr-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.muted { color: var(--steel); }
.pt0 { padding-top: 0 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Botones ---------- */
.btn-lime, .btn-line, .btn-ghost, .send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 0;
  font: 600 15px var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; transition: background .2s, color .2s;
}
.btn-lime, .send { background: var(--lime); color: var(--ink); }
.btn-lime:hover, .send:hover { background: #c6de12; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.more { display: inline-flex; gap: 10px; align-items: center; margin-top: 32px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 4px; }
.more:hover { color: var(--blue); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { color: #fff; }

/* ---------- Cabecera ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; transition: background .3s, box-shadow .3s; }
.hdr::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,18,28,.55), transparent); pointer-events: none; transition: opacity .3s; }
.hdr.solid { background: rgba(23,32,43,.97); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hdr.solid::before { opacity: 0; }
.hdr .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hdr-h); transition: height .3s; }
.hdr.solid .wrap { height: 68px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .92; }
.nav > a:not(.quote):not(.lang):hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .lang { font-size: 13px; letter-spacing: .08em; opacity: .8; }
.nav .lang b { color: var(--lime); font-weight: 600; }
.nav .quote { border: 1px solid rgba(255,255,255,.7); padding: 9px 16px; opacity: 1; }
.nav .quote:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.nav-contact { display: none; }
.burger { display: none; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; font: 600 13px var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }
.burger span { width: 24px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform .25s; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .burger { display: inline-flex; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 90px max(28px, env(safe-area-inset-left)) 40px; background: var(--ink); font-size: 30px; font-weight: 300; font-stretch: 110%;
    visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
  .nav > a:not(.quote):not(.lang) { padding: 4px 0; }
  .nav .lang { font-size: 15px; margin-top: 14px; }
  .nav .quote { font-size: 15px; margin-top: 18px; font-weight: 600; }
  .nav-contact { display: grid; gap: 4px; margin-top: 28px; font-size: 15px; color: var(--steel-2); font-stretch: 100%; font-weight: 400; }
  .nav-open { overflow: hidden; }
}

/* ---------- Portada: slider ---------- */
.hero { position: relative; min-height: min(720px, 92vh); color: #fff; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.slides li.on { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides li.on img { animation: kb 8s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,18,28,.55) 0%, rgba(10,18,28,.08) 30%, rgba(10,18,28,.2) 55%, rgba(10,18,28,.88) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--lime); flex: none; }
.caps { display: grid; }
.cap { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .8s ease .3s, transform .8s ease .3s; }
.cap.on { opacity: 1; transform: none; }
.cap .h1 { font-stretch: 112%; font-weight: 300; font-size: clamp(38px, 6.4vw, 86px); line-height: .98; letter-spacing: -.02em; margin: 18px 0 0; max-width: 14ch; }
.cap .h1 b { font-weight: 700; }
.cap p:not(.h1) { margin: 18px 0 0; font-size: 18px; max-width: 46ch; opacity: .92; }
.ctrl { display: grid; gap: 14px; justify-items: end; }
.count { font-size: 14px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.count b { font-size: 28px; font-weight: 600; font-stretch: 110%; }
.bars { display: flex; gap: 8px; }
.bars button { all: unset; cursor: pointer; width: 54px; height: 20px; display: flex; align-items: center; }
.bars button span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.bars button span::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.bars button.on span::after { animation: bar var(--dur, 7s) linear forwards; }
.hero.paused .bars button.on span::after { animation-play-state: paused; }
.bars button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@keyframes bar { to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrows button { all: unset; cursor: pointer; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); display: grid; place-items: center; color: #fff; font-size: 18px; }
.arrows button:hover { background: #fff; color: var(--ink); }
.arrows button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bars button.on span::after { transform: scaleX(1); } }
@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .ctrl { grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
  .count { display: none; }
  .bars button { width: 36px; }
}

/* ---------- Banda Cortizo ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 20px; }
.strip img { height: 54px; width: auto; }
.strip p { margin: 0; font-size: 15px; color: var(--steel); flex: 1 1 300px; }
.strip p strong { color: var(--ink); font-weight: 600; }
.strip .phone { font-size: 24px; font-weight: 600; font-stretch: 105%; color: var(--blue); text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Secciones ---------- */
.blk { padding-block: 104px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 52px; }
.sec-head p { margin: 0; color: var(--steel); font-size: 17px; max-width: 46ch; justify-self: end; }
h2 { font-stretch: 110%; font-weight: 300; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.015em; margin: 14px 0 0; }
h2 b { font-weight: 700; }
.lbl { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.works { background: var(--mist); }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; } .sec-head p { justify-self: start; } .blk { padding-block: 72px; } }

/* servicios */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.svc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc li { border-bottom: 1px solid var(--line); }
.svc li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font-size: clamp(20px, 2.2vw, 26px); font-stretch: 108%; text-decoration: none; transition: padding .25s, color .25s; }
.svc li a small { font-size: 13px; color: var(--steel); font-stretch: 100%; letter-spacing: .04em; text-align: right; }
.svc li a:hover, .svc li a[aria-current="true"] { color: var(--blue); padding-left: 12px; }
.svc li a[aria-current="true"] { font-weight: 600; }
.svc figure { margin: 0; position: sticky; top: 100px; }
.svc figure img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; background: var(--mist); }
.svc figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--steel); padding-block: 14px; border-bottom: 1px solid var(--line); }
.svc .also { margin: 22px 0 0; font-size: 15px; color: var(--steel); }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; gap: 28px; } .svc figure { position: static; order: -1; } }

/* trabajos destacados */
.wgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.wgrid a { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; display: block; }
.wgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.wgrid a:hover img { transform: scale(1.04); }
.wcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(10,18,28,.85)); font-size: 17px; font-weight: 500; line-height: 1.3; }
.wcap span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.w1 { grid-column: span 7; aspect-ratio: 7 / 5; }
.w2 { grid-column: span 5; aspect-ratio: 1; }
.w3, .w4, .w5 { grid-column: span 4; aspect-ratio: 1 / 1.1; }
@media (max-width: 800px) {
  .wgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .w1 { grid-column: span 2; }
  .w2, .w3, .w4 { grid-column: span 1; aspect-ratio: 1 / 1.15; }
  .w5 { grid-column: span 2; aspect-ratio: 16 / 9; }
  .wcap { font-size: 15px; padding: 36px 14px 14px; }
}

/* empresa / valores */
.company { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.company blockquote { margin: 18px 0 0; font-size: clamp(22px, 2.5vw, 32px); font-stretch: 104%; font-weight: 300; line-height: 1.3; }
.company blockquote b { font-weight: 600; color: var(--blue); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values div { background: var(--paper); padding: 26px 22px; }
.values h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; text-transform: uppercase; font-stretch: 106%; }
.values h3::before { content: ""; display: block; width: 22px; height: 3px; background: var(--lime); margin-bottom: 14px; }
.values p { margin: 0; font-size: 14.5px; color: var(--steel); line-height: 1.6; }
.values-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.values-4 div { padding: 32px 26px; }
@media (max-width: 960px) { .values-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .values, .values-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.split-img { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.framed { margin: 0; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.logo-inline { height: 64px; width: auto; }
@media (max-width: 860px) { .split, .split-img { grid-template-columns: 1fr; gap: 32px; } }

/* noticias */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news article { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 12px; align-content: start; }
.news-img { display: block; overflow: hidden; background: var(--mist); aspect-ratio: 16 / 10; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news article:hover .news-img img { transform: scale(1.04); }
.news time { font-size: 13px; color: var(--steel); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.news h3 { margin: 0; font-size: 20px; font-weight: 500; font-stretch: 104%; line-height: 1.25; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { color: var(--blue); }
.news p { margin: 0; color: var(--steel); font-size: 15px; }
.news-list article > div { display: grid; gap: 10px; align-content: start; }
.news-list .first { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.news-list .first .news-img { aspect-ratio: 16 / 9; }
.news-list .first h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; }
.intro { font-size: 18px; max-width: 60ch; margin: 0 0 40px; }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } .news-list .first { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) {
  .news { grid-template-columns: 1fr; gap: 24px; }
  .news article:not(.first) { grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; }
  .news article:not(.first) .news-img { grid-row: span 3; aspect-ratio: 1; }
  .news article:not(.first) p { display: none; }
  .news h3 { font-size: 17px; }
}

/* marcas */
.brands { border-top: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-block: 36px; }
.brands span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 600; flex-basis: 100%; }
.brands img { height: 66px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.brands img:hover { filter: none; opacity: 1; }
@media (min-width: 1000px) { .brands span { flex-basis: auto; } }
@media (max-width: 600px) { .brands .wrap { justify-content: flex-start; } .brands img { height: 52px; } }

/* ---------- Contacto (banda oscura) ---------- */
.cta { background: var(--ink); color: #fff; }
.cta > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 96px; }
.cta h2 { color: #fff; }
.cta .lbl { color: var(--lime); }
.cta-intro { color: #c3ccd6; max-width: 46ch; margin: 22px 0 0; }
.cdl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; margin: 36px 0 0; font-size: 16px; }
.cdl dt { color: var(--steel-2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding-top: 4px; }
.cdl dd { margin: 0; font-variant-numeric: tabular-nums; }
.cdl a { text-decoration: none; }
.cdl a:hover { color: var(--lime); }
.cta-band > .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: 72px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 14px 0 0; color: #c3ccd6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta > .wrap, .cta-band > .wrap { grid-template-columns: 1fr; padding-block: 72px; gap: 40px; } }

/* formulario */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-2); }
.cform input, .cform textarea, .cform select { font: 16px var(--font); color: #fff; background: transparent; border: 0; border-bottom: 1px solid #4a5666; padding: 9px 0; border-radius: 0; width: 100%; }
.cform select option { color: var(--ink); }
.cform textarea { resize: vertical; min-height: 96px; }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; border-bottom-color: var(--lime); }
.cform [aria-invalid="true"] { border-bottom-color: #ff8a7a; }
.cform .check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px; color: #c3ccd6; }
.cform .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
.cform .check span { flex: 1; }
.cform .check a { color: #fff; }
.cform .check .f-err { flex-basis: 100%; }
.f-err { color: #ff9d8f; font-size: 13px; letter-spacing: 0; text-transform: none; }
.f-ok, .f-general { margin: 0; padding: 14px 16px; font-size: 15px; }
.f-ok { background: rgba(178,200,0,.14); color: #d9ec5c; border-left: 3px solid var(--lime); }
.f-general { background: rgba(255,120,100,.12); color: #ffb3a8; border-left: 3px solid #ff8a7a; }
.f-info { margin: 0; font-size: 12.5px; color: var(--steel-2); line-height: 1.5; }
.send { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .cform { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.phero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--hdr-h) + 72px) 0 64px; overflow: hidden; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,28,.65), rgba(10,18,28,.35) 50%, rgba(10,18,28,.85)); }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { font-stretch: 110%; font-weight: 300; font-size: clamp(34px, 5vw, 64px); line-height: 1.03; letter-spacing: -.015em; margin: 16px 0 0; max-width: 22ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #c3ccd6; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs > span:last-child { color: #fff; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .phero { padding: calc(var(--hdr-h) + 40px) 0 44px; } }

/* filtros y rejilla de trabajos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips button { font: 500 14px var(--font); letter-spacing: .03em; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 9px 16px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.tcard { display: grid; gap: 8px; text-decoration: none; align-content: start; }
.tcard[hidden] { display: none; }
.tcard-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tcard:hover .tcard-img img { transform: scale(1.05); }
.tcard-cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-ink); font-weight: 600; margin-top: 6px; }
.tcard-t { font-size: 19px; font-weight: 500; font-stretch: 104%; line-height: 1.25; }
.tcard:hover .tcard-t { color: var(--blue); }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tgrid { grid-template-columns: 1fr; } }

/* ficha de trabajo */
.work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.work-img { margin: 0; background: var(--mist); }
.work-img img { width: 100%; max-height: 82vh; object-fit: contain; background: var(--mist); }
.work-side h2 { font-size: clamp(26px, 3vw, 38px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tags a, .tags span { font-size: 13px; border: 1px solid var(--line); padding: 5px 12px; text-decoration: none; color: var(--steel); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }
.work-cta { margin-top: 36px; padding: 28px; background: var(--ink); color: #fff; }
.work-cta h3 { margin: 0; font-size: 24px; font-weight: 300; font-stretch: 108%; }
.work-cta h3 b { font-weight: 700; }
.work-cta p { color: #c3ccd6; font-size: 15px; margin: 10px 0 20px; }
.work-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.work-nav a { text-decoration: none; }
.work-nav a:hover { color: var(--blue); }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; gap: 32px; } }

/* artículo */
.article-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.article-meta { position: sticky; top: 100px; display: grid; gap: 4px; }
.article-meta p { margin: 0; }
.article-meta time { display: block; margin-top: 6px; font-size: 17px; }
.article-meta .more { margin-top: 24px; }
@media (max-width: 860px) { .article-grid { grid-template-columns: 1fr; gap: 24px; } .article-meta { position: static; } }

.prose { max-width: 72ch; font-size: 17px; line-height: 1.75; color: #2a3440; }
.prose > :first-child { margin-top: 0; }
.prose .lead { font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 400; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 14px; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 500; line-height: 1.4; margin: 36px 0 12px; color: var(--ink); }
.prose h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin: 32px 0 10px; color: var(--ink); }
.prose a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose img { margin: 28px 0 8px; width: 100%; height: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-img { margin: 0 0 32px; }
.article-img img { margin: 0; }
.prose-legal { max-width: 80ch; font-size: 16px; }
.prose-legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 48px; }
.prose-legal h3 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.legal-date { font-size: 14px; color: var(--steel); letter-spacing: .04em; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.table-wrap table { display: table; min-width: 640px; }
.prose th { background: var(--mist); font-weight: 600; color: var(--ink); font-size: 14px; }
.prose code { font-size: 14px; background: var(--mist); padding: 1px 6px; }
.legal-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.f-info a { color: #fff; }

/* mapa */
.map { position: relative; aspect-ratio: 16 / 7; background: var(--ink); overflow: hidden; }
.map > img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; color: #fff; }
.map-cover small { color: #c3ccd6; max-width: 40ch; }
.map-blk .sec-head p a { color: var(--blue); font-weight: 600; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 5; } }

/* ---------- Pie ---------- */
.ftr { background: var(--ink-2); color: #9aa6b4; font-size: 14.5px; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.ftr-brand > img:first-child { height: 34px; width: auto; }
.ftr-brand p { margin: 16px 0 20px; max-width: 32ch; }
.ftr-cortizo { height: 60px; width: auto; }
.ftr h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; font-weight: 600; margin: 6px 0 16px; font-stretch: 100%; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-legal { border-top: 1px solid #222d39; }
.ftr-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: 13px; }
.ftr-legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) { .ftr-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr-cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Aviso de cookies ---------- */
.ck { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 560px; background: var(--paper); color: var(--ink); padding: 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); border-top: 3px solid var(--lime); }
.ck p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; }
.ck p a { color: var(--blue); }
.ck-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btns button { padding: 12px 20px; font-size: 14px; }

/* ---------- 404 ---------- */
.e404 { min-height: 70vh; display: grid; align-items: center; background: var(--ink); color: #fff; padding: calc(var(--hdr-h) + 40px) 0 60px; }
.e404 .big { font-size: clamp(90px, 18vw, 220px); font-weight: 200; font-stretch: 125%; line-height: 1; color: var(--lime); margin: 0; }
.e404 p { color: #c3ccd6; font-size: 18px; margin: 16px 0 32px; }
