/* ==========================================================================
   Mi Solución Digital · Home 2026 (rediseño editorial)
   Paleta contenida: tinta, papel cálido y un solo acento (azul de marca).
   Móvil tiene su propio modelo: carruseles deslizables y barra de acción fija.
   ========================================================================== */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #0a0d12;
  --ink-2: #10151c;
  --ink-3: #1a212b;
  --paper: #f4f1eb;
  --paper-2: #e8e4db;
  --white: #fffdf9;
  --sky: #38b6ff;
  --blue: #1c90d4;
  --blue-deep: #0d6aa6;
  --wine: #af214e;
  --on-ink: #eef1f5;
  --on-ink-2: #9aa5b3;
  --on-paper: #1a2029;
  --on-paper-2: #5d6672;
  --line-ink: rgba(255, 255, 255, 0.14);
  --line-paper: rgba(10, 13, 18, 0.16);
  --f-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --sec-y: clamp(84px, 11vw, 176px);
  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------- Base ---------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body.h { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--on-paper); background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:where(.h) *, :where(.h) *::before, :where(.h) *::after { box-sizing: border-box; }
:where(.h) img, :where(.h) video { max-width: 100%; display: block; }
:where(.h) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
:where(.h) :where(ul, ol) { list-style: none; }
:where(.h) a { color: inherit; text-decoration: none; }
:where(.h) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.h) svg { width: 1em; height: 1em; flex: none; }
.h :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.h ::selection { background: var(--sky); color: var(--ink); }

.h-wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.h-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--sky); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; }
.h-skip:focus { left: 8px; }

/* ----------------------------- Tipografía ------------------------------ */
.h-kicker { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--on-paper-2); margin-bottom: clamp(18px, 2vw, 28px); }
.h-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.h-kicker--light { color: var(--on-ink-2); }
.h-h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.15rem, 4.9vw, 4.9rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h-h2--xl { font-size: clamp(2.6rem, 6.4vw, 6.4rem); }
.h-h2 em, .h-hero__title em { font-style: normal; color: var(--blue-deep); }
.h-sec--ink .h-h2 em, .h-hero__title em { color: var(--sky); }
.h-lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--on-paper-2); max-width: 58ch; text-wrap: pretty; }
.h-sec--ink .h-lead { color: var(--on-ink-2); }

/* ------------------------------ Botones -------------------------------- */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; line-height: 1.2; transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s; cursor: pointer; }
.h-btn svg { font-size: 1.15em; transition: transform 0.4s var(--ease); }
.h-btn:hover svg { transform: translate(3px, -3px); }
.h-btn:active { transform: scale(0.98); }
.h-btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.h-btn--block { width: 100%; }
.h-btn--sky { background: var(--sky); color: var(--ink); }
.h-btn--sky:hover { background: #6ccaff; box-shadow: 0 14px 40px -14px rgba(56, 182, 255, 0.75); }
.h-btn--ink { background: var(--ink); color: var(--on-ink); }
.h-btn--ink:hover { background: var(--blue-deep); }
.h-btn--paper { background: var(--paper); color: var(--ink); }
.h-btn--paper:hover { background: var(--sky); }
.h-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color 0.3s, gap 0.3s; }
.h-link:hover { color: var(--blue-deep); gap: 14px; }
.h-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line-ink); border-radius: 999px; color: var(--on-ink-2); }

/* ----------------------------- Navegación ------------------------------ */
.h-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: var(--on-ink); transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.h-nav.is-scrolled { background: rgba(10, 13, 18, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line-ink); }
.h-nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.h-nav__logo img { width: clamp(168px, 16vw, 216px); height: auto; }
.h-nav__menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.h-nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.h-nav__links a { position: relative; font-size: 0.92rem; font-weight: 500; padding: 8px 0; color: var(--on-ink); opacity: 0.86; transition: opacity 0.3s; }
.h-nav__links a span { display: none; }
.h-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.h-nav__links a:hover { opacity: 1; }
.h-nav__links a:hover::after { transform: scaleX(1); }
.h-nav__meta { display: flex; align-items: center; gap: 16px; }
.h-nav__loc { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-2); }
.h-nav__lang { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-ink); border-radius: 50%; transition: border-color 0.3s, color 0.3s; }
.h-nav__lang:hover { border-color: var(--sky); color: var(--sky); }
.h-nav__toggle { display: none; width: 48px; height: 48px; position: relative; margin-right: -10px; z-index: 2; }
.h-nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--on-ink); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.h-nav__toggle span:first-child { top: 19px; }
.h-nav__toggle span:last-child { top: 28px; }
.h-nav.is-open .h-nav__toggle span:first-child { top: 23.5px; transform: rotate(45deg); }
.h-nav.is-open .h-nav__toggle span:last-child { top: 23.5px; transform: rotate(-45deg); }

