/* =============================================================
   AIRTECSE — Climatización · Málaga
   Hoja de estilos única. Paleta y tipografías del manual de marca:
   #013573 azul marino · #017ECA azul · #06A6EE cian · #FFFFFF blanco
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #013573;
  --navy-deep: #01224b;
  --navy-ink: #0a1a2f;
  --blue: #017eca;
  --blue-text: #0170b5;   /* mismo azul, algo más oscuro para textos pequeños (contraste ≥ 4,5:1) */
  --cyan: #06a6ee;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-tint: #eef5fb;
  --text: #0a1a2f;
  --text-2: #43546a;
  --muted: #5c6a7c;
  --line: #e2e8ef;
  --line-strong: #cfd9e4;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans: "Roboto", "Segoe UI", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(1, 34, 75, .06), 0 2px 8px rgba(1, 34, 75, .05);
  --shadow-md: 0 10px 30px -12px rgba(1, 34, 75, .22);
  --shadow-lg: 0 30px 60px -24px rgba(1, 34, 75, .35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--navy-ink);
}
::selection { background: var(--cyan); color: var(--white); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--navy); color: var(--white);
  border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.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;
}
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--navy-deep); color: #c9d6e6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Placeholder visible (datos pendientes del cliente) */
.ph {
  display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: .78em; font-weight: 500;
  color: #8a5a00; background: #fff4d6; border: 1px dashed #e0b44c;
  padding: .05em .45em; border-radius: 5px; letter-spacing: 0;
  vertical-align: baseline;
}
.section--dark .ph { color: #ffe3a3; background: rgba(255, 196, 64, .12); border-color: rgba(255, 196, 64, .5); }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-text);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
}
.section--dark .eyebrow { color: var(--cyan); }
.h-xl { font-size: clamp(2.35rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.h-lg { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.h-sm { font-size: 1.15rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); font-weight: 300; max-width: 60ch; }
.section--dark .lead { color: #b5c6db; }
.accent { color: var(--blue-text); }
p a.accent, .kv a.accent { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section-head--split { max-width: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55em; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: .6em; height: 2px;
  background: var(--cyan); border-radius: 2px;
}
.prose a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font-family: var(--display); font-size: .96rem; font-weight: 600; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 999px;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover { --btn-bg: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--light:hover { --btn-bg: var(--cyan); --btn-fg: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.08); border-color: var(--white); box-shadow: none; }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--navy);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--blue); }
.section--dark .link-arrow { color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(1, 34, 75, .4); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list a {
  position: relative; display: block; padding: .5rem .7rem;
  font-family: var(--display); font-size: .9rem; font-weight: 500; color: var(--text-2);
  border-radius: 8px; transition: color .25s var(--ease-soft);
}
.nav-list a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
  background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone {
  display: none; align-items: center; gap: .45rem; white-space: nowrap;
  font-family: var(--mono); font-size: .85rem; color: var(--navy); font-weight: 500;
}
.header-phone svg { width: 16px; height: 16px; color: var(--blue); }
.header-cta { display: none; box-shadow: 0 8px 20px -10px rgba(1, 53, 115, .6); }
.header-cta svg { width: 16px; height: 16px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--navy);
}
.nav-toggle span:not(.sr-only), .nav-toggle span:not(.sr-only)::before, .nav-toggle span:not(.sr-only)::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .35s var(--ease-out), background .2s;
}
.nav-toggle span:not(.sr-only)::before, .nav-toggle span:not(.sr-only)::after { content: ""; position: absolute; left: 0; }
.nav-toggle span:not(.sr-only)::before { top: -6px; }
.nav-toggle span:not(.sr-only)::after { top: 6px; }
.nav-open .nav-toggle span:not(.sr-only) { background: transparent; }
.nav-open .nav-toggle span:not(.sr-only)::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:not(.sr-only)::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .3s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.mobile-menu ul { display: grid; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--navy-ink);
}
.mobile-menu li a[aria-current="page"] { color: var(--blue); }
.mobile-menu li a svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.mobile-menu .btn { width: 100%; }
.mobile-menu-contact { display: grid; gap: .4rem; font-family: var(--mono); font-size: .88rem; color: var(--text-2); }
body.nav-open { overflow: hidden; }

