/* Emergy v4
   Layout: full-width bands that alternate light (blanco, gris azulado) and dark (marino)
   so each section is easy to tell apart; the sticky menu marks where you are.
   The memorable element is the Garantía Emergy shield; everything else stays quiet. */
:root {
  /* Paleta oficial Emergy */
  --navy: #0E1B33;
  --navy-deep: #08111F;
  --navy-2: #142749;
  --blue: #1560E0;
  --blue-hi: #2E73EC;
  --blue-glow: #3B82FF;
  --blue-tint: #A9C6F7;
  --ice: #EEF2F9;
  --white: #FFFFFF;
  --ink: #0B1220;
  --gray: #5F6676;
  --line: #DCE3EE;
  --line-dark: rgba(255, 255, 255, .12);
  --on-dark: #D3DDEE;
  --on-dark-dim: #A7B5CF;

  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --header-h: 72px;
  --band: clamp(56px, 7vw, 92px);
  color-scheme: light;
}

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
svg { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .hero :focus-visible, .garantia :focus-visible, .band-navy :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: var(--blue-tint); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- WhatsApp ---------- */
.wa-chip { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--white); flex: none; }
.wa-chip img { width: 1.45em; height: 1.45em; }
.wa-mini { width: 20px; height: 20px; flex: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent; font: 700 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn-lg { padding: .78em 1.5em .78em .85em; font-size: 1.04rem; }
.btn-wa { background: var(--blue); color: var(--white); padding-left: .55em; }
.btn-wa:hover { background: var(--blue-hi); }
.btn-wa-white { background: var(--white); color: var(--navy); padding-left: .55em; }
.btn-wa-white .wa-chip { background: var(--ice); }
.btn-wa-white:hover { background: var(--ice); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); padding-left: 1.2em; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Etiqueta de sección ---------- */
.tag { display: inline-flex; align-items: center; gap: .5em; padding: .34em .85em .34em .65em; border-radius: 999px; background: rgba(21, 96, 224, .09); color: #1152C4; font-weight: 700; font-size: .88rem; }
.tag svg { width: 1.1em; height: 1.1em; }
.tag-light { background: rgba(169, 198, 247, .13); color: var(--blue-tint); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(14, 27, 51, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { position: relative; color: var(--on-dark-dim); text-decoration: none; font-weight: 600; font-size: .94rem; padding: 8px 13px; border-radius: 8px; transition: color .15s, background-color .15s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current="true"] { color: var(--white); background: rgba(21, 96, 224, .28); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.nav-cta { margin-left: 12px; padding: .45em 1.05em .45em .45em; font-size: .92rem; }
.here { display: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
.menu-btn .i-close { display: none; }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 60% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 31, .95) 0%, rgba(8, 17, 31, .85) 36%, rgba(8, 17, 31, .3) 70%, rgba(8, 17, 31, .15) 100%), linear-gradient(0deg, rgba(8, 17, 31, .92) 0%, rgba(8, 17, 31, 0) 32%); }
.hero-inner { padding-block: clamp(60px, 9vw, 116px) 0; }
.hero-place { display: flex; align-items: center; gap: 6px; color: var(--blue-tint); font-weight: 600; font-size: .95rem; letter-spacing: 0; line-height: 1.4; margin-bottom: .55em; }
.hero-place svg { width: 1.1em; height: 1.1em; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; max-width: 14.5ch; margin: 0 0 .4em; }
.hero h1 .hero-place { font-size: clamp(.9rem, 1.1vw, 1rem); }
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--on-dark); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 84px); background: rgba(14, 27, 51, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.stats li { padding: 20px 24px 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-weight: 800; font-size: clamp(1.45rem, 2.5vw, 1.95rem); letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: .9rem; color: var(--on-dark-dim); margin-top: 2px; }
.stats .stat-hl { background: var(--blue); border-left-color: var(--blue); }
.stats .stat-hl span { color: #E1EBFD; }

/* ---------- Bandas ---------- */
.band { padding-block: var(--band); }
.band-white { background: var(--white); }
.band-ice { background: var(--ice); }
.band-navy { background: var(--navy); color: var(--white); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.022em; color: var(--navy); margin: .4em 0 .35em; }
.band-navy h2, .garantia h2, .cta h2 { color: var(--white); }
.lead { font-size: 1.08rem; color: var(--gray); max-width: 58ch; }
.lead-light { color: var(--on-dark); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.fine { font-size: .88rem; color: var(--gray); margin-top: 16px; }
.fine-light { color: var(--on-dark-dim); }

/* ---------- Garantía Emergy ---------- */
.garantia { color: var(--white); padding-block: clamp(64px, 8vw, 108px); position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 17, 31, .9) 0%, rgba(14, 27, 51, .86) 45%, rgba(8, 17, 31, .94) 100%), url("../img/textura-paneles.webp") center 30% / cover no-repeat, var(--navy); }
.garantia-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.shield { display: grid; justify-items: center; gap: 14px; }
.shield-body { position: relative; width: clamp(170px, 19vw, 230px); aspect-ratio: 256 / 296; display: grid; place-content: center; justify-items: center; padding-bottom: 12%; }
.shield-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 16px rgba(59, 130, 255, .45)); }
.shield-fill { fill: rgba(21, 96, 224, .07); }
.shield-line { fill: none; stroke: var(--blue-glow); stroke-width: 4.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.shield-num { position: relative; font-weight: 800; font-size: clamp(6.2rem, 8.6vw, 8.6rem); line-height: .8; letter-spacing: -.04em; color: var(--white); }
.shield-unit { position: relative; font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1; margin-top: .22em; color: var(--white); }
.shield-name { font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--blue-tint); letter-spacing: -.01em; white-space: nowrap; }
.garantia h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 16ch; margin-top: 0; }

