/* =========================================================
   GRÚAS AGUILAR — inner pages
   Loaded after styles.css (tokens, nav, buttons, form, footer)
   ========================================================= */

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-top: 0; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-soft); max-width: 640px; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5vw, 84px); line-height: .94; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 38px); line-height: .98; margin: 0; }
.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.sec { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 7vw, 100px) 0; }
.sec--white { background: var(--card); }
.sec--sand { background: var(--bg-2); }
.sec--green { background: var(--green); color: #fff; }
.sec--green .kicker { color: var(--yellow); }
.sec--green .prose p, .sec--green .lead { color: rgba(255,255,255,.82); }
.sec--ink { background: #0c1a12; color: #fff; }
.sec--ink .kicker { color: var(--yellow); }
.sec--ink .lead, .sec--ink .prose p { color: rgba(255,255,255,.75); }
.sec-head { display: grid; gap: 20px 60px; margin-bottom: clamp(36px, 5vw, 70px); }
.sec-head .lead { align-self: end; }
@media (min-width: 1000px) { .sec-head { grid-template-columns: 1.3fr 1fr; } }

/* reveal (JS adds .is-in) */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
.no-anim .rv { opacity: 1 !important; transform: none !important; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--green); }
.on-dark-hero .crumbs, .phero--full .crumbs { color: rgba(255,255,255,.7); }
.phero--full .crumbs a:hover { color: var(--yellow); }

/* ---------- page hero ---------- */
.phero { position: relative; padding-top: clamp(120px, 15vh, 170px); }
.phero__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, min(9vw, 16vh), 176px); line-height: .86; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.phero__title .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.phero__row { display: grid; gap: 28px 60px; margin-top: clamp(26px, 3vw, 40px); }
.phero__row .lead { align-self: end; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
@media (min-width: 1000px) { .phero__row { grid-template-columns: 1fr auto; align-items: end; } }
.phero__media { position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; height: clamp(320px, 62vh, 760px); margin-inline: var(--gutter); }
@media (min-width: 1712px) { .phero__media { margin-inline: calc((100vw - 1600px) / 2 + var(--gutter)); } }
.phero__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.phero__tag { position: absolute; left: 22px; bottom: 22px; z-index: 2; padding: 10px 16px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* split hero (service pages) */
.phero--split .phero__grid { display: grid; gap: 40px; align-items: end; }
.phero--split .phero__title { font-size: clamp(50px, min(6.6vw, 13vh), 128px); }
.phero--split .phero__visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; max-height: 76vh; }
.phero--split .phero__visual img { width: 100%; height: 112%; object-fit: cover; }
.phero--split .lead { margin-top: 26px; }
.phero--split .phero__actions { margin-top: 30px; }
@media (min-width: 1000px) { .phero--split .phero__grid { grid-template-columns: 1.05fr .95fr; gap: 70px; } .phero--split .phero__visual { aspect-ratio: auto; height: min(76vh, 760px); } }

/* full-bleed dark hero (projects, wind) */
.phero--full { min-height: 100svh; padding: 0; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.phero--full .phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero--full .phero__bg img { width: 100%; height: 112%; object-fit: cover; }
.phero--full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,24,15,.9) 0%, rgba(7,24,15,.35) 50%, rgba(7,24,15,.35) 100%); }
.phero--full .wrap { padding-top: 140px; padding-bottom: clamp(50px, 8vh, 90px); }
.phero--full .phero__title { font-size: clamp(48px, min(7vw, 13vh), 132px); max-width: 1300px; }
.phero--full .lead { color: rgba(255,255,255,.85); }
.phero--full .phero__title .outline { -webkit-text-stroke-color: #fff; }

/* nav on dark heroes */
.on-dark-hero .nav:not(.is-solid) { color: #fff; }
.on-dark-hero .nav:not(.is-solid) .nav__logo svg { color: #fff; }
.on-dark-hero .nav:not(.is-solid) .nav__links { background: rgba(10,26,17,.38); border-color: rgba(255,255,255,.25); }
.on-dark-hero .nav:not(.is-solid) .nav__top:hover, .on-dark-hero .nav:not(.is-solid) .nav__top.is-current { background: #fff; color: var(--ink); }
.on-dark-hero .nav:not(.is-solid) .pulse { background: var(--yellow); }
.on-dark-hero .nav:not(.is-solid) .btn--ink { background: var(--yellow); color: var(--ink); }
.on-dark-hero .nav:not(.is-solid) .nav__burger { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
.kpi { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); }
.kpi__n { font-family: var(--f-display); font-weight: 900; font-size: clamp(52px, 5.4vw, 96px); line-height: .85; font-variant-numeric: tabular-nums; }
.kpi__n small { font-size: .42em; margin-left: 4px; color: var(--green); }
.kpi__l { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 240px; }
@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line); }
}
.sec--green .kpis, .sec--ink .kpis { border-color: rgba(255,255,255,.4); }
.sec--green .kpi, .sec--ink .kpi { border-color: rgba(255,255,255,.15); }
.sec--green .kpi__l, .sec--ink .kpi__l { color: rgba(255,255,255,.75); }
.sec--green .kpi__n small, .sec--ink .kpi__n small { color: var(--yellow); }

/* ---------- split text / image ---------- */
.split { display: grid; gap: 40px; align-items: start; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.split__body .h2 { margin-bottom: 26px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(50px, 6vw, 110px); }
  .split--rev .split__media { order: 2; }
  .split__media--sticky { position: sticky; top: 110px; }
  .split__media--tall img { aspect-ratio: 4 / 4.8; }
}

/* ---------- cards grid ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { position: relative; background: var(--card); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 34px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform .6s var(--ease-out); }
.sec--white .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.card:hover { transform: translateY(-4px); }
.card__n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--green); }
.card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2vw, 32px); line-height: .98; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.card ul li + li { margin-top: 4px; }
.card__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.card__ico svg { width: 24px; height: 24px; }
.card--yellow { background: var(--yellow) !important; border-color: transparent !important; }
.card--yellow p { color: rgba(15,31,22,.75); }
.card--green { background: var(--green) !important; color: #fff; border-color: transparent !important; }
.card--green p, .card--green ul { color: rgba(255,255,255,.8); }
.card--green .card__n { color: var(--yellow); }
.sec--ink .card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.sec--ink .card p, .sec--ink .card ul { color: rgba(255,255,255,.72); }
.sec--ink .card__n { color: var(--yellow); }

/* ---------- checklist ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat; }
.checks b { color: var(--ink); }
.sec--green .checks li, .sec--ink .checks li { color: rgba(255,255,255,.82); }
.sec--green .checks b, .sec--ink .checks b { color: #fff; }
.sec--green .checks li::before, .sec--ink .checks li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230f1f16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li, .chip-btn { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.sec--white .chips li { background: var(--bg); }
.sec--green .chips li, .sec--ink .chips li, .phero--full .chips li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.chip-btn { cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- gallery + lightbox ---------- */
.gallery { columns: 2 240px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; border-radius: 16px; overflow: hidden; break-inside: avoid; position: relative; }
.gallery img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: "+"; position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 22px; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out); }
.gallery a:hover::after { opacity: 1; transform: none; }
@media (min-width: 900px) { .gallery { columns: 3 260px; } }
.lb { position: fixed; inset: 0; z-index: 160; background: rgba(6,14,10,.95); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 60px 16px 20px; }
.lb[hidden] { display: none; }
.lb__img { max-width: min(1400px, 100%); max-height: calc(100svh - 150px); object-fit: contain; border-radius: 10px; }
.lb__bar { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.75); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; padding-top: 14px; }
.lb button { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; transition: background .3s, color .3s; }
.lb button:hover { background: var(--yellow); color: var(--ink); }
.lb__close { position: absolute; top: 14px; right: 14px; }