/* -------------------------------- Hero --------------------------------- */
.h-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; padding-top: var(--nav-h); background: var(--ink); color: var(--on-ink); overflow: hidden; }
.h-hero__photo { position: absolute; inset: 0 0 0 auto; width: 60%; z-index: -1; }
.h-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 24%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 22%, #000 48%), linear-gradient(0deg, transparent 0%, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 22%, #000 48%), linear-gradient(0deg, transparent 0%, #000 30%); mask-composite: intersect; animation: h-kenburns 22s ease-out both; }
.h-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,18,0.72) 0%, rgba(10,13,18,0) 26%), radial-gradient(120% 90% at 100% 100%, rgba(10,13,18,0.55), transparent 60%); }
@keyframes h-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.h-hero__inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: clamp(32px, 5vw, 88px); padding-block: clamp(32px, 6vh, 88px) clamp(28px, 4.5vh, 56px); }
.h-hero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 4.55vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; max-width: 17ch; }
.h-hero__sub { margin-top: clamp(22px, 2.6vw, 36px); max-width: 50ch; font-size: clamp(1.02rem, 1.3vw, 1.22rem); line-height: 1.65; color: #c4ccd6; }
.h-hero__actions { margin-top: clamp(28px, 3.2vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.h-play { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 500; }
.h-play__dot { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-ink); display: grid; place-items: center; font-size: 0.82rem; transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.45s var(--ease); }
.h-play:hover .h-play__dot { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); transform: scale(1.08); }

.h-funnel { justify-self: end; width: min(100%, 372px); padding: 22px 22px 18px; border: 1px solid var(--line-ink); border-radius: var(--r); background: rgba(10, 13, 18, 0.8); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.h-funnel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; padding-bottom: 14px; border-bottom: 1px solid var(--line-ink); }
.h-funnel__rows { display: grid; gap: 13px; padding: 16px 0; }
.h-funnel__rows li { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 0.82rem; color: #c4ccd6; }
.h-funnel__rows b { font-family: var(--f-display); font-weight: 600; color: var(--on-ink); font-variant-numeric: tabular-nums; }
.h-funnel__rows i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.h-funnel__rows i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--sky); transform-origin: left; }
.js .h-funnel__rows i::after { transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .h-funnel.is-in .h-funnel__rows i::after { transform: none; }
.h-funnel__ai { display: flex; gap: 10px; font-size: 0.8rem; line-height: 1.5; color: #c4ccd6; padding: 14px 0; border-top: 1px solid var(--line-ink); }
.h-funnel__ai svg { color: var(--sky); margin-top: 3px; }
.h-funnel__ai b { color: var(--on-ink); }
.h-funnel__events { display: grid; gap: 6px; }
.h-funnel__events span { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--on-ink-2); }
.h-funnel__events svg { color: var(--sky); }
.h-funnel__note { margin-top: 12px; font-size: 0.68rem; letter-spacing: 0.04em; color: #6c7785; }

.h-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-ink); }
.h-facts > div { padding: 20px 24px 24px 0; }
.h-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.h-facts dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-2); margin-bottom: 6px; }
.h-facts dd { font-family: var(--f-display); font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }

.h-ticker { border-top: 1px solid var(--line-ink); overflow: hidden; padding: 17px 0; background: var(--ink); }
.h-ticker__track { display: flex; width: max-content; animation: h-ticker 46s linear infinite; }
.h-ticker__track span { display: inline-flex; align-items: center; font-family: var(--f-display); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.h-ticker__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); margin: 0 30px; }
@keyframes h-ticker { to { transform: translateX(-50%); } }

/* ------------------------------ Secciones ------------------------------ */
.h-sec { position: relative; padding-block: var(--sec-y); }
.h-sec--paper { background: var(--paper); color: var(--on-paper); }
.h-sec--ink { background: var(--ink); color: var(--on-ink); }
.h-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(24px, 5vw, 96px); margin-bottom: clamp(48px, 6.5vw, 104px); }
.h-head--row { grid-template-columns: 1fr auto; }

/* Recorte de imágenes: muestra solo la escena útil (sin logo ni rótulos impresos) */
.h-shot, .h-step__img, .h-tech__shot { position: relative; overflow: hidden; aspect-ratio: var(--ar); border-radius: var(--r); background: var(--ink-3); }
.h-shot img, .h-step__img img, .h-tech__shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform: translateY(calc(var(--ty) * -1)); }

/* ----------------------------- Metodología ----------------------------- */
.h-method { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 6.5vw, 120px); align-items: start; }
.h-stage { position: sticky; top: calc(var(--nav-h) + 28px); height: calc(100vh - var(--nav-h) - 56px); max-height: 820px; display: flex; flex-direction: column; gap: 22px; }
.h-stage__frames { position: relative; flex: 1; min-height: 0; }
.h-shot { position: absolute; inset: 0; margin: auto; width: min(100%, calc((min(100vh, 876px) - var(--nav-h) - 126px) * (var(--ar)))); opacity: 0; transform: scale(1.035); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); box-shadow: 0 50px 90px -50px rgba(10, 13, 18, 0.55); }
.h-shot.is-on { opacity: 1; transform: none; }
.h-stage__meter { display: flex; align-items: center; gap: 16px; font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; color: var(--on-paper-2); }
.h-stage__meter b:first-child { color: var(--on-paper); }
.h-stage__meter span { flex: 1; height: 1px; background: var(--line-paper); position: relative; }
.h-stage__meter i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--blue-deep); transition: width 0.8s var(--ease); }

