/* ============================================================
   Centro Digital de Diseño · lenguaje visual "Apple"
   Blanco / gris plata / negro profundo, Montserrat con tracking
   cerrado, imágenes de producto enormes en marcos de doble bisel,
   movimiento con curva cubic-bezier(.32,.72,0,1).
   Radios: bisel 32px exterior / 24px interior, tiles 28px, botones píldora.
   ============================================================ */
:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --gray-2: #e8e8ed;
  --black: #0a0a0c;
  --black-2: #151518;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --blue: #1557FF;
  --blue-hover: #0f46d6;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --shadow-soft: 0 30px 80px rgba(29, 29, 31, .08), 0 4px 14px rgba(29, 29, 31, .04);
  --shadow-dark: 0 40px 100px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
/* el atributo hidden gana siempre: si no, un display de clase lo anula (panel de WhatsApp, menu, iconos svg) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 14px; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(120px, 14vw, 200px); }
.gray { background: var(--gray); }
.dark { background: var(--black); color: var(--gray); }
.center { text-align: center; }
.section-head { max-width: 860px; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head.center { margin-inline: auto; }

/* ---------- tipografía ---------- */
h1 { font-size: clamp(42px, 6vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: 1; text-wrap: balance; max-width: 17ch; margin-inline: auto; }
h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.5vw, 23px); font-weight: 400; line-height: 1.45; color: var(--muted); max-width: 62ch; letter-spacing: -.01em; }
.dark .lead { color: rgba(245, 245, 247, .68); }
.label { font-size: 15px; font-weight: 600; color: var(--blue); letter-spacing: -.01em; }
.grad { background: linear-gradient(92deg, #5b8cff, #1557FF 45%, #7ea6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; letter-spacing: -.01em;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.btn .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-size: 16px; background: rgba(255, 255, 255, .2); transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ic { transform: translate(2px, -2px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 10px 10px 10px 30px; font-size: 18px; }
.btn-lg .ic { width: 40px; height: 40px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 500; font-size: 17px; transition: gap .4s var(--ease); }
.link:hover { gap: 8px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta-row.center { justify-content: center; }

/* ---------- puntero de marca (fotograma de CDD_click_pressed.ani a 32 px;
   el CSS no puede animar un cursor, y los .ani no los admite el navegador) ---------- */
html { cursor: url("assets/cursor-cdd.png") 7 2, auto; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.mark { width: 26px; height: 26px; flex: none; }

/* ---------- nav: isla de cristal flotante ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 18px; border-radius: 999px; width: max-content; max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 40px rgba(29, 29, 31, .10);
}
.nav-links { display: flex; gap: 22px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.nav-links a { transition: color .4s var(--ease); }
.nav-links a:hover { color: var(--blue); }
.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(255, 255, 255, .82); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.menu a { font-size: clamp(32px, 8vw, 44px); font-weight: 700; letter-spacing: -.04em; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: .06s; } .menu.is-open a:nth-child(3) { transition-delay: .12s; }
.menu.is-open a:nth-child(4) { transition-delay: .18s; } .menu.is-open a:nth-child(5) { transition-delay: .24s; } .menu.is-open a:nth-child(6) { transition-delay: .3s; }
.menu .btn { font-size: 16px; letter-spacing: -.01em; margin-top: 16px; align-self: center; }

/* ---------- doble bisel (marco de dispositivo) ---------- */
.bezel { padding: 8px; border-radius: 32px; background: rgba(29, 29, 31, .04); box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .06); }
.bezel > img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, .5); }
.dark .bezel { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); }
.dark .bezel > img { box-shadow: var(--shadow-dark); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(150px, 18vw, 220px); padding-bottom: clamp(80px, 8vw, 120px); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-copy .lead { max-width: 46ch; }
.hero-visual { margin-top: clamp(64px, 8vw, 110px); }
.hero-visual .bezel > img { aspect-ratio: 1254 / 540; }

/* ---------- escena fijada: problema → sistema ---------- */
.scene { padding: 0; }
.scene-inner { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 4vh, 56px); padding: 96px var(--gutter) 64px; }
.scene-copy { display: grid; width: 100%; max-width: 820px; text-align: center; }
.scene-text { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.scene-text .lead { max-width: 52ch; }
.scene-b { opacity: 0; }
.stage { position: relative; --r: 42%; width: min(560px, 82vw, 56vh); aspect-ratio: 1; flex: none; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage line { stroke: var(--blue); stroke-width: .6; vector-effect: non-scaling-stroke; opacity: .9; }
.core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-radius: 20px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: -.01em; box-shadow: 0 30px 80px rgba(21, 87, 255, .25); }
.chip { position: absolute; left: calc(50% + var(--r) * cos(var(--a))); top: calc(50% + var(--r) * sin(var(--a))); translate: -50% -50%; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; white-space: nowrap; color: #fff; }

/* ---------- capacidades: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 400px; gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.tile-copy { position: relative; z-index: 1; padding: 36px 36px 0; display: flex; flex-direction: column; gap: 10px; }
.tile-copy p { color: var(--muted); font-size: 16px; max-width: 42ch; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover > img { transform: scale(1.03); }
.tile-a { grid-column: span 2; }
.tile-a .tile-copy { max-width: 50%; }
.tile-a > img { left: auto; right: 0; width: 52%; object-position: 50% 18%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%); mask-image: linear-gradient(to right, transparent 0, #000 28%); }
.tile-b > img { object-position: 50% 100%; top: 44%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%); mask-image: linear-gradient(to bottom, transparent 0, #000 25%); }
.tile-d > img { top: auto; left: auto; right: 24px; bottom: -8px; width: 52%; height: auto; border-radius: 14px; box-shadow: var(--shadow-soft); }
.tile-e > img { top: 46%; height: auto; object-position: 40% 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
.tile-f { grid-column: span 3; flex-direction: row; align-items: center; }
.tile-f .tile-copy { padding: 36px 40px; max-width: 46%; }
.tile-f > img { left: auto; right: 0; width: 58%; object-position: 20% 40%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 25%); mask-image: linear-gradient(to right, transparent 0, #000 25%); }
.tile-dark { background: var(--black-2); color: var(--gray); box-shadow: none; }
.tile-dark .tile-copy p { color: rgba(245, 245, 247, .6); }
.tile-big { margin-top: auto; padding: 0 36px 20px; font-size: clamp(120px, 12vw, 200px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: var(--blue); }

/* ---------- casos ---------- */
.case { padding-block: clamp(96px, 10vw, 160px); }
.case-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 920px; margin-bottom: clamp(48px, 6vw, 80px); }
/* video de proyecto: a todo el ancho, se reproduce silenciado y en bucle al entrar en pantalla */
.reel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; margin-bottom: clamp(56px, 6vw, 88px); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mute-toggle {
  position: absolute; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.mute-toggle:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .24); }