/* ---------- media strip (horizontal scroll cards) ---------- */
.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 min(82vw, 380px); }
.hcard { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.hcard__body h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: .98; margin: 0; }
.hcard__body p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.hscroll__nav { display: flex; gap: 8px; }
.hscroll__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 18px; transition: background .3s, color .3s; }
.hscroll__nav button:hover { background: var(--ink); color: #fff; }

/* ---------- tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tabs__btn { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.tabs__btn:hover { border-color: var(--ink); }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sec--ink .tabs__btn, .sec--green .tabs__btn { border-color: rgba(255,255,255,.25); color: #fff; }
.sec--ink .tabs__btn[aria-selected="true"], .sec--green .tabs__btn[aria-selected="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: panelIn .7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- index list with floating image (services hub, projects) ---------- */
.ilist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ilist a { display: grid; grid-template-columns: 50px 1fr; gap: 8px 20px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .6s var(--ease-out); isolation: isolate; }
.ilist a::before { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; border-radius: 8px; }
.ilist__n { font-family: var(--f-mono); font-size: 12px; color: var(--green); align-self: start; padding-top: 12px; }
.ilist__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 80px); line-height: .92; }
.ilist__d { grid-column: 2; color: var(--ink-soft); font-size: 15px; max-width: 560px; }
.ilist__go { display: none; }
.ilist__img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-top: 14px; }
@media (min-width: 900px) {
  .ilist a { grid-template-columns: 80px 1fr 360px 60px; }
  .ilist__d { grid-column: auto; }
  .ilist__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 20px; justify-self: end; transition: transform .5s var(--ease-out), background .3s, color .3s; }
  .ilist__img { display: none; }
  .ilist a:hover { padding-left: 24px; padding-right: 24px; }
  .ilist a:hover::before { transform: scaleY(1); }
  .ilist a:hover .ilist__go { background: var(--ink); color: var(--yellow); transform: rotate(-45deg); }
}

