/* Econex · familia Grupo Nexo: estructura oscura (navy) con fotos reales a pantalla completa, contenido claro y naranja Nexo solo para la acción */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/sora.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2"); }
:root {
  --navy: #0b1a2b;
  --navy-2: #12263c;
  --navy-line: rgba(255, 255, 255, 0.12);
  --on-navy: #ffffff;
  --on-navy-soft: #b9c6d3;
  --orange: #f39200;
  --orange-strong: #ffa41f;
  --on-orange: #1a1100;
  --link: #a35c00;
  --paper: #ffffff;
  --sunk: #f3f5f8;
  --ink: #142231;
  --muted: #566573;
  --line: #e0e5eb;
  --ok: #1f9d63;
  --err: #c2412d;
  --wa: #157a43;
  --wa-strong: #0f6235;
  --shadow: 0 2px 6px rgba(11, 26, 43, 0.06), 0 24px 48px -24px rgba(11, 26, 43, 0.35);

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.88rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.35rem + 3.3vw, 3.8rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-sm: 8px;
  --r-lg: 16px;
  --pill: 999px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; overflow-x: hidden; caret-color: var(--orange); }
::selection { background: var(--orange); color: var(--on-orange); }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--on-orange); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.updated { font-size: var(--step--1); color: var(--on-navy-soft); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11, 26, 43, 0.94); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--navy-line); color: var(--on-navy); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--on-navy); }
.brand:hover { color: var(--on-navy); }
.brand-name { display: block; font-family: var(--f-display); font-weight: 800; letter-spacing: .05em; font-size: 1.3rem; line-height: 1; }
.brand-name b { color: var(--orange); }
.brand-sub { display: block; font-size: .72rem; color: var(--on-navy-soft); line-height: 1; margin-top: 5px; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.nav a { color: var(--on-navy-soft); text-decoration: none; padding: .55rem .8rem; border-radius: var(--pill); font-size: .97rem; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); background: rgba(255,255,255,.08); }
.nav .btn { margin-left: .6rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-orange); }
.nav .btn-primary:hover { background: var(--orange-strong); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--navy-line); color: var(--on-navy); border-radius: var(--pill); padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: .75rem var(--gutter) 1.25rem; gap: .15rem; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; border-radius: var(--r-sm); }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .85rem 1.45rem; border-radius: var(--pill); text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: transform .15s cubic-bezier(.2,.8,.2,1), background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-strong); color: var(--on-orange); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--on-navy); background: transparent; font-weight: 600; }
.btn-ghost:hover { border-color: var(--on-navy); color: var(--on-navy); background: rgba(255,255,255,.06); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-strong); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; font-weight: 600; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.textlink { font-weight: 600; }

/* Home hero: full-bleed real photo */
.hero { position: relative; background: var(--navy); color: var(--on-navy); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; border-radius: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,43,.97) 0%, rgba(11,26,43,.86) 42%, rgba(11,26,43,.25) 78%), linear-gradient(0deg, rgba(11,26,43,1) 0%, rgba(11,26,43,0) 38%); }
.hero-in { display: grid; gap: 1.35rem; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-in > * { max-width: 46rem; }
.hero h1 { color: var(--on-navy); animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
.hero .lead { color: var(--on-navy-soft); animation: rise .9s .12s cubic-bezier(.16,1,.3,1) both; }
.hero .btn-row { animation: rise .9s .22s cubic-bezier(.16,1,.3,1) both; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: .88rem; padding: .35rem .8rem; border-radius: var(--pill); background: rgba(255,255,255,.1); color: #e2e9f0; }
.strip { position: relative; border-top: 1px solid var(--navy-line); background: rgba(11,26,43,.6); }
.strip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-in > div { padding: 1.35rem 1.5rem 1.35rem 0; display: grid; gap: .15rem; }
.strip-in > div + div { padding-left: 1.5rem; border-left: 1px solid var(--navy-line); }
.strip strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; }
.strip span { color: var(--on-navy-soft); font-size: .92rem; }
@media (max-width: 820px) {
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-in > div, .strip-in > div + div { padding: 1.1rem 1rem 1.1rem 0; border-left: 0; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(11,26,43,1) 10%, rgba(11,26,43,.82) 60%, rgba(11,26,43,.55) 100%); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.section.sunk { background: var(--sunk); }
.section-head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.wide { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 1rem 3rem; }
@media (max-width: 820px) { .section-head.wide { grid-template-columns: 1fr; } }

/* Services index */
.index { display: grid; gap: 1rem; }
.index-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .95fr) 1.5rem; gap: 1.5rem; align-items: start; padding: 1.6rem 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.sunk .index-row { border-color: transparent; }
.index-row:hover { color: var(--ink); border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.index-row .ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--orange); }
.index-row .ico svg { width: 1.6rem; height: 1.6rem; }
.index-row h3 { font-size: 1.3rem; line-height: 1.15; }
.index-row p { color: var(--muted); }
.index-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .95rem; color: var(--muted); }
.index-row ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: .55rem; vertical-align: middle; }
.index-row .go { width: 1.4rem; height: 1.4rem; color: var(--orange); margin-top: .5rem; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.index-row:hover .go { transform: translateX(4px); }
@media (max-width: 900px) {
  .index-row { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; padding: 1.25rem; gap: .75rem 1rem; }
  .index-row p, .index-row ul { grid-column: 2 / 3; }
  .index-row .go { grid-column: 3; grid-row: 1; }
}

/* Clients */
#clientes { padding-block: clamp(2.25rem, 5vw, 3.25rem); border-bottom: 1px solid var(--line); }
.clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 1.25rem 3rem; align-items: center; }
.clients h2 { font-size: var(--step-1); color: var(--muted); font-weight: 600; letter-spacing: 0; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2.75rem; align-items: baseline; }
.client-list li { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; color: var(--ink); }
.client-list li.muted { font-family: var(--f-body); font-weight: 400; font-size: var(--step-0); color: var(--muted); letter-spacing: 0; }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr; } }