.mute-toggle:active { transform: scale(.96); }
.mute-toggle svg { width: 18px; height: 18px; }
.mute-toggle svg[hidden] { display: none; } /* Chromium no aplica [hidden] a <svg> por defecto */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(56px, 6vw, 88px); }
.facts h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.facts p { color: var(--muted); font-size: 16px; }
.dark .facts p { color: rgba(245, 245, 247, .62); }
.facts-stack { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 40px; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip span { flex: none; scroll-snap-align: start; padding: 10px 16px; border-radius: 999px; background: var(--gray); font-size: 14px; font-weight: 500; }
.dark .strip span { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.case-split { margin-top: clamp(96px, 10vw, 160px); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.strip { min-width: 0; max-width: 100%; }
.split-visual .bezel > img { aspect-ratio: 4 / 5; }

/* ---------- método: columna fija + pasos ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.method-sticky { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 22px; }
.method-count { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; font-variant-numeric: tabular-nums; }
.method-n { font-size: clamp(72px, 9vw, 128px); font-weight: 700; letter-spacing: -.06em; line-height: .9; color: var(--blue); }
.method-of { font-size: 20px; font-weight: 500; color: var(--muted); }
.mstep { padding: 40px 0; border-top: 1px solid rgba(29, 29, 31, .10); display: grid; gap: 10px; opacity: .32; transition: opacity .8s var(--ease); }
.mstep.is-active { opacity: 1; }
.mstep .num { font-size: 14px; font-weight: 600; color: var(--blue); }
.mstep h3 { font-size: clamp(26px, 2.6vw, 36px); }
.mstep p { color: var(--muted); max-width: 48ch; }

/* ---------- diagnóstico ---------- */
.diagnostico .container { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 980px; }
.diagnostico .lead { max-width: 56ch; }
.diagnostico h2 { font-size: clamp(38px, 5.6vw, 84px); }

/* ---------- footer ---------- */
.footer { padding-block: 56px 40px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 28px; border-top: 1px solid rgba(29, 29, 31, .1); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 500; }
.footer-brand img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--blue); }


/* ---------- unidades (contenido rescatado del sitio anterior) ---------- */
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.unit { padding: clamp(32px, 3.5vw, 52px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 14px; }
.unit-dark { background: var(--black-2); color: var(--gray); box-shadow: none; }
.unit-num { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--blue); }
.unit > p { color: var(--muted); max-width: 44ch; }
.unit-dark > p { color: rgba(245, 245, 247, .62); }
.unit-list { margin-top: 12px; display: grid; }
.unit-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(29, 29, 31, .09); font-size: 16px; font-weight: 500; }
.unit-dark .unit-list li { border-color: rgba(255, 255, 255, .10); }
.unit-list span { font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; flex: none; }
.unit-dark .unit-list span { color: rgba(245, 245, 247, .45); }
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(56px, 6vw, 88px); }
.programs article { padding-top: 22px; border-top: 1px solid rgba(29, 29, 31, .14); }
.programs h4 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.programs p { font-size: 15px; color: var(--muted); }