/* ---------- process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 6px 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--f-display); font-weight: 900; font-size: 48px; line-height: .9; color: var(--green); grid-row: span 2; }
.steps h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2vw, 32px); margin: 0; line-height: 1; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 1000px) {
  .steps--row { grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; }
  .steps--row li { grid-template-columns: 1fr; padding: 28px 22px 0 0; border-top: 3px solid var(--line); }
  .steps--row li::before { grid-row: auto; margin-bottom: 14px; }
  .steps--row li.is-in { border-top-color: var(--green); transition: border-color 1s var(--ease-out); }
}

/* ---------- CTA (quote) ---------- */
.quote-cta { position: relative; border-radius: var(--radius); background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 72px); display: grid; gap: 30px; overflow: hidden; isolation: isolate; }
.quote-cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(239,230,54,.12); z-index: -1; }
.quote-cta .h2 { font-size: clamp(40px, 5.4vw, 92px); }
.quote-cta p { margin: 16px 0 0; color: rgba(255,255,255,.75); max-width: 520px; }
.quote-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quote-cta__tel { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 3.4vw, 54px); color: var(--yellow); line-height: 1; }
@media (min-width: 1000px) { .quote-cta { grid-template-columns: 1.4fr 1fr; align-items: end; } .quote-cta__actions { justify-content: flex-end; } }

