/* ==========================================================
   Xavier Vargas Ingeniería — Demo 2 (estilo técnico / plano)
   ========================================================== */
:root {
  --bg: #080d18;
  --bg-2: #0d1424;
  --surface: #121b2f;
  --surface-2: #18233b;
  --line: rgba(160, 190, 255, .1);
  --line-2: rgba(160, 190, 255, .18);
  --text: #a9b6cf;
  --white: #f3f6fc;
  --muted: #6d7b96;
  --orange: #ff6b1f;
  --orange-2: #ff8a4c;
  --ice: #7cc4ff;
  --ice-2: #b9e0ff;
  --wa: #25d366;
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: min(1280px, 100% - 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--white); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--orange); }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec--tight { padding: clamp(60px, 7vw, 90px) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--orange); }

/* Fondo de líneas de flujo de aire */
.grid-bg {
  position: absolute; inset: -6% -10%; pointer-events: none; z-index: 0;
  background: url(../img/airflow.svg) center / cover no-repeat;
  opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse at 35% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 35% 45%, #000 25%, transparent 78%);
  animation: airflow 22s ease-in-out infinite alternate;
}
@keyframes airflow {
  from { transform: translate3d(-3%, 0, 0) scaleY(1); }
  to { transform: translate3d(3%, -1.5%, 0) scaleY(1.06); }
}

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 480px; justify-self: end; font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: var(--r); font-family: var(--head); font-weight: 600; font-size: 1rem;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn--wa { background: var(--wa); color: #04260f; }
.btn--wa::before { background: #fff; }
.btn--line { border: 1px solid var(--line-2); color: var(--white); }
.btn--line::before { background: var(--white); }
.btn--line:hover { color: var(--bg); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange::before { background: var(--white); }
.btn--orange:hover { color: var(--bg); }
.btn--xl { padding: 22px 34px; font-size: 1.15rem; }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: var(--white); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .25s, border-color .25s; }
.arrow-link:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: linear-gradient(90deg, var(--orange), var(--ice)); transform: scaleX(0); transform-origin: left; }

/* ---------- Encabezado ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s, border-color .35s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.hd.is-solid { background: rgba(8, 13, 24, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 40px; }
.brand span { font-family: var(--head); font-weight: 700; color: var(--white); font-size: 1.1rem; line-height: 1; letter-spacing: -.01em; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.hd__links { display: flex; gap: 4px; font-size: .92rem; }
.hd__links a { padding: 8px 14px; border-radius: 99px; color: var(--text); transition: color .2s, background .2s; }
.hd__links a:hover { color: var(--white); background: var(--surface); }
.hd__links a[aria-current] { color: var(--white); background: var(--surface-2); }
.hd__wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: var(--wa); color: #04260f; font-family: var(--head); font-weight: 600; font-size: .92rem; transition: transform .25s var(--ease); }
.hd__wa:hover { transform: translateY(-2px); }
.hd__menu { display: none; align-items: center; gap: 12px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.hd__burger { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.hd__burger i { display: block; width: 16px; height: 1.5px; background: var(--white); position: relative; transition: background .2s; }
.hd__burger i::before, .hd__burger i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--white); transition: transform .35s var(--ease); }
.hd__burger i::before { top: -5px; }
.hd__burger i::after { top: 5px; }
.menu-open .hd__burger i { background: transparent; }
.menu-open .hd__burger i::before { transform: translateY(5px) rotate(45deg); }
.menu-open .hd__burger i::after { transform: translateY(-5px) rotate(-45deg); }

/* Menú a pantalla completa (móvil / tablet) */
.omenu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 110px 24px 40px; clip-path: circle(0 at calc(100% - 46px) 42px); transition: clip-path .7s var(--ease); visibility: hidden; }
.menu-open .omenu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.omenu nav { display: grid; gap: 2px; }
.omenu nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--head); font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 600; color: var(--white); letter-spacing: -.03em; line-height: 1.2; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .2s; }
.omenu nav a small { font-family: var(--mono); font-size: .8rem; color: var(--orange); font-weight: 400; letter-spacing: 0; }
.omenu nav a:hover, .omenu nav a[aria-current] { color: var(--orange); }
.menu-open .omenu nav a { opacity: 1; transform: none; }
.menu-open .omenu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .omenu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .omenu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .omenu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .omenu nav a:nth-child(6) { transition-delay: .25s; }
.omenu__foot { margin-top: 40px; display: grid; gap: 6px; font-size: .95rem; }
.omenu__foot a { color: var(--white); }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; min-height: min(100vh, 960px); display: flex; flex-direction: column; justify-content: center; padding: 130px 0 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(124,196,255,.13), transparent 60%); pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; margin-bottom: 28px; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--ice); }
.hero__lead { font-size: 1.12rem; max-width: 520px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__vis { position: relative; }
.hero__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 12%); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroImg 2.2s var(--ease) forwards; }
@keyframes heroImg { to { transform: scale(1); } }
.hero__badge { position: absolute; top: 24px; right: -14px; background: var(--orange); color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border-radius: var(--r); display: flex; align-items: center; gap: 8px; }
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Termostato */
.thermo { position: absolute; left: -60px; bottom: 40px; width: 230px; padding: 20px; border-radius: var(--r-lg); background: rgba(13,20,36,.85); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.thermo__dial { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; }
.thermo__dial svg { width: 100%; height: 100%; transform: rotate(135deg); }
.thermo__track { fill: none; stroke: var(--surface-2); stroke-width: 10; stroke-linecap: round; }
.thermo__val { fill: none; stroke: url(#thermoGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.thermo__num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.thermo__num b { font-family: var(--head); font-size: 2.6rem; font-weight: 600; color: var(--white); line-height: 1; letter-spacing: -.04em; }
.thermo__num b sup { font-size: 1rem; color: var(--ice); }
.thermo__num small { display: block; font-family: var(--mono); font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.thermo p { margin: 0; text-align: center; font-size: .85rem; color: var(--white); }
.thermo p span { color: var(--ice); }

.hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 80px; }
.hstat { padding: 28px 24px 34px 0; border-right: 1px solid var(--line); }
.hstat + .hstat { padding-left: 24px; }
.hstat:last-child { border-right: 0; }
.hstat b { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--white); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; }
.hstat b i { font-style: normal; color: var(--orange); }

/* ---------- Cinta de servicios ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.ticker__track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--head); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; color: var(--white); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; letter-spacing: -.02em; }
.ticker span::after { content: "✳"; color: var(--orange); font-size: .8em; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--text); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Selector de necesidad ---------- */
.need { display: grid; grid-template-columns: 340px 1fr; gap: 40px; }
.need__opts { display: grid; gap: 10px; align-content: start; }
.need__opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.need__opt:hover { border-color: var(--line-2); transform: translateX(4px); }
.need__opt[aria-selected="true"] { border-color: var(--orange); background: linear-gradient(90deg, rgba(255,107,31,.12), var(--surface)); }
.need__opt .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ice); transition: background .3s, color .3s; }
.need__opt[aria-selected="true"] .ic { background: var(--orange); color: #fff; }
.need__opt .ic svg { width: 24px; height: 24px; }
.need__opt b { display: block; font-family: var(--head); color: var(--white); font-size: 1.15rem; font-weight: 600; }
.need__opt small { color: var(--muted); font-size: .85rem; }
.need__panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; min-height: 440px; }
.need__panel[hidden] { display: none; }
.need__panel .media { position: relative; overflow: hidden; }
.need__panel .media img { width: 100%; height: 100%; object-fit: cover; animation: zoomIn 1s var(--ease); }
@keyframes zoomIn { from { transform: scale(1.15); opacity: 0; } }
.need__panel .body { padding: 40px 36px; display: flex; flex-direction: column; animation: up .6s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
.need__panel h3 { font-size: 1.8rem; }
.checks { list-style: none; padding: 0; margin: 6px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); }
.checks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 4px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.need__panel .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tira horizontal de proyectos ---------- */
.strip { --gut: max(24px, calc((100vw - 1280px) / 2)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) 30px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--orange) var(--surface); }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag a { pointer-events: none; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-track { background: var(--surface); }
.strip::-webkit-scrollbar-thumb { background: var(--orange); }
.scard { flex: 0 0 clamp(280px, 30vw, 420px); scroll-snap-align: start; display: block; user-select: none; }
.scard__img { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.85); pointer-events: none; }
.scard:hover .scard__img img { transform: scale(1.06); filter: saturate(1.1); }
.scard__n { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: .75rem; color: #fff; background: rgba(8,13,24,.7); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: var(--r); }
.scard h3 { margin-bottom: 4px; transition: color .25s; }
.scard:hover h3 { color: var(--orange); }
.scard p { margin: 0; font-size: .92rem; color: var(--muted); }
.strip__ctrl { display: flex; gap: 10px; }
.strip__ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--white); transition: background .25s, border-color .25s; }
.strip__ctrl button:hover { background: var(--orange); border-color: var(--orange); }
.strip__ctrl button:first-child svg { transform: rotate(180deg); }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.logo { margin: 0; background: #e9eef7; border-radius: var(--r-lg); aspect-ratio: 16/10; display: grid; place-items: center; padding: 18px 18px 30px; position: relative; overflow: hidden; transition: background .35s, transform .4s var(--ease); }
.logo img { max-height: 60px; max-width: 80%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .65; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.logo:hover { background: #fff; transform: translateY(-4px); }
.logo:hover img { filter: none; opacity: 1; }
.logo figcaption { position: absolute; left: 12px; bottom: 9px; right: 12px; font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: #6d7b96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.logo.is-out { display: none; }

/* ---------- Cita del fundador ---------- */
.quote { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; }
.quote__av { width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--orange), #c2410c); border: 1px solid var(--line-2); }
.quote__av img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: translateY(8%) scale(1.05); }
.quote blockquote { margin: 0; font-family: var(--head); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; color: var(--white); letter-spacing: -.02em; }
.quote cite { display: block; margin-top: 22px; font-style: normal; }

/* ---------- Llamado final ---------- */
.final { position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 13vw, 170px) 0; }
.final h2 { font-size: clamp(2.8rem, 9vw, 8rem); letter-spacing: -.05em; line-height: .92; margin-bottom: 26px; }
.final h2 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.final p { max-width: 560px; margin: 0 auto 36px; font-size: 1.1rem; }
.final .grid-bg { -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%); }
.final__in { position: relative; z-index: 1; }
.final__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Cabecera de páginas internas ---------- */
.ph { position: relative; padding: 180px 0 70px; overflow: hidden; }
.ph__in { position: relative; z-index: 1; }
.ph__crumb { margin-bottom: 26px; display: flex; gap: 10px; }
.ph__crumb a { color: var(--muted); }
.ph__crumb a:hover { color: var(--white); }
.ph h1 { font-size: clamp(2.8rem, 8vw, 7rem); letter-spacing: -.05em; line-height: .95; max-width: 1100px; margin-bottom: 30px; }
.ph h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--ice); }
.ph__row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.ph__row p { max-width: 560px; margin: 0; font-size: 1.1rem; }
.ph__banner { margin-top: 60px; border-radius: var(--r-lg); overflow: hidden; height: clamp(240px, 42vw, 520px); }
.ph__banner img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- Nosotros ---------- */
.statement { font-family: var(--head); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.22; color: var(--muted); letter-spacing: -.02em; max-width: 1100px; margin: 0; }
.statement b { color: var(--white); font-weight: 500; }
.trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 70px; }
.trio img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-lg); }
.trio img:nth-child(2) { margin-top: 60px; }
.sectors2 { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sectors2 div { padding: 30px 20px; border-right: 1px solid var(--line); text-align: center; transition: background .3s; }
.sectors2 div:last-child { border-right: 0; }
.sectors2 div:hover { background: var(--surface); }
.sectors2 svg { width: 34px; height: 34px; color: var(--ice); margin: 0 auto 14px; display: block; transition: color .3s, transform .4s var(--ease); }
.sectors2 div:hover svg { color: var(--orange); transform: translateY(-4px); }
.sectors2 b { font-family: var(--head); color: var(--white); font-weight: 500; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 20px; padding: 28px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-family: var(--mono); color: var(--orange); font-size: .85rem; }
.acc summary h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; transition: color .25s; }
.acc summary:hover h3 { color: var(--orange); }
.acc summary .pm { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--white); translate: -50% -50%; }
.acc summary .pm::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.acc details[open] .pm { background: var(--orange); border-color: var(--orange); }
.acc details[open] .pm::after { rotate: 0deg; }
.acc .acc__body { padding: 0 64px 30px 90px; font-size: 1.08rem; max-width: 800px; animation: up .5s var(--ease); }