/* Sectors */
.sector-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sector-groups > div { background: var(--paper); border-radius: var(--r-lg); padding: 1.6rem 1.75rem .6rem; }
.sector-groups h3 { font-size: var(--step-1); padding-bottom: .9rem; border-bottom: 2px solid var(--orange); }
.sector-groups h3 a { color: inherit; text-decoration: none; }
.sector-groups h3 a:hover { color: var(--link); }
.sector-list { list-style: none; margin: 0; padding: 0; }
.sector-list li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sector-list li:last-child { border-bottom: 0; }
.sector-list strong { font-weight: 600; }
.sector-list span { color: var(--muted); }
@media (max-width: 820px) { .sector-groups { grid-template-columns: 1fr; } .sector-list li { grid-template-columns: 1fr; } }

/* Gallery + photos */
.photo { margin: 0; display: grid; gap: .55rem; min-width: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); background: var(--line); }
.photo figcaption { font-size: .92rem; color: var(--muted); }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.photo-pair .photo img { aspect-ratio: 4 / 3; }
.prose > .photo img { aspect-ratio: 16 / 9; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(14rem, 24vw, 20rem); gap: 1.25rem 1rem; }
.gallery .photo { grid-template-rows: minmax(0, 1fr) auto; }
.g-a { grid-column: 1 / 6; } .g-b { grid-column: 6 / 9; } .g-c { grid-column: 9 / 13; }
.g-d { grid-column: 1 / 5; } .g-e { grid-column: 5 / 9; } .g-f { grid-column: 9 / 13; }
.g-b img { object-position: 0% 50%; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 15rem; } .gallery .photo { grid-column: auto; } }
@media (max-width: 520px) { .photo-pair { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; grid-auto-rows: 16rem; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .6rem; align-content: start; min-width: 0; padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-family: var(--f-display); font-weight: 700; margin-bottom: .4rem; }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Commitments */
.commit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.commit > div { display: grid; gap: .5rem; padding: 1.5rem 1.6rem; background: var(--paper); border-radius: var(--r-lg); }
.commit > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.commit h3 { font-size: 1.15rem; }
.commit p { color: var(--muted); }
@media (max-width: 760px) { .commit { grid-template-columns: 1fr; } }

/* Summary */
.summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.summary .text { display: grid; gap: 1.1rem; max-width: 42rem; }
.facts { margin: 0; display: grid; background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: .5rem 1.5rem; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--navy-line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--on-navy-soft); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts a { color: var(--orange); }
@media (max-width: 820px) { .summary { grid-template-columns: 1fr; } }

/* FAQ */
.qa { display: grid; border-top: 1px solid var(--line); }
.qa > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .6rem 3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.1rem; line-height: 1.35; }
.qa p { color: var(--muted); max-width: 40rem; }
@media (max-width: 760px) { .qa > div { grid-template-columns: 1fr; } }