.h-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: 0.26; transition: opacity 0.6s var(--ease); }
.h-step.is-on { opacity: 1; }
.h-step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 0; }
.h-step:last-child { min-height: 62vh; }
.h-step__img { display: none; }
.h-step__num { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.4rem, 6.5vw, 6.2rem); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--on-paper); margin-bottom: clamp(16px, 2vw, 26px); transition: color 0.6s, -webkit-text-stroke-color 0.6s; }
.h-step.is-on .h-step__num { color: var(--blue-deep); -webkit-text-stroke-color: var(--blue-deep); }
.h-step__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.h-step > p { max-width: 46ch; color: var(--on-paper-2); }
.h-step > p b { color: var(--on-paper); font-weight: 600; }
.h-ai { display: flex; gap: 14px; margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--line-paper); font-size: 0.93rem; line-height: 1.6; }
.h-ai svg { color: var(--blue-deep); font-size: 1.1rem; margin-top: 3px; }
.h-ai b { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-deep) !important; margin-bottom: 4px; }
.h-loop { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--on-paper) !important; }
.h-loop svg { color: var(--blue-deep); }
.h-method__dots { display: none; }

.h-claim { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 80px); margin-top: clamp(56px, 7vw, 112px); padding-block: clamp(32px, 4vw, 56px); border-block: 1px solid var(--on-paper); }
.h-claim p { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2.7vw, 2.5rem); line-height: 1.14; letter-spacing: -0.028em; max-width: 30ch; text-wrap: balance; }

/* ------------------------------- Embudo -------------------------------- */
.h-duo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(40px, 7vw, 128px); }
.h-duo .h-h2 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.h-rules { margin: clamp(30px, 3.6vw, 48px) 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-ink); }
.h-rules li { display: flex; align-items: center; gap: 14px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-ink); font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.h-rules li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-ink); }
.h-rules svg { color: var(--sky); font-size: 1.15rem; }

.h-flow { position: relative; isolation: isolate; padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-ink); border-radius: var(--r); background: radial-gradient(90% 70% at 50% 0%, rgba(56, 182, 255, 0.13), transparent 70%), var(--ink-2); overflow: hidden; }
.h-flow__video { --p: clamp(24px, 3vw, 44px); margin: calc(var(--p) * -1) calc(var(--p) * -1) calc(var(--p) * -0.6); aspect-ratio: 16 / 9; background: radial-gradient(80% 90% at 50% 0%, rgba(56, 182, 255, 0.16), transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
.h-flow__video video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.h-flow__video video.is-ready { opacity: 0.92; }
.h-flow__in { position: relative; }
.h-flow__in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.h-flow__in li { text-align: center; padding: 11px 4px; border: 1px solid var(--line-ink); border-radius: 4px; background: rgba(10, 13, 18, 0.6); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; color: #c4ccd6; }
.h-flow__lines { display: block; width: 100%; height: clamp(54px, 7vw, 92px); overflow: visible; }
.h-flow__lines path { fill: none; stroke: var(--sky); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0.55; stroke-dasharray: 4 6; animation: h-dash 2.4s linear infinite; }
@keyframes h-dash { to { stroke-dashoffset: -20; } }
.h-flow__stages { display: grid; gap: 6px; justify-items: center; }
.h-flow__stages li { width: var(--w); display: flex; align-items: center; justify-content: center; gap: 12px; min-height: clamp(50px, 5.4vw, 68px); border-radius: 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(0.95rem, 1.4vw, 1.2rem); letter-spacing: -0.01em; color: var(--ink); background: var(--sky); }
.h-flow__stages li:nth-child(2) { background: #2a9fe6; }
.h-flow__stages li:nth-child(3) { background: #1c88ca; color: #fff; }
.h-flow__stages li:nth-child(4) { background: var(--paper); }
.h-flow__stages span { font-size: 0.7em; opacity: 0.6; font-variant-numeric: tabular-nums; }
.h-flow figcaption { margin-top: 24px; text-align: center; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-2); }

/* ----------------------------- Experiencia ----------------------------- */
.h-bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); }
.h-tile { position: relative; display: flex; flex-direction: column; min-height: clamp(300px, 30vw, 440px); padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r); overflow: hidden; }
.h-tile--ink { background: var(--ink); color: var(--on-ink); }
.h-tile--sky { background: var(--sky); color: var(--ink); }
.h-tile--white { background: var(--white); color: var(--on-paper); box-shadow: inset 0 0 0 1px var(--line-paper); }
.h-tile__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; opacity: 0.62; }
.h-tile b { margin-top: auto; font-family: var(--f-display); font-weight: 500; font-size: clamp(5.2rem, 11.5vw, 11rem); line-height: 0.84; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; }
.h-tile--ink b { color: var(--sky); }
.h-tile__cap { margin-top: 14px; font-family: var(--f-display); font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em; }
.h-years { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; color: var(--on-ink-2); }
.h-years i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-ink), var(--sky)); position: relative; }
.h-years i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(56, 182, 255, 0.2); }
.h-route { position: absolute; right: clamp(16px, 2vw, 28px); top: clamp(52px, 5vw, 76px); width: 58%; height: auto; overflow: visible; }
.h-route path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 5; }
.h-route circle { fill: var(--ink); }
.h-route text { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; fill: var(--ink); }
.h-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 22px; }
.h-bars i { height: 6px; border-radius: 3px; background: var(--blue-deep); opacity: 0.2; }
.h-bars i:nth-child(1) { opacity: 1; } .h-bars i:nth-child(2) { opacity: 0.8; } .h-bars i:nth-child(3) { opacity: 0.6; } .h-bars i:nth-child(4) { opacity: 0.42; } .h-bars i:nth-child(5) { opacity: 0.26; }

