/* TERAVAL — hoja de estilos v2 (estilo corporativo claro) */
:root {
  --navy: #0a2552;
  --navy-2: #0f3a7a;
  --blue: #1b84ff;
  --blue-dark: #0b6be6;
  --cyan: #19c3e6;
  --green: #16a36a;
  --ink: #0f1b2d;
  --text: #3d4b60;
  --muted: #66758c;
  --line: #e3e9f2;
  --soft: #f9f8f8;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 45, .06);
  --shadow: 0 18px 40px -18px rgba(16, 43, 92, .28);
  --shadow-lg: 0 30px 60px -24px rgba(16, 43, 92, .35);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.14rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { flex-shrink: 0; }
.text-accent { color: var(--blue); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(27, 132, 255, .45); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(27, 132, 255, .7); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-whatsapp { background: #25d366; color: #06361c; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico, .card-link .ico { transition: transform .2s; }

/* Barra superior */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar a { color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), var(--navy)); display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-content: center; justify-content: center; }
.brand-mark span { display: block; width: 6px; border-radius: 3px; background: #fff; }
.brand-mark span:nth-child(1) { height: 10px; align-self: end; opacity: .7; }
.brand-mark span:nth-child(2) { height: 18px; align-self: end; }
.brand-mark span:nth-child(3) { height: 14px; align-self: end; background: var(--cyan); }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong { font-family: var(--font-head); font-size: 1.32rem; font-weight: 800; letter-spacing: .04em; }
.brand-type small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .6); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop > a { position: relative; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.main-nav > a:hover, .nav-drop > a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav > a.active::after, .nav-drop > a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); }
.main-nav .nav-cta { margin-left: 10px; padding: 11px 20px; color: #fff; }
.main-nav .nav-cta:hover { color: #fff; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop { position: relative; }
.drop-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.drop-panel::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-panel a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); }
.drop-panel a:hover { background: var(--soft); }
.drop-panel strong { display: block; font-family: var(--font-head); font-size: .9rem; line-height: 1.3; }
.drop-panel small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 3px; }
.drop-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(27, 132, 255, .1); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9f8f8 0%, #ffffff 100%); padding: 72px 0 90px; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(27, 132, 255, .14) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 30%, transparent 75%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(27, 132, 255, .1); color: var(--blue-dark); font-family: var(--font-head); font-weight: 700; font-size: .82rem; margin-bottom: 22px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(27, 132, 255, .2); }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.1rem, 3.9vw, 3.15rem); }
.hero-lead { font-size: 1.12rem; color: var(--text); }
.hero-lead strong { color: var(--ink); }
.hero-sub { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-claim { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.hero-claim .ico { color: var(--blue); }

.hero-visual { position: relative; padding: 30px 10px 40px; }
.hv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hv-main { padding: 20px; }
.hv-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hv-dots { display: flex; gap: 5px; }
.hv-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe6f1; }
.hv-dots i:first-child { background: #ff7b72; }
.hv-dots i:nth-child(2) { background: #ffc35c; }
.hv-dots i:nth-child(3) { background: #3fd08a; }
.hv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.hv-kpis > div { background: var(--soft); border-radius: var(--radius-sm); padding: 14px; }
.hv-kpis small { display: block; font-size: .74rem; color: var(--muted); }
.hv-kpis strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; margin: 2px 0 10px; }
.hv-bar { display: block; height: 6px; background: #dfe7f5; border-radius: 6px; overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 6px; }
.hv-chart { width: 100%; height: 120px; margin: 6px 0 12px; }
.hv-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hv-modules span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .76rem; font-weight: 600; color: var(--ink); }
.hv-modules .ico { color: var(--blue); }
.hv-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; animation: float 6s ease-in-out infinite; }
.hv-float strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; line-height: 1.2; }
.hv-float small { display: block; font-size: .75rem; color: var(--muted); }
.hv-float-a { top: 0; right: -10px; }
.hv-float-b { bottom: 6px; left: -18px; animation-delay: -3s; }
.hv-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(27, 132, 255, .12); color: var(--blue); }
.hv-ico-green { background: rgba(22, 163, 106, .12); color: var(--green); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Franja de pilares */
.pillars-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 34px 0; }
.strip-title { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.pillars a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.04rem; opacity: .8; transition: opacity .2s, color .2s; }
.pillars a:hover { opacity: 1; color: var(--blue); }
.pillars .ico { color: var(--blue); }