/* Closing CTA: dark band */
.cta-dark { background: var(--navy); color: var(--on-navy); }
.closing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.closing p { color: var(--on-navy-soft); margin-top: 1rem; max-width: 34rem; }
.closing .contact-direct { display: grid; gap: 1rem; }
.closing .phone { font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; color: var(--on-navy); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.closing .phone:hover { color: var(--orange); }
.cta-dark .btn-primary { order: 0; }
@media (max-width: 820px) { .closing { grid-template-columns: 1fr; } }

/* Inner page hero */
.page-hero { position: relative; background: var(--navy); color: var(--on-navy); isolation: isolate; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.25rem, 5vw, 3.5rem); }
.page-hero .wrap { display: grid; gap: 1.1rem; }
.page-hero h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.2rem); max-width: 50rem; color: var(--on-navy); }
.page-hero .lead { color: var(--on-navy-soft); }
.page-hero .btn-line { color: var(--on-navy); border-color: rgba(255,255,255,.4); }
.ph-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,43,.97) 0%, rgba(11,26,43,.88) 50%, rgba(11,26,43,.45) 100%); }
.crumbs { font-size: .9rem; color: var(--on-navy-soft); display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: var(--on-navy-soft); text-decoration: none; }
.crumbs a:hover { color: var(--on-navy); text-decoration: underline; }

/* Article + aside */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1.15rem; max-width: 44rem; min-width: 0; }
.prose h2 { margin-top: 1.75rem; font-size: var(--step-2); }
.prose h3 { margin-top: .6rem; }
.prose ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .45rem; }
.prose li::marker { color: var(--orange); }
.answer-first { font-size: var(--step-1); line-height: 1.55; }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6rem); display: grid; gap: 1rem; padding: 1.6rem; border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow); }
.aside h2 { font-size: 1.3rem; }
.aside .muted { color: var(--on-navy-soft); }
.aside ul { list-style: none; padding: .9rem 0 0; margin: 0; display: grid; gap: .35rem; border-top: 1px solid var(--navy-line); color: var(--on-navy-soft); }
.mono { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; background: var(--paper); }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--on-navy); background: var(--navy); font-size: .92rem; }
tbody th { font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
form.quote { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.1rem; }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .75rem .85rem; width: 100%; min-height: 48px; transition: border-color .2s ease; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); background: var(--paper); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: .88rem; }
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--ok); min-height: 1.4em; }
.channels { display: grid; gap: .75rem; }
.channels > div { display: grid; gap: .2rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--sunk); }
.channels .k { font-size: .9rem; color: var(--muted); }
.channels a { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding-block: 3.5rem 2rem; font-size: .95rem; border-top: 1px solid var(--navy-line); }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .brand-name b { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--on-navy); margin-bottom: .8rem; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-about { display: grid; gap: .9rem; max-width: 24rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .88rem; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(8, 40, 24, .55); transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s ease; }
.wa-float:hover { transform: translateY(-2px); background: var(--wa-strong); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

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

/* ---------- Revisión: imágenes sin estirar, móvil y detalles ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.hero-bg, .ph-bg { display: block; overflow: hidden; }
.ph-bg img { object-position: 50% 50%; }

/* La foto ocupa solo la parte visible a la derecha: se muestra cerca de su tamaño real y no se pixela */
@media (min-width: 821px) {
  .hero-bg { left: 36%; }
  .hero-bg img { object-position: 35% 45%; }
  .hero-bg::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(11,26,43,.82) 18%, rgba(11,26,43,.35) 48%, rgba(11,26,43,.05) 80%), linear-gradient(0deg, rgba(11,26,43,.85) 0%, rgba(11,26,43,0) 30%); }
  .hero-in { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
  .hero h1 { font-size: clamp(2.4rem, 1.2rem + 3vw, 3.5rem); max-width: 40rem; }
  .ph-bg { left: 45%; }
  .ph-bg::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(11,26,43,.8) 25%, rgba(11,26,43,.35) 70%, rgba(11,26,43,.2) 100%); }
}
/* Celular: la foto del inicio va arriba como banda, sin zoom exagerado */
@media (max-width: 820px) {
  .hero-bg { position: relative; inset: auto; height: clamp(13rem, 60vw, 22rem); z-index: 0; }
  .hero-bg img { object-position: 30% 45%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(11,26,43,.35) 45%, rgba(11,26,43,0) 75%); }
  .hero-in { position: relative; margin-top: -3rem; padding-top: 0; }
  .site-footer { padding-bottom: 6rem; }
}