.h-sect { margin-top: clamp(10px, 1.2vw, 18px); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-paper); background: var(--white); }
.h-sect__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-sect__grid > li { min-height: clamp(150px, 15vw, 210px); padding: clamp(18px, 2vw, 28px); border-right: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); }
.h-sect__grid > li:nth-child(4n) { border-right: 0; }
.h-sect__head h3, .h-sect__ops h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 10px; }
.h-sect__head p { font-size: 0.9rem; color: var(--on-paper-2); }
.h-sect__item { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; counter-increment: sect; position: relative; transition: background-color 0.45s var(--ease), color 0.45s var(--ease); }
.h-sect__item::after { content: "0" counter(sect); position: absolute; right: clamp(18px, 2vw, 28px); top: clamp(18px, 2vw, 28px); font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; opacity: 0.45; }
.h-sect__item svg { font-size: clamp(1.7rem, 2.4vw, 2.3rem); color: var(--blue-deep); stroke-width: 1.5; transition: color 0.45s, transform 0.6s var(--ease); }
.h-sect__item b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.h-sect__item:hover { background: var(--ink); color: var(--on-ink); }
.h-sect__item:hover svg { color: var(--sky); transform: translateY(-4px); }
.h-sect__grid { counter-reset: sect; }
.h-sect__ops { display: grid; grid-template-columns: 1fr 3fr; align-items: center; background: var(--ink); color: var(--on-ink); }
.h-sect__ops > div { padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2vw, 28px); }
.h-sect__ops p { font-size: 0.9rem; color: var(--on-ink-2); }
.h-sect__ops ul { display: grid; grid-template-columns: 1fr 1.6fr; height: 100%; }
.h-sect__ops li { display: flex; align-items: center; gap: 16px; padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2vw, 28px); border-left: 1px solid var(--line-ink); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.02rem, 1.4vw, 1.3rem); line-height: 1.25; letter-spacing: -0.02em; }
.h-sect__ops svg { font-size: 1.5rem; color: var(--sky); }


