/* =====================================================================
   FO INGENIERÍA — Sistema visual del sitio (2026)
   Tipografía: Segoe UI (con equivalentes del sistema en Mac, iOS y Android)
   Firma: ejes de plano (burbuja + línea de trazo y punto)
   ===================================================================== */
:root {
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --ice: #d6e4f0;
    --ink: #1b2533;
    --text: #434343;
    --muted: #666b73;
    --rule: #dfe5ec;
    --line: #c9d3df;
    --accent: #365f91;
    --accent-dark: #1f3864;
    --navy: #1f3864;
    --error: #b42318;
    --ok: #2f7d4f;
    --head: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
    --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
    --wrap: 1180px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
    --chain: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 18px, var(--line) 18px 20px, transparent 20px 24px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Eje de plano (firma visual) ---------- */
.eje {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.eje__b {
    flex: none;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.eje::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--chain);
}

/* ---------- Header ---------- */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.top__logo img { height: 48px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 2rem; }
.top__nav a { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--accent); }
.top__nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.top__nav .top__cta { background: var(--accent); color: #fff; padding: 0.45rem 1.1rem; border-radius: 4px; }
.top__nav .top__cta:hover { background: var(--accent-dark); color: #fff; }
.top__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.top__toggle span, .top__toggle span::before, .top__toggle span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: "";
}
.top__toggle span { top: 19px; }
.top__toggle span::before { top: -7px; left: 0; }
.top__toggle span::after { top: 7px; left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.hero--detail { border-bottom: 0; padding-bottom: 0; }
.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 1.25rem 0 1.25rem;
    max-width: 16ch;
}
.hero__lead { font-size: 1.125rem; color: var(--muted); max-width: 33rem; }
.hero__plano {
    position: absolute;
    right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
    top: 50%;
    transform: translateY(-50%);
    width: min(42vw, 480px);
    pointer-events: none;
}
.hero__copy { position: relative; max-width: 36rem; }

/* ---------- Bloques ---------- */
.block { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.block__title { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 600; margin: 0.25rem 0 1.75rem; }

.dots li { position: relative; padding-left: 1.5rem; margin-bottom: 0.65rem; }
.dots li::before {
    content: ""; position: absolute; left: 0.2rem; top: 0.62em;
    width: 7px; height: 7px; background: var(--accent);
}

.cols { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--bg-soft); border-top: 3px solid var(--accent); padding: 1.5rem 1.5rem 1.75rem; }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.25; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Posiciones ---------- */
.pos { border-top: 1px solid var(--ink); }
.pos__row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 15rem 10rem;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem 0.5rem;
    border-bottom: 1px solid var(--rule);
    color: inherit;
    transition: background 0.15s;
}
.pos__row:hover { color: inherit; background: var(--bg-soft); }
.pos__state {
    justify-self: start;
    font-family: var(--head); font-weight: 600; font-size: 13px;
    color: var(--ok); background: #e7f2ea; border-radius: 3px; padding: 0.15rem 0.55rem;
}
.pos__name { font-family: var(--head); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.pos__meta { font-size: 13px; line-height: 1.55; color: var(--muted); }
.pos__meta b { font-weight: 600; color: var(--ink); }
.pos__cta { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--accent); text-align: right; }
.pos__row:hover .pos__cta { color: var(--accent-dark); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding-right: 1.75rem; }
.step__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.step__n {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--accent); display: grid; place-items: center;
    font-family: var(--head); font-weight: 700; color: var(--accent); background: #fff;
}
.step__head::after { content: ""; flex: 1; height: 1px; background: var(--chain); }
.step:last-child .step__head::after { display: none; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 14px; color: var(--muted); }