/* ---------- related links ---------- */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rel { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2; color: #fff; isolation: isolate; display: flex; align-items: flex-end; padding: 20px; }
.rel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.rel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,24,15,.85), rgba(7,24,15,0) 60%); }
.rel:hover img { transform: scale(1.06); }
.rel b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; }
.rel span { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.rel:hover span { transform: rotate(-45deg); }

/* =========================================================
   PAGE-SPECIFIC MODULES
   ========================================================= */

/* ---- Empresa: year counter ---- */
.yearband { position: relative; overflow: hidden; }
.yearband__n { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 15vw, 280px); line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.yearband__n span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.yearband__n i { flex: 1; height: 3px; background: var(--ink); position: relative; min-width: 40px; }
.yearband__n i::after { content: ""; position: absolute; right: -2px; top: 50%; width: 18px; height: 18px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.yearband__n b { color: var(--green); }
.yearband__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 24px; }
.values { display: grid; gap: 14px; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { border-top: 3px solid var(--ink); padding-top: 22px; }
.value h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 46px); line-height: .95; margin: 14px 0 14px; }
.value p { margin: 0; color: var(--ink-soft); }
.certs { display: grid; gap: 14px; }
@media (min-width: 900px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.cert { background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.cert__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cert__top img { width: 78px; height: auto; }
.cert__area { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--green); }
.cert h3 { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: .9; margin: 0; text-transform: uppercase; }
.cert__since { font-size: 14px; color: var(--muted); margin: -6px 0 0; }
.cert p, .cert li { color: var(--ink-soft); font-size: 15px; }
.cert p { margin: 0; }
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1.5px solid #fff; }
.dept { padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; gap: 16px; align-items: baseline; }
.dept span { font-family: var(--f-mono); font-size: 12px; color: var(--yellow); }
.dept b { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; }

/* ---- Plataformas: height ruler ---- */
.ruler { display: grid; gap: 30px; }
.ruler__scale { position: relative; height: 560px; border-left: 2px solid var(--ink); margin-left: 40px; }
.ruler__tick { position: absolute; left: -44px; transform: translateY(50%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); width: 36px; text-align: right; }
.ruler__tick::after { content: ""; position: absolute; left: 42px; top: 50%; width: 10px; height: 1.5px; background: var(--ink); }
.ruler__bars { position: absolute; inset: 0 0 0 20px; display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 18px); }
.ruler__bar { flex: 1; height: calc(var(--h) / 45 * 100%); border-radius: 10px 10px 0 0; background: var(--green-tint); position: relative; transform-origin: bottom; transition: background .4s; cursor: pointer; }
.ruler__bar b { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-weight: 900; font-size: 26px; white-space: nowrap; }
.ruler__bar span { position: absolute; bottom: 14px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ruler__bar.is-active, .ruler__bar:hover { background: var(--yellow); }
.ruler__bar.is-active span { color: var(--ink); }
.ruler__info { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); align-self: center; }
.ruler__info h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .95; margin: 8px 0 14px; }
.ruler__info p { margin: 0; color: var(--ink-soft); }
@media (min-width: 1000px) { .ruler { grid-template-columns: 1.4fr 1fr; gap: 60px; } }
@media (max-width: 640px) { .ruler__scale { height: 420px; } .ruler__bar b { font-size: 18px; } }

/* ---- Transporte: road ---- */
.road { position: relative; }
.road__line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 26px, transparent 26px 44px); opacity: .18; }
.road__truck { position: absolute; top: calc(50% - 22px); left: 0; width: 64px; color: var(--green); }