.h-index { margin-top: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--on-paper); }
.h-index li { position: relative; display: grid; grid-template-columns: clamp(64px, 9vw, 150px) minmax(0, 1.1fr) minmax(0, 1fr) 64px; align-items: center; gap: clamp(16px, 3vw, 56px); padding: clamp(24px, 2.8vw, 40px) clamp(0px, 1.6vw, 24px); border-top: 1px solid var(--on-paper); isolation: isolate; transition: color 0.5s var(--ease), padding 0.6s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.h-index li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.h-index__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--on-paper); transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.h-index h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 2.5vw, 2.35rem); line-height: 1.06; letter-spacing: -0.032em; text-wrap: balance; }
.h-index p { font-size: 1rem; color: var(--on-paper-2); max-width: 44ch; transition: color 0.5s; }
.h-index__ic { justify-self: end; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-paper); display: grid; place-items: center; font-size: 1.5rem; color: var(--blue-deep); transition: background-color 0.5s, color 0.5s, border-color 0.5s, transform 0.7s var(--ease); }
.h-index__ic svg { stroke-width: 1.6; }
@media (hover: hover) {
  .h-index li:hover { color: var(--on-ink); padding-inline: clamp(12px, 2.4vw, 36px); }
  .h-index li:hover::before { transform: none; }
  .h-index li:hover .h-index__n { color: var(--sky); -webkit-text-stroke-color: var(--sky); }
  .h-index li:hover p { color: #c4ccd6; }
  .h-index li:hover .h-index__ic { background: var(--sky); border-color: var(--sky); color: var(--ink); transform: rotate(-8deg) scale(1.06); }
}

/* ------------------------------ Tecnología ----------------------------- */
.h-tech { overflow: hidden; isolation: isolate; }
.h-tech__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(40px, 6.5vw, 120px); }
.h-tech__top .h-h2 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: clamp(20px, 2.4vw, 30px); }
.h-tech__shot { box-shadow: 0 60px 120px -50px #000; }
.h-checks { margin-top: clamp(26px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.h-checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.h-checks svg { color: var(--sky); font-size: 1.25rem; }
.h-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); margin-top: clamp(56px, 7vw, 112px); }
.h-caps article { position: relative; display: flex; flex-direction: column; padding: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px) clamp(22px, 2.2vw, 30px); border: 1px solid var(--line-ink); border-radius: var(--r); background: linear-gradient(180deg, var(--ink-2), rgba(16, 21, 28, 0.35)); transition: border-color 0.5s, transform 0.7s var(--ease), opacity 1s var(--ease); }
.h-caps__art { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: clamp(18px, 2vw, 26px); border-radius: 4px; background: radial-gradient(90% 90% at 50% 0%, rgba(56, 182, 255, 0.16), transparent 70%), linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 20px, linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 20px 100%, var(--ink); overflow: hidden; }
.h-caps__art svg { width: 74%; height: auto; overflow: visible; fill: none; stroke: #7f8b99; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s, transform 0.8s var(--ease); }
.h-caps__art .f { fill: var(--sky); stroke: var(--sky); }
.h-caps__art .k { stroke: var(--ink); stroke-width: 2; }
.h-caps__n { font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--sky); margin: 0 6px 12px; }
.h-caps h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.12; letter-spacing: -0.028em; margin: 0 6px 10px; }
.h-caps p { font-size: 0.93rem; color: var(--on-ink-2); margin-inline: 6px; }
@media (hover: hover) {
  .h-caps article:hover { border-color: rgba(56, 182, 255, 0.6); transform: translateY(-6px); }
  .h-caps article:hover .h-caps__art svg { stroke: #dfe6ee; transform: scale(1.05); }
}
.h-cine { position: relative; isolation: isolate; margin-top: clamp(40px, 5vw, 80px); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; min-height: 320px; width: 100%; display: flex; align-items: flex-end; background: var(--ink-2); }
.h-cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; opacity: 0; transition: opacity 1.4s var(--ease); }
.h-cine video.is-ready { opacity: 1; }
.h-cine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 18, 0.94) 0%, rgba(10, 13, 18, 0.55) 42%, rgba(10, 13, 18, 0.12) 78%), linear-gradient(90deg, rgba(10, 13, 18, 0.5), transparent 60%); }
.h-cine p { padding: clamp(22px, 3.4vw, 56px); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2.9vw, 2.8rem); line-height: 1.1; letter-spacing: -0.032em; max-width: 26ch; text-wrap: balance; }

/* ------------------------------ Proyectos ------------------------------ */
.h-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.h-chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-paper); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--on-paper-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.h-chip:hover { border-color: var(--on-paper); color: var(--on-paper); }
.h-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.h-cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); counter-reset: caso; }
.h-case { position: relative; overflow: hidden; border-radius: var(--r); color: #fff; counter-increment: caso; isolation: isolate; }
.h-case.is-hidden { display: none; }
.h-case--wide { grid-column: 1 / -1; }
.h-case__img { aspect-ratio: 5 / 4; background: var(--ink-3); }
.h-case--wide .h-case__img { aspect-ratio: 5 / 2; }
.h-case__img img, .h-case__img picture { display: block; width: 100%; height: 100%; }
.h-case__img img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.6s var(--ease); }
.h-case:hover .h-case__img img { transform: scale(1.05); }
.h-case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 13, 18, 0.9) 0%, rgba(10, 13, 18, 0.35) 34%, rgba(10, 13, 18, 0) 58%), linear-gradient(180deg, rgba(10, 13, 18, 0.45) 0%, rgba(10, 13, 18, 0) 22%); z-index: 1; }
.h-case::before { content: "0" counter(caso); position: absolute; left: clamp(18px, 2.2vw, 32px); top: clamp(16px, 2vw, 28px); z-index: 2; font-family: var(--f-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; }
.h-case::after { content: ""; position: absolute; right: clamp(18px, 2.2vw, 32px); top: clamp(16px, 2vw, 28px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); opacity: 0; transform: translate(-8px, 8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.4s; }
.h-case:hover::after { opacity: 1; transform: none; }
.h-case figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 6px; padding: clamp(18px, 2.2vw, 32px); }
.h-case strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3.1vw, 3rem); line-height: 1; letter-spacing: -0.035em; }
.h-case em { font-style: normal; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.h-case figcaption span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.h-deck { display: none; }

/* ----------------------------- Testimonios ----------------------------- */
.h-slider-nav { display: flex; gap: 10px; }
.h-round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-ink); display: grid; place-items: center; font-size: 1.2rem; transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s; }
.h-round:hover:not(:disabled) { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.h-round:disabled { opacity: 0.3; cursor: default; }
.h-testi { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); gap: clamp(28px, 5vw, 88px); align-items: stretch; }
.h-testi__video { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-2); min-height: 420px; }
.h-testi__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; opacity: 0; transition: opacity 1.4s var(--ease); }
.h-testi__video video.is-ready { opacity: 1; }
.h-testi__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 13, 18, 0.5), transparent 45%); }
.h-testi__body { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.h-quotes { display: flex; gap: clamp(20px, 3vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.h-quotes::-webkit-scrollbar { display: none; }
.h-quote { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 4vw, 56px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-ink); }
.h-quote blockquote { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 2.15vw, 2.1rem); line-height: 1.24; letter-spacing: -0.028em; text-wrap: pretty; }
.h-quote blockquote::before { content: "“"; display: block; font-size: 2.2em; line-height: 0.6; color: var(--sky); margin-bottom: 0.18em; }
.h-quote figcaption { display: flex; align-items: center; gap: 16px; }
.h-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--ink-3); }
.h-quote cite { font-style: normal; display: grid; }
.h-quote cite b { font-family: var(--f-display); font-weight: 600; }
.h-quote cite span { font-size: 0.88rem; color: var(--on-ink-2); }
.h-stars { margin-left: auto; color: var(--sky); letter-spacing: 0.2em; font-size: 0.85rem; }
.h-dots { display: flex; gap: 8px; margin-top: clamp(28px, 3vw, 44px); }
.h-dots button { width: 32px; height: 3px; background: var(--line-ink); transition: background-color 0.3s, width 0.4s var(--ease); position: relative; }
.h-dots button::after { content: ""; position: absolute; inset: -14px 0; }
.h-dots button[aria-current="true"] { background: var(--sky); width: 60px; }