/* ---------- dron 3D: el isotipo de la marca sigue el cursor ---------- */
.drone { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; padding-block: clamp(120px, 12vw, 180px); }
.drone-stage { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
/* capa fija: el dron acompana durante todo el recorrido, por encima del contenido y sin bloquear clics */
.drone-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none;
  -webkit-filter: drop-shadow(0 0 20px rgba(255, 255, 255, .7)) drop-shadow(0 0 80px rgba(255, 255, 255, .3));
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .7)) drop-shadow(0 0 80px rgba(255, 255, 255, .3)); }
.drone-layer canvas { display: block; }
.drone-fallback { width: min(320px, 46vw); height: auto; opacity: .55; filter: drop-shadow(0 30px 80px rgba(21, 87, 255, .35)); }
@media (min-width: 900px) { .drone-stage { display: none; } }
.drone::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(52% 34% at 50% 40%, rgba(10, 10, 12, .8), transparent 72%); }
.drone-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; text-shadow: 0 2px 40px rgba(10, 10, 12, .8); pointer-events: none; }
.drone-copy .lead { max-width: 52ch; }
.drone-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.drone-meta li { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(245, 245, 247, .82); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- portafolio de produccion ---------- */
.pf-cabeza { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px); }
.pf-cabeza h2 { margin-top: 10px; }
.pf-cabeza .lead { padding-bottom: 6px; }
.pf-barra { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid rgba(29, 29, 31, .1); }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
/* pastilla que se desliza hasta la pestaña activa */
.tab-marca { position: absolute; z-index: 0; top: 0; left: 0; height: 0; border-radius: 999px; background: var(--ink);
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); pointer-events: none; }
.tab { position: relative; z-index: 1; }
.tab { padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer; background: var(--gray); color: var(--ink-2); font: 600 14px/1 var(--font); letter-spacing: -.01em; transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.tab:hover { transform: translateY(-1px); background: var(--gray-2); }
.tab[aria-selected="true"] { background: transparent; color: #fff; }
.tab[aria-selected="true"]:hover { background: transparent; transform: none; }
.tab-cuenta { flex: none; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab-intro { max-width: 78ch; margin: 20px 0 clamp(28px, 3vw, 40px); color: var(--muted); font-size: 16px; line-height: 1.55; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--white);
  box-shadow: var(--shadow-soft); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px rgba(29, 29, 31, .15), 0 5px 16px rgba(29, 29, 31, .05); }
.video-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: var(--gray-2); display: block; }
.video-thumb img, .video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video-thumb img { transition: transform 1.1s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-card h3 { transition: color .4s var(--ease); }
.video-card:hover h3 { color: var(--blue); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 12, .34), transparent 55%); }
.video-thumb.is-live::after, .video-thumb.is-live .v-play { display: none; }
.v-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; color: var(--ink); font-size: 14px; padding-left: 3px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .6s var(--ease), background-color .4s var(--ease); }
.video-card:hover .v-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; padding: 20px 22px 0; }
.video-card p { font-size: 15px; color: var(--muted); padding: 7px 22px 22px; }