/* Tarjetas: el texto no se separa del título */
.commit > div, .steps li, .channels > div { align-content: start; }
.field { align-content: start; }
.err:empty { display: none; }

/* Servicios en celular: la descripción usa todo el ancho */
@media (max-width: 900px) { .index-row p, .index-row ul { grid-column: 1 / -1; } .index-row h3, .index-row h2 { align-self: center; } }

/* Datos de Econex en celular: etiqueta arriba, valor abajo */
.facts dd { overflow-wrap: break-word; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

/* Galería: epígrafes de una línea para que las fotos queden alineadas */
.gallery .photo { grid-template-rows: minmax(0, 1fr) 1.4rem; }
.gallery figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; gap: 1rem .75rem; } .gallery figcaption { font-size: .82rem; } }

/* Foto chica (la original es de baja resolución) */
.photo.small { max-width: 26rem; }
.prose > .photo { margin-block: .5rem 1rem; }

/* Empresa: misión, visión y valores */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.reason { display: grid; gap: 1rem; align-content: start; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.reason > svg { width: 2.25rem; height: 2.25rem; color: var(--orange); }
.reason p { color: var(--muted); margin-top: .4rem; }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; } }

/* Tablas: en celular cada fila se apila */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { display: block; padding: .15rem 0; border: 0; }
  table.stack tbody th { font-family: var(--f-display); font-size: 1.02rem; margin-bottom: .2rem; }
  table.stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