/* Cards & media */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-tint); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; color: var(--navy);
  background: var(--white); border: 1px solid var(--line);
}
.section--dark .chip { color: var(--white); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Airflow signature (líneas de aire del logotipo) */
.airflow { position: absolute; pointer-events: none; }
.airflow path { fill: none; stroke-linecap: round; }
.airflow .af-1 { stroke: url(#afGrad); stroke-width: 1.6; opacity: .55; }
.airflow .af-2 { stroke: url(#afGrad); stroke-width: 1.1; opacity: .35; }
.airflow .af-3 { stroke: url(#afGrad); stroke-width: .8; opacity: .25; }
.airflow .af-flow { stroke-dasharray: 6 14; animation: afDash 9s linear infinite; }
@keyframes afDash { to { stroke-dashoffset: -200; } }

/* Breadcrumbs */
.breadcrumbs { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .02em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--blue); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--display); font-size: clamp(1.02rem, 1.5vw, 1.15rem); font-weight: 600; color: var(--navy-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: var(--navy); transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.faq details[open] summary .plus { background: var(--navy); border-color: var(--navy); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--white); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq .faq-a { padding: 0 3.5rem 1.6rem 0; color: var(--text-2); max-width: 75ch; }
.faq .faq-a p + p { margin-top: .8em; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label, .field legend {
  font-family: var(--display); font-size: .86rem; font-weight: 600; color: var(--navy-ink);
}
.field label .opt { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23013573' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6, 166, 238, .15);
}
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border: 0; padding: 0; }
.segmented legend { margin-bottom: .45rem; }
.segmented { position: relative; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; min-height: 50px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: .92rem; font-weight: 600; color: var(--text-2);
  transition: all .25s var(--ease-soft);
}
.segmented input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.segmented input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy); flex-shrink: 0; }
.check a { color: var(--blue-text); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: 12px; font-size: .95rem; }
.form-status.is-ok { display: block; background: #e8f7ef; color: #0f5b36; border: 1px solid #b7e4c9; }
.form-status.is-error { display: block; background: #fdeeee; color: #8a1f1f; border: 1px solid #f3c2c2; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-note a, .contact-item small a { text-decoration: underline; text-underline-offset: 2px; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

/* =============================================================
   6. Sections
   ============================================================= */
/* ---- Hero (home) ---- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 1.5rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
.hero h1 .accent-line { display: block; color: var(--blue); }
.hero .lead { max-width: 52ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem;
  font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero-visual { position: relative; }
.hero-visual .media { aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.hero-visual .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1, 34, 75, 0) 50%, rgba(1, 34, 75, .55) 100%);
}
.hero-spec {
  position: absolute; left: clamp(.75rem, 3vw, 1.5rem); right: clamp(.75rem, 3vw, 1.5rem); bottom: clamp(.75rem, 3vw, 1.5rem); z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .18); border-radius: 14px; overflow: hidden;
}
@supports (backdrop-filter: blur(10px)) {
  .hero-spec { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.hero-spec li { background: rgba(1, 34, 75, .6); display: grid; }
.hero-spec a {
  display: grid; place-items: center; min-height: 3.6rem; padding: .75rem .6rem; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--white);
  transition: background .3s var(--ease-soft);
}
.hero-spec a:hover { background: rgba(6, 166, 238, .28); }
.hero .airflow { right: -8%; top: -6%; width: 78%; height: auto; z-index: 0; }

/* ---- Selector de perfil ---- */
.path-switch { display: grid; gap: 1rem; }
.path-card {
  position: relative; display: grid; gap: .7rem; align-content: start;
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--white);
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.path-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.path-card .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-text); }
.path-card h2, .path-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.path-card p { color: var(--text-2); }
.path-card .link-arrow { margin-top: .4rem; }
.path-card--primary { background: var(--navy); border-color: var(--navy); }
.path-card--primary h2, .path-card--primary h3 { color: var(--white); }
.path-card--primary p { color: #bfd0e4; }
.path-card--primary .tag { color: var(--cyan); }
.path-card--primary .link-arrow { color: var(--white); }
.path-card--primary:hover { border-color: var(--cyan); }

/* ---- Clientes: "Trabajamos para" ---- */
.clients-inner {
  display: grid; gap: 1.6rem; align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients-head { display: grid; gap: .5rem; }
.clients-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: .5rem; }
.client { flex: 0 0 50%; display: grid; place-items: center; min-height: 88px; padding: .5rem .75rem; }
.client img {
  width: auto; height: var(--h, 56px); max-width: 100%; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .62;
  transition: filter .45s var(--ease-soft), opacity .45s var(--ease-soft), transform .45s var(--ease-out);
}
.client:hover img { filter: none; opacity: 1; transform: scale(1.03); }
.clients-logos--dup { display: none; }

/* Móvil: los logos pasan en una cinta horizontal continua (solo transform → sin coste de maquetación) */
@media (max-width: 719px) {
  .clients-track {
    overflow: hidden;
    margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .clients-marquee {
    display: flex; width: max-content;
    animation: clientsMarquee 32s linear infinite;
    will-change: transform;
  }
  .clients-marquee .clients-logos { display: flex; flex-wrap: nowrap; flex-shrink: 0; row-gap: 0; }
  .clients-marquee .client { flex: 0 0 auto; min-height: 84px; padding: .5rem 1.6rem; }
  .clients-marquee .client img { max-width: none; }
  /* Al mantener el dedo encima, la cinta se detiene */
  .clients-track:active .clients-marquee { animation-play-state: paused; }
}
@keyframes clientsMarquee { to { transform: translate3d(-50%, 0, 0); } }
.section--tight + .clients { padding-top: 0; }
.client--eci { --h: 46px; }
.client--bauhaus { --h: 22px; }
.client--axa { --h: 46px; }
.client--clikalia { --h: 22px; }
.client--dimasa { --h: 36px; }
.client--erfri { --h: 26px; }
.client--dhv { --h: 54px; }

/* ---- Bloque empresas (dark) ---- */
.b2b { overflow: clip; }
.b2b-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.b2b .media { aspect-ratio: 5 / 4; }
.b2b-copy { display: grid; gap: 1.4rem; }
.b2b-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.b2b-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: var(--display); font-weight: 500; color: var(--white);
}
.b2b .airflow { left: -10%; bottom: -30%; width: 70%; opacity: .6; }

/* ---- Servicios (lista indexada) ---- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; gap: 1rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-row h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); transition: color .3s var(--ease-soft); }
.svc-row p { color: var(--text-2); max-width: 52ch; }
.svc-thumb { display: none; }
.svc-row .link-arrow { justify-self: start; }
.svc-row:hover h3 { color: var(--blue); }

/* ---- Sectores ---- */
.sector-grid { display: grid; gap: 1rem; }
.sector-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; background: var(--navy-deep); isolation: isolate;
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); z-index: -2; }
.sector-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1,34,75,0) 35%, rgba(1,34,75,.85) 100%);
  transition: opacity .5s var(--ease-out);
}
.sector-card:hover img { transform: scale(1.05); }
.sector-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.sector-body h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.45rem); }
.sector-body .go {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--white);
  border: 1px solid rgba(255,255,255,.3); transition: background .35s, transform .35s var(--ease-out);
}
.sector-body .go svg { width: 16px; height: 16px; }
.sector-card:hover .go { background: var(--cyan); border-color: var(--cyan); transform: rotate(-45deg); }