/* ---------- WhatsApp: la burbuja habla mientras se hace scroll ---------- */
.wa { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 45; display: flex; align-items: center; gap: 12px; }
.wa-btn { position: relative; width: 62px; height: 62px; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 32% 28%, #5ee897, #25d366 52%, #0f9d52);
  box-shadow: 0 16px 40px rgba(16, 122, 66, .42), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -8px 16px rgba(0, 0, 0, .12);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.wa-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 22px 50px rgba(16, 122, 66, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.wa-btn:active { transform: scale(.97); }
.wa-face { position: absolute; inset: 0; display: grid; place-items: center; }
.wa-face svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.wa-eye { fill: #fff; stroke: none; transform-origin: center; transform-box: fill-box; }
.wa-mouth { transform-origin: center; transform-box: fill-box; }
.wa.is-talking .wa-mouth { animation: wa-talk .42s var(--ease) infinite alternate; }
@keyframes wa-talk { from { transform: scaleY(.45); } to { transform: scaleY(1.5); } }
.wa.is-talking .wa-eye { animation: wa-blink 2.6s steps(1, end) infinite; }
@keyframes wa-blink { 0%, 92% { transform: scaleY(1); } 96% { transform: scaleY(.12); } 100% { transform: scaleY(1); } }
.wa-bubble { max-width: 46vw; padding: 12px 18px; border-radius: 20px 20px 4px 20px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 18px 44px rgba(29, 29, 31, .18), inset 0 0 0 1px rgba(29, 29, 31, .05);
  opacity: 0; transform: translateX(12px) scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.wa-bubble.show { opacity: 1; transform: none; }
.wa-panel { position: fixed; right: clamp(16px, 3vw, 32px); bottom: calc(clamp(16px, 3vw, 32px) + 78px); z-index: 46; width: min(330px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08), 0 30px 70px rgba(29, 29, 31, .22);
  transform-origin: bottom right; animation: wa-pop .5s var(--ease); }
@keyframes wa-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-panel-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wa-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.wa-panel textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; resize: none; background: var(--white); color: var(--ink); font: 400 15px/1.45 var(--font); box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .12); }
.wa-panel textarea::placeholder { color: var(--muted); }
.wa-panel textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.wa-panel .btn { justify-content: center; }


/* ---------- pagina de herramientas ---------- */
.hero-tools { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-tools .hero-copy { gap: 20px; }
.tools-group { padding-block: clamp(72px, 8vw, 120px); }
.tools-title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; margin-bottom: clamp(32px, 4vw, 48px); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.gray .tool { background: var(--white); }
.tool:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(29, 29, 31, .12), 0 6px 18px rgba(29, 29, 31, .05); }
.tool:active { transform: translateY(-1px) scale(.995); }
.tool-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-2); }
.tool-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.tool:hover .tool-shot img { transform: scale(1.04); }
.tool-body { display: flex; flex-direction: column; gap: 9px; padding: 26px 26px 28px; }
.tool-name { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.tool-name i { display: inline-block; margin-left: 6px; font-style: normal; font-size: 15px; color: var(--blue); transition: transform .5s var(--ease); }
.tool:hover .tool-name i { transform: translate(2px, -2px); }
.tool-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tool-tags b { padding: 5px 11px; border-radius: 999px; background: var(--gray); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.nav-links a[aria-current="page"] { color: var(--blue); }


/* ---------- extensiones ---------- */
.ext-meta li { color: var(--ink-2); background: var(--gray); box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ext-hero-shot { margin-top: clamp(48px, 6vw, 80px); }
.ext-hero-shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-soft); }
.ext-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.ext-feats li { padding: 26px 0; border-top: 1px solid rgba(29, 29, 31, .1); }
.ext-feats h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 7px; }
.ext-feats p { font-size: 16px; color: var(--muted); max-width: 46ch; }
.ext-figs { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.ext-fig { margin: 0; }
.ext-fig img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-soft); }
.ext-fig figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 62ch; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps li { padding: clamp(26px, 3vw, 36px); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); }
.step-n { display: block; font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 600; }
.copy-chip { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px 10px 10px 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--gray); transition: background-color .5s var(--ease); }
.copy-chip:hover { background: var(--gray-2); }
.copy-chip code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; color: var(--ink); }
.copy-chip span { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13px/1 var(--font); }
.copy-chip.ok span { background: #1f9d55; }
.ext-perms { display: grid; gap: 0; max-width: 940px; }
.ext-perms li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(29, 29, 31, .1); }
.ext-perms b { font-size: 16px; font-weight: 600; }
.ext-perms span { font-size: 16px; color: var(--muted); }
.ext-nota { max-width: 860px; margin-top: clamp(32px, 4vw, 48px); padding: 24px 28px; border-radius: 20px; background: var(--blue-tint, #eef3ff); font-size: 16px; line-height: 1.55; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(21, 87, 255, .14); }
.ext-nota b { color: var(--ink); }
.ext-aviso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); max-width: 1000px; }
.ext-aviso p { font-size: 17px; line-height: 1.55; color: var(--muted); }