.vs { margin-top: clamp(40px, 5vw, 56px); display: grid; }
.vs-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
.vs-row > span { display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line-dark); }
.vs-row > [role="rowheader"] { font-weight: 600; color: var(--on-dark); padding-left: 0; }
.vs-row .vs-emergy { background: var(--white); color: var(--navy); font-weight: 600; border-top-color: var(--line); }
.vs-row .vs-emergy svg { color: var(--blue); width: 20px; height: 20px; }
.vs-row .vs-normal { color: var(--on-dark-dim); background: rgba(255, 255, 255, .05); }
.vs-row .vs-normal svg { color: rgba(211, 221, 238, .5); width: 18px; height: 18px; }
.vs-head > span { border-top: 0; padding-block: 18px; font-weight: 800; font-size: 1.1rem; }
.vs-head .vs-emergy { border-radius: 16px 16px 0 0; color: var(--blue); font-size: 1.16rem; }
.vs-head .vs-emergy svg { width: 24px; height: 24px; }
.vs-head .vs-normal { border-radius: 16px 16px 0 0; flex-direction: column; align-items: flex-start; gap: 0; color: var(--white); }
.vs-head .vs-normal small { font-weight: 500; font-size: .85rem; color: var(--on-dark-dim); }
.vs-row:last-child .vs-emergy, .vs-row:last-child .vs-normal { border-radius: 0 0 16px 16px; }
.vs-row:last-child > span { padding-bottom: 20px; }

/* ---------- Equipos: carrusel de marcas ---------- */
.head-row { margin-bottom: clamp(24px, 3vw, 36px); }
.head-row .section-head { margin-bottom: 0; }
.slider-ctrl { display: flex; gap: 8px; flex: none; }
.sl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.sl-btn:hover { border-color: var(--blue); color: var(--blue); }
.sl-btn svg { width: 20px; height: 20px; }
.sl-toggle .i-play { display: none; }
.sl-toggle[data-state="paused"] .i-play { display: inline; }
.sl-toggle[data-state="paused"] .i-pause { display: none; }
.slider { position: relative; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px 2px 6px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline-offset: 6px; }
.slide { flex: 0 0 calc((100% - 16px * 4) / 4.6); scroll-snap-align: start; display: grid; gap: 10px; }
.logo-tile { height: 112px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.logo-tile img { max-height: 54px; max-width: 86%; width: auto; height: auto; object-fit: contain; }
.slide-cap { font-size: .84rem; font-weight: 600; color: var(--gray); padding-left: 4px; }

.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.certs li { display: flex; align-items: center; gap: 16px; }
.cert-logo { flex: none; width: 104px; height: 64px; display: grid; place-items: center; }
.cert-logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; }
.cert-text { display: grid; color: var(--gray); font-size: .93rem; line-height: 1.4; }
.cert-text strong { color: var(--navy); font-size: 1rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
.service { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.service-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.service h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.service p { color: var(--gray); }
.checks { display: grid; gap: 7px; margin: 4px 0 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; font-weight: 500; }
.checks svg { color: var(--blue); width: 18px; height: 18px; margin-top: 4px; }
.btn-svc { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.15em .6em .6em; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .95rem; text-decoration: none; transition: border-color .15s, color .15s; }
.btn-svc:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; right: calc((100% - 96px) / 5 - 23px); top: 22px; height: 2px; background: var(--line); }
.steps li { position: relative; }
.step-n { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; position: relative; }
.steps li:first-child .step-n { background: var(--blue); }
.steps h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin: 16px 0 4px; }
.steps p { color: var(--gray); font-size: .95rem; }