/* ---- Proyectos ---- */
.project-grid { display: grid; gap: 1.25rem; }
.project-card { display: grid; gap: 1rem; align-content: start; }
.project-card .project-media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.project-card .project-media img { transition: transform .9s var(--ease-out); }
.project-card:hover .project-media img { transform: scale(1.03); }
/* Foto vertical: encuadrar la consola (parte baja) en vez del paisaje de la ventana */
img[src*="obra-consola-vistas-mar"] { object-position: 50% 90%; }
.project-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(1,53,115,.035) 0 12px, transparent 12px 24px),
    var(--bg-tint);
  border: 1px dashed var(--line-strong);
  color: var(--muted); font-family: var(--mono); font-size: .8rem;
}
.project-ph svg { width: 34px; height: 34px; margin: 0 auto .6rem; color: var(--blue); opacity: .6; }
.project-card h3 { font-size: 1.2rem; }
.spec-list { display: grid; border-top: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-list dt { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: .15rem; }
.spec-list dd { margin: 0; text-align: right; color: var(--text); }
/* Galería de trabajos reales */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-item { display: grid; gap: .6rem; align-content: start; }
.gallery-item .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.gallery-item .media img { transition: transform .9s var(--ease-out); }
.gallery-item:hover .media img { transform: scale(1.03); }
.gallery-item figcaption { font-size: .88rem; color: var(--text-2); line-height: 1.45; }

.note-box {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 12px; background: #fff9e8; border: 1px solid #f3dfa6;
  font-size: .9rem; color: #6d4b00;
}
.note-box strong { font-weight: 600; }

/* ---- Por qué elegirnos ---- */
.why-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item { padding: 1.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; }
.why-item .k { font-family: var(--mono); font-size: .74rem; color: var(--blue-text); letter-spacing: .1em; }
.why-item h3 { font-size: 1.22rem; }
.why-item p { color: var(--text-2); font-size: .98rem; }
.stat-row { display: grid; gap: 1rem; margin-top: 2.5rem; }
.stat {
  padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft);
  display: grid; gap: .3rem;
}
.stat b { font-family: var(--display); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.stat span { font-size: .9rem; color: var(--text-2); }

/* ---- Marcas ---- */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands li {
  display: grid; place-items: center; min-height: 104px; padding: 1rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #66758a; letter-spacing: -0.01em; text-align: center;
  transition: color .3s var(--ease-soft), background .3s var(--ease-soft);
}
.brands li:hover { color: var(--navy); background: var(--bg-soft); }
.cert-box {
  margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); display: grid; gap: .5rem;
}
.cert-box h3 { font-size: 1.05rem; }