/* ---- Torre: clock ---- */
.clock { position: relative; width: min(320px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 10; }
.clock__track { stroke: rgba(255,255,255,.14); }
.clock__prog { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.clock__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clock__txt b { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 8vw, 110px); line-height: .85; }
.clock__txt span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ---- Wind theme ---- */
.theme-wind { background: #0c1a12; color: #fff; }
.theme-wind .footer { background: #0c1a12; color: #fff; }
.theme-wind .footer__logo { color: #fff; }
.theme-wind .footer__brand p, .theme-wind .footer__col a { color: rgba(255,255,255,.65); }
.theme-wind .footer__col a:hover { color: #fff; }
.theme-wind .footer__bottom { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.12); }
.theme-wind .footer__giant { background: linear-gradient(180deg, var(--yellow) 10%, #0c1a12 100%); -webkit-background-clip: text; background-clip: text; }
.theme-wind .social a { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.turbine { width: clamp(90px, 10vw, 150px); color: #fff; }
.turbine .blades { transform-origin: 100px 100px; animation: spin 7s linear infinite; }

/* ---- Ingeniería: blueprint ---- */
.blueprint { background-color: #0f4424; color: #fff; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.blueprint .crumbs { color: rgba(255,255,255,.65); }
.blueprint .phero__title .outline { -webkit-text-stroke-color: #fff; }
.blueprint .lead { color: rgba(255,255,255,.82); }
.sheet { position: relative; background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); color: var(--ink); }
.sheet img { width: 100%; height: auto; border: 1px solid var(--line); }
.sheet__block { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sheet__block div { padding: 8px 10px; border-left: 1px solid var(--ink); }
.sheet__block div:first-child { border-left: 0; }
.sheet__block b { display: block; font-size: 12px; margin-top: 2px; font-weight: 500; }
.dims { position: absolute; pointer-events: none; font-family: var(--f-mono); font-size: 10px; color: var(--yellow); letter-spacing: .12em; }

/* ---- Project case study ---- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.fact { padding: 28px 18px 28px 0; border-top: 1px solid rgba(255,255,255,.2); }
.fact b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 6vw, 110px); line-height: .82; color: var(--yellow); }
.fact b small { font-size: .38em; color: #fff; margin-left: 4px; }
.fact span { display: block; margin-top: 12px; color: rgba(255,255,255,.75); font-size: 14px; max-width: 220px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(var(--cols, 4), 1fr); } .fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); } }
.fleet { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.fleet li { display: grid; grid-template-columns: 1fr; gap: 6px 30px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fleet b { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; text-transform: uppercase; }
.fleet span { color: var(--ink-soft); }
@media (min-width: 900px) { .fleet li { grid-template-columns: 380px 1fr; align-items: baseline; } }
.next-case { display: grid; position: relative; min-height: 60vh; color: #fff; align-items: end; overflow: hidden; isolation: isolate; }
.next-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease-out); }
.next-case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,24,15,.9), rgba(7,24,15,.2)); z-index: -1; }
.next-case:hover img { transform: scale(1.05); }
.next-case .wrap { padding-bottom: 60px; }
.next-case small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.next-case h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6vw, 110px); line-height: .9; margin: 14px 0 0; max-width: 1200px; }

/* ---- Projects grid ---- */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; transition: opacity .5s, transform .6s var(--ease-out); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,24,15,.9) 0%, rgba(7,24,15,.1) 55%); }
.pcard:hover img { transform: scale(1.06); }
.pcard__tag { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__tag i { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pcard__tag i.y { background: var(--yellow); color: var(--ink); }
.pcard h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 2.2vw, 34px); line-height: .96; margin: 0; }
.pcard p { margin: 10px 0 0; font-size: 14px; color: rgba(255,255,255,.75); }
.pcard--feature { grid-column: 1 / -1; aspect-ratio: auto; min-height: 520px; }
.pcard--feature h3 { font-size: clamp(36px, 4.4vw, 72px); max-width: 900px; }
@media (min-width: 1100px) { .pcard--feature { grid-column: span 2; } }
.pcard.is-hidden { display: none; }

/* ---- Offices ---- */
.offices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.office { background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative; }
.office--hq { background: var(--green); color: #fff; }
.office__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.office--hq .office__tag { color: var(--yellow); }
.office h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .92; margin: 0; }
.office address { font-style: normal; color: var(--ink-soft); font-size: 15px; }
.office--hq address { color: rgba(255,255,255,.8); }
.office__tel { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; }
.office--hq .office__tel { color: var(--yellow); }
.office__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; }
.office__links a { border-bottom: 1.5px solid currentColor; }
.office__h24 { position: absolute; top: 26px; right: 26px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; display: flex; align-items: center; gap: 8px; }
.office__h24::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 4px rgba(60,207,110,.2); }

.netmap { position: relative; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.netmap svg { display: block; width: 100%; height: auto; }
.netmap .dot { fill: rgba(25,103,54,.16); }
.netmap .link { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; }
.netmap .pin circle { fill: var(--green); }
.netmap .pin.hq circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.netmap .pin text { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); font-weight: 500; }
.netmap .pin .halo { fill: none; stroke: var(--green); opacity: .6; animation: halo 2.4s var(--ease-out) infinite; }
@keyframes halo { from { r: 6; opacity: .7; } to { r: 30; opacity: 0; } }

/* ---- Contact page ---- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.hotline { display: flex; flex-direction: column; gap: 6px; }
.hotline a { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 5vw, 84px); line-height: .95; }
.hotline a:hover { color: var(--green); }
.form--light { background: var(--card); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.form legend { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 26px; margin-bottom: 8px; }
.form select { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 22px 0 10px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.optgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.optgrid label { position: relative; }
.optgrid input { position: absolute; opacity: 0; pointer-events: none; }
.optgrid span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--bg); cursor: pointer; transition: background .3s, border-color .3s; }
.optgrid input:checked + span { background: var(--yellow); border-color: var(--ink); }
.optgrid input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.q { font-size: 14px; font-weight: 700; margin: 6px 0 -6px; }
.file { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed rgba(15,31,22,.3); border-radius: 14px; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file b { font-size: 15px; }
.file small { color: var(--muted); }
.legal-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---- Blog ---- */
.bgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.bcard { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .6s var(--ease-out); }
.bcard:hover { transform: translateY(-5px); }
.bcard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bcard:hover .bcard__img img { transform: scale(1.06); }
.bcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bcard__cat { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.bcard h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: .98; margin: 0; }
.bcard .link-arrow { margin-top: auto; font-size: 14px; }
.bcard--feature { grid-column: 1 / -1; display: grid; }
.bcard--feature .bcard__img { aspect-ratio: 16 / 9; }
.bcard--feature h3 { font-size: clamp(34px, 3.6vw, 60px); }
.bcard--feature .bcard__body { padding: clamp(26px, 3vw, 50px); justify-content: center; }
@media (min-width: 1000px) { .bcard--feature { grid-template-columns: 1.3fr 1fr; } .bcard--feature .bcard__img { aspect-ratio: auto; min-height: 460px; } }
.bcard.is-hidden { display: none; }

/* ---- Legal ---- */
.legal { display: grid; gap: 40px; }
.legal__toc { font-size: 14px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--line); }
.legal__toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); transition: color .3s, border-color .3s; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--ink); border-color: var(--green); }
.legal__body { max-width: 780px; }
.legal__body h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; margin: 48px 0 16px; scroll-margin-top: 110px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body ul { padding-left: 20px; }
@media (min-width: 1000px) { .legal { grid-template-columns: 280px 1fr; gap: 80px; } .legal__toc { position: sticky; top: 110px; align-self: start; } }

/* ---- inner form section spacing ---- */
.contact.sec { padding-top: clamp(90px, 11vw, 160px); padding-bottom: clamp(90px, 11vw, 160px); }

/* skip link */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 16px; }