/* ---------- Alianza ---------- */
.alianza-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.alianza-head .section-head { margin-bottom: 0; }
.partner { flex: none; display: inline-flex; background: var(--white); border-radius: 12px; padding: 8px 16px; }
.partner img { height: 60px; width: auto; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); row-gap: 34px; }
.cat { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.cat summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: default; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary > svg { width: 26px; height: 26px; color: var(--blue-tint); stroke-width: 1.7; }
.cat h3 { font-size: 1.08rem; font-weight: 700; color: var(--white); }
.cat ul { display: grid; gap: 6px; margin: 14px 0 14px; }
.cat li { position: relative; padding-left: 16px; color: var(--on-dark); font-size: .95rem; line-height: 1.45; }
.cat li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-glow); }
.cat-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-tint); font-weight: 600; font-size: .9rem; text-decoration: none; }
.cat-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Financiamiento ---------- */
.fin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.pill-neg { display: inline-block; vertical-align: .22em; margin-left: .25em; padding: .32em .7em; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .42em; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.fin-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 4px; }
.fin-facts li { padding: 4px 18px 4px 0; }
.fin-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.fin-facts strong { display: block; font-weight: 800; font-size: 1.28rem; color: var(--navy); }
.fin-facts span { display: block; color: var(--gray); font-size: .92rem; line-height: 1.4; }
.fin .btn { margin-top: 22px; }
.flow { background: var(--navy); color: var(--white); border-radius: 18px; padding: clamp(24px, 3.5vw, 36px); }
.flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-block: 12px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 58px; bottom: -10px; width: 2px; background: rgba(169, 198, 247, .25); }
.flow-n { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.flow h3 { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
.flow p { color: var(--on-dark-dim); font-size: .94rem; margin-top: 2px; }

/* ---------- Proyectos y clientes ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.clients { margin-top: clamp(40px, 5vw, 56px); }
.clients-title { font-size: 1rem; font-weight: 700; color: var(--gray); margin-bottom: 18px; }
.client-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.client-logos li { height: 96px; display: grid; place-items: center; background: var(--ice); border-radius: 12px; padding: 14px 18px; }
.client-logos img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.team { display: grid; }
.team li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.team li:last-child { border-bottom: 1px solid var(--line-dark); }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 800; flex: none; }
.team span:not(.avatar) { display: grid; color: var(--on-dark-dim); font-size: .93rem; }
.team strong { font-size: 1.05rem; color: var(--white); }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.04rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--blue); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { color: var(--gray); padding: 0 44px 20px 0; max-width: 64ch; }

/* ---------- Contacto ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: var(--white); padding-block: clamp(64px, 8vw, 104px); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 31, .95) 0%, rgba(8, 17, 31, .88) 50%, rgba(14, 27, 51, .78) 100%); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.cta h2 { margin-top: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }
.cta p { color: var(--on-dark); font-size: 1.1rem; max-width: 46ch; }
.cta-actions { display: grid; gap: 22px; justify-items: start; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-list svg { width: 20px; height: 20px; color: var(--blue-tint); }
.contact-list a { text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.contact-list a strong { font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-deep); color: var(--on-dark-dim); padding-top: 52px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; padding-bottom: 36px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 40ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: var(--white); transition: background-color .15s, border-color .15s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 20px; height: 20px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px 26px; font-size: .85rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab { position: fixed; z-index: 40; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; filter: drop-shadow(0 8px 18px rgba(8, 17, 31, .35)); transition: transform .25s ease, opacity .25s ease; text-decoration: none; }
.wa-fab img { width: 60px; height: 60px; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab[data-hidden="true"] { opacity: 0; visibility: hidden; transform: scale(.8); pointer-events: none; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
.wa-tip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--navy); color: var(--white); font-weight: 600; font-size: .88rem; padding: 7px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: slow-zoom 4.5s ease-out both; }
  @keyframes slow-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
  .js-anim .garantia:not(.seen) .shield-line { stroke-dashoffset: 1; }
  .js-anim .garantia .shield-line { transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-track { scroll-behavior: auto; }
  .btn, .btn-svc, .wa-fab, .wa-tip, .faq summary::after { transition: none; }
}

/* ---------- Menú compacto ---------- */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .here { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(21, 96, 224, .3); color: var(--white); font-weight: 700; font-size: .85rem; white-space: nowrap; }
  .here:empty { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 18px 30px rgba(8, 17, 31, .35); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .site-header[data-open="true"] .nav { display: flex; }
  .site-header[data-open="true"] .i-open { display: none; }
  .site-header[data-open="true"] .i-close { display: inline; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 8px; }
  .nav a[aria-current="true"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .nav-cta { margin: 14px 0 0; justify-content: center; padding: .6em 1em; font-size: 1rem; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services .service:last-child { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: start; }
  .services .service:last-child .service-img { grid-row: span 5; margin: 0; height: 100%; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fin, .nosotros { grid-template-columns: minmax(0, 1fr); }
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide { flex-basis: calc((100% - 16px * 3) / 3.5); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-social { grid-column: 1 / -1; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; --band: 56px; }
  .brand img { height: 32px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 17, 31, .72) 0%, rgba(8, 17, 31, .82) 55%, rgba(8, 17, 31, .95) 100%); }
  .hero-inner { padding-top: 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .stats li { padding: 15px 18px 17px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  h2 { font-size: 1.65rem; }

  .garantia-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 28px; }
  .garantia-copy { display: grid; justify-items: center; }
  .garantia h2 { font-size: 2rem; }
  .shield-body { width: 168px; }
  .shield-num { font-size: 6.2rem; }
  .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-row > [role="rowheader"] { grid-column: 1 / -1; padding: 14px 0 8px; border-top: 0; font-size: .95rem; }
  .vs-head > span:first-child { display: none; }
  .vs-row > span { padding: 11px 13px; font-size: .92rem; align-items: flex-start; }
  .vs-row > span svg { margin-top: 3px; }
  .vs-row .vs-emergy, .vs-row .vs-normal { border-radius: 10px; border-top: 0; }
  .vs-row .vs-normal { margin-left: 8px; }
  .vs-head .vs-emergy, .vs-head .vs-normal { border-radius: 10px; font-size: 1rem; }
  .vs-head .vs-normal { margin-left: 8px; }
  .vs-row:last-child .vs-emergy, .vs-row:last-child .vs-normal { border-radius: 10px; }
  .vs-row:last-child > span { padding-bottom: 11px; }

  .head-row { flex-direction: column; align-items: stretch; }
  .slider-ctrl { justify-content: flex-end; }
  .slide { flex-basis: calc((100% - 12px) / 2.25); }
  .slider-track { gap: 12px; }
  .logo-tile { height: 92px; padding: 14px; }
  .logo-tile img { max-height: 44px; }
  .certs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cert-logo { width: 84px; height: 54px; }

  .services { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .services .service:last-child { grid-column: auto; display: flex; }
  .services .service:last-child .service-img { height: auto; margin-bottom: 8px; }
  .service-img { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding-bottom: 20px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 2px; width: 2px; background: var(--line); }
  .steps .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; }

  .alianza-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .partner img { height: 48px; }
  .cats { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cat { padding: 0; }
  .cat summary { cursor: pointer; padding: 16px 32px 16px 0; position: relative; }
  .cat summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--blue-tint); border-bottom: 2px solid var(--blue-tint); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
  .cat[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
  .cat ul { margin-top: 2px; }
  .cat-link { margin-bottom: 18px; }
  .cats .cat:last-child { border-bottom: 1px solid var(--line-dark); }

  .fin-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fin-facts li, .fin-facts li + li { padding: 0 0 10px; border-left: 0; border-bottom: 1px solid var(--line); }
  .pill-neg { font-size: .5em; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery .g-wide { grid-row: auto; aspect-ratio: 4 / 3; }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-logos li { height: 84px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { margin-bottom: 8px; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .wa-fab, .wa-fab img { width: 56px; height: 56px; }
  .wa-tip { display: none; }
}

/* Puntos del carrusel */
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .25s ease, background-color .25s ease; }
.slider-dots span.on { width: 22px; background: var(--blue); }