/* ---------- proyectos: filas horizontales con marco de navegador ---------- */
.proyectos { display: flex; flex-direction: column; }
.proyecto { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center;
  padding-block: clamp(36px, 4.5vw, 64px); border-top: 1px solid rgba(29, 29, 31, .1); }
.proyecto:first-child { border-top: 0; padding-top: 0; }

/* marco de navegador: la captura completa del sitio vive dentro */
.marco { display: block; border-radius: 16px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-soft); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.marco:hover { transform: translateY(-4px); box-shadow: 0 42px 90px rgba(29, 29, 31, .16), 0 6px 18px rgba(29, 29, 31, .06); }
.marco-barra { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: var(--gray); box-shadow: inset 0 -1px 0 rgba(29, 29, 31, .07); }
.marco-barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(29, 29, 31, .16); flex: none; }
.marco-url { flex: 1; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: var(--white);
  font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marco-vista { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-2); }
.marco-vista img { display: block; width: 100%; height: auto; transition: transform var(--dur, 0s) ease-in-out; }
.marco:hover .marco-vista img, .marco:focus-visible .marco-vista img { transform: translateY(calc(-1 * var(--desliz, 0%))); }

.proyecto-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.proyecto-sector { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--blue); }
.proyecto-info h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.proyecto-desc { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 13px; border-radius: 999px; background: var(--gray); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gray .tags li { background: var(--white); }
.proyecto-info .tags { margin-top: 2px; }
.proyecto-info .link { margin-top: 6px; font-size: 16px; }


/* ---------- hero: slider de video ---------- */
.hs { position: relative; padding: 0; min-height: 100dvh; background: var(--black); color: #fff; overflow: hidden; }
.hs-pista { position: relative; min-height: 100dvh; display: grid; }
.hs-diapo { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: 100dvh;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hs-diapo.is-active { opacity: 1; visibility: visible; }
.hs-poster, .hs-diapo video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-diapo video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hs-diapo.video-listo video { opacity: 1; }
.hs-velo { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 9, 12, .5) 0%, rgba(8, 9, 12, .38) 30%, rgba(8, 9, 12, .2) 60%, rgba(8, 9, 12, .06) 100%),
    linear-gradient(to top, rgba(8, 9, 12, .5) 0%, rgba(8, 9, 12, 0) 28%); }
.hs-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding-top: 90px; padding-bottom: 130px; max-width: 1200px; }
/* sombra suave solo detras del texto: el video se mantiene claro y el titular se lee */
.hs-copy::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -14%; right: -6%; top: 4%; bottom: 8%;
  background: radial-gradient(76% 76% at 30% 50%, rgba(8, 9, 12, .78) 0%, rgba(8, 9, 12, .56) 40%, rgba(8, 9, 12, .18) 72%, rgba(8, 9, 12, 0) 100%); }
/* el clip de proyectos son capturas de webs claras: necesita un punto mas de velo */
.hs-diapo[data-video$="proyectos.mp4"] .hs-velo {
  background:
    linear-gradient(100deg, rgba(8, 9, 12, .62) 0%, rgba(8, 9, 12, .5) 30%, rgba(8, 9, 12, .3) 60%, rgba(8, 9, 12, .12) 100%),
    linear-gradient(to top, rgba(8, 9, 12, .5) 0%, rgba(8, 9, 12, 0) 28%); }
.hs-etiqueta { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9db9ff; text-shadow: 0 2px 18px rgba(8, 9, 12, .7); }
.hs-titulo { font-size: clamp(40px, 5.4vw, 82px); font-weight: 700; letter-spacing: -.045em; line-height: 1;
  max-width: 17ch; margin-inline: 0; text-wrap: balance; text-shadow: 0 2px 10px rgba(8, 9, 12, .6), 0 4px 34px rgba(8, 9, 12, .5); }
