/* TECCO IA S.A.S. — identidad: azul marino + naranja + gris */
:root {
  --navy: #13224F;
  --navy-2: #1E3270;
  --navy-deep: #0B1533;
  --navy-ink: #070E24;
  --orange: #F07D1A;
  --orange-2: #FF9A3D;
  --orange-soft: rgba(240, 125, 26, .14);
  --gray: #A8A9AD;
  --bg: #F6F7FA;
  --white: #FFFFFF;
  --text: #13224F;
  --text-2: #4B5679;
  --text-3: #7A84A3;
  --line: rgba(19, 34, 79, .10);
  --line-strong: rgba(19, 34, 79, .18);
  --on-dark: #EEF1F8;
  --on-dark-2: #A9B3D1;
  --line-dark: rgba(238, 241, 248, .10);
  --line-dark-strong: rgba(238, 241, 248, .18);
  --shadow: 0 1px 2px rgba(19,34,79,.06), 0 12px 32px -12px rgba(19,34,79,.18);
  --shadow-lg: 0 2px 4px rgba(19,34,79,.06), 0 30px 60px -24px rgba(19,34,79,.35);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--orange); letter-spacing: .08em; font-weight: 600; }
.accent { color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Patrón de circuito (fondo) */
.circuit-bg {
  position: absolute; inset: 0; pointer-events: none; color: var(--navy);
  mask-image: radial-gradient(ellipse 75% 80% at 72% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 72% 45%, #000 15%, transparent 72%);
}
.circuit-bg svg { width: 100%; height: 100%; }
.circuit-bg .trace { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .16; }
.circuit-bg .node { fill: var(--bg); stroke: currentColor; stroke-width: 1.4; opacity: .28; }
.circuit-bg .pulse { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 18 400; animation: travel 5s linear infinite; opacity: .9; }
.circuit-bg .pulse.p2 { animation-delay: -1.7s; animation-duration: 6.5s; }
.circuit-bg .pulse.p3 { animation-delay: -3.1s; animation-duration: 5.8s; }
.circuit-bg .pulse.p4 { animation-delay: -.8s; animation-duration: 7.2s; }
@keyframes travel { from { stroke-dashoffset: 418; } to { stroke-dashoffset: 0; } }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--font-head); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg, .btn img { width: 18px; height: 18px; flex: none; }
.btn-accent { --bg: var(--orange); --fg: #fff; box-shadow: 0 12px 28px -12px rgba(240,125,26,.75); }
.btn-accent:hover { --bg: #E26F0E; box-shadow: 0 18px 36px -14px rgba(240,125,26,.9); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }
.btn-light { --bg: #fff; --fg: var(--navy); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19,34,79,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font: 500 15px var(--font-head); color: var(--text-2); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 82px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; margin: 22px 0 26px; color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--text-2); max-width: 560px; margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; font: 500 12px/1.4 var(--mono); letter-spacing: .16em; color: var(--text-3); text-transform: uppercase; }
.hero-meta b { color: var(--navy); font-weight: 600; }

.hero-visual { position: relative; width: min(100%, 470px); justify-self: center; }
.hero-visual .halo {
  position: absolute; inset: 6% -4% 4% 4%; border-radius: 50%;
  background: radial-gradient(circle at 60% 45%, rgba(30,50,112,.16), transparent 62%);
}
.hero-visual .ring { position: absolute; inset: -4%; border-radius: 50%; border: 1.5px dashed rgba(19,34,79,.16); animation: spin 70s linear infinite; }
.hero-visual .ring::after { content: ""; position: absolute; top: 18%; right: 4%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }
.head-wrap { position: relative; animation: float 8s ease-in-out infinite; }
.head-wrap img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(19,34,79,.22)); }
.eye-glow {
  position: absolute; left: 75.8%; top: 45%; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,154,61,.85), rgba(240,125,26,.35) 40%, transparent 70%);
  mix-blend-mode: screen; animation: eye 3.2s ease-in-out infinite; pointer-events: none;
}
.chip-float {
  position: absolute; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 500 12px/1 var(--mono); color: var(--navy); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite;
}
.chip-float i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.chip-float.c1 { top: 6%; left: -10%; }
.chip-float.c2 { bottom: 22%; right: -8%; animation-delay: -2s; }
.chip-float.c3 { bottom: 0; left: 2%; animation-delay: -4s; }
.chip-float.c2 i, .chip-float.c3 i { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes eye { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--white); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 500 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding: 0 26px; display: flex; align-items: center; gap: 26px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 0; font-weight: 800; color: var(--navy); }
.section-head p { color: var(--text-2); margin: 0; max-width: 520px; font-size: 18px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; background: var(--white); padding: 32px 28px 30px; min-height: 290px;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .35s, border-color .35s;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(19,34,79,.06); color: var(--navy);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.service-icon svg { width: 25px; height: 25px; }
.service:hover .service-icon { background: var(--navy); color: #fff; transform: rotate(-6deg); }
.service-num { font: 500 12px var(--mono); color: var(--gray); letter-spacing: .1em; }
.service h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 12px; font-weight: 700; }
.service p { color: var(--text-2); margin: 0; font-size: 15.5px; line-height: 1.6; }
.service .tags { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 7px 10px; border-radius: 999px; background: var(--bg); color: var(--text-2); border: 1px solid var(--line); }

/* Sección oscura IA */
.dark { background: var(--navy-deep); color: var(--on-dark); }
.dark .eyebrow { color: var(--on-dark-2); }
.ai { overflow: hidden; }
.ai .circuit-bg { color: #8FA3E0; mask-image: radial-gradient(ellipse 60% 70% at 15% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 30%, #000 10%, transparent 70%); }
.ai .circuit-bg .node { fill: var(--navy-deep); }
.ai-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 26px; font-weight: 800; color: #fff; }
.ai h2 .accent { color: var(--orange-2); }
.ai p { font-size: 18px; color: var(--on-dark-2); max-width: 520px; }
.feature-list { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--on-dark); }
.feature-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 8px; box-shadow: 0 0 0 4px rgba(240,125,26,.2); }