/* -------------------------------- Blog --------------------------------- */
.h-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.h-post { position: relative; display: flex; flex-direction: column; }
.h-post__img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 2; background: var(--paper-2); margin-bottom: 20px; }
.h-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.h-post:hover .h-post__img img { transform: scale(1.045); }
.h-post__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-paper-2); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-paper); }
.h-post__meta span:first-child { color: var(--blue-deep); }
.h-post h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1.75vw, 1.6rem); line-height: 1.16; letter-spacing: -0.025em; margin-bottom: 12px; }
.h-post h3 a::after { content: ""; position: absolute; inset: 0; }
.h-post > p:not(.h-post__meta) { font-size: 0.95rem; color: var(--on-paper-2); margin-bottom: 20px; }
.h-post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; transition: gap 0.3s, color 0.3s; }
.h-post:hover .h-post__more { gap: 14px; color: var(--blue-deep); }

/* ------------------------------ Contacto ------------------------------- */
.h-contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6.5vw, 120px); align-items: start; }
.h-contact .h-h2 { margin-bottom: clamp(18px, 2vw, 28px); }
.h-contact__list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-ink); }
.h-contact__list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-ink); }
.h-contact__list dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-2); padding-top: 6px; }
.h-contact__list dd { font-family: var(--f-display); font-size: clamp(1.02rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.h-contact__list a { transition: color 0.3s; }
.h-contact__list a:hover { color: var(--sky); }
.h-map { margin-top: 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-ink); }
.h-map iframe { display: block; width: 100%; height: 240px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg); }
.h-form { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--paper); color: var(--on-paper); padding: clamp(26px, 3.4vw, 48px); border-radius: var(--r); }
.h-form h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.h-form > p { margin-top: 8px; color: var(--on-paper-2); font-size: 0.95rem; }
.h-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin: 28px 0; }
.h-field--full { grid-column: 1 / -1; }
.h-field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--on-paper-2); margin-bottom: 4px; }
.h-field input, .h-field textarea { width: 100%; font: inherit; font-size: 1.02rem; color: var(--on-paper); background: transparent; border: 0; border-bottom: 1px solid var(--line-paper); border-radius: 0; padding: 10px 0 12px; transition: border-color 0.3s; resize: vertical; }
.h-field input::placeholder, .h-field textarea::placeholder { color: #9aa0a8; }
.h-field input:focus, .h-field textarea:focus { outline: 0; border-bottom-color: var(--blue-deep); box-shadow: 0 1px 0 var(--blue-deep); }
.h-form__legal { margin-top: 16px !important; font-size: 0.8rem !important; text-align: center; }
.h-form__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- Footer -------------------------------- */
.h-footer { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--line-ink); padding-top: clamp(48px, 6vw, 88px); font-size: 0.95rem; }
.h-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: clamp(28px, 5vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.h-footer__grid img { width: 220px; height: auto; margin-bottom: 20px; }
.h-footer__grid p { max-width: 44ch; }
.h-footer h4 { margin: 0 0 18px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink); }
.h-footer li + li { margin-top: 10px; }
.h-footer a { transition: color 0.3s; }
.h-footer a:hover { color: var(--sky); }
.h-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; border-top: 1px solid var(--line-ink); font-size: 0.8rem; }