.hs-lead { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; color: rgba(255, 255, 255, .85); max-width: 54ch; letter-spacing: -.01em; text-shadow: 0 2px 22px rgba(8, 9, 12, .6); }
.hs-link { color: #fff; }
.hs-link:hover { color: #7ea6ff; }
/* la copia entra al cambiar de diapositiva */
.hs-diapo.is-active .hs-etiqueta, .hs-diapo.is-active .hs-titulo,
.hs-diapo.is-active .hs-lead, .hs-diapo.is-active .cta-row { animation: hs-entra .9s var(--ease) both; }
.hs-diapo.is-active .hs-titulo { animation-delay: .06s; }
.hs-diapo.is-active .hs-lead { animation-delay: .12s; }
.hs-diapo.is-active .cta-row { animation-delay: .18s; }
@keyframes hs-entra { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hs-mando { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vh, 48px); z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: var(--gutter); }
.hs-flecha, .hs-pausa { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  cursor: pointer; color: #fff; font: 400 20px/1 var(--font); background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background-color .4s var(--ease), transform .4s var(--ease); }
.hs-flecha:hover, .hs-pausa:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.hs-pausa svg { width: 12px; height: 14px; fill: #fff; }
.hs-pausa[aria-pressed="true"] .hs-p2 { display: none; }
.hs-pausa[aria-pressed="true"] .hs-p1 { x: 2px; width: 9px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hs-barras { display: flex; align-items: center; gap: 8px; }
.hs-barra { position: relative; width: 44px; height: 4px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .26); overflow: hidden; transition: width .5s var(--ease); }
.hs-barra.is-active { width: 78px; }
.hs-barra span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; border-radius: 999px; }
.hs-barra.is-active span { animation: hs-avance var(--hs-dur, 8s) linear forwards; }
.hs.esta-pausado .hs-barra.is-active span { animation-play-state: paused; }
@keyframes hs-avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 899px) {
  .hs-copy { padding-bottom: 150px; }
  .hs-velo { background: linear-gradient(180deg, rgba(8, 9, 12, .9) 0%, rgba(8, 9, 12, .74) 45%, rgba(8, 9, 12, .95) 100%); }
  .hs-barra { width: 30px; } .hs-barra.is-active { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-diapo, .hs-diapo video { transition: none; }
  .hs-diapo.is-active .hs-etiqueta, .hs-diapo.is-active .hs-titulo,
  .hs-diapo.is-active .hs-lead, .hs-diapo.is-active .cta-row { animation: none; }
  .hs-barra.is-active span { animation: none; transform: scaleX(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .pf-cabeza { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .programs { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .ext-feats, .ext-aviso { grid-template-columns: 1fr; }
  .proyecto { grid-template-columns: 1fr; gap: 22px; }
  .tile-a { grid-column: span 2; }
  .tile-f { grid-column: span 2; }
  .method-sticky { position: static; }
}
@media (max-width: 899px) {
  .nav { gap: 12px; padding: 6px 6px 6px 14px; }
  .brand span { white-space: nowrap; }
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .split, .method-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .scene-inner { min-height: 0; padding-block: 120px; }
  .stage { width: min(420px, 88vw); --r: 40%; }
  .chip { padding: 9px 13px; font-size: 12px; }
  .scene-b { opacity: 1; }
  .scene-a { display: none; }
  .units { grid-template-columns: 1fr; }
  .drone { min-height: 0; }
  .wa-bubble { white-space: normal; text-align: right; font-size: 13px; }
}
@media (max-width: 639px) {
  .video-grid, .programs, .tools-grid, .steps { grid-template-columns: 1fr; }
  .ext-perms li { grid-template-columns: 1fr; gap: 6px; }
  .wa-btn { width: 56px; height: 56px; }
  .wa-face svg { width: 34px; height: 34px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 440px; }
  .tile-a, .tile-f { grid-column: auto; }
  .tile-a .tile-copy { max-width: none; }
  .tile-a > img { left: 0; width: 100%; top: 46%; height: auto; object-position: 50% 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%); mask-image: linear-gradient(to bottom, transparent 0, #000 25%); }
  .tile-f { flex-direction: column; align-items: stretch; }
  .tile-f .tile-copy { max-width: none; padding: 36px 36px 0; }
  .tile-f > img { left: 0; width: 100%; top: 50%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%); mask-image: linear-gradient(to bottom, transparent 0, #000 25%); }
  .cta-row { gap: 18px; }
  .hero-visual .bezel { padding: 5px; border-radius: 22px; } .hero-visual .bezel > img { border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa.is-talking .wa-mouth, .wa.is-talking .wa-eye { animation: none; }
  .tab, .video-thumb, .v-play, .wa-btn, .wa-bubble, .wa-panel, .tab-marca, .video-thumb img { transition: none; animation: none; }
  .btn, .btn .ic, .link, .tile > img, .mstep, .menu, .menu a, .burger span { transition: none; }
  .scene-b { opacity: 1; }
  .scene-a { display: none; }
}