.founder2 { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.founder2__img { position: relative; border-radius: var(--r-lg); background: linear-gradient(170deg, var(--surface-2), var(--bg)); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; justify-content: center; }
.founder2__img img { width: 82%; position: relative; z-index: 1; }
.founder2__img .grid-bg { -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.founder2__img .tagline { position: absolute; z-index: 2; left: 18px; top: 18px; }
.founder2 p { font-size: 1.06rem; }
.founder2 strong { color: var(--white); font-weight: 600; }
.sign { font-family: var(--head); font-size: 1.4rem; color: var(--white); margin-top: 26px; }
.sign small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ---------- Servicios ---------- */
.svc2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.svc2__sticky { position: sticky; top: 110px; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.svc2__sticky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s var(--ease); }
.svc2__sticky img.is-on { opacity: 1; transform: none; }
.svc2__sticky .cap { position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 1; padding: 14px 16px; border-radius: var(--r); background: rgba(8,13,24,.75); backdrop-filter: blur(10px); color: var(--white); font-family: var(--head); display: flex; justify-content: space-between; gap: 10px; }
.svc2__group + .svc2__group { margin-top: 60px; }
.svc2__group > .mono { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.srow::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.srow.is-on::before, .srow:hover::before { transform: scaleX(1); }
.srow .n { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 8px; transition: color .3s; }
.srow.is-on .n { color: var(--orange); }
.srow h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; margin-bottom: 8px; transition: color .3s; }
.srow.is-on h3 { color: var(--white); }
.srow p { margin: 0 0 12px; }
.srow .ask { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wa); }
.srow .ask:hover { color: #7dffad; }
.srow__mimg { display: none; }

.steps2 { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps2::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.steps2 .fill { position: absolute; left: 0; top: 23px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--ice)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.steps2.is-in .fill { transform: scaleX(1); }
.step2 { position: relative; padding-right: 30px; }
.step2 .dot { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; color: var(--white); margin-bottom: 26px; position: relative; z-index: 1; }
.step2:first-child .dot { background: var(--orange); border-color: var(--orange); }
.step2 h3 { margin-bottom: 8px; }

/* ---------- Proyectos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--text); transition: all .25s; }
.chip:hover { color: var(--white); border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip sup { font-size: .65rem; margin-left: 3px; opacity: .7; }

.cases { display: grid; gap: clamp(60px, 9vw, 120px); }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.case:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.case:nth-child(even) .case__media { order: 2; }
.case.is-out { display: none; }
.case__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/11; cursor: zoom-in; display: block; width: 100%; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case__media:hover img { transform: scale(1.05); }
.case__media .zoom { position: absolute; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--ease); }
.case__media:hover .zoom, .case__media:focus-visible .zoom { transform: scale(1); }
.case__num { font-family: var(--head); font-size: clamp(3.6rem, 7vw, 6rem); font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: -.05em; margin-bottom: 10px; }
.case__tag { margin-bottom: 14px; display: block; }
.case h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: 8px; }
.case__client { color: var(--orange); font-family: var(--head); font-weight: 500; margin-bottom: 18px; }
.case__thumbs { display: flex; gap: 8px; margin-top: 22px; }
.case__thumbs button { width: 72px; height: 56px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); opacity: .7; transition: opacity .25s, border-color .25s; }
.case__thumbs button:hover { opacity: 1; border-color: var(--orange); }
.case__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.case--feat .case__media::after { content: "Más reciente"; position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--orange); color: #fff; padding: 8px 12px; border-radius: var(--r); }

/* Visor */
.viewer { position: fixed; inset: 0; z-index: 300; background: rgba(5,8,15,.96); display: grid; grid-template-rows: auto 1fr auto; animation: fadeV .3s; }
.viewer[hidden] { display: none; }
@keyframes fadeV { from { opacity: 0; } }
.viewer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.viewer__top h3 { margin: 0; font-size: 1.1rem; }
.viewer__top small { color: var(--orange); font-family: var(--head); }
.viewer__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--white); transition: background .2s; flex-shrink: 0; }
.viewer__close:hover { background: var(--orange); border-color: var(--orange); }
.viewer__stage { position: relative; display: grid; place-items: center; padding: 20px 80px; min-height: 0; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); animation: fadeV .4s; }
.viewer__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--white); transition: background .2s; }
.viewer__nav:hover { background: var(--orange); border-color: var(--orange); }
.viewer__nav--prev { left: 18px; }
.viewer__nav--prev svg { transform: rotate(180deg); }
.viewer__nav--next { right: 18px; }
.viewer__bot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.viewer__count { font-family: var(--mono); color: var(--muted); font-size: .85rem; }