/* ---------- blog article ---------- */
.post-title { font-size: clamp(44px, min(6vw, 11vh), 112px); max-width: 1250px; }
.post-hero .lead { max-width: 820px; }
.post-cover { height: clamp(300px, 58vh, 700px); }
.post-wrap { padding-top: clamp(50px, 6vw, 90px); }
.post-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .post-grid { grid-template-columns: 300px minmax(0, 760px); gap: clamp(50px, 7vw, 120px); justify-content: center; } .post-side { position: sticky; top: 110px; align-self: start; } }
.post-side { display: flex; flex-direction: column; gap: 14px; }
.post-side__box { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.post-toc { list-style: none; margin: 0; padding: 0; counter-reset: t; display: flex; flex-direction: column; gap: 2px; }
.post-toc li { counter-increment: t; }
.post-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 0; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); line-height: 1.35; transition: color .3s; }
.post-toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--green); padding-top: 2px; }
.post-toc a:hover, .post-toc a.is-active { color: var(--ink); }
.post-side__cta { background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.post-side__cta b { font-family: var(--f-display); font-size: 26px; text-transform: uppercase; line-height: 1; }
.post-side__cta p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); }
.post-side__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--yellow); }
.post-side__tel svg { width: 16px; height: 16px; }
@media (max-width: 999px) { .post-side__box:first-child { display: none; } .post-side { order: 2; } }
.post-body { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.75; }
.post-body p { color: var(--ink-soft); }
.post-body.prose > * { margin-top: 0; margin-bottom: 0; }
.post-body.prose > * + * { margin-top: 1.1em; }
.post-body.prose > * + h2 { margin-top: 1.9em; margin-bottom: .1em; }
.post-body.prose > * + h3 { margin-top: 1.5em; }
.post-body.prose > h2:first-child { margin-top: 0; }
.post-body h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; margin: 1.8em 0 .5em; color: var(--ink); scroll-margin-top: 110px; }
.post-body h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; margin: 1.5em 0 .4em; }
.post-body h4 { font-size: 18px; margin: 1.3em 0 .3em; }
.post-body strong, .post-body b { color: var(--ink); }
.post-body a { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post-body a:hover { background: var(--yellow); color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 0; list-style: none; color: var(--ink-soft); }
.post-body ul li, .post-body ol li { position: relative; padding-left: 28px; margin-top: .5em; }
.post-body ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); }
.post-body ol { counter-reset: o; }
.post-body ol li { counter-increment: o; }
.post-body ol li::before { content: counter(o) "."; position: absolute; left: 0; font-weight: 700; color: var(--green); }
.post-body img { width: 100%; height: auto; border-radius: 18px; margin: 1em 0; }
.post-body figure { margin: 1.5em 0; }
.post-body figcaption { font-size: 13px; color: var(--muted); }
.post-body blockquote { margin: 1.5em 0; padding: 20px 26px; border-left: 4px solid var(--yellow); background: var(--card); border-radius: 0 14px 14px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { background: var(--green); color: #fff; }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 3em !important; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.post-foot a.chip-btn { text-decoration: none; color: var(--ink); font-weight: 500; }
.post-foot a.link-arrow { text-decoration: none; }

/* ---------- card images: uniform crop everywhere (fixes tall photos in carousels and type cards) ---------- */
.hcard img, .card > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card > img { border-radius: 14px; margin-bottom: 8px; }
.hscroll { align-items: stretch; scroll-padding-inline: var(--gutter); cursor: grab; }
.hscroll.is-drag { cursor: grabbing; scroll-snap-type: none; }
.hscroll > * { flex: 0 0 min(80vw, 360px); }
.hcard { overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s; }
.hcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(15,31,22,.35); }
.hcard > img { transition: transform 1.1s var(--ease-out); }
.hcard:hover > img { transform: scale(1.05); }
.hcard__body { flex: 1; }
.hcard__body h3 { font-size: clamp(24px, 2vw, 30px); }
.hscroll__bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 18px; overflow: hidden; }
.hscroll__bar i { display: block; height: 100%; width: 30%; background: var(--green); border-radius: 3px; transition: transform .2s linear; }
.hscroll__nav button:disabled { opacity: .3; pointer-events: none; }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cards--3 .card > img { aspect-ratio: 16 / 10; }
/* never upscale inline article images beyond their real size */
.post-body img { width: auto; max-width: 100%; height: auto; display: block; margin-inline: auto; }