.box { background: var(--ice); padding: clamp(1.75rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.box h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.4rem; }
.box p { max-width: 38rem; color: var(--ink); }

/* ---------- Detalle ---------- */
.back { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 1.75rem; }
.back:hover { color: var(--accent); }
.detail__lead { max-width: 40rem; }
.detail__lead p { font-size: 1.0625rem; }
.detail__lead p + p { margin-top: 0.9rem; }

.reqs { --n: 3; margin-top: 3rem; }
.reqs h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.reqs .dots li { font-size: 14px; line-height: 1.55; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 1.1rem 1.25rem 1.2rem 0; }
.facts > div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.facts span { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--accent); }
.facts strong { display: block; font-weight: 500; color: var(--ink); margin-top: 0.2rem; font-size: 15px; line-height: 1.4; }

/* ---------- Formulario ---------- */
.apply { margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--bg-soft); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.apply__title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 600; }
.apply__lead { color: var(--muted); max-width: 40rem; margin: 0.5rem 0 2.5rem; }

.f { max-width: 54rem; }
.f__sec { border: 0; margin: 0 0 2.75rem; min-width: 0; }
.f__sec > legend { width: 100%; margin-bottom: 1.25rem; }
.f__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem; }
.campo { margin-bottom: 1.5rem; }
.campo--full { grid-column: 1 / -1; }

.campo__label {
    display: block;
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 0.45rem;
    line-height: 1.4;
}
.campo__opt { font-weight: 400; color: var(--muted); }
.campo__help { font-size: 13px; color: var(--muted); margin: -0.15rem 0 0.6rem; line-height: 1.5; }

.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo input[type="url"], .campo textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 0.7rem 0.85rem;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.campo textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: #6b7480; opacity: 1; }
.campo input:focus, .campo textarea:focus { border-color: var(--accent); }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
    display: inline-block; padding: 0.45rem 0.85rem;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    font-size: 14px; line-height: 1.35; color: var(--text);
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.opt:hover span { border-color: var(--accent); }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.grilla { background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
.grilla__fila { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.7rem 1rem; }
.grilla__fila + .grilla__fila { border-top: 1px solid var(--rule); }
.grilla__nombre { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Archivos */
.drop {
    position: relative;
    display: flex; align-items: center; gap: 1rem;
    border: 1.5px dashed var(--line); border-radius: 4px; background: #fff;
    padding: 1.1rem 1.25rem; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fafcfe; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__icon {
    flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ice);
    display: grid; place-items: center; color: var(--accent);
}
.drop__txt { font-size: 14px; color: var(--muted); line-height: 1.45; }
.drop__txt b { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--accent); }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 95, 145, 0.15); }
.files { margin-top: 0.6rem; }
.files:empty { display: none; }
.files li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-size: 14px; padding: 0.5rem 0.75rem; background: #fff; border: 1px solid var(--rule); border-radius: 4px;
}
.files li + li { margin-top: 0.4rem; }
.files__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.files__size { color: var(--muted); font-size: 13px; margin-left: 0.5rem; }
.files button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; flex: none; }
.files button:hover { color: var(--error); }