/* --------------------- WhatsApp, barra móvil y video -------------------- */
.h-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55); transition: transform 0.4s var(--ease); }
.h-wa:hover { transform: scale(1.08); }
.h-wa img { width: 100%; height: 100%; }
.h-dock { display: none; }
.h-dialog { width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; overflow: visible; }
.h-dialog::backdrop { background: rgba(5, 7, 10, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.h-dialog__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.h-dialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.h-dialog__close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; border: 1px solid rgba(255, 255, 255, 0.3); }

/* ------------------------------ Revelado ------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ========================== Tablet (≤ 1080px) ========================== */
@media (max-width: 1080px) {
  .h-caps { grid-template-columns: 1fr 1fr; }
  .h-nav__loc { display: none; }
  .h-nav__links { gap: 18px; }
}

/* ===================== Móvil y tablet vertical (≤ 900px) ===================== */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  body.h { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Menú a pantalla completa */
  .h-nav__toggle { display: block; }
  .h-nav__menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: calc(var(--nav-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; overflow-y: auto; }
  .h-nav.is-open .h-nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .h-nav.is-open { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .h-nav__logo { position: relative; z-index: 2; }
  .h-nav__links { flex-direction: column; gap: 0; border-top: 1px solid var(--line-ink); }
  .h-nav__links a { display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-ink); font-family: var(--f-display); font-size: clamp(1.7rem, 7.6vw, 2.3rem); font-weight: 500; letter-spacing: -0.03em; opacity: 1; }
  .h-nav__links a span { display: inline; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--sky); }
  .h-nav__links a::after { display: none; }
  .h-nav__meta { justify-content: space-between; }
  .h-nav__loc { display: inline; }
  .h-nav__meta .h-btn { display: none; }
  body.h-lock { overflow: hidden; }

  /* Hero: la foto arriba y el mensaje montado sobre ella */
  .h-hero { min-height: 0; padding-top: 0; }
  .h-hero__photo { position: relative; inset: auto; width: 100%; height: 62svh; min-height: 380px; max-height: 620px; z-index: -1; }
  .h-hero__photo img { object-position: 58% 20%; -webkit-mask-image: linear-gradient(0deg, transparent 2%, #000 58%); mask-image: linear-gradient(0deg, transparent 2%, #000 58%); -webkit-mask-composite: initial; mask-composite: initial; }
  .h-hero__photo::after { background: linear-gradient(180deg, rgba(10,13,18,0.78) 0%, rgba(10,13,18,0) 30%); }
  .h-hero__inner { display: block; margin-top: -26svh; padding-block: 0 8px; }
  .h-hero__title { font-size: clamp(2.3rem, 10.4vw, 3.6rem); line-height: 1; max-width: none; }
  .h-hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .h-hero__actions .h-btn { width: 100%; padding-inline: 20px; font-size: 0.97rem; }
  .h-play { justify-content: center; }
  .h-funnel { width: 100%; margin-top: 36px; }
  .h-facts { margin-top: 36px; grid-template-columns: 1fr; }
  .h-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
  .h-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-ink); }
  .h-facts dt { margin: 0; }
  .h-facts dd { text-align: right; }
  .h-ticker { margin-top: 8px; }

  .h-head, .h-head--row { grid-template-columns: 1fr; gap: 20px; }
  .h-head--row .h-slider-nav { display: none; }

  /* Metodología: tarjetas deslizables, una por paso */
  .h-method { display: block; }
  .h-stage { display: none; }
  .h-steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .h-steps::-webkit-scrollbar { display: none; }
  .h-step, .h-step:first-child, .h-step:last-child { flex: 0 0 86%; max-width: 440px; min-height: 0; scroll-snap-align: start; opacity: 1; justify-content: flex-start; padding: 0 0 26px; background: var(--white); border-radius: var(--r); overflow: hidden; }
  .h-step__img { display: block; border-radius: 0; margin-bottom: 22px; }
  .h-step > :not(.h-step__img) { margin-inline: 20px; }
  .h-step__num { font-size: 3.2rem; color: var(--blue-deep); -webkit-text-stroke-color: var(--blue-deep); margin-bottom: 12px; }
  .h-step__title { font-size: 1.6rem; }
  .h-method__dots { display: flex; gap: 6px; margin-top: 20px; }
  .h-method__dots button { flex: 1; height: 44px; display: grid; place-items: center; position: relative; font-family: var(--f-display); font-size: 0.78rem; font-weight: 600; color: var(--on-paper-2); }
  .h-method__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-paper); transition: background-color 0.3s; }
  .h-method__dots button[aria-current="true"] { color: var(--on-paper); }
  .h-method__dots button[aria-current="true"]::before { background: var(--blue-deep); }

  .h-claim { grid-template-columns: 1fr; }
  .h-claim .h-btn { width: 100%; }

  .h-duo, .h-tech__top, .h-contact__grid { grid-template-columns: 1fr; }
  .h-rules { grid-template-columns: 1fr; }
  .h-rules li:nth-child(even) { padding-left: 0; border-left: 0; }
  .h-duo .h-btn { width: 100%; }
  .h-flow__in li { font-size: 0.64rem; padding: 9px 2px; }


  /* Pilares, capacidades, proyectos y blog: carruseles con borde a sangre */
  .h-bento { grid-template-columns: 1fr 1fr; }
  .h-tile { min-height: 230px; }
  .h-tile--ink { grid-column: 1 / -1; min-height: 260px; }
  .h-tile b { font-size: clamp(4.6rem, 24vw, 7rem); }
  .h-tile--ink b { font-size: clamp(6rem, 34vw, 9.5rem); }
  .h-route { display: none; }
  .h-sect__grid { grid-template-columns: 1fr 1fr; }
  .h-sect__grid > li { min-height: 132px; }
  .h-sect__grid > li:nth-child(4n) { border-right: 1px solid var(--line-paper); }
  .h-sect__grid > li:nth-child(odd) { border-right: 0; }
  .h-sect__head { grid-column: 1 / -1; min-height: 0 !important; border-right: 0 !important; }
  .h-sect__item:last-child { grid-column: 1 / -1; min-height: 110px; }
  .h-sect__ops, .h-sect__ops ul { grid-template-columns: 1fr; }
  .h-sect__ops li { border-left: 0; border-top: 1px solid var(--line-ink); padding-block: 18px; }

  /* Proyectos: baraja de pósters; el que está al centro toma el protagonismo */
  .h-cases { scroll-snap-type: x mandatory; gap: 0 !important; padding-inline: 9% !important; scroll-padding-inline: 0 !important; padding-block: 6px 4px; }
  .h-case { flex: 0 0 100% !important; max-width: none !important; scroll-snap-align: center !important; transform: scale(0.9); opacity: 0.5; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
  .h-case.is-current { transform: none; opacity: 1; }
  .h-case__img, .h-case--wide .h-case__img { aspect-ratio: 4 / 5; }
  .h-case::after { opacity: 1; transform: none; width: 40px; height: 40px; }
  .h-case strong { font-size: 2rem; }
  .h-deck { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--on-paper-2); }
  .h-deck b:first-child { color: var(--on-paper); }
  .h-deck span { flex: 1; height: 1px; background: var(--line-paper); position: relative; }
  .h-deck i { position: absolute; left: 0; top: -1px; height: 3px; width: 16.6%; background: var(--blue-deep); transition: width 0.6s var(--ease); }

  .h-caps, .h-cases, .h-posts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .h-caps::-webkit-scrollbar, .h-cases::-webkit-scrollbar, .h-posts::-webkit-scrollbar { display: none; }
  .h-caps article, .h-case, .h-post { flex: 0 0 80%; max-width: 400px; scroll-snap-align: start; }
  .h-caps article { flex-basis: 76%; }
  .h-index li { grid-template-columns: auto 1fr 48px; grid-template-areas: "n t i" "p p p"; align-items: center; gap: 12px 16px; padding: 22px 0; }
  .h-index__n { grid-area: n; font-size: 2.1rem; }
  .h-index h3 { grid-area: t; font-size: 1.35rem; }
  .h-index p { grid-area: p; }
  .h-index__ic { grid-area: i; width: 48px; height: 48px; font-size: 1.2rem; }
  .h-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .h-filters::-webkit-scrollbar { display: none; }
  .h-chip { flex: none; }

  .h-testi { grid-template-columns: 1fr; gap: 24px; }
  .h-testi__video { min-height: 0; aspect-ratio: 16 / 10; }
.h-cine { aspect-ratio: 4 / 5; }
  .h-cine video { object-position: 62% 50%; }
  .h-quote { flex-basis: 88%; }
  .h-quote blockquote { font-size: 1.28rem; line-height: 1.32; }
  .h-stars { display: none; }

  .h-form { position: static; }
  .h-fields { grid-template-columns: 1fr; }
  .h-contact__list > div { grid-template-columns: 1fr; gap: 2px; }
  .h-footer__grid { grid-template-columns: 1fr 1fr; }
  .h-footer__grid > div:first-child { grid-column: 1 / -1; }

  /* Barra de acción fija: el diagnóstico siempre al alcance del pulgar */
  .h-wa { display: none; }
  .h-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 13, 18, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line-ink); transform: translateY(110%); transition: transform 0.55s var(--ease); }
  .h-dock.is-on { transform: none; }
  .h-dock__main { flex: 1; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--sky); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
  .h-dock__main svg { font-size: 1.3rem; }
  .h-dock__alt { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-ink); color: var(--on-ink); font-size: 1.25rem; }
}

@media (max-width: 420px) {
  .h-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h *, .h *::before, .h *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .h-funnel__rows i::after { transform: none; }
}