/* ---- Zona ---- */
.zone-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone .media { aspect-ratio: 16 / 10; }
.zone-copy { display: grid; gap: 1.3rem; }
.zone-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.zone-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.zone-facts dt { font-family: var(--mono); font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: .2rem; }
.zone-facts dd { margin: 0; font-weight: 500; text-align: right; }
.zone-facts a { color: var(--blue-text); }

/* ---- CTA final ---- */
.cta-final { position: relative; overflow: clip; background: var(--navy-deep); color: #c3d3e6; }
.cta-final .container { position: relative; z-index: 1; }
.cta-inner { display: grid; gap: 1.6rem; justify-items: start; max-width: 780px; }
.cta-inner h2 { color: var(--white); }
.cta-final .lead { color: #eef4fb; font-weight: 400; }
.cta-final .eyebrow { color: var(--cyan); }
.cta-final .airflow { right: -12%; top: 50%; transform: translateY(-50%); width: 80%; opacity: .9; }
.cta-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--mono); font-size: .88rem; }
.cta-contact a { color: var(--white); display: inline-flex; gap: .5rem; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.cta-inner > * { max-width: 100%; min-width: 0; }
.cta-contact a:hover { color: var(--cyan); }
.cta-contact svg { width: 16px; height: 16px; color: var(--cyan); }

/* ---- Page hero (subpáginas) ---- */
.page-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); overflow: clip; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { display: grid; gap: 1.4rem; max-width: 860px; }
.page-hero .airflow { right: -14%; top: -10%; width: 70%; }
.page-hero--image { border-bottom: 0; padding-bottom: 0; }
.page-hero-media { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero-media .media { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); }

/* ---- Anchor nav (servicios / soluciones) ---- */
.anchor-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
}
.anchor-nav ul { display: flex; gap: .3rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: block; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px;
  font-family: var(--display); font-size: .86rem; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--line);
  transition: all .25s var(--ease-soft);
}
.anchor-nav a:hover, .anchor-nav a.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