/* ---------- photo mosaic (Empresa) ---------- */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(180px, 22vw, 300px); }
.mosaic__item { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); z-index: -2; }
.mosaic__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,24,15,.78) 0%, rgba(7,24,15,0) 45%); transition: opacity .5s; }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.mosaic__cap b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); line-height: 1; }
.mosaic__cap small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.mosaic__item--big { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.4fr 1fr 1fr; }
  .mosaic__item--big { grid-column: 1; grid-row: span 2; }
  .mosaic__item--wide { grid-column: 2 / 4; }
  .mosaic__item--big .mosaic__cap b { font-size: clamp(28px, 2.6vw, 42px); }
}
@media (max-width: 899px) { .mosaic__item:last-child { grid-column: 1 / -1; } }

/* ---------- QA pass: grid children must be allowed to shrink (fixes horizontal overflow on phones) ---------- */
.split > *, .ruler > *, .contact-grid > *, .legal > *, .post-grid > *, .phero__grid > *, .sec-head > *, .phero__row > *, .faq__grid > * { min-width: 0; }
.legal__body, .post-body, .prose { overflow-wrap: anywhere; }
.legal__body table { display: block; max-width: 100%; overflow-x: auto; }
/* QA: odd last card spans the row in 2-column card grids inside split layouts */
.split .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .ruler__bar span { display: none; } .ruler__bar b { font-size: 16px; top: -26px; } }