.campo__error { display: none; font-size: 13px; font-weight: 500; color: var(--error); margin-top: 0.4rem; }
.campo.has-error .campo__error { display: block; }
.campo.has-error input[type="text"], .campo.has-error input[type="email"], .campo.has-error input[type="tel"], .campo.has-error input[type="url"],
.campo.has-error textarea, .campo.has-error .drop, .campo.has-error .grilla { border-color: var(--error); }
.campo.has-error .opt span { border-color: rgba(180, 35, 24, 0.5); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-top: 0.5rem; }
.btn {
    display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 4px;
    padding: 0.9rem 2.1rem; font-family: var(--head); font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--light { background: #fff; color: var(--accent-dark); }
.btn--light:hover { background: var(--ice); color: var(--accent-dark); }
.f__msg { font-size: 14px; font-weight: 500; color: var(--error); }
.f__msg.is-info { color: var(--muted); }

.done { background: #fff; border-top: 3px solid var(--ok); padding: 2rem 2rem 2.25rem; max-width: 40rem; }
.done h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, 0.78); margin-top: clamp(4rem, 8vw, 6rem); padding: 3.75rem 0 2rem; }
.foot--pegado { margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4, .foot__h { font-family: var(--head); font-weight: 600; font-size: 14px; color: #fff; margin-bottom: 0.9rem; opacity: 0.9; }
.foot__big { font-family: var(--head); font-size: 2rem; font-weight: 600; line-height: 1.15; color: #fff; margin-bottom: 1.5rem; }
.foot a { color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.foot a:hover { color: #fff; }
.foot li { margin-bottom: 0.5rem; font-size: 14px; }
.foot .btn--light { color: var(--accent-dark); font-size: 15px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; color: rgba(255, 255, 255, 0.55); }

[hidden] { display: none !important; }
#posiciones { scroll-margin-top: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
    .hero__plano { display: none; }
}
@media (max-width: 960px) {
    .cols { --n: 1 !important; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
    .step:nth-child(2) .step__head::after { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .pos__row { grid-template-columns: 5.5rem minmax(0, 1fr); row-gap: 0.4rem; }
    .pos__meta, .pos__cta { grid-column: 2; text-align: left; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .top__toggle { display: block; }
    .top__nav {
        display: none; position: absolute; top: 80px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--rule); padding: 0.5rem var(--pad) 1rem;
    }
    .top__nav.open { display: flex; }
    .top__nav a { padding: 0.8rem 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
    .top__nav a[aria-current] { box-shadow: none; }
    .top__nav .top__cta { margin-top: 0.75rem; text-align: center; border-bottom: 0; padding: 0.7rem; }
    .f__grid { grid-template-columns: 1fr; }
    .grilla__fila { grid-template-columns: 1fr; gap: 0.5rem; }
    .steps { grid-template-columns: 1fr; }
    .step .step__head::after { display: none; }
    .facts { grid-template-columns: 1fr; }
    .facts > div { padding-left: 0 !important; border-left: 0 !important; }
    .facts > div + div { border-top: 1px solid var(--rule); }
    .pos__row { grid-template-columns: 1fr; }
    .pos__meta, .pos__cta { grid-column: 1; }
    .box { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr; }
    .foot__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* =====================================================================
   COMPONENTES DEL SITIO (inicio, servicios, proyectos, nosotros)
   ===================================================================== */

.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.link-arrow { font-family: var(--head); font-weight: 700; font-size: 15px; }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 36rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head .block__title { margin-bottom: 0; }

/* ---------- Hero de inicio ---------- */
.hero--home { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero--home .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero--home h1 { max-width: 17ch; font-size: clamp(2.2rem, 4.4vw, 3.2rem); }

.frame { position: relative; padding: 40px 0 0 40px; }
.frame__img { position: relative; background: #fff; border: 1px solid var(--rule); aspect-ratio: 5 / 4; overflow: hidden; }
.frame__img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.frame__ax { position: absolute; pointer-events: none; }
.frame__ax--v { top: 0; bottom: -20px; width: 1px; background: repeating-linear-gradient(180deg, var(--line) 0 14px, transparent 14px 18px, var(--line) 18px 20px, transparent 20px 24px); }
.frame__ax--h { left: 0; right: -20px; height: 1px; background: var(--chain); }
.frame__ax--v.a { left: 40px; }
.frame__ax--v.b { right: 0; }
.frame__ax--h.uno { top: 40px; }
.frame__ax--h.dos { bottom: 0; }
.frame__b {
    position: absolute; width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid var(--accent); background: #fff; color: var(--accent);
    font-family: var(--head); font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.frame__b.a { left: 25px; top: -15px; }
.frame__b.b { right: -15px; top: -15px; }
.frame__b.uno { left: -15px; top: 25px; }
.frame__b.dos { left: -15px; bottom: -15px; }
.frame__cota {
    position: absolute; left: 40px; right: 0; bottom: -44px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--muted);
}
.frame__cota::before, .frame__cota::after { content: ""; flex: 1; height: 1px; background: var(--muted); opacity: 0.5; }
.frame__cota span { padding: 0 0.75rem; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { padding: 1.5rem 1.5rem 1.6rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.stat__n { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--accent-dark); }
.stat__l { font-size: 14px; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Proyectos ---------- */
.proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.proj__item { background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.proj__item:hover { border-color: var(--accent); }
.proj__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); border-bottom: 3px solid var(--accent); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.proj__item:hover .proj__img img { transform: scale(1.03); }
.proj__body { padding: 1.1rem 1.25rem 1.35rem; }
.proj__cat { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--accent); }
.proj__title { font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin: 0.2rem 0 0.6rem; }
.proj__meta { font-size: 14px; color: var(--muted); }
.proj__dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; font-size: 14px; }
.proj__dl dt { color: var(--muted); }
.proj__dl dd { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
    background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 1rem;
    font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters__count { font-size: 14px; color: var(--muted); margin: -1rem 0 1.5rem; }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.clients a { display: grid; place-items: center; height: 120px; padding: 1.5rem 2rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.clients img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.clients a:hover img { filter: none; opacity: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { border-top: 1px solid var(--ink); }
.contact__list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contact__list span { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--accent); }
.contact__list strong, .contact__list a { font-weight: 500; color: var(--ink); }
.contact__list a:hover { color: var(--accent); }
.contact__form { background: var(--bg-soft); padding: clamp(1.5rem, 4vw, 2.5rem); }
.campo select {
    width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff;
    padding: 0.7rem 0.85rem; font-family: var(--sans); font-size: 16px; color: var(--ink);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px; background-repeat: no-repeat;
}
.campo select:focus { border-color: var(--accent); }
.campo select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.campo.has-error select { border-color: var(--error); }
.f__ok { background: #fff; border-top: 3px solid var(--ok); padding: 1.5rem 1.5rem 1.75rem; }
.f__ok h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }

/* ---------- Servicios ---------- */
.svc-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.svc-index a { display: block; background: var(--bg-soft); border-top: 3px solid var(--accent); padding: 1.1rem 1.25rem 1.25rem; color: inherit; transition: background 0.15s; }
.svc-index a:hover { background: var(--ice); color: inherit; }
.svc-index b { display: block; font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.25; }
.svc-index small { display: block; font-size: 13px; color: var(--muted); margin-top: 0.3rem; }

.svc { padding-top: clamp(3rem, 7vw, 5rem); scroll-margin-top: 80px; }
.svc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; margin-bottom: 2rem; }
.svc__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 600; line-height: 1.15; }
.svc__sub { font-family: var(--head); font-weight: 600; color: var(--accent); margin-top: 0.35rem; }
.svc__desc { font-size: 1.0625rem; color: var(--text); }
.svc .card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.svc .dots li { font-size: 14px; margin-bottom: 0.45rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem 4rem; }
.about h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.1; }
.about p + p { margin-top: 1rem; }
.about p { font-size: 1.0625rem; }
.tools { --n: 3; }
.tools .card p { font-size: 15px; color: var(--ink); }
.social { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem 3rem; align-items: center; background: var(--bg-soft); padding: clamp(1.75rem, 4vw, 2.75rem); border-left: 3px solid var(--accent); }
.social img { width: 180px; height: auto; }
.social h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.6rem; }
.social p + p { margin-top: 0.75rem; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 1.25rem 0 1rem; max-width: 18ch; }

/* ---------- Responsive extra ---------- */
@media (max-width: 1060px) {
    .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .hero--home .wrap { grid-template-columns: 1fr; }
    .frame { max-width: 560px; margin-bottom: 2rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact, .about, .svc__head { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .proj, .svc-index { grid-template-columns: 1fr; }
    .social { grid-template-columns: 1fr; }
    .contact__list li { grid-template-columns: 1fr; gap: 0.15rem; }
    .frame { padding: 32px 0 0 32px; }
    .frame__ax--v.a { left: 32px; }
    .frame__ax--h.uno { top: 32px; }
    .frame__b.a { left: 17px; }
    .frame__b.uno { top: 17px; }
    .frame__cota { left: 32px; }
}

/* ---------- Carrusel del inicio ---------- */
.carrusel { position: relative; }
.carrusel img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; padding: 0; opacity: 0;
    transition: opacity 1.1s ease;
}
.carrusel img.is-on { opacity: 1; }
.carrusel__dots { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 0; z-index: 2; }
/* área táctil de 24 px; el punto visible sigue siendo de 9 px */
.carrusel__dots button {
    position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.carrusel__dots button::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%);
    border-radius: 50%; border: 1.5px solid #fff; background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); box-sizing: border-box;
}
.carrusel__dots button[aria-current="true"]::before { background: #fff; }
.carrusel__dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }
.frame .carrusel__dots { bottom: 4px; right: 4px; }
.frame .carrusel__pausa { left: 48px; }
.carrusel__pausa {
    position: absolute; left: 48px; bottom: 6px; z-index: 2; width: 28px; height: 28px; padding: 0;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1.5px solid #fff; border-radius: 50%; background: rgba(31, 56, 100, 0.55); color: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.carrusel__pausa:hover { background: rgba(31, 56, 100, 0.8); }
.carrusel__pausa:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.carrusel__pausa svg { width: 12px; height: 12px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .carrusel img { transition: none; } }

/* ---------- Subtítulo de posiciones ---------- */
.pos__name small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 0.2rem; line-height: 1.45; }

/* ---------- Cifras: evita saltos durante la animación ---------- */
.stat__n { font-variant-numeric: tabular-nums; }

/* ---------- Fotos de proyectos en grises, color al pasar el mouse ---------- */
@media (hover: hover) {
    .proj__img img { filter: grayscale(1); transition: filter 0.35s ease, transform 0.4s; }
    .proj__item:hover .proj__img img, .proj__item:focus-within .proj__img img { filter: grayscale(0); }
}

/* ---------- Planta estructural interactiva ---------- */
.page-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 3rem; align-items: center; }
.plano { position: relative; }
.plano__svg { width: 100%; height: auto; overflow: visible; font-family: var(--head); }
.plano__ejes line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 14 4 2 4; transition: stroke 0.2s; }
.plano__ejes line.is-on { stroke: var(--accent); stroke-width: 1.5; }
.plano__pano { fill: transparent; cursor: pointer; transition: fill 0.2s; }
.plano__pano:hover { fill: rgba(214, 228, 240, 0.85); }
.plano__pano.is-fijo { fill: rgba(214, 228, 240, 0.7); }
.plano__pano.is-fijo:hover { fill: var(--ice); }
.plano__vigas line { stroke: var(--accent); stroke-width: 2; opacity: 0.5; pointer-events: none; }
.plano__cotas line { stroke: var(--muted); stroke-width: 1; opacity: 0.6; }
.plano__cotas text { fill: var(--muted); font-size: 12px; font-weight: 600; }
.plano__col { fill: var(--accent); cursor: crosshair; transform-box: fill-box; transform-origin: center; transition: transform 0.15s, fill 0.15s; }
.plano__col:hover { fill: var(--accent-dark); transform: scale(1.35); }
.plano__bur circle { fill: #fff; stroke: var(--accent); stroke-width: 1.5; transition: fill 0.2s; }
.plano__bur text { fill: var(--accent); font-size: 15px; font-weight: 700; transition: fill 0.2s; }
.plano__bur.is-on circle { fill: var(--accent); }
.plano__bur.is-on text { fill: #fff; }
.plano__info { fill: var(--ink); font-size: 13px; font-weight: 600; }
.plano__otra {
    position: absolute; right: 0; top: -30px; background: none; border: 0; cursor: pointer;
    font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--muted); padding: 0.25rem 0;
    opacity: 0; transition: opacity 0.2s, color 0.15s;
}
.plano:hover .plano__otra, .plano__otra:focus-visible { opacity: 1; }
.plano__otra:hover { color: var(--accent); }
.hero__plano.plano { position: absolute; top: 50%; pointer-events: auto; z-index: 1; }
@media (max-width: 1060px) {
    .page-hero__row { grid-template-columns: 1fr; }
    .page-hero .plano { display: none; }
}

/* ---------- Proyectos: tarjetas ---------- */
.proj__img svg { width: 100%; height: 100%; display: block; }
.proj__item--plano .proj__img { background: var(--bg-soft); }
.proj__body { display: flex; flex-direction: column; gap: 0.15rem; height: 100%; }
.proj__loc { font-size: 13px; color: var(--muted); margin-bottom: 0.35rem; }
.proj__loc::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.proj__body .proj__meta { margin-bottom: 0.75rem; }
.proj__m2 {
    margin-top: auto; align-self: flex-start;
    font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--accent-dark);
    background: var(--ice); padding: 0.2rem 0.6rem; border-radius: 3px; font-variant-numeric: tabular-nums;
}
.proj__vacio { grid-column: 1 / -1; color: var(--muted); padding: 2rem 0; }

/* ---------- Proyectos: resumen, filtros y buscador ---------- */
.resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: 2.5rem; }
.resumen .stat + .stat { padding-left: 1.5rem; }
.proj-barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.proj-barra .filters { margin-bottom: 0; }
.filters button span { font-weight: 400; opacity: 0.65; margin-left: 0.15rem; font-size: 13px; }
.buscar {
    position: relative; flex: 0 1 280px;
}
.buscar input {
    width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff;
    padding: 0.6rem 0.85rem 0.6rem 2.2rem; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.buscar input:focus { border-color: var(--accent); }
.buscar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.buscar::before {
    content: ""; position: absolute; left: 0.8rem; top: 50%; width: 11px; height: 11px; margin-top: -7px;
    border: 1.8px solid var(--muted); border-radius: 50%;
}
.buscar::after {
    content: ""; position: absolute; left: 1.55rem; top: 50%; width: 6px; height: 1.8px; margin-top: 3px;
    background: var(--muted); transform: rotate(45deg);
}
.proj-contador { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.proj-mas { display: block; margin: 2.25rem auto 0; }
#listado { scroll-margin-top: 90px; }

/* ---------- Proyectos: mapa ---------- */
.mapa-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.mapa-chips button {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem;
    font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer;
}
.mapa-chips button:hover { border-color: var(--accent); }
.mapa-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mapa {
    height: clamp(360px, 55vh, 520px); border: 1px solid var(--rule); background: var(--bg-soft);
    position: relative; z-index: 0;
}
.mapa .leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: 4px; box-shadow: 0 6px 24px rgba(31, 56, 100, 0.18); }
.leaflet-popup-content { margin: 14px 16px; }
.mapa__pop strong { display: block; font-family: var(--head); font-size: 16px; color: var(--ink); }
.mapa__pop span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 0.5rem; }
.mapa__pop ul { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.mapa__pop li { font-size: 13px; color: var(--text); padding: 0.15rem 0; border-top: 1px solid var(--rule); }
.mapa__pop li.mapa__mas { color: var(--muted); font-style: italic; }
.mapa__pop button {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--accent);
}
.mapa__pop button::after { content: " →"; }
.leaflet-tooltip { font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--ink); border-radius: 3px; }

@media (max-width: 720px) {
    .resumen { grid-template-columns: 1fr; }
    .resumen .stat { padding-left: 0 !important; border-left: 0 !important; }
    .resumen .stat + .stat { border-top: 1px solid var(--rule); }
    .buscar { flex-basis: 100%; }
}

/* Crédito de fotos de terceros (Wikimedia Commons) */
.proj__img { position: relative; }
.proj__cred {
    position: absolute; right: 0; bottom: 0; max-width: 100%;
    padding: 2px 6px; font-size: 10px; line-height: 1.4;
    color: #fff; background: rgba(31, 56, 100, 0.72);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.proj__cred:hover { text-decoration: underline; color: #fff; }

/* Mapa: círculos agrupados según zoom */
.mapa__punto { background: none; border: 0; }
.mapa__punto span {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    border-radius: 50%; background: rgba(54, 95, 145, 0.88); color: #fff;
    border: 2px solid #fff; box-shadow: 0 1px 4px rgba(31, 56, 100, 0.35);
    font-family: var(--head, inherit); font-weight: 700; cursor: pointer; transition: transform 0.15s;
}
.mapa__punto:hover span, .mapa__punto:focus span { transform: scale(1.08); background: #1f3864; }
.proj__img img.proj__ext { position: absolute; inset: 0; }

/* ---------- Estado del proyecto ---------- */
.proj__estado {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 11px/1 var(--head); letter-spacing: 0.02em;
    padding: 5px 8px 5px 7px; border-radius: 2px;
    background: rgba(255, 255, 255, 0.94); color: var(--muted); border: 1px solid var(--rule);
}
.proj__estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.proj__estado--activo { color: var(--accent-dark); border-color: var(--accent); }
.proj__estado--activo::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 95, 145, 0.18); }
.punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.punto--activo { background: var(--accent); border-color: var(--accent); }
.filters--estado { margin-top: -0.25rem; }

/* ---------- Tarjeta clicable ---------- */
.proj__item { cursor: pointer; position: relative; }
.proj__item:hover, .proj__item:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(31, 56, 100, 0.12); }
.proj__img { position: relative; }
.proj__pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.proj__ver { font: 600 13px var(--head); color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.proj__ver::after { content: " +"; }
.proj__item:hover .proj__ver, .proj__item:focus-visible .proj__ver { opacity: 1; transform: none; }
@media (hover: none) { .proj__ver { opacity: 1; transform: none; } }

/* Imágenes completas (modelos 3D, planos): centradas y sin recorte */
.proj__item--entera .proj__img img { object-fit: contain; padding: 0.6rem; background: var(--bg-soft); }
.proj__img img { object-position: center; }

/* ---------- Ficha ampliada ---------- */
body.sin-scroll { overflow: hidden; }
.ficha { border: 0; padding: 0; margin: auto; width: min(1040px, calc(100% - 2rem)); max-height: calc(100% - 2rem); background: #fff; box-shadow: 0 24px 64px rgba(15, 30, 55, 0.35); }
.ficha::backdrop { background: rgba(20, 34, 56, 0.55); backdrop-filter: blur(2px); }
.ficha[open] { animation: ficha-in 0.22s ease-out; }
@keyframes ficha-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.ficha__caja { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 420px; }
.ficha__img { position: relative; background: var(--bg-soft); border-right: 3px solid var(--accent); min-height: 320px; }
.ficha__img img, .ficha__img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha__img--entera img { object-fit: contain; padding: 1rem; }
.ficha__txt { padding: 1.5rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; overflow: auto; }
.ficha__top { display: flex; align-items: center; justify-content: space-between; }
.ficha__top .proj__estado { position: static; }
.ficha__x { background: none; border: 1px solid var(--rule); width: 36px; height: 36px; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.ficha__x:hover { border-color: var(--accent); color: var(--accent); }
.ficha__titulo { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
.ficha__desc { color: var(--text); }
.ficha__datos { display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--ink); font-size: 14px; }
.ficha__datos dt, .ficha__datos dd { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.ficha__datos dt { color: var(--muted); padding-right: 1.5rem; }
.ficha__datos dd { color: var(--ink); font-weight: 600; }
.ficha__nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 13px; color: var(--muted); }
.ficha__nav button { background: none; border: 1px solid var(--line); padding: 0.45rem 0.9rem; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.ficha__nav button:hover:not(:disabled) { border-color: var(--accent); }
.ficha__nav button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 760px) {
    .ficha__caja { grid-template-columns: 1fr; }
    .ficha__img { border-right: 0; border-bottom: 3px solid var(--accent); min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .ficha[open] { animation: none; } .proj__item:hover { transform: none; } }
.resumen__pdf { margin-top: 1.25rem; }


/* =====================================================================
   Ajustes técnicos y de accesibilidad (oct 2026)
   ===================================================================== */
/* Campos: borde con contraste >= 3:1 */
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo input[type="url"],
.campo textarea, .campo select, .buscar input { border-color: #8a96a6; }

/* Saltar al contenido */
.saltar {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--accent-dark); color: #fff; padding: 0.6rem 1rem; border-radius: 4px;
    font-family: var(--head); font-weight: 600; font-size: 15px; text-decoration: none;
}
.saltar:focus { top: 0.75rem; color: #fff; }
main:focus { outline: none; }

/* Tipografía y toque */
h1, h2 { text-wrap: balance; }
a, button, .btn, summary, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(54, 95, 145, 0.18); }
.ficha__txt { overscroll-behavior: contain; }

/* Cifras: superficie gestionada aparte */
.stat__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 0.15rem; }

/* Tarjeta de proyecto: el título es el botón que abre la ficha */
.proj__abrir {
    all: unset; cursor: pointer; color: inherit; font: inherit; line-height: inherit; text-align: left;
}
.proj__abrir::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es clicable */
.proj__abrir:focus-visible { outline: none; }
.proj__item:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.proj__item .proj__cred { z-index: 2; }
.proj__item a { position: relative; z-index: 2; }
.proj__item:focus-within .proj__ver { opacity: 1; transform: none; }

/* Búsquedas cerradas */
.pos__state--cerrada { color: var(--muted); background: #eef1f5; }
.pos__row--cerrada .pos__name, .pos__row--cerrada .pos__meta { opacity: 0.75; }
.aviso-cerrada { border-left: 3px solid var(--accent); background: var(--bg-soft); padding: 1.1rem 1.5rem; margin: 0 0 1.5rem; }
.aviso-cerrada strong { color: var(--ink); }

/* =====================================================================
   Movimiento sutil (oct 2026). Solo si el usuario no pidió reducirlo.
   Las clases .rv las agrega fo.js: sin JS todo se ve normal.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
    /* Aparición al hacer scroll */
    .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rv-d, 0ms); }
    .rv.is-in { opacity: 1; transform: none; }

    /* La línea de eje se "traza" de izquierda a derecha */
    .eje.rv::after { transform: scaleX(0); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
    .eje.rv.is-in::after { transform: scaleX(1); }
    .eje.rv .eje__b { transform: scale(0.7); transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
    .eje.rv.is-in .eje__b { transform: none; }

    /* Botones y links */
    .btn { transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 56, 100, 0.18); }
    .btn:active { transform: none; box-shadow: none; }
    .link-arrow { display: inline-block; transition: transform 0.2s; }
    .link-arrow:hover { transform: translateX(3px); }

    /* Tarjetas de servicios / cómo trabajamos */
    .card { transition: transform 0.25s, box-shadow 0.25s; }
    .card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 56, 100, 0.08); }

    /* Cabecera: sombra suave al bajar */
    .top { transition: box-shadow 0.25s, background 0.25s; }

    /* Cifras: el número entra con un pequeño ascenso */
    .stat__n.rv-num { opacity: 0; transform: translateY(8px); }
    .stat__n.rv-num.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
}
.top.is-scrolled { box-shadow: 0 2px 14px rgba(20, 34, 56, 0.08); border-bottom-color: transparent; }

/* Banco de CV (búsquedas cerradas) */
.aviso-cerrada .aviso-cerrada__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.75rem; }
.aviso-cerrada .btn { padding: 0.65rem 1.4rem; font-size: 15px; }
.aviso-cerrada small { font-size: 13px; color: var(--muted); }

/* Aviso de búsqueda cerrada: en pantallas anchas, texto a la izquierda y botón a la derecha */
@media (min-width: 900px) {
    .aviso-cerrada { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: center; padding: 1.4rem 1.75rem; }
    .aviso-cerrada > p { grid-column: 1; }
    .aviso-cerrada .aviso-cerrada__cta { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; flex-direction: column; align-items: flex-start; max-width: 18rem; }
}