/* ---- Detalle (servicio / sector) ---- */
.detail { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.detail:last-child { border-bottom: 0; }
.detail .media { aspect-ratio: 4 / 3; }
.detail-copy { display: grid; gap: 1.2rem; }
.detail-copy .num { font-family: var(--mono); font-size: .8rem; color: var(--blue-text); letter-spacing: .1em; }
.detail-copy .lead { max-width: none; }
.checklist { display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%23017eca' stroke-width='1.6'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.section--dark .checklist li { color: #c3d3e6; }
.section--dark .checklist li::before { background-color: rgba(255,255,255,.08); }
.kv { display: grid; gap: .3rem; padding: 1rem 1.2rem; border-left: 2px solid var(--cyan); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.kv b { font-family: var(--display); font-size: .88rem; color: var(--navy); }
.kv span { font-size: .94rem; color: var(--text-2); }

/* ---- Proceso ---- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; counter-reset: step; }
.step { background: var(--white); padding: 1.7rem 1.5rem; display: grid; gap: .6rem; align-content: start; counter-increment: step; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .94rem; color: var(--text-2); }
.section--dark .steps { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.section--dark .step { background: var(--navy-deep); }
.section--dark .step p { color: #b5c6db; }

/* ---- Feature split ---- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .media { aspect-ratio: 5 / 4; }

/* ---- Tarjetas simples ---- */
.card-grid { display: grid; gap: 1rem; }
.card {
  padding: 1.7rem 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white);
  display: grid; gap: .65rem; align-content: start;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card .k { font-family: var(--mono); font-size: .74rem; color: var(--blue-text); letter-spacing: .1em; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--text-2); font-size: .97rem; }
.section--soft .card { border-color: transparent; }

/* ---- Contacto ---- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-item { display: grid; gap: .2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-item dt { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.contact-item dd { margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; color: var(--navy-ink); }
.contact-item dd a:hover { color: var(--blue); }
.contact-item dd small { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 400; color: var(--muted); }

/* ---- Blog ---- */
.post-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
.post-card { display: grid; gap: 1rem; align-content: start; }
.post-card .media { aspect-ratio: 16 / 10; }
.post-card .media img { transition: transform .9s var(--ease-out); }
.post-card:hover .media img { transform: scale(1.04); }
.post-meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-card h2, .post-card h3 { font-size: 1.3rem; transition: color .3s; }
.post-card:hover h2, .post-card:hover h3 { color: var(--blue); }
.post-card p { color: var(--text-2); font-size: .97rem; }
.article-hero .media { aspect-ratio: 21 / 9; margin-top: 2.5rem; }
.article-body { padding-block: clamp(3rem, 6vw, 5rem); }
.article-cta { margin-top: 3rem; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--bg-soft); display: grid; gap: 1rem; justify-items: start; }
.section--soft .article-cta { background: var(--white); border: 1px solid var(--line); }
.article-cta h2 { margin-top: 0 !important; font-size: 1.35rem !important; }

/* ---- Legal ---- */
.legal .prose h2 { font-size: 1.3rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-ink); color: #9fb1c7; font-size: .94rem; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: grid; gap: 1.2rem; align-content: start; max-width: 34ch; }
.footer-brand img { height: 40px; width: auto; }
.footer-col h2 { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #6f8bab; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a:hover { color: var(--white); }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem;
  padding-block: 1.5rem 6.5rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: #8ea3bd;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-bottom a:hover { color: var(--white); }

/* ---- Barra móvil de contacto ---- */
.mobile-bar {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .4rem;
  padding: .4rem; border-radius: 18px;
  background: rgba(10, 26, 47, .94); box-shadow: 0 16px 40px -10px rgba(1,34,75,.55);
  transform: translateY(0); transition: transform .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .mobile-bar { background: rgba(10, 26, 47, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px;
  border-radius: 13px; color: var(--white); font-family: var(--display); font-size: .86rem; font-weight: 600;
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar a.is-primary { background: var(--blue-text); }
.nav-open .mobile-bar { transform: translateY(140%); }

/* WhatsApp flotante (escritorio) */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  display: none; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px;
  background: var(--white); color: var(--navy-ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--display); font-size: .88rem; font-weight: 600;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; color: #1fa855; }
.wa-float:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* =============================================================
   7. Effects
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .client { flex-basis: 33.333%; }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .hero-spec { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .steps.steps--3 { grid-template-columns: repeat(3, 1fr); }
  .client { flex-basis: 25%; min-height: 108px; }
  .client--eci { --h: 60px; }
  .client--bauhaus { --h: 30px; }
  .client--axa { --h: 58px; }
  .client--clikalia { --h: 30px; }
  .client--dimasa { --h: 48px; }
  .client--erfri { --h: 36px; }
  .client--dhv { --h: 70px; }
  .path-switch { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .svc-row { grid-template-columns: 1fr auto; gap: .6rem 2rem; }
  .svc-row p { grid-column: 1; }
  .svc-row .link-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mobile-bar { display: none; }
  .wa-float { display: inline-flex; }
  .footer-bottom { padding-bottom: 1.8rem; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .clients-inner { gap: 1.75rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero-visual .media { aspect-ratio: 4 / 4.4; }
  .b2b-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-card--wide { grid-column: span 2; aspect-ratio: auto; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .zone-grid { grid-template-columns: 1.1fr 1fr; }
  .detail { grid-template-columns: 1fr 1fr; }
  .detail:nth-child(even) .media { order: 2; }
  .split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .section-head--split { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .section-head--split .lead { justify-self: end; }
  .svc-row { grid-template-columns: 1.1fr 1fr 150px; }
  .svc-row p { grid-column: 2; grid-row: 1; }
  .svc-row .link-arrow { grid-column: 3; grid-row: 1; justify-self: end; }
  .detail .media.is-sticky { position: sticky; top: calc(var(--header-h) + 80px); }
}
@media (min-width: 1600px) {
  .header-phone { display: inline-flex; }
  .nav-list a { padding-inline: .7rem; }
  .nav-list a::after { left: .7rem; right: .7rem; }
}
@media (min-width: 1280px) {
  .client { flex-basis: calc(100% / 7); }
  .nav { display: block; }
  .nav-list a { padding-inline: .5rem; }
  .nav-list a::after { left: .5rem; right: .5rem; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .brand img { height: 38px; }
}
.hero-grid > *, .b2b-grid > *, .split > *, .contact-grid > *, .zone-grid > *, .detail > * { min-width: 0; }
@media (max-width: 539px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
}
@media (max-width: 719px) {
  .faq .faq-a { padding-right: 0; }
  .hero-spec a { min-height: 3.2rem; padding: .6rem .5rem; font-size: .9rem; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .airflow .af-flow { animation: none; }
}
/* Movimiento reducido en móvil: la cinta de logos no se mueve sola; se desliza con el dedo */
@media (prefers-reduced-motion: reduce) and (max-width: 719px) {
  .clients-marquee { animation: none; }
  .clients-track { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .clients-track::-webkit-scrollbar { display: none; }
  .clients-marquee .clients-logos--dup { display: none; }
}

/* =============================================================
   10. Asistente de WhatsApp (asistente.js)
   ============================================================= */
.wa-asist { --wa: #1fa855; --wa-dark: #128c4a; position: fixed; inset: 0; z-index: 200; }
.wa-asist[hidden] { display: none; }
.wa-asist__backdrop { position: absolute; inset: 0; background: rgba(10, 26, 47, .45); opacity: 0; transition: opacity .25s var(--ease-soft); }
.wa-asist__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--bg-soft); overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.wa-asist.is-open .wa-asist__backdrop { opacity: 1; }
.wa-asist.is-open .wa-asist__panel { opacity: 1; transform: none; }
html.wa-asist-open, html.wa-asist-open body { overflow: hidden; }

.wa-asist__head {
  display: flex; align-items: center; gap: .7rem; flex-shrink: 0;
  padding: .7rem .75rem; padding-top: max(.7rem, env(safe-area-inset-top));
  background: var(--navy); color: var(--white);
}
.wa-asist__head img { width: 36px; height: 36px; border-radius: 50%; background: var(--white); padding: 5px; object-fit: contain; }
.wa-asist__who { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.wa-asist__who strong { font-family: var(--display); font-size: .98rem; font-weight: 600; letter-spacing: .01em; }
.wa-asist__who span { font-size: .76rem; color: #a9c4e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-asist__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); transition: background .2s;
}
.wa-asist__icon:hover { background: rgba(255,255,255,.12); }
.wa-asist__icon svg { width: 20px; height: 20px; }
.wa-asist__bar { height: 3px; background: rgba(1, 53, 115, .1); flex-shrink: 0; }
.wa-asist__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .5s var(--ease-out); }

.wa-asist__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem .9rem 1.2rem; scroll-behavior: smooth;
}
.wa-msg {
  max-width: 86%; padding: .65rem .9rem; border-radius: 16px;
  font-size: .95rem; line-height: 1.45; text-align: left; overflow-wrap: anywhere;
}
.wa-msg--bot { align-self: flex-start; background: var(--white); color: var(--text); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.wa-msg--bot small { display: block; margin-top: .3rem; font-size: .84rem; color: var(--muted); }
.wa-msg--bot strong { font-weight: 600; color: var(--navy-ink); }
.wa-msg--user {
  align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 5px;
  font: inherit; font-size: .95rem; white-space: pre-line; transition: background .2s;
}
.wa-msg--user:hover { background: var(--blue); }
.wa-direct { display: inline-block; margin-top: .55rem; font-size: .84rem; color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }

/* Burbuja nueva: "escribiendo…" y aparece el texto */
.wa-typing { display: none; }
.wa-msg.is-typing .wa-typing { display: inline-flex; gap: 4px; padding: .3rem 0; }
.wa-msg.is-typing .wa-msg__txt { display: none; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); animation: waDot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
.wa-msg.is-new { animation: waIn .35s var(--ease-out); }
.wa-msg.is-new .wa-msg__txt { animation: waIn .3s var(--ease-out); }
.wa-asist__composer.is-new > *, .wa-summary.is-new { animation: waUp .45s var(--ease-out) .5s both; }
@keyframes waDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes waIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes waUp { from { opacity: 0; transform: translateY(10px); } }

/* Zona de respuesta */
.wa-asist__composer {
  flex-shrink: 0; display: grid; gap: .6rem;
  max-height: 58%; overflow-y: auto; overscroll-behavior: contain;
  padding: .8rem .9rem; padding-bottom: max(.9rem, env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line);
}
.wa-asist__composer:empty { display: none; }
.wa-opts { display: grid; gap: .45rem; }
.wa-opts--grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.wa-opt {
  display: grid; gap: .1rem; text-align: left; min-height: 48px; padding: .65rem .95rem;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white);
  font-family: var(--display); font-size: .92rem; font-weight: 600; color: var(--navy);
  transition: border-color .2s, background .2s, color .2s;
}
.wa-opts--grid .wa-opt { text-align: center; align-content: center; }
.wa-opt small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); }
.wa-opt:hover, .wa-opt:focus-visible { border-color: var(--blue); background: var(--bg-tint); }
.wa-opt.is-selected { border-color: var(--navy); background: var(--navy); color: var(--white); }
.wa-opt.is-selected small { color: #bfd0e4; }

.wa-form { display: grid; gap: .5rem; }
.wa-form__row { display: flex; gap: .5rem; align-items: flex-end; }
.wa-input {
  flex: 1; min-width: 0; min-height: 48px; padding: .7rem 1rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 14px; resize: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.wa-input { min-height: 96px; line-height: 1.45; }
.wa-input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(6, 166, 238, .14); }
.wa-send {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); transition: background .2s;
}
.wa-send:hover { background: var(--blue); }
.wa-send svg { width: 20px; height: 20px; }
.wa-err { font-size: .84rem; color: #a12626; }
.wa-err:empty { display: none; }
.wa-note { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.wa-note a { color: var(--blue-text); text-decoration: underline; }
.wa-form__extra { display: flex; flex-wrap: wrap; gap: .45rem; }
.wa-chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem .95rem;
  border-radius: 999px; border: 1.5px solid var(--wa); color: var(--wa-dark); background: #effaf3;
  font-family: var(--display); font-size: .85rem; font-weight: 600;
}
.wa-chip svg { width: 17px; height: 17px; }
.wa-chip:hover { background: #def4e6; }
.wa-chip--ghost { border-color: var(--line-strong); color: var(--text-2); background: var(--white); }
.wa-chip--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.wa-chip--primary { border-color: var(--navy); background: var(--navy); color: var(--white); }
.wa-chip--primary:hover { background: var(--blue); border-color: var(--blue); }
.wa-chip:disabled { opacity: .6; cursor: progress; }
.wa-chip[hidden] { display: none; }

/* Fotos */
.wa-fotos { display: grid; gap: .6rem; }
.wa-fotos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .45rem; }
.wa-fotos__grid:empty { display: none; }
.wa-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-tint); }
.wa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wa-thumb.is-loading img { opacity: .45; }
.wa-thumb.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(1,53,115,.25); border-top-color: var(--navy); border-radius: 50%; animation: waSpin .8s linear infinite;
}
@keyframes waSpin { to { transform: rotate(360deg); } }
.wa-thumb__x {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 26, 47, .75); color: var(--white);
}
.wa-thumb__x svg { width: 14px; height: 14px; }
.wa-fotos__add {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 64px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--bg-soft);
  font-family: var(--display); font-size: .92rem; font-weight: 600; color: var(--navy); transition: border-color .2s, background .2s;
}
.wa-fotos__add:hover { border-color: var(--blue); background: var(--bg-tint); }
.wa-fotos__add svg { width: 24px; height: 24px; color: var(--blue); }
.wa-fotos__add[hidden] { display: none; }

/* Resumen */
.wa-summary {
  align-self: stretch; margin-top: .2rem; padding: .4rem .2rem .3rem;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.wa-summary__title {
  padding: .6rem .8rem .5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-text);
}
.wa-summary__row {
  display: grid; grid-template-columns: minmax(96px, 38%) 1fr 18px; gap: .7rem; align-items: start; width: 100%;
  padding: .55rem .8rem; border-top: 1px solid var(--line); text-align: left; font-size: .88rem; border-radius: 0;
  transition: background .2s;
}
.wa-summary__row span { color: var(--muted); }
.wa-summary__row b { font-weight: 500; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.wa-summary__row b em { color: var(--line-strong); font-style: normal; }
.wa-summary__row svg { width: 16px; height: 16px; color: var(--line-strong); margin-top: .15rem; transition: color .2s; }
.wa-summary__row:hover { background: var(--bg-soft); }
.wa-summary__row:hover svg { color: var(--blue); }
.wa-summary__fotos { display: flex; gap: .4rem; padding: .5rem .8rem .6rem; border-top: 1px solid var(--line); overflow-x: auto; }
.wa-summary__fotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

.wa-cta {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; width: 100%;
  border-radius: 999px; background: var(--wa); color: var(--white);
  font-family: var(--display); font-size: 1rem; font-weight: 600; transition: background .2s, transform .2s;
}
.wa-cta:hover { background: var(--wa-dark); transform: translateY(-1px); }
.wa-cta svg { width: 22px; height: 22px; }
.wa-cta--light { background: var(--navy); }
.wa-cta--light:hover { background: var(--blue); }

@media (min-width: 720px) {
  .wa-asist__panel {
    inset: auto 1.5rem 1.5rem auto; width: 410px; height: min(700px, calc(100vh - 3rem));
    border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(1, 34, 75, .06);
  }
  .wa-asist__backdrop { background: rgba(10, 26, 47, .28); }
  .wa-asist__head { padding: .8rem .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-msg.is-new, .wa-asist__composer.is-new > *, .wa-summary.is-new { animation: none; }
  .wa-msg.is-typing .wa-typing { display: none; }
  .wa-msg.is-typing .wa-msg__txt { display: block; }
  .wa-msg.is-new .wa-msg__txt { animation: none; }
}

/* Print */
@media print {
  .site-header, .mobile-bar, .wa-float, .cta-final, .site-footer, .wa-asist { display: none !important; }
}