.agent {
  background: var(--navy-ink); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark-strong); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.agent-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); font: 12px var(--mono); color: var(--on-dark-2); }
.agent-bar i { width: 11px; height: 11px; border-radius: 50%; background: #26304F; }
.agent-bar i:first-child { background: var(--orange); }
.agent-bar span { margin-left: 10px; letter-spacing: .06em; }
.agent-body { padding: 22px 20px 26px; min-height: 360px; font: 14px/1.7 var(--mono); color: var(--on-dark); }
.agent-line { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); margin-bottom: 10px; }
.agent-line.show { opacity: 1; transform: none; }
.agent-line .who { color: #6F7DA8; }
.agent-line.call { color: var(--on-dark-2); padding-left: 14px; border-left: 2px solid var(--line-dark-strong); }
.agent-line.call b { color: #7DD3FC; font-weight: 400; }
.agent-line.bot .msg { color: var(--orange-2); }
.agent-line.done { color: #4ADE80; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--orange); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .35s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-screen { position: relative; aspect-ratio: 16 / 10; background: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.06); border-bottom: 1px solid var(--line-dark); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.browser-bar i:first-child { background: var(--orange); }
.browser-bar .url { margin-left: 8px; flex: 1; font: 11px/1 var(--mono); color: var(--on-dark-2); background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-art { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; }
.screen-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.screen-art .initials { position: relative; font: 800 clamp(38px, 4.6vw, 58px)/1 var(--font-head); letter-spacing: -.03em; color: #fff; transition: transform .5s var(--ease), color .3s; }
.screen-art .halo { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(240,125,26,.35), transparent 70%); transition: transform .6s var(--ease); }
.project:hover .initials { transform: scale(1.08); color: var(--orange-2); }
.project:hover .halo { transform: scale(1.35); }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-sector { font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.project h3 { margin: 0; font-size: 20px; letter-spacing: -.015em; font-weight: 700; line-height: 1.2; }
.project p { margin: 0; color: var(--text-2); font-size: 15px; }
.project-link { margin-top: auto; padding-top: 14px; font: 500 13px var(--mono); color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
.project-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.project:hover .project-link { color: var(--navy); }
.project:hover .project-link svg { transform: translate(3px, -3px); }

/* Banda sector público */
.gov { background: var(--navy); color: var(--on-dark); }
.gov-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 48px 0; }
.gov-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.gov-badges span { font: 600 13px/1 var(--mono); letter-spacing: .08em; padding: 12px 16px; border: 1px solid var(--line-dark-strong); border-radius: 10px; color: #fff; }
.gov h3 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.015em; font-weight: 700; color: #fff; }
.gov p { margin: 0; color: var(--on-dark-2); font-size: 15.5px; }
.gov .nit { font: 13px var(--mono); color: var(--on-dark-2); text-align: right; line-height: 1.8; }
.gov .nit b { color: var(--orange-2); font-weight: 600; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font: 600 14px var(--mono); }
.step h3 { font-size: 21px; margin: 30px 0 10px; letter-spacing: -.015em; font-weight: 700; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }
.step-bar { position: absolute; left: 78px; right: 26px; top: 49px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.step-bar::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.step.in .step-bar::after { transform: scaleX(1); }
.step:nth-child(2) .step-bar::after { transition-delay: .25s; }
.step:nth-child(3) .step-bar::after { transition-delay: .5s; }
.step:nth-child(4) .step-bar::after { transition-delay: .75s; }

/* Contacto */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 16px 0 24px; font-weight: 800; color: var(--navy); }
.contact-lead { color: var(--text-2); font-size: 18px; margin: 0 0 36px; max-width: 460px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); transition: border-color .25s, transform .3s var(--ease), background .25s;
}
a.contact-card:hover { border-color: var(--orange); background: #fff; transform: translateX(4px); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card small { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.contact-card strong { font-weight: 600; font-size: 16px; word-break: break-word; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; font-size: 16px; color: var(--text); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2313224F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field input::placeholder, .field textarea::placeholder { color: #9AA2BC; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 4px 0 24px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--orange); }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--text-2); min-height: 1.4em; }
.form-status.ok { color: #15803D; font-weight: 500; }
.form-status.err { color: #C2410C; font-weight: 500; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer */
.footer { background: var(--navy-deep); color: var(--on-dark); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 58px; }
.footer-tag { color: var(--on-dark-2); margin: 20px 0 0; max-width: 320px; font-size: 15px; }
.footer h4 { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--on-dark-2); }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 12px var(--mono); color: #6F7DA8; letter-spacing: .04em; }

/* ---------- Chat IA ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 66px; height: 66px; border-radius: 50%; border: 0;
  background: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 14px 34px -10px rgba(19,34,79,.6), 0 0 0 0 rgba(240,125,26,.5);
  animation: fabPulse 3s ease-out infinite; transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab img { width: 40px; height: auto; }
@keyframes fabPulse { 0% { box-shadow: 0 14px 34px -10px rgba(19,34,79,.6), 0 0 0 0 rgba(240,125,26,.45); } 70%, 100% { box-shadow: 0 14px 34px -10px rgba(19,34,79,.6), 0 0 0 16px rgba(240,125,26,0); } }
.chat-fab-label {
  position: fixed; right: 96px; bottom: 37px; z-index: 60; background: #fff; color: var(--navy);
  padding: 10px 14px; border-radius: 12px; font: 600 14px var(--font-head); white-space: nowrap;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: opacity .3s, transform .3s var(--ease);
}
.chat-fab-label.hide { opacity: 0; transform: translateX(8px); pointer-events: none; }

.chat {
  position: fixed; right: 20px; bottom: 100px; z-index: 61;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100svh - 130px));
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(19,34,79,.45);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transform-origin: bottom right;
  transition: opacity .3s, transform .35s var(--ease);
}
.chat.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat-head .av { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.chat-head .av img { width: 26px; height: auto; }
.chat-head strong { display: block; font: 700 15px var(--font-head); }
.chat-head small { font: 11px var(--mono); color: #86EFAC; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.chat-close { margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--on-dark-2); border-radius: 8px; }
.chat-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--orange); text-decoration: underline; font-weight: 500; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; gap: 8px; padding: 10px 16px 12px; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button { flex: none; background: #fff; border: 1px solid var(--line-strong); color: var(--navy); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s; }
.chat-suggest button:hover { border-color: var(--orange); color: var(--orange); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 16px; font-size: 15px; }
.chat-form input:focus { outline: none; border-color: var(--orange); }
.chat-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-note { font: 10px var(--mono); color: var(--text-3); text-align: center; padding: 0 12px 10px; background: #fff; }

.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 59; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.rise { animation: rise 1s var(--ease) both; }
.rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .22s; } .rise.d3 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gov-inner { grid-template-columns: 1fr; gap: 24px; }
  .gov .nit { text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
  .nav-inner { height: 68px; }
  .brand img { height: 40px; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 8px var(--gutter) 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--navy); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; }
  .nav.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 100px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(62vw, 280px); }
  .section-head, .ai-grid, .contact-grid { grid-template-columns: 1fr; }
  .ai-grid { gap: 40px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services, .projects, .steps { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 8px 18px; }
  .chip-float { display: none; }
  .chat-fab-label { display: none; }
  .chat { right: 16px; bottom: 96px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