/* Secciones */
.section { position: relative; padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .75); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .hero-pattern { background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; position: relative; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head-row > div { max-width: 680px; }
.kicker { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker-light { color: var(--cyan); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }
.is-reversed .split-copy { order: 2; }
.split-copy p { color: var(--text); }
.commitment { margin: 26px 0; padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.06rem; line-height: 1.5; }
.commitment span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

.about-visual { position: relative; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue-dark) 130%); border-radius: 24px; padding: 32px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.about-badge { color: #fff; margin-bottom: 10px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; letter-spacing: .05em; }
.about-badge span { color: rgba(255, 255, 255, .7); }
.mv-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.mv-card h3 { margin-bottom: 6px; }
.mv-card p { margin: 0; font-size: .94rem; color: var(--text); }
.mv-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(27, 132, 255, .1); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.mv-stack { display: grid; gap: 16px; }
.mv-card-lg { border: 1px solid var(--line); padding: 26px; }
.mv-card-accent { background: var(--navy); border-color: var(--navy); }
.mv-card-accent h3 { color: #fff; }
.mv-card-accent p { color: rgba(255, 255, 255, .78); }
.mv-card-accent .mv-ico { background: rgba(255, 255, 255, .12); color: var(--cyan); }

/* Tarjetas */
.card-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.icon-box { width: 56px; height: 56px; border-radius: 14px; background: rgba(27, 132, 255, .1); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; transition: background .25s, color .25s; }
.icon-box-solid { background: var(--blue); color: #fff; }
.icon-box-dark { background: rgba(255, 255, 255, .08); color: var(--cyan); }
.icon-round { width: 48px; height: 48px; border-radius: 50%; background: rgba(27, 132, 255, .1); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.icon-round-lg { width: 60px; height: 60px; }

.service-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27, 132, 255, .35); }
.service-card:hover .icon-box { background: var(--blue); color: #fff; }
.service-card .icon-box { margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #e7edf7; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--blue); margin-top: auto; }
.service-card:hover .card-link .ico, .case-card .card-link:hover .ico { transform: translateX(3px); }
.service-card-compact { flex-direction: column; }
.service-card-compact h3 { flex: 1; }

.sector-card { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.sector-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sector-card h3 { margin-bottom: 6px; }
.sector-card p { margin: 0; font-size: .94rem; color: var(--muted); }
.sector-card-lg { flex-direction: column; padding: 32px; }
.coverage-note { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; margin: 36px auto 0; max-width: 760px; color: var(--muted); font-size: .95rem; }
.coverage-note .ico { color: var(--blue); }
@media (min-width: 721px) { .coverage-note { white-space: normal; } }

.reason-card { position: relative; padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, border-color .25s; }
.reason-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(25, 195, 230, .4); }
.reason-card .icon-box { margin-bottom: 18px; }
.reason-card p { margin: 0; font-size: .95rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 6px #fff; transition: background .25s, color .25s; }
.step:hover .step-num { background: var(--blue); color: #fff; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.steps-goal { text-align: center; margin: 48px auto 0; max-width: 680px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.steps-goal strong { color: var(--blue); }

/* Casos */
.case-card { display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.case-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-sector { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .9rem; margin-bottom: 6px; }
.case-card p { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags span { padding: 5px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--navy); }
.info-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .94rem; margin-bottom: 36px; }
.info-note .ico { color: var(--blue); margin-top: 2px; }
.case-list { display: grid; gap: 28px; }
.case-full { border: 1px solid var(--line); border-radius: 22px; padding: 36px; background: #fff; box-shadow: var(--shadow-sm); }
.case-full-head { display: flex; gap: 18px; align-items: center; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.case-full-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 6px 0 0; }
.case-full-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; margin-bottom: 20px; }
.case-full-body h3 { font-size: 1rem; color: var(--blue); }
.case-col-results { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.case-kpis { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.case-kpis strong { color: var(--ink); }
.case-full .tags { margin: 0; }
.similar-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.similar-box h2 { margin-bottom: 8px; }
.similar-box p { margin: 0; color: var(--muted); max-width: 620px; }

/* Listas */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-list .ico { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

/* Servicios */
.service-tabs { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.service-tabs-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.service-tabs-inner::-webkit-scrollbar { display: none; }
.service-tabs a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.service-tabs a span { color: var(--blue); margin-right: 4px; }
.service-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.service-block { scroll-margin-top: calc(var(--header-h) + 70px); }
.service-note { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); }
.section-soft .service-note { background: #fff; }
.service-note strong { color: var(--ink); }
.service-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.service-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.service-highlight { margin: 24px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; font-family: var(--font-head); font-weight: 600; line-height: 1.5; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-intro p { color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: rgba(27, 132, 255, .4); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .2s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--blue); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.contact-mini { display: grid; gap: 12px; margin-top: 26px; }
.contact-mini > a, .contact-mini > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700; transition: border-color .2s; }
.contact-mini > a:hover { border-color: var(--blue); }
.contact-mini small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .78rem; }

/* Banda CTA */
.cta-band { position: relative; background: radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, #0b6be6 0%, var(--blue) 55%, #4d9dff 120%); color: rgba(255, 255, 255, .8); padding: 84px 0; overflow: hidden; }
.cta-band .kicker-light { color: #e6f2ff; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.cta-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-strong { color: #fff; font-family: var(--font-head); font-weight: 700; margin: 0; }
.cta-actions { display: grid; gap: 12px; }

/* Encabezado de páginas internas */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9f8f8 0%, #fff 100%); padding: 64px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; }
.page-hero h1 { max-width: 860px; }
.page-hero p { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 720px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--blue); font-weight: 600; }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); }
.contact-steps { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--soft); }
.contact-steps strong { font-family: var(--font-head); color: var(--ink); }
.contact-steps ol { margin: 10px 0 0; padding-left: 20px; color: var(--text); }
.contact-steps li { margin-bottom: 4px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.form-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.form-card-head h2 { font-size: 1.5rem; margin: 0; }
.required-note { font-size: .82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink); }
.form-field label span { color: var(--blue); }
.form-field input, .form-field select, .form-field textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 132, 255, .14); background: #fff; }
.field-help { font-size: .8rem; color: var(--muted); }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: .88rem; color: var(--text); }
.privacy-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.form-submit { width: 100%; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.alert-success { background: #e8f8f0; color: #0d6b45; border: 1px solid #b6e8cf; }
.alert-error { background: #fdeeee; color: #a12a2a; border: 1px solid #f3c4c4; }

/* Legal y 404 */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 32px; }
.not-found { text-align: center; }
.not-found .container { max-width: 680px; }
.not-found-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: #e3ebf8; }
.not-found p { color: var(--muted); }

/* Pie */
.site-footer { background: #071731; color: rgba(255, 255, 255, .68); font-size: .93rem; }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 52px; }
.footer-lead { margin: 22px 0 10px; }
.footer-lead strong { color: #fff; }
.footer-services { font-size: .86rem; color: rgba(255, 255, 255, .55); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, .68); }
.footer-col a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
a.footer-contact-item { color: rgba(255, 255, 255, .85); }
.footer-contact-item .ico { color: var(--cyan); margin-top: 3px; }
.footer-contact-item small { display: block; color: rgba(255, 255, 255, .5); font-size: .76rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-bottom a { color: rgba(255, 255, 255, .68); }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.06); }

/* Animación de aparición */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .drop-panel { width: 560px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 24px 32px; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav > a, .nav-drop > a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > a.active::after, .nav-drop > a.active::after { display: none; }
  .nav-drop > a .caret { display: none; }
  .drop-panel { position: static; transform: none; width: auto; opacity: 1; visibility: visible; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 8px; }
  .drop-panel a { padding: 10px 4px; }
  .drop-panel small { display: none; }
  .nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { transform: none; }
  .main-nav .nav-cta { margin: 18px 0 0; }
  .hero-layout, .split, .faq-layout, .contact-layout, .cta-band-inner, .case-full-body { grid-template-columns: 1fr; }
  .hero-layout { gap: 30px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .is-reversed .split-copy { order: 0; }
  .split { gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .steps::before { top: 20px; bottom: 20px; left: 28px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; text-align: left; padding: 0 0 28px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 14px 0 4px; }
  .faq-intro { position: static; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .similar-box { flex-direction: column; align-items: flex-start; }
  .cta-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 720px) {
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 16px; font-size: .78rem; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 60px; }
  .container { padding: 0 18px; }
  .grid-3, .form-grid { grid-template-columns: 1fr; }
  .hv-float-a { display: none; }
  .hv-float-b { left: 0; }
  .hv-modules { grid-template-columns: repeat(2, 1fr); }
  .pillars { gap: 14px 24px; }
  .pillars a { font-size: .95rem; }
  .form-card, .case-full, .service-panel { padding: 24px; }
  .case-full-head { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; padding-top: 56px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .topbar-contact a:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   v3 — Capa tecnológica: hero oscuro, animaciones, ilustraciones y chat
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Hero oscuro con red de partículas */
.hero-tech { background: radial-gradient(1200px 600px at 85% 10%, #0d4fb0 0%, transparent 60%), radial-gradient(600px 400px at 55% 120%, rgba(27, 132, 255, .45) 0%, transparent 70%), radial-gradient(900px 500px at 0% 100%, #0b3a80 0%, transparent 60%), #051a3d; color: rgba(255, 255, 255, .75); padding-bottom: 130px; }
.hero-tech h1 { color: #fff; }
.hero-tech .hero-lead { color: rgba(255, 255, 255, .78); }
.hero-tech .hero-lead strong { color: #fff; }
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; animation: glow 14s ease-in-out infinite alternate; }
.hero-glow-a { width: 420px; height: 420px; background: #1b84ff; top: -120px; right: 8%; }
.hero-glow-b { width: 320px; height: 320px; background: #19c3e6; bottom: -60px; left: -80px; opacity: .25; animation-delay: -6s; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none; }
.hero-wave svg { width: 100%; height: 100%; }
.grad-text { background: linear-gradient(90deg, #4d9dff, #19c3e6, #7cc4ff, #4d9dff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 8s linear infinite; }
@keyframes gradMove { to { background-position: 300% 0; } }
.pill-dark { background: rgba(255, 255, 255, .08); color: #cfe0ff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pill-dark .pill-dot { background: #3fd08a; box-shadow: 0 0 0 4px rgba(63, 208, 138, .2); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 138, .5); } 100% { box-shadow: 0 0 0 10px rgba(63, 208, 138, 0); } }
.hero-rotator { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 14px; min-height: 1.6em; }
.rotator { color: var(--cyan); }
.rotator-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--cyan); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.hero-tech .hero-claim { color: #fff; border-color: rgba(255, 255, 255, .12); }
.hero-tech .hero-claim .ico { color: var(--cyan); }
.anim-in { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.anim-d1 { animation-delay: .1s; } .anim-d2 { animation-delay: .22s; } .anim-d3 { animation-delay: .34s; } .anim-d4 { animation-delay: .46s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Panel del hero en vidrio */
.hero-tech .hv-card { background: rgba(14, 32, 72, .72); border-color: rgba(120, 165, 255, .22); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(14px); }
.hero-tech .hv-main { position: relative; z-index: 2; transition: transform .25s ease; }
.hero-tech .hv-head { color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .1); font-family: ui-monospace, monospace; font-weight: 500; font-size: .78rem; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #3fd08a; font-family: var(--font-body); font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #3fd08a; animation: ping 2s infinite; }
.hero-tech .hv-kpis > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.hero-tech .hv-kpis small { color: rgba(255, 255, 255, .55); }
.hero-tech .hv-kpis strong { color: #fff; }
.hero-tech .hv-bar { background: rgba(255, 255, 255, .1); }
.hv-bar i { width: var(--w, 60%); animation: barGrow 1.6s .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes barGrow { from { width: 0; } }
.hv-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2s .5s ease forwards; }
.hv-area { opacity: 0; animation: fadeIn 1s 1.6s forwards; }
.hv-dot { opacity: 0; animation: fadeIn .4s 2.4s forwards, ping2 2s 2.4s infinite; transform-origin: 320px 18px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ping2 { 50% { transform: scale(1.5); } }
.hero-tech .hv-modules span { border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .03); transition: background .2s, border-color .2s; }
.hero-tech .hv-modules span:hover { background: rgba(27, 132, 255, .2); border-color: rgba(27, 132, 255, .6); }
.hero-tech .hv-modules .ico, .hero-tech .hv-ico { color: var(--cyan); }
.hero-tech .hv-float strong { color: #fff; }
.hero-tech .hv-float small { color: rgba(255, 255, 255, .6); }
.hero-tech .hv-float { z-index: 3; }
.hero-tech .hv-ico { background: rgba(25, 195, 230, .14); }
.hero-tech .hv-ico-green { background: rgba(63, 208, 138, .14); color: #3fd08a; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(120, 165, 255, .25); border-radius: 50%; animation: spin 40s linear infinite; pointer-events: none; }
.orbit-1 { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
.orbit-2 { width: 400px; height: 400px; margin: -200px 0 0 -200px; animation-duration: 28s; animation-direction: reverse; border-color: rgba(25, 195, 230, .2); }
.orbit-node { position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 0 24px rgba(27, 132, 255, .6); animation: spin 40s linear infinite reverse; }
.orbit-2 .orbit-node { animation-duration: 28s; animation-direction: normal; }
.orbit-node-b { top: auto; bottom: -20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquesina de capacidades */
.pillars-strip { padding: 26px 0 30px; border-top: 0; overflow: hidden; }
.strip-title { margin-bottom: 18px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; box-shadow: var(--shadow-sm); }
.marquee-track .ico { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Brillo que sigue al cursor en tarjetas */
.service-card, .reason-card, .sector-card { --mx: 50%; --my: 50%; }
.service-card::before, .sector-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(27, 132, 255, .08), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.sector-card { position: relative; }
.service-card:hover::before, .sector-card:hover::before { opacity: 1; }
.reason-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(25, 195, 230, .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.reason-card:hover::before { opacity: 1; }
.tilt { transition: transform .2s ease, box-shadow .25s, border-color .25s; will-change: transform; }

/* Tarjetas de servicio con ilustración */
.service-card-media { padding: 0; overflow: hidden; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #0a1633; overflow: hidden; }
.card-media .illustration { width: 100%; height: 100%; transition: transform .5s ease; }
.service-card-media:hover .card-media .illustration { transform: scale(1.05); }
.card-media .card-num { color: rgba(255, 255, 255, .35); top: 16px; right: 18px; z-index: 1; }
.service-card-media .icon-box-float { margin: -30px 0 10px 26px; position: relative; z-index: 2; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.service-card-media h3, .service-card-media p, .service-card-media .card-link { margin-left: 26px; margin-right: 26px; }
.service-card-media .card-link { margin-bottom: 26px; }
.illustration { display: block; width: 100%; height: auto; border-radius: 22px; }
.service-visual { margin-bottom: 18px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }

/* Animaciones de las ilustraciones */
.il-led { animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
.il-float { animation: ilFloat 6s ease-in-out infinite; }
@keyframes ilFloat { 50% { transform: translateY(-6px); } }
.il-draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: ilDraw 4s ease-in-out infinite; }
@keyframes ilDraw { 0% { stroke-dashoffset: 400; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }
.il-type { transform-box: fill-box; transform-origin: left center; animation: ilType 6s ease-in-out infinite; }
@keyframes ilType { 0% { transform: scaleX(0); } 12%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.il-caret { animation: blink 1s steps(1) infinite; }
.il-pulse { transform-box: fill-box; transform-origin: center; animation: ilPulse 2.4s ease-in-out infinite; }
@keyframes ilPulse { 50% { transform: scale(1.25); filter: drop-shadow(0 0 6px #19c3e6); } }
.il-flow { stroke-dasharray: 6 8; animation: ilFlow 1.6s linear infinite; }
.il-flow-fast { animation-duration: .9s; }
@keyframes ilFlow { to { stroke-dashoffset: -28; } }
.il-spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.il-bar { transform-box: fill-box; transform-origin: bottom; animation: ilBar 3.2s ease-in-out infinite; }
@keyframes ilBar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.il-ring { animation: ilRing 4s ease-in-out infinite; }
@keyframes ilRing { 50% { stroke-dashoffset: 90; } }
.il-d1 { animation-delay: .2s; } .il-d2 { animation-delay: .5s; } .il-d3 { animation-delay: .8s; } .il-d4 { animation-delay: 1.1s; } .il-d5 { animation-delay: 1.4s; } .il-d6 { animation-delay: 1.7s; } .il-d7 { animation-delay: 2s; }

/* Línea de pasos animada */
.steps::after { content: ''; position: absolute; top: 28px; left: 10%; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1.8s cubic-bezier(.2, .7, .2, 1) .3s; }
.steps.is-visible::after { width: 80%; }
.step-num { z-index: 1; }

/* Encabezado de páginas internas en oscuro */
.page-hero.hero-tech { padding: 70px 0 120px; border-bottom: 0; }
.page-hero.hero-tech h1 { color: #fff; }
.page-hero.hero-tech p { color: rgba(255, 255, 255, .72); }
.page-hero.hero-tech .crumbs, .page-hero.hero-tech .crumbs a { color: rgba(255, 255, 255, .6); }
.page-hero.hero-tech .crumbs [aria-current] { color: var(--cyan); }
.page-hero.hero-tech .text-accent { background: linear-gradient(90deg, #4d9dff, #19c3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero-inner { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }

/* Chat */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 150; font-family: var(--font-body); }
.chat-launcher { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--blue), #0b6be6); box-shadow: 0 16px 34px -10px rgba(27, 132, 255, .75); display: grid; place-items: center; transition: transform .2s; }
.chat-launcher::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(27, 132, 255, .45); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher-ico { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .25s, opacity .25s; }
.chat-ico-close { opacity: 0; transform: rotate(-90deg); }
.chat[data-open="true"] .chat-ico-open { opacity: 0; transform: rotate(90deg); }
.chat[data-open="true"] .chat-ico-close { opacity: 1; transform: none; }
.chat[data-open="true"] .chat-launcher::before, .chat[data-open="true"] .chat-badge { display: none; }
.chat-badge { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #ff4d5e; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.chat-teaser { position: absolute; right: 74px; bottom: 12px; margin: 0; white-space: nowrap; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #fff; color: var(--text); font-size: .88rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.chat-teaser strong { color: var(--blue); }
.chat.show-teaser .chat-teaser { opacity: 1; transform: none; }
.chat-panel { position: absolute; right: 0; bottom: 78px; width: 370px; height: 540px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(6, 18, 43, .45); border: 1px solid var(--line); animation: chatIn .28s cubic-bezier(.2, .7, .2, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff; background: radial-gradient(400px 160px at 100% 0, #1b84ff, transparent), #071731; }
.chat-avatar { position: relative; }
.chat-avatar .brand-mark { width: 40px; height: 40px; }
.chat-online { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #3fd08a; border: 2px solid #071731; }
.chat-title { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.chat-title strong { font-family: var(--font-head); }
.chat-title small { color: rgba(255, 255, 255, .65); font-size: .76rem; }
.chat-close { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255, 255, 255, .2); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 86%; animation: fadeUp .3s ease both; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.msg-bot .bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user .bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg-links a { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--blue); }
.msg-links a:hover { border-color: var(--blue); }
.msg-links a.is-primary { background: #25d366; border-color: #25d366; color: #06361c; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb0c8; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; background: var(--soft); max-height: 132px; overflow-y: auto; }
.chat-quick:empty { display: none; }
.chat-quick button { border: 1px solid rgba(27, 132, 255, .35); background: #fff; color: var(--blue); font: inherit; font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; text-align: left; }
.chat-quick button:hover { background: var(--blue); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: .92rem; background: var(--soft); }
.chat-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat-form button { width: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: .84rem; font-weight: 700; color: #128c4b; background: #effbf3; }
.chat-wa:hover { background: #def6e7; }

@media (max-width: 1024px) {
  .orbit-1 { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
  .orbit-2 { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
  .steps::after { display: none; }
}
@media (max-width: 720px) {
  .hero-tech { padding-bottom: 100px; }
  .orbit { display: none; }
  .chat { right: 14px; bottom: 14px; }
  .chat-panel { position: fixed; inset: auto 8px 86px 8px; width: auto; height: min(560px, calc(100dvh - 110px)); }
  .chat-teaser { display: none; }
  .marquee-track { animation-duration: 28s; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-line { stroke-dashoffset: 0; } .hv-area, .hv-dot { opacity: 1; }
  .il-type { transform: none; } .il-draw { stroke-dashoffset: 0; }
}