/* ---------- Clientes ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kpis div { background: var(--bg-2); padding: 34px 30px; }
.kpis b { display: block; font-family: var(--head); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--white); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.kpis b i { font-style: normal; color: var(--orange); }

/* ---------- Contacto ---------- */
.contact2 { position: relative; padding: 170px 0 100px; overflow: hidden; }
.contact2__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 90px); }
.contact2 h1 { font-size: clamp(3.4rem, 10vw, 9rem); letter-spacing: -.06em; line-height: .9; margin-bottom: 30px; }
.contact2 h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--ice); }
.contact2__lead { font-size: 1.15rem; max-width: 560px; }
.msgs { margin: 34px 0; }
.msgs > .mono { display: block; margin-bottom: 14px; }
.msgs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--white); font-family: var(--head); font-weight: 500; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.msg:hover { border-color: var(--wa); background: rgba(37,211,102,.08); transform: translateY(-3px); }
.msg svg { color: var(--wa); }
.msg--urgent { border-color: rgba(255,107,31,.5); }
.msg--urgent i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,107,31,.7); animation: ping 1.6s infinite; margin-right: auto; margin-left: -2px; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,107,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,31,0); } }
.qr { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 26px; text-align: center; }
.qr__code { background: #fff; padding: 14px; border-radius: 10px; width: 210px; margin: 0 auto 18px; position: relative; }
.qr__code img { width: 100%; }
.qr__code::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 10px; background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14c-.2.6-1.3 1.2-1.8 1.3-.5 0-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.1.1.6-.1 1.2z'/%3E%3C/svg%3E") center/28px no-repeat; border: 4px solid #fff; }
.qr p { margin: 0; color: var(--white); font-family: var(--head); }
.qr small { color: var(--muted); font-size: .85rem; }
.info { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.info a, .info div { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--white); transition: background .2s; }
.info > :last-child { border-bottom: 0; }
.info a:hover { background: var(--surface); }
.info svg { color: var(--orange); width: 20px; height: 20px; }
.info small { display: block; font-family: var(--mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.map { margin-top: 80px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 360px; position: relative; z-index: 1; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

/* ---------- Pie ---------- */
.ft { border-top: 1px solid var(--line); padding-top: 80px; overflow: hidden; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ft h4 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft a { color: var(--white); transition: color .2s; }
.ft a:hover { color: var(--orange); }
.ft__big { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 13.5vw, 13rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; margin: 70px 0 0; text-align: center; user-select: none; }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 0; height: 60px; padding: 0 18px; border-radius: 99px; background: var(--wa); color: #04260f; font-family: var(--head); font-weight: 600; box-shadow: 0 16px 40px -10px rgba(37,211,102,.6); transition: gap .4s var(--ease), padding .4s var(--ease); overflow: hidden; }
.fab svg { width: 26px; height: 26px; }
.fab span { max-width: 0; white-space: nowrap; overflow: hidden; transition: max-width .5s var(--ease); }
.fab:hover, .fab.is-open { gap: 10px; padding: 0 22px; }
.fab:hover span, .fab.is-open span { max-width: 220px; }

/* ---------- Aparición ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.rv-clip.in { clip-path: inset(0 0 0 0); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hd__links { display: none; }
  .hd__menu { display: inline-flex; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__vis { max-width: 560px; margin-left: auto; width: 88%; }
  .thermo { left: -40px; }
  .need { grid-template-columns: 1fr; }
  .need__opts { grid-template-columns: repeat(3, 1fr); }
  .need__opt { flex-direction: column; align-items: flex-start; }
  .sectors2 { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .sectors2 div:nth-child(3) { border-right: 0; }
  .sectors2 div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-head p { justify-self: start; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(2) { border-right: 0; }
  .hstat:nth-child(3) { padding-left: 0; }
  .hstat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .need__panel { grid-template-columns: 1fr; }
  .need__panel .media { height: 240px; }
  .quote { grid-template-columns: 1fr; gap: 30px; }
  .quote__av { width: 140px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img:first-child { grid-column: span 2; }
  .trio img:nth-child(2) { margin-top: 0; }
  .trio img { height: 240px; }
  .founder2, .svc2, .contact2__in { grid-template-columns: 1fr; }
  .founder2__img { max-width: 460px; }
  .svc2__sticky { display: none; }
  .srow__mimg { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: var(--r); margin-bottom: 16px; }
  .steps2 { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps2::before, .steps2 .fill { display: none; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .kpis { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .acc .acc__body { padding: 0 0 26px 90px; }
}

@media (max-width: 600px) {
  :root { --wrap: calc(100% - 32px); }
  .hd__in { height: 72px; }
  .hd__wa span { display: none; }
  .hd__wa { padding: 10px 12px; }
  .hd__menu > span:first-child { display: none; }
  .hero { padding-top: 110px; }
  .hero__vis { width: 100%; }
  .thermo { left: 12px; bottom: 12px; width: 180px; padding: 14px; }
  .thermo__dial { width: 110px; height: 110px; }
  .thermo__num b { font-size: 2rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .need__opts { grid-template-columns: 1fr; }
  .need__opt { flex-direction: row; align-items: center; }
  .need__panel .body { padding: 28px 22px; }
  .sectors2 { grid-template-columns: 1fr 1fr; }
  .sectors2 div { border-bottom: 1px solid var(--line); }
  .sectors2 div:nth-child(odd) { border-right: 1px solid var(--line); }
  .sectors2 div:nth-child(even) { border-right: 0; }
  .acc summary { grid-template-columns: 40px 1fr 40px; gap: 12px; }
  .acc .acc__body { padding: 0 0 24px 52px; }
  .steps2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .strip { --gut: 16px; }
  .msgs__list { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; }
  .viewer__stage { padding: 12px; }
  .viewer__nav { top: auto; bottom: 10px; translate: none; }
  .final__btns .btn, .contact2 .btn--xl { width: 100%; justify-content: center; }
  .fab { right: 16px; bottom: 16px; height: 56px; padding: 0 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .rv-clip, .split .w > span { opacity: 1; transform: none; clip-path: none; }
}