.svc-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 600px) { .svc-row { grid-template-columns: 1fr; } }
.hero .lead { max-width: 36rem; }
input, select { min-height: 3.25rem; }
/* Logo oficial */
.brand { gap: .8rem; }
.brand-logo { display: block; height: 42px; width: auto; }
.brand .brand-sub { margin: 0; padding: .25rem 0 .25rem .8rem; border-left: 1px solid var(--navy-line); font-size: .78rem; line-height: 1.2; }
.foot-about .brand-logo { height: 48px; }
@media (max-width: 520px) { .brand-logo { height: 36px; } }
/* Galería sin epígrafes */
.gallery .photo { grid-template-rows: minmax(0, 1fr); }
/* Clientes: logos blancos sobre banda navy */
#clientes { background: var(--navy); color: var(--on-navy); border-bottom: 0; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.clients { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.clients h2 { color: var(--on-navy); font-size: var(--step-1); }
.clients-head p { color: var(--on-navy-soft); font-size: .95rem; margin-top: .4rem; max-width: 22rem; }
.client-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2.5rem; align-items: center; }
.client-logos li { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; }
.client-logos img { display: block; width: auto; height: auto; max-width: 100%; max-height: 2.6rem; opacity: .82; transition: opacity .2s ease; }
.client-logos img:hover { opacity: 1; }
.client-logos img[alt="Pilará"] { max-height: 3rem; }
.client-logos img[alt="Nexolibre"] { max-height: 2.4rem; }
@media (max-width: 820px) { .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; } .client-logos li { justify-content: flex-start; } }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr; gap: 1.5rem; } .clients-head p { max-width: none; } }
/* Títulos h2 con estilo de tarjeta (orden de títulos correcto) */
.qa h2 { font-size: 1.1rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.index-row h2 { font-size: 1.3rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.reason h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 900px) { .index-row h2 { align-self: center; } }
.foot-about a { text-decoration: underline; text-underline-offset: 3px; }
/* ---------- Foco aire acondicionado (temporada de verano) ---------- */
.season { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; padding: .45rem .95rem .45rem .55rem; border-radius: var(--pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #e2e9f0; font-size: .9rem; font-weight: 500; text-decoration: none; transition: background .2s ease; }
.season:hover { background: rgba(255,255,255,.16); color: #fff; }
.season svg { width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--orange); color: var(--navy); flex: none; }
.hero-ac img { transform: scaleX(-1); }
@media (min-width: 821px) { .hero-ac img { object-position: 50% 40%; } }
@media (max-width: 820px) { .hero-ac img { object-position: 50% 30%; } }
.ac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ac-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; transition: box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.ac-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-card .ac-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.ac-card .ac-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ac-body { display: grid; gap: .6rem; align-content: start; padding: 1.35rem 1.35rem 1.5rem; }
.ac-body h3 { font-size: 1.25rem; }
.ac-body p { color: var(--muted); }
.ac-ctas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.btn-small { min-height: 2.6rem; padding: .5rem 1rem; font-size: .92rem; }
.btn-small svg { width: 1.05rem; height: 1.05rem; }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.brands p { color: var(--muted); font-size: .95rem; margin: 0; }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2.25rem; }
.brands li { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); opacity: .55; }
@media (max-width: 900px) { .ac-cards { grid-template-columns: 1fr; max-width: 34rem; } }
.brands p strong { color: var(--ink); }
.brands li.more { font-family: inherit; font-weight: 500; font-size: 1rem; align-self: center; }
.client-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.client-logos img[alt="Investigaciones Médicas"] { max-height: 2.2rem; }
@media (max-width: 1100px) { .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client-logos li:first-child { grid-column: 1 / -1; } }
@media (min-width: 1101px) {
  .clients { grid-template-columns: 1fr; gap: 1.75rem; }
  .clients-head { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
  .clients-head p { max-width: none; margin: 0; }
  .client-logos { grid-template-columns: 1.9fr repeat(4, minmax(0, 1fr)); gap: 1.5rem 3rem; }
  .client-logos li:first-child { justify-content: flex-start; }
  .client-logos img[alt="Investigaciones Médicas"] { max-height: 2.6rem; }
}
@media (min-width: 821px) and (max-width: 1100px) { .client-logos li:first-child { grid-column: 1 / -1; justify-content: flex-start; } }
/* Clientes agrupados por sector */
#clientes .clients { grid-template-columns: 1fr; gap: 1.5rem; }
#clientes .clients-head { display: grid; gap: .4rem; margin-bottom: .5rem; }
#clientes .clients-head p { max-width: 40rem; margin: 0; }
.client-group { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2rem; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.client-group h3 { font-family: var(--f-body, inherit); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
#clientes .client-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
#clientes .client-logos li, #clientes .client-logos li:first-child { grid-column: auto; justify-content: center; min-height: 5.25rem; padding: .9rem 1.25rem; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.03); }
#clientes .client-logos img { max-height: 2.5rem; max-width: 100%; opacity: .85; }
#clientes .client-logos img:hover { opacity: 1; }
#clientes .client-logos img[alt="Investigaciones Médicas"] { max-height: 2.1rem; }
#clientes .client-logos img[alt="Nexolibre"] { max-height: 2.1rem; }
#clientes .client-logos img[alt="Sanatorio Delta"], #clientes .client-logos img[alt="Bedson"], #clientes .client-logos img[alt="Pilará"] { max-height: 3rem; }
@media (max-width: 900px) {
  .client-group { grid-template-columns: 1fr; }
  #clientes .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  #clientes .client-logos li, #clientes .client-logos li:first-child { min-height: 4.5rem; padding: .75rem 1rem; }
  #clientes .client-logos img { max-height: 2.1rem; }
}

/* Dos entradas: casa / empresa */
.doors-sec { padding-block: 2.5rem 0; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.door { display: grid; gap: .6rem; align-content: start; padding: 1.6rem 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.door:hover { color: var(--ink); border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.door .ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--orange); }
.door .ico svg { width: 1.6rem; height: 1.6rem; }
.door h3 { font-size: 1.35rem; }
.door p { color: var(--muted); }
.door .go { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--link); }
.door .go svg { width: 1.1rem; height: 1.1rem; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.door:hover .go svg { transform: translateX(4px); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Banda de mantenimiento integral en la home */
.mi-band { background: var(--navy); color: var(--on-navy); }
.mi-band h2 { color: var(--on-navy); }
.mi-band .lead { color: var(--on-navy-soft); margin-top: 1rem; }
.mi-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.mi-systems { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.mi-systems li { padding: .4rem .85rem; border-radius: var(--pill); border: 1px solid var(--navy-line); background: rgba(255,255,255,.06); font-size: .95rem; }
.mi-band .btn-line { color: var(--on-navy); border-color: rgba(255,255,255,.4); }
.mi-band .btn-line:hover { color: var(--on-navy); border-color: var(--on-navy); }
.mi-case { margin: 0; padding: 1.6rem 1.75rem; border-left: 3px solid var(--orange); border-radius: var(--r-sm); background: rgba(255,255,255,.06); }
.mi-case p { color: var(--on-navy); }
.mi-case strong { color: var(--orange-strong); }
.mi-case footer { margin-top: .9rem; font-size: .9rem; color: var(--on-navy-soft); }
@media (max-width: 860px) { .mi-in { grid-template-columns: 1fr; } }

/* Nota del hub de servicios */
.mi-note { margin-top: 1.5rem; padding: 1.1rem 1.4rem; border-left: 3px solid var(--orange); border-radius: var(--r-sm); background: var(--sunk); }
