/* ===== Variables (cambia aquí los colores de marca) ===== */
:root {
  --ink: #051C2C;        /* azul profundo principal */
  --navy: #0B2545;
  --accent: #B8893B;     /* dorado Altenor, usado con moderación */
  --accent-2: #D4A85A;
  --text: #1E2A36;
  --muted: #5F6B7A;
  --line: #D9DEE4;
  --bg: #FFFFFF;
  --bg-gray: #F3F4F6;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); font-size: 16.5px; color: var(--text); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); }
h1, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.display { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
.hidden { display: none; }
::selection { background: var(--ink); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2em;
}

/* ===== Barra de progreso ===== */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ===== Botones y enlaces ===== */
.arrow { display: inline-block; width: 18px; height: 10px; position: relative; margin-left: 10px; vertical-align: middle; transition: transform .4s var(--ease); }
.arrow::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn {
  display: inline-flex; align-items: center; padding: 1em 1.8em; border: 1px solid transparent; border-radius: 0;
  font: 600 .92rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; z-index: 0; transition: color .4s var(--ease), border-color .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover .arrow, .link-arrow:hover .arrow, .industry:hover .arrow { transform: translateX(6px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary::before { background: var(--ink); }
.hero .btn--primary::before, .section--dark .btn--primary::before { background: #fff; }
.hero .btn--primary:hover, .section--dark .btn--primary:hover { color: var(--ink); }
.link-arrow {
  display: inline-flex; align-items: center; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow--light { color: #fff; }

/* ===== Encabezado ===== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s var(--ease), box-shadow .4s, transform .4s var(--ease); }
.topbar { font-size: .8rem; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.12); transition: margin .4s var(--ease), opacity .3s; height: 38px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar__links { display: flex; gap: 28px; }
.topbar a { text-decoration: none; transition: color .3s; }
.topbar a:hover { color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .4s var(--ease); }
.header.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(5,28,44,.06); }
.header.is-scrolled .topbar { margin-top: -38px; opacity: 0; }
.header.is-scrolled .header__inner { height: 68px; }
.brand { position: relative; display: block; }
.brand__logo { height: 26px; width: auto; transition: opacity .4s; }
.brand__logo--dark { position: absolute; inset: 0; opacity: 0; }
.header.is-scrolled .brand__logo--dark { opacity: 1; }
.header.is-scrolled .brand__logo--light { opacity: 0; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a:not(.btn) { position: relative; font-size: .93rem; font-weight: 500; color: #fff; text-decoration: none; padding: 6px 0; transition: color .3s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink); }
.nav__cta { padding: .75em 1.4em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: #fff; margin: 6px 0; transition: .35s var(--ease); }
.header.is-scrolled .menu-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; padding: 170px 0 150px; background: var(--ink); }
.hero__slides, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 9s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { background: linear-gradient(90deg, rgba(5,28,44,.95) 0%, rgba(5,28,44,.8) 45%, rgba(5,28,44,.35) 100%), linear-gradient(0deg, rgba(5,28,44,.7) 0%, transparent 35%); }
.hero__inner { position: relative; z-index: 1; }
.hero__inner > * { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .kicker { color: var(--accent-2); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 600px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.hero-in { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes wordUp { to { transform: none; } }
.hero__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; border-top: 1px solid rgba(255,255,255,.18); }
.hero__tabs-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.hero__tab {
  position: relative; text-align: left; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer;
  font: 500 .95rem var(--sans); padding: 22px 24px 26px 0; transition: color .3s;
}
.hero__tab small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--accent-2); margin-bottom: 4px; }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab-bar { position: absolute; top: -1px; left: 0; right: 24px; height: 2px; background: transparent; }
.hero__tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__tab-bar::after { animation: tabFill 7s linear forwards; }
@keyframes tabFill { to { transform: scaleX(1); } }

/* ===== Secciones ===== */
.section { padding: 130px 0; position: relative; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.78); }
.section--dark .display, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.section__head--split > p { color: var(--muted); margin-bottom: 1.2em; }
.section--dark .section__head--split > p { color: rgba(255,255,255,.7); }

/* Nosotros */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.intro__text { padding-top: 2.4em; color: var(--muted); }
.intro__text strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 100px 0; }
.stat { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4.5vw, 3.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat span { color: var(--muted); font-size: .92rem; }
.values { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.values__media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.values__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.values__media.is-visible img { transform: scale(1); }
.values__list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.values__list article:first-child { padding-top: 0; }
.values__list h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-bottom: .3em; }
.values__list p { color: var(--muted); margin: 0; }

/* Capacidades */
.caps { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.caps__tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.caps__tab {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0 22px 28px;
  font: 500 1.05rem var(--sans); color: var(--muted); transition: color .3s, padding-left .4s var(--ease);
}
.caps__tab small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 2px; }
.caps__tab::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.caps__tab:hover { color: var(--ink); padding-left: 34px; }
.caps__tab.is-active { color: var(--ink); font-weight: 600; }
.caps__tab.is-active::before { transform: scaleY(1); }
.caps__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #fff; padding: 0; }
.caps__panel[hidden] { display: none; }
.caps__panel.is-active .caps__img img { animation: imgIn 1.1s var(--ease) both; }
.caps__panel.is-active .caps__body > * { animation: rise .8s var(--ease) both; }
.caps__panel.is-active .caps__body > :nth-child(2) { animation-delay: .08s; }
.caps__panel.is-active .caps__body > :nth-child(3) { animation-delay: .16s; }
.caps__panel.is-active .caps__body > :nth-child(4) { animation-delay: .24s; }
@keyframes imgIn { from { clip-path: inset(0 100% 0 0); transform: scale(1.1); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
.caps__img { position: relative; overflow: hidden; min-height: 420px; }
.caps__img img { width: 100%; height: 100%; object-fit: cover; }
.caps__body { padding: 44px 44px 44px 0; }
.caps__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.25; }
.caps__body > p { color: var(--muted); }
.caps__body ul { list-style: none; padding: 0; margin: 1.4em 0 1.8em; }
.caps__body li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; display: flex; gap: 14px; }
.caps__body li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .65em; background: var(--accent); }

/* ===== Tecnología e IA ===== */
.tech { overflow: hidden; }
.tech::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 40%, rgba(184,137,59,.14), transparent 70%),
              linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
              linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
}
.tech .container { position: relative; }
.ttabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 56px; }
.ttab {
  text-align: left; background: none; border: 0; cursor: pointer; padding: 16px 16px 18px 0;
  font: 500 1rem var(--sans); color: rgba(255,255,255,.55); transition: color .3s;
}
.ttab small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--accent-2); margin-bottom: 2px; }
.ttab:hover, .ttab.is-active { color: #fff; }
.ttabs__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 25%; background: var(--accent); transition: transform .6s var(--ease); }
.tpanel { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: center; }
.tpanel[hidden] { display: none; }
.tpanel.is-active .tpanel__text > * { animation: rise .8s var(--ease) both; }
.tpanel.is-active .tpanel__text > :nth-child(2) { animation-delay: .08s; }
.tpanel.is-active .tpanel__text > :nth-child(3) { animation-delay: .16s; }
.tpanel.is-active .tpanel__stage { animation: stageIn 1s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.tpanel__text h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: #fff; }
.tpanel__text > p { color: rgba(255,255,255,.72); }
.tchecks { list-style: none; padding: 0; margin: 1.6em 0 0; }
.tchecks li { padding: 12px 0 12px 30px; border-top: 1px solid rgba(255,255,255,.12); position: relative; font-size: .95rem; color: rgba(255,255,255,.88); }
.tchecks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }
.tpanel__stage { position: relative; }
.tech__note { margin: 28px 0 0; font-size: .78rem; color: rgba(255,255,255,.4); text-align: right; }
.tflow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 72px; border-top: 1px solid rgba(255,255,255,.15); }
.tflow div { padding: 22px 16px 0 0; position: relative; }
.tflow div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); transition: background .3s, transform .3s var(--ease); }
.tflow div:hover::before { background: var(--accent); transform: scale(1.3); }
.tflow small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--accent-2); }
.tflow b { display: block; color: #fff; font-weight: 600; margin: 4px 0 2px; }
.tflow span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ===== Sistemas especializados ===== */
.systems { margin-top: 110px; padding-top: 80px; border-top: 1px solid rgba(255,255,255,.12); }
.systems__head { max-width: 760px; margin-bottom: 48px; }
.systems__head .display { color: #fff; }
.systems__head p:last-child { color: rgba(255,255,255,.7); }
.feed { background: rgba(7,26,51,.7); border: 1px solid rgba(255,255,255,.1); padding: 40px; backdrop-filter: blur(4px); }
.feed__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.feed__intro h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; margin: 10px 0 0; line-height: 1.2; }
.feed__intro p { margin: 0; color: rgba(255,255,255,.72); }
.feed__tag { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.feed__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.feed__kpis div { background: #0B2033; padding: 14px 16px; }
.feed__kpis small { display: block; font-size: .72rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.feed__kpis strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.feed__kpis div:first-child strong { color: var(--accent-2); }
.feed__scroll { overflow-x: auto; scrollbar-width: thin; margin: 0 -8px; padding: 0 8px; }
.feed__svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.feed__rail { stroke: #22405C; stroke-width: 14; stroke-linecap: round; }
.feed__belt { stroke: #3B5F80; stroke-width: 2; stroke-dasharray: 8 4; }
.feed__grain circle { fill: var(--accent-2); }
.st { cursor: pointer; }
.st__glow { fill: var(--accent); opacity: 0; transition: opacity .5s; }
.st__icon rect, .st__icon path, .st__icon circle { fill: #13283B; stroke: #6F8BA6; stroke-width: 2; transition: stroke .4s, fill .4s; }
.st.on .st__glow { opacity: .14; }
.st.on .st__icon rect, .st.on .st__icon path, .st.on .st__icon circle { stroke: var(--accent-2); fill: #1A3550; }
.st__val { fill: rgba(255,255,255,.45); font-size: 12px; text-anchor: middle; transition: fill .4s; }
.st.on .st__val { fill: var(--accent-2); font-weight: 600; }
.st__num { fill: var(--accent-2); font-size: 10px; letter-spacing: .12em; text-anchor: middle; }
.st__name { fill: rgba(255,255,255,.7); font-size: 13px; text-anchor: middle; transition: fill .4s; }
.st.on .st__name { fill: #fff; font-weight: 600; }
.st__display { fill: #4CC38A; font-size: 10px; font-weight: 600; text-anchor: middle; }
.feed__fill rect { fill: var(--accent); opacity: .75; }
.feed__drop circle, .feed__pellets rect { fill: var(--accent-2); }
.feed__rotor line { stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; }
.feed__die circle { fill: #0B2033; stroke: #6F8BA6; stroke-width: 2; }
.feed__die circle + circle, .feed__die circle ~ circle { fill: var(--accent-2); stroke: none; }
.feed__air path { fill: none; stroke: #7FC4F0; stroke-width: 2; stroke-linecap: round; }
.feed__bag { fill: #1A3550; stroke: var(--accent-2); stroke-width: 2; }
.feed__caption { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; margin-top: 8px; background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); min-height: 92px; }
.feed__step { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--accent-2); flex-shrink: 0; }
.feed__caption b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.feed__caption p { margin: 0; color: rgba(255,255,255,.72); font-size: .95rem; }
.feed__caption.is-swap > * { animation: rise .5s var(--ease) both; }
.feed__modules { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feed__modules li { border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; font-size: .85rem; color: rgba(255,255,255,.88); transition: background .3s, border-color .3s, color .3s; }
.feed__modules li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.sys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 24px; }
.sys__card { grid-column: span 2; }
.sys__card:nth-child(n+4) { grid-column: span 3; }
.sys__card { background: rgba(7,26,51,.7); border: 1px solid rgba(255,255,255,.1); padding: 22px 22px 26px; transition: border-color .4s, transform .5s var(--ease), background .4s; }
.sys__card:hover { border-color: rgba(212,168,90,.6); transform: translateY(-6px); background: rgba(11,32,51,.9); }
.sys__viz { display: block; width: 100%; height: 165px; background: #0B2033; border-radius: 6px; margin-bottom: 20px; font-family: var(--sans); }
.sys__acr { font-family: var(--serif); font-size: 1.7rem; color: var(--accent-2); line-height: 1; }
.sys__card h4 { color: #fff; font-size: 1rem; font-weight: 600; margin: 6px 0 12px; }
.sys__card ul { list-style: none; margin: 0; padding: 0; }
.sys__card li { font-size: .88rem; color: rgba(255,255,255,.72); padding: 7px 0 7px 16px; border-top: 1px solid rgba(255,255,255,.08); position: relative; }
.sys__card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--accent); }
/* Visuales de cada sistema */
.viz-gear circle, .viz-gear rect { fill: #1A3550; stroke: var(--accent-2); stroke-width: 1.5; }
.viz-gear .viz-hole { fill: #0B2033; }
.viz-gear .viz-teeth { fill: none; stroke: var(--accent-2); stroke-width: 10; stroke-dasharray: 8 7.7; }
.viz-ot rect { fill: #13283B; }
.viz-ot text { fill: #C9D4DF; font-size: 9.5px; }
.viz-ot .ok { fill: #4CC38A; } .viz-ot .run { fill: #5AA9E6; } .viz-ot .warn { fill: #F0776F; }
.viz-label { fill: #C9D4DF; font-size: 10px; font-weight: 600; }
.viz-track { fill: #13283B; }
.viz-bar { fill: var(--accent-2); }
.viz-limit { stroke: #F0776F; stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.viz-center { stroke: #4CC38A; stroke-width: 1; opacity: .6; }
.viz-small { fill: #8193A6; font-size: 9px; }
.viz-spc { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.viz-out { fill: #F0776F; }
.viz-nc rect { fill: rgba(240,119,111,.15); stroke: #F0776F; }
.viz-nc text { fill: #F7B1AC; font-size: 10px; font-weight: 600; }
.viz-mach rect { fill: #13283B; stroke-width: 2; }
.viz-mach text { fill: #fff; font-size: 12px; font-weight: 600; text-anchor: middle; }
.viz-mach text.viz-small { fill: #8193A6; font-weight: 400; font-size: 9px; }
.viz-mach .m1, .viz-mach .m2, .viz-mach .m4 { stroke: #4CC38A; }
.viz-mach .m2 { animation: machState 8s steps(1) infinite; }
.viz-mach .m3 { stroke: #F5BE4F; animation: machBlink 1.4s ease-in-out infinite; }
@keyframes machState { 0%, 60% { stroke: #4CC38A; } 61%, 80% { stroke: #F0776F; } 81%, 100% { stroke: #4CC38A; } }
@keyframes machBlink { 50% { fill: rgba(245,190,79,.18); } }
.viz-gauge-track { fill: none; stroke: #13283B; stroke-width: 12; stroke-linecap: round; }
.viz-gauge { fill: none; stroke: var(--accent-2); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }
.viz-big { fill: #fff; font-size: 22px; font-weight: 600; }
.viz-grid line { stroke: rgba(255,255,255,.05); }
.viz-route { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 6 5; opacity: .8; }
.viz-pin { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.viz-stop { fill: #0B2033; stroke: var(--accent-2); stroke-width: 2; }
.viz-truck rect { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.viz-eta rect { fill: #13283B; stroke: rgba(255,255,255,.15); }
.viz-eta text { fill: #fff; font-size: 11px; font-weight: 600; }
.viz-eta text.viz-small { fill: #8193A6; font-weight: 400; font-size: 9px; }
.viz-shield { fill: #1A3550; stroke: var(--accent-2); stroke-width: 2; }
.viz-check { fill: none; stroke: #4CC38A; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.viz-matrix rect { rx: 3; }
.viz-matrix .r1 { fill: rgba(76,195,138,.55); } .viz-matrix .r2 { fill: rgba(76,195,138,.85); }
.viz-matrix .r3 { fill: rgba(245,190,79,.6); } .viz-matrix .r4 { fill: rgba(245,190,79,.9); }
.viz-matrix .r5 { fill: rgba(240,119,111,.85); }
.viz-leaf { fill: #4CC38A; }
.viz-env { fill: #4CC38A; font-size: 13px; font-weight: 600; }

/* ===== Dashboards por sistema ===== */
.dash-link {
  display: inline-flex; align-items: center; margin-top: 18px; padding: 0 0 3px; background: none; border: 0; cursor: pointer;
  font: 600 .88rem var(--sans); color: var(--accent-2);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.dash-link:hover { background-size: 100% 1px; color: #fff; }
.dash-link:hover .arrow { transform: translateX(6px); }
.dashx { margin-top: 80px; scroll-margin-top: 90px; }
.dashx__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.dashx__head .display { color: #fff; margin: 0; }
.dashx__head > p { margin: 0 0 .4em; color: rgba(255,255,255,.7); }
.dtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.dtab {
  background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); cursor: pointer;
  padding: 10px 18px; font: 500 .92rem var(--sans); transition: background .3s, color .3s, border-color .3s;
}
.dtab:hover { border-color: #fff; color: #fff; }
.dtab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dpanel[hidden] { display: none; }
.dpanel.is-active { animation: stageIn .9s var(--ease) both; }
.mock-fit--scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.mock-fit--scroll::after { content: ""; display: block; width: var(--sw); height: 1px; }
.browser.browser--wide { width: 1000px; }
.dboard { padding: 16px; color: #C9D4DF; }
.dboard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dboard__top b { color: #fff; font-size: 15px; font-weight: 600; }
.dboard__top div { display: flex; gap: 6px; align-items: center; }
.dboard__top span { font-size: 10.5px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: #C9D4DF; }
.dboard__top .dboard__live { border-color: rgba(76,195,138,.4); color: #4CC38A; animation: blink 2s ease-in-out infinite; }
.dboard__kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.dboard__kpis div { background: #13283B; border-radius: 8px; padding: 11px 13px; border-top: 2px solid transparent; }
.dboard__kpis div:first-child { border-top-color: var(--accent-2); }
.dboard__kpis small { display: block; font-size: 10px; color: #8193A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dboard__kpis strong { display: block; font-size: 20px; color: #fff; margin: 3px 0 1px; font-weight: 600; }
.dboard__kpis em { font-style: normal; font-size: 10px; font-weight: 600; }
.dboard__kpis .up { color: #4CC38A; } .dboard__kpis .down { color: #F0776F; } .dboard__kpis .flat { color: #8193A6; }
.dboard__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dcard { background: #13283B; border-radius: 8px; padding: 12px 14px 10px; min-width: 0; }
.dcard--wide { grid-column: span 2; }
.dcard__t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11.5px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.dcard__t span { font-size: 9.5px; font-weight: 400; color: #8193A6; text-align: right; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dcard__t span i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.dchart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.d-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.d-ax { fill: #8193A6; font-size: 9px; }
.d-lb { fill: #C9D4DF; font-size: 10px; }
.d-val { fill: #fff; font-size: 10px; font-weight: 600; }
.d-gt { fill: #fff; font-size: 9px; font-weight: 600; }
.d-center { fill: #fff; font-size: 20px; font-weight: 600; }
.d-track { fill: rgba(255,255,255,.06); }
.d-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.d-area { opacity: .12; }
.d-plan { fill: none; stroke-width: 1.8; stroke-dasharray: .018 .012; }
.dashx.is-visible .dpanel.is-active .d-plan { animation: fadeIn .8s ease both 1s; }
.d-donut-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 16; }
.d-seg { fill: none; stroke-width: 16; stroke-dasharray: var(--len) 999; }
.d-silo { fill: #0B2033; stroke: #3B5F80; stroke-width: 1.5; }
.d-now { stroke: #F0776F; stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-now-dot { fill: #F0776F; animation: blink 1.4s ease-in-out infinite; }
.d-alert { animation: blink 1.2s ease-in-out infinite; }
.d-map { stroke: rgba(255,255,255,.04); }
.d-coast { fill: none; stroke: rgba(90,169,230,.25); stroke-width: 2; }
.d-route { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: .012 .008; opacity: .75; }
.d-pin { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.d-depot { fill: #0B2033; stroke: #4CC38A; stroke-width: 3; }
.d-truck rect { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.d-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.d-tile { background: #0B2033; border-radius: 6px; padding: 8px 10px; border-left: 3px solid #4CC38A; }
.d-tile b { display: block; color: #fff; font-size: 10.5px; }
.d-tile span { font-size: 9.5px; color: #8193A6; }
.d-tile--warn { border-left-color: #F5BE4F; animation: tileWarn 1.6s ease-in-out infinite; }
.d-tile--bad { border-left-color: #F0776F; animation: tileBad 1.2s ease-in-out infinite; }
@keyframes tileWarn { 50% { background: rgba(245,190,79,.12); } }
@keyframes tileBad { 50% { background: rgba(240,119,111,.16); } }
@keyframes blink { 50% { opacity: .35; } }
.d-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.d-table th { text-align: left; color: #8193A6; font-weight: 500; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.d-table td { white-space: nowrap; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.05); color: #C9D4DF; }
.d-table td:first-child { color: #fff; font-weight: 600; }
.d-pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 9.5px; font-weight: 600; }
.d-pill--ok { background: rgba(76,195,138,.15); color: #4CC38A; }
.d-pill--run { background: rgba(90,169,230,.15); color: #5AA9E6; }
.d-pill--warn { background: rgba(245,190,79,.15); color: #F5BE4F; }
.d-pill--bad { background: rgba(240,119,111,.18); color: #F0776F; }
.d-pill--idle { background: rgba(255,255,255,.08); color: #C9D4DF; }
/* Animaciones de los dashboards: se disparan al ver la sección y al cambiar de pestaña */
.d-bar { transform-box: fill-box; transform-origin: bottom; }
.d-hbar { transform-box: fill-box; transform-origin: left; }
.dashx.is-visible .dpanel.is-active .d-bar { animation: barUp .9s var(--ease) both; animation-delay: calc(.25s + var(--i) * .05s); }
.dashx.is-visible .dpanel.is-active .d-hbar { animation: barGrow 1s var(--ease) both; animation-delay: calc(.3s + var(--i) * .08s); }
.dashx.is-visible .dpanel.is-active .d-line { animation: dLine 1.6s var(--ease) both .5s; }
.dashx.is-visible .dpanel.is-active .d-area { animation: fadeIn 1s ease both 1.2s; }
.dashx.is-visible .dpanel.is-active .d-pop:not(.d-alert) { animation: fadeIn .4s ease both; animation-delay: calc(.6s + var(--i) * .06s); }
.dashx.is-visible .dpanel.is-active .d-seg { animation: segIn 1.2s var(--ease) both; animation-delay: calc(.3s + var(--i) * .2s); }
.dashx.is-visible .dpanel.is-active .dboard__kpis div { animation: rise .6s var(--ease) both; animation-delay: calc(.1s + var(--i) * .06s); }
.dashx.is-visible .dpanel.is-active .d-table tbody tr { animation: rowIn .6s var(--ease) both; animation-delay: calc(.4s + var(--i) * .08s); }
@keyframes dLine { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes segIn { from { stroke-dasharray: 0 999; } }

/* Maquetas: se escalan con JS para encajar en su contenedor */
.mock-fit { position: relative; width: 100%; }
.mock-fit > .mock { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.mock { font-family: var(--sans); color: #1E2A36; text-align: left; line-height: 1.4; }
.browser { width: 700px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.browser__bar { height: 34px; background: #EEF0F3; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D7DD; }
.browser__bar i:nth-child(1) { background: #F26B5B; } .browser__bar i:nth-child(2) { background: #F5BE4F; } .browser__bar i:nth-child(3) { background: #5CC674; }
.browser__bar span { margin-left: 14px; flex: 1; background: #fff; border-radius: 5px; padding: 4px 12px; font-size: 11px; color: #7A8594; }
.bar { display: block; height: 6px; background: #E6E9EE; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 3px; transform-origin: left; }
.tpanel.is-active .bar i { animation: barGrow 1.2s var(--ease) both .5s; }
@keyframes barGrow { from { transform: scaleX(0); } }
.up { color: #1E9E62; } .down { color: #D9534F; }

/* ERP */
.erp { display: grid; grid-template-columns: 150px 1fr; height: 430px; }
.erp__side { background: var(--ink); color: rgba(255,255,255,.65); padding: 18px 0; font-size: 12px; }
.erp__logo { color: #fff; font-weight: 700; padding: 0 18px 18px; font-size: 14px; letter-spacing: .05em; }
.erp__logo b { color: var(--accent-2); }
.erp__side ul { list-style: none; margin: 0; padding: 0; }
.erp__side li { padding: 9px 18px; border-left: 3px solid transparent; }
.erp__side li.on { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--accent); }
.erp__main { padding: 18px 20px; background: #F6F7F9; }
.erp__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.erp__top b { font-size: 15px; color: var(--ink); flex: 1; }
.erp__search { background: #fff; border: 1px solid #E1E5EA; border-radius: 6px; padding: 6px 12px; font-size: 11px; color: #9AA3AF; width: 170px; }
.erp__btn { background: var(--accent); color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 11px; font-weight: 600; }
.erp__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.erp__kpis div { background: #fff; border-radius: 8px; padding: 12px 14px; border: 1px solid #E8EBEF; }
.erp__kpis small { display: block; font-size: 10.5px; color: #7A8594; }
.erp__kpis strong { display: block; font-size: 20px; color: var(--ink); margin: 2px 0; }
.erp__kpis em { font-style: normal; font-size: 10.5px; font-weight: 600; }
.erp__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 11.5px; border: 1px solid #E8EBEF; }
.erp__table th { text-align: left; font-weight: 600; color: #7A8594; font-size: 10.5px; padding: 9px 12px; background: #FAFBFC; border-bottom: 1px solid #E8EBEF; }
.erp__table td { padding: 10px 12px; border-bottom: 1px solid #F0F2F5; }
.erp__table td:first-child { font-weight: 600; color: var(--ink); }
.erp__table td .bar { width: 90px; }
.tpanel.is-active .erp__table tbody tr { animation: rowIn .6s var(--ease) both; animation-delay: calc(.35s + var(--i) * .1s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; background: #EEF0F3; color: #5F6B7A; }
.pill--ok { background: #E3F5EC; color: #1E9E62; }
.pill--run { background: #E6EEF9; color: #2D6CC0; }
.pill--warn { background: #FCEEDB; color: #C07A1A; }

/* App móvil */
.tpanel__stage--app { display: flex; justify-content: center; min-height: 560px; }
.mock-fit--phone { max-width: 290px; }
.phone { width: 290px; height: 590px; background: #0A0F14; border-radius: 42px; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 2px #2A313A; }
.phone__notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 24px; margin-left: -55px; background: #0A0F14; border-radius: 0 0 16px 16px; z-index: 2; }
.app { position: relative; height: 100%; background: #F6F7F9; border-radius: 32px; overflow: hidden; padding: 40px 16px 70px; font-size: 12px; }
.app__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.app__top small { display: block; color: #7A8594; font-size: 10.5px; }
.app__top b { font-size: 17px; color: var(--ink); }
.app__sync { font-size: 9.5px; color: #1E9E62; background: #E3F5EC; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.app__progress { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 10.5px; color: #7A8594; }
.app__progress b { color: var(--ink); }
.app__checks { list-style: none; margin: 0 0 12px; padding: 0; background: #fff; border-radius: 12px; }
.app__checks li { position: relative; padding: 11px 12px 11px 38px; border-bottom: 1px solid #F0F2F5; font-size: 11.5px; }
.app__checks li:last-child { border-bottom: 0; }
.app__checks li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 5px; border: 1.5px solid #C9CFD6; background: #fff; }
.app__checks li:not(.todo)::after { content: ""; position: absolute; left: 17px; top: 50%; width: 6px; height: 3px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tpanel.is-active .app__checks li:not(.todo)::before { animation: tick .35s ease both; animation-delay: calc(.6s + var(--i) * .35s); }
.tpanel.is-active .app__checks li:not(.todo)::after { animation: fadeIn .2s ease both; animation-delay: calc(.75s + var(--i) * .35s); }
@keyframes tick { to { background: #1E9E62; border-color: #1E9E62; } }
@keyframes fadeIn { from { opacity: 0; } }
.app__photo { border: 1.5px dashed #C9CFD6; border-radius: 12px; padding: 12px; text-align: center; color: #7A8594; font-size: 11px; margin-bottom: 12px; }
.app__photo span { display: block; font-size: 16px; color: var(--accent); }
.app__cta { background: var(--ink); color: #fff; text-align: center; border-radius: 12px; padding: 12px; font-weight: 600; }
.app__nav { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #fff; display: flex; justify-content: space-around; align-items: center; font-size: 10px; color: #9AA3AF; border-top: 1px solid #ECEFF2; }
.app__nav .on { color: var(--accent); font-weight: 600; }
.toast {
  position: absolute; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  font-size: .8rem; color: var(--muted); max-width: 200px; border-left: 3px solid var(--accent);
}
.toast b { display: block; color: var(--ink); font-size: .85rem; }
.toast--1 { top: 12%; left: 0; }
.toast--2 { bottom: 14%; right: 0; border-left-color: #1E9E62; }
.tpanel.is-active .toast--1 { animation: toastIn .8s var(--ease) both 1.6s, float 6s ease-in-out infinite 2.4s; }
.tpanel.is-active .toast--2 { animation: toastIn .8s var(--ease) both 2.4s, float 7s ease-in-out infinite 3.2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Dashboard */
.browser--dark { background: #0E1E2E; }
.browser--dark .browser__bar { background: #0A1622; }
.browser--dark .browser__bar span { background: #13283B; color: #8193A6; }
.bi { padding: 16px; color: #C9D4DF; }
.bi__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.bi__kpis div, .bi__card { background: #13283B; border-radius: 8px; padding: 11px 13px; }
.bi__kpis small { display: block; font-size: 10px; color: #8193A6; }
.bi__kpis strong { display: block; font-size: 19px; color: #fff; margin: 2px 0; }
.bi__kpis em { font-style: normal; font-size: 9.5px; font-weight: 600; }
.bi__kpis .up { color: #4CC38A; } .bi__kpis .down { color: #F0776F; }
.bi__grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 10px; }
.bi__title { font-size: 11px; color: #fff; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.bi__title span { font-weight: 400; color: #8193A6; font-size: 10px; display: flex; align-items: center; gap: 4px; }
.lg { display: inline-block; width: 10px; height: 2px; margin-left: 6px; }
.lg--a { background: var(--accent-2); } .lg--b { background: #5A7188; }
.bi__line { width: 100%; height: 120px; display: block; overflow: visible; }
.bi__line .grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.bi__line .meta { fill: none; stroke: #5A7188; stroke-width: 2; stroke-dasharray: 5 5; }
.bi__line .real { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 700; stroke-dashoffset: 700; vector-effect: non-scaling-stroke; }
.bi__line .area { fill: rgba(212,168,90,.14); opacity: 0; }
.bi__line .dot { fill: var(--accent-2); opacity: 0; }
.tpanel.is-active .bi__line .real { animation: draw 1.8s var(--ease) forwards .4s; }
.tpanel.is-active .bi__line .area { animation: fadeTo 1s ease forwards 1.4s; }
.tpanel.is-active .bi__line .dot { animation: fadeTo .4s ease forwards 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeTo { to { opacity: 1; } }
.bi__months { display: flex; justify-content: space-between; font-size: 9px; color: #8193A6; margin-top: 4px; }
.donut { position: relative; width: 110px; height: 110px; margin: 6px auto 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 10; }
.donut .track { stroke: rgba(255,255,255,.08); }
.donut .val { stroke: var(--accent-2); stroke-linecap: round; stroke-dasharray: 238.8; stroke-dashoffset: 238.8; }
.tpanel.is-active .donut .val { animation: donut 1.6s var(--ease) forwards .6s; }
@keyframes donut { to { stroke-dashoffset: 31; } }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 96px; padding-top: 4px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bars i { display: block; width: 100%; height: var(--h); background: linear-gradient(180deg, #4C7EA8, #2C5677); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.bars .alert i { background: linear-gradient(180deg, #F0776F, #B2463F); }
.bars span { font-size: 9px; color: #8193A6; }
.tpanel.is-active .bars i { animation: barUp 1s var(--ease) both; animation-delay: calc(.5s + var(--i) * .08s); }
@keyframes barUp { from { transform: scaleY(0); } }
.bi__alert { border-left: 3px solid #F0776F; }
.bi__alert p { margin: 0; font-size: 10.5px; line-height: 1.5; color: #C9D4DF; }
.bi__alert b { color: #fff; }
.tpanel.is-active .bi__alert { animation: pulseAlert 2s ease-in-out infinite 2.5s; }
@keyframes pulseAlert { 50% { box-shadow: 0 0 0 4px rgba(240,119,111,.15); } }

/* IA */
.ai { height: 430px; background: #F6F7F9; padding: 20px 22px 70px; position: relative; font-size: 12.5px; }
.ai__msg { display: flex; gap: 10px; margin-bottom: 14px; }
.ai__msg p { margin: 0 0 8px; }
.ai__msg--user { justify-content: flex-end; }
.ai__msg--user p { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px 14px 2px 14px; max-width: 70%; margin: 0; }
.ai__msg--bot > div:last-child { background: #fff; border: 1px solid #E8EBEF; border-radius: 2px 14px 14px 14px; padding: 12px 14px; max-width: 82%; }
.ai__avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8A6326); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.ai__typing { display: flex; gap: 4px; margin: 0 0 14px 40px; }
.ai__typing i { width: 7px; height: 7px; border-radius: 50%; background: #B7BEC7; animation: blink 1s infinite; }
.ai__typing i:nth-child(2) { animation-delay: .15s; } .ai__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; transform: translateY(-2px); } }
.tpanel.is-active .ai__msg--user { animation: rise .5s var(--ease) both .2s; }
.ai__typing { height: 7px; overflow: hidden; }
.tpanel.is-active .ai__typing { animation: typingOut .3s ease forwards 1.6s; }
@keyframes typingOut { to { opacity: 0; height: 0; margin-bottom: 0; } }
.tpanel.is-active .ai__msg--bot { animation: rise .5s var(--ease) both 1.8s; }
.tpanel.is-active .ai__l { animation: rise .5s var(--ease) both; animation-delay: calc(2s + var(--i) * .45s); }
.ai__table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 11px; }
.ai__table td { padding: 4px 0; }
.ai__table td:nth-child(2) { width: 45%; padding: 0 10px; }
.ai__table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.ai__chips { display: flex; gap: 8px; }
.ai__chips span { border: 1px solid var(--accent); color: var(--accent); border-radius: 20px; padding: 4px 10px; font-size: 10.5px; font-weight: 600; }
.ai__input { position: absolute; left: 22px; right: 22px; bottom: 18px; background: #fff; border: 1px solid #E1E5EA; border-radius: 22px; padding: 10px 16px; display: flex; justify-content: space-between; color: #9AA3AF; font-size: 11.5px; }
.ai__input b { color: var(--accent); }

/* ===== Tercerización ===== */
.presence { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--ink); color: rgba(255,255,255,.78); margin-bottom: 72px; overflow: hidden; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 420px; background: var(--ink); }
.collage__tile { position: relative; margin: 0; overflow: hidden; }
.collage__tile--main { grid-row: 1 / 3; }
.collage__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.collage__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,28,44,.85)); transition: opacity .5s; }
.collage__tile figcaption {
  position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding-left: 10px; border-left: 2px solid var(--accent-2);
  transform: translateY(6px); opacity: .9; transition: transform .5s var(--ease), opacity .5s;
}
.collage__tile:hover img { transform: scale(1.16); filter: saturate(1.1); }
.collage__tile:hover figcaption { transform: none; opacity: 1; }
.presence.is-visible .collage__tile img { animation: tileIn 1.2s var(--ease) both; }
.presence.is-visible .collage__tile:nth-child(2) img { animation-delay: .12s; }
.presence.is-visible .collage__tile:nth-child(3) img { animation-delay: .24s; }
.presence.is-visible .collage__tile:nth-child(4) img { animation-delay: .36s; }
.presence.is-visible .collage__tile:nth-child(5) img { animation-delay: .48s; }
@keyframes tileIn { from { clip-path: inset(100% 0 0 0); transform: scale(1.25); } to { clip-path: inset(0 0 0 0); transform: scale(1.08); } }
.presence__media { position: relative; overflow: hidden; }
.presence__body { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.presence__body .kicker { color: var(--accent-2); display: flex; align-items: center; gap: 10px; }
.presence__body h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.3; color: #fff; }
.presence__chips { list-style: none; margin: 1.2em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.presence__chips li { border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; font-size: .85rem; color: #fff; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #4CC38A; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4CC38A; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { to { transform: scale(3); opacity: 0; } }
.sfilters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.sfilter {
  background: transparent; border: 1px solid var(--line); cursor: pointer; padding: 11px 18px;
  font: 500 .92rem var(--sans); color: var(--muted); transition: background .3s, color .3s, border-color .3s;
}
.sfilter span { display: inline-block; margin-left: 8px; font-size: .75rem; color: var(--accent); font-weight: 600; transition: color .3s; }
.sfilter:hover { border-color: var(--ink); color: var(--ink); }
.sfilter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sfilter.is-active span { color: var(--accent-2); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; display: flex; flex-direction: column; transition: box-shadow .5s var(--ease), transform .5s var(--ease), opacity .4s, translate .4s; }
.service:hover { box-shadow: 0 24px 50px rgba(5,28,44,.12); transform: translateY(-6px); }
.service.is-hidden { display: none; }
.service.is-entering { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * .06s); }
.service__img { height: 200px; overflow: hidden; position: relative; }
.service__img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service:hover .service__img img { transform: scale(1.08); }
.service:hover .service__img::after { width: 100%; }
.service__body { padding: 24px 26px 28px; }
.service__tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.3; margin: 8px 0 10px; }
.service p { margin: 0; font-size: .92rem; color: var(--muted); }
.omodel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 80px; }
.omodel__item { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.omodel__item::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); transition: width .6s var(--ease); }
.omodel__item:hover::before { width: 100%; }
.omodel__item span { font-family: var(--serif); color: var(--accent); }
.omodel__item h4 { font-size: 1.05rem; font-weight: 600; margin: 12px 0 6px; }
.omodel__item p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Industrias */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry { position: relative; display: block; height: 380px; overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); }
.industry img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1.2s var(--ease), opacity .6s; }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,28,44,0) 30%, rgba(5,28,44,.9) 100%); transition: background .6s; }
.industry__body { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; }
.industry h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0; transition: transform .6s var(--ease); }
.industry p { font-size: .92rem; color: rgba(255,255,255,.85); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.industry .arrow { margin: 14px 0 0; color: var(--accent-2); width: 26px; }
.industry:hover img { transform: scale(1.08); opacity: .55; }
.industry:hover::after { background: linear-gradient(180deg, rgba(5,28,44,.2) 0%, rgba(5,28,44,.95) 100%); }
.industry:hover p, .industry:focus-visible p { max-height: 80px; opacity: 1; margin-top: 10px; }

/* Enfoque */
.parallax { overflow: hidden; }
.parallax__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .14; will-change: transform; }
.parallax__content { position: relative; z-index: 1; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; padding-top: 36px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.2); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: -.5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .2s; }
.steps.is-visible::after { transform: scaleX(1); }
.step { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d), transform .9s var(--ease) var(--d); }
.steps.is-visible .step { opacity: 1; transform: none; }
.step__num { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent-2); margin-bottom: 20px; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; font-size: .95rem; }

.step__tools { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; letter-spacing: .04em; color: var(--accent-2); }
.enfoque__more { margin-top: 56px; }

/* Metodologías */
.mtabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.mtab {
  position: relative; background: none; border: 0; cursor: pointer; padding: 16px 28px 18px 0; margin-right: 8px;
  font: 500 .98rem var(--sans); color: var(--muted); transition: color .3s;
}
.mtab::after { content: ""; position: absolute; left: 0; right: 28px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.mtab:hover { color: var(--ink); }
.mtab.is-active { color: var(--ink); font-weight: 600; }
.mtab.is-active::after { transform: scaleX(1); }
.mpanel[hidden] { display: none; }
.mpanel.is-active .method { animation: rise .8s var(--ease) both; }
.mpanel.is-active .method:nth-child(2) { animation-delay: .1s; }
.mpanel.is-active .method:nth-child(3) { animation-delay: .2s; }
.mpanel.is-active .mitem { animation: rise .7s var(--ease) both; animation-delay: calc(.3s + var(--i, 0) * .05s); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method {
  background: #fff; padding: 34px 30px 30px; border-top: 2px solid var(--ink); display: flex; flex-direction: column;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .3s;
}
.method:hover { box-shadow: 0 24px 50px rgba(5,28,44,.1); transform: translateY(-4px); border-top-color: var(--accent); }
.method__tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.method h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 10px 0 4px; }
.method__use { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.phases { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.phases--4 { grid-template-columns: repeat(4, 1fr); }
.phases li {
  position: relative; cursor: default; text-align: center; padding: 14px 2px 12px; background: var(--bg-gray);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.phases li b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--ink); transition: color .35s; }
.phases li span { display: block; margin-top: 6px; font-size: .68rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); transition: color .35s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phases li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease); }
.phases li.is-on { background: var(--ink); transform: translateY(-3px); }
.phases li.is-on b { color: var(--accent-2); }
.phases li.is-on span { color: #fff; }
.phases li.is-on::after { transform: scaleX(1); }
.phase-desc { font-size: .9rem; color: var(--text); min-height: 4.6em; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); transition: opacity .25s; }
.phase-desc.is-fading { opacity: 0; }
.mlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 44px; }
.mitem { padding: 20px 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease); position: relative; }
.mitem::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.mitem:hover { padding-left: 10px; }
.mitem:hover::before { width: 100%; }
.mitem h4 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.mitem p { margin: 0; font-size: .9rem; color: var(--muted); }

.orgfit { margin-top: 90px; background: var(--ink); color: rgba(255,255,255,.8); padding: 56px; }
.orgfit__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.orgfit__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; margin: 0; line-height: 1.2; }
.orgfit__head p { margin: 0; color: rgba(255,255,255,.65); }
.orgfit__body { display: grid; grid-template-columns: 320px 1fr; gap: 56px; }
.orgfit__list { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.15); }
.orgfit__btn {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer; padding: 12px 0 12px 22px;
  font: 500 .95rem var(--sans); color: rgba(255,255,255,.55); transition: color .3s, padding-left .4s var(--ease);
}
.orgfit__btn::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s var(--ease); }
.orgfit__btn:hover { color: #fff; padding-left: 28px; }
.orgfit__btn.is-active { color: #fff; font-weight: 600; }
.orgfit__btn.is-active::before { transform: scaleY(1); }
.orgfit__why { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: #fff; margin-bottom: 28px; min-height: 3em; }
.orgfit__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.orgfit__chips li {
  border: 1px solid rgba(255,255,255,.25); padding: 10px 18px; font-size: .9rem; color: #fff;
  opacity: 0; transform: translateY(12px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * .07s);
  transition: background .3s, border-color .3s, color .3s;
}
.orgfit__chips li:hover { background: var(--accent); border-color: var(--accent); }
.orgfit__why.is-swap { animation: rise .6s var(--ease) both; }

/* Diferencial */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.feature::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 40px; background: var(--accent); transition: width .6s var(--ease); }
.feature:hover::before { width: 100%; }
.feature__num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--accent); margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Testimonio */
.quote { background: var(--bg-gray); padding: 120px 0; }
.quote blockquote { margin: 0 auto; max-width: 940px; }
.quote p { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.35; color: var(--ink); margin-bottom: 28px; }
.quote cite { font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-left: 56px; position: relative; }
.quote cite::before { content: ""; position: absolute; left: 0; top: 50%; width: 40px; height: 1px; background: var(--accent); }

/* CTA */
.cta { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: rgba(255,255,255,.8); }
.cta__media { position: relative; overflow: hidden; min-height: 520px; margin: 0; }
.cta__media img, .caps__img img { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.cta__media.is-visible img { transform: scale(1); }
.cta__body { padding: 100px 9% 100px 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta .display { color: #fff; }
.cta p:not(.kicker) { margin-bottom: 2.2rem; font-size: 1.08rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; }
.contact__lead { color: var(--muted); font-size: 1.08rem; }
.contact__info { margin: 2.6rem 0 2.2rem; }
.contact__info div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__info dt { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__info dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.contact__info a { text-decoration: none; transition: color .3s; }
.contact__info a:hover { color: var(--accent); }
.form { display: grid; gap: 30px; align-content: start; padding-top: .5em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 22px 0 10px; outline: 0;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; cursor: pointer; }
.field textarea { resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field span { position: absolute; left: 0; top: 20px; color: var(--muted); pointer-events: none; transition: top .3s var(--ease), font-size .3s var(--ease), color .3s, letter-spacing .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select span { top: 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.form .btn { justify-self: start; }

/* Pie */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 80px 0 0; font-size: .92rem; }
.footer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { height: 26px; width: auto; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 48px 0; }
.footer h4 { color: #fff; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer__grid a, .footer__grid span { display: block; padding: 4px 0; text-decoration: none; transition: color .3s; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* Botones flotantes */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .4s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.8s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 29px; bottom: 92px; z-index: 60; width: 44px; height: 44px; background: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Sitio de varias páginas ===== */
html:has(.subnav) { scroll-padding-top: 132px; }
.section--tight { padding: 96px 0; }
.stats--home { margin: 64px 0 0; }
.nav a.is-current { color: var(--accent) !important; }
.nav a.is-current::after { transform: scaleX(1); }
.nav__star::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; animation: blink 2.2s ease-in-out infinite; }

/* Cabecera de páginas internas */
.phero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: 190px 0 84px; color: #fff; background: var(--ink); overflow: hidden; }
.phero--short { min-height: 46vh; padding-bottom: 64px; }
.phero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: pheroZoom 12s ease-out forwards; }
@keyframes pheroZoom { to { transform: scale(1); } }
.phero__inner { position: relative; z-index: 1; }
.phero h1 { color: #fff; max-width: 920px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: .45em; }
.phero .kicker { color: var(--accent-2); }
.phero .hero__actions { margin-top: 30px; }
.phero__lead { max-width: 660px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.crumbs { display: flex; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--accent-2); }

/* Submenú fijo de cada página */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 17px 0 15px; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .3s; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* Resumen de servicios (Inicio) */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer__card { display: flex; flex-direction: column; background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.offer__card:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(5,28,44,.14); }
.offer__img { position: relative; height: 210px; overflow: hidden; }
.offer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.offer__card:hover .offer__img img { transform: scale(1.08); }
.offer__badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; }
.offer__body { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 30px; border-top: 3px solid var(--ink); }
.offer__num { font-family: var(--serif); color: var(--accent); }
.offer__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; margin: 6px 0 10px; }
.offer__body > p { color: var(--muted); font-size: .95rem; }
.offer__body ul { list-style: none; margin: 4px 0 24px; padding: 0; }
.offer__body li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.offer__body li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; background: var(--accent); }
.offer__body .link-arrow { margin-top: auto; align-self: flex-start; }
.offer__card--featured .offer__body { background: var(--ink); border-top-color: var(--accent); }
.offer__card--featured h3, .offer__card--featured .link-arrow { color: #fff; }
.offer__card--featured .offer__body > p { color: rgba(255,255,255,.72); }
.offer__card--featured li { color: #fff; border-top-color: rgba(255,255,255,.12); font-weight: 500; }

/* Prefijo SISTEMA - */
.sys__pre { font-family: var(--sans); font-size: .58em; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.62); vertical-align: middle; }
.feed__intro h3 .sys__pre { font-size: .55em; color: var(--accent-2); }
.systems__head--mid { max-width: 900px; margin: 110px 0 40px; }
.systems__head--mid .display { color: #fff; }
.tech__more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 56px; }
.tech__more .tech__note { margin: 0; text-align: center; }
.tech--alt { background: #071a2b; border-top: 1px solid rgba(255,255,255,.08); }

/* Industrias en miniatura (Inicio) */
.minis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mini { position: relative; display: block; height: 170px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.mini img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1s var(--ease), opacity .5s; }
.mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,28,44,.85)); }
.mini span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--serif); font-size: 1.05rem; }
.mini:hover img { transform: scale(1.1); opacity: .55; }
.footer__grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Página SISTEMA - SSOMAC ===== */
.sys__card .dash-link + .dash-link { margin-left: 22px; }
.dash-link--page { color: #fff; }
.inline-link { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.pill--bad { background: #FDE7E5; color: #C4473F; }
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.benefit { position: relative; padding: 26px 22px 24px; background: var(--bg-gray); border-top: 2px solid var(--accent); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s; }
.benefit:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 22px 44px rgba(5,28,44,.1); }
.benefit span { font-family: var(--serif); color: var(--accent); }
.benefit h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 10px 0 8px; }
.benefit p { margin: 0; color: var(--muted); font-size: .92rem; }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc__item { background: #fff; padding: 28px 24px; border-bottom: 2px solid transparent; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc__item:hover { border-bottom-color: var(--accent); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(5,28,44,.1); }
.svc__item svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; transition: transform .5s var(--ease); }
.svc__item:hover svg { transform: scale(1.12) rotate(-6deg); }
.svc__item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.svc__item p { margin: 0; color: var(--muted); font-size: .9rem; }
.appx { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.appx__stage { position: relative; display: flex; justify-content: center; min-height: 600px; }
.appx__stage .toast { opacity: 0; }
.appx__stage.is-visible .toast--1 { animation: toastIn .8s var(--ease) both 1.2s, float 6s ease-in-out infinite 2s; }
.appx__stage.is-visible .toast--2 { animation: toastIn .8s var(--ease) both 2.2s, float 7s ease-in-out infinite 3s; }
.appx__stage .toast--1 { left: -70px; top: 1%; }
.appx__stage .toast--2 { right: -70px; bottom: 3%; }
.hx { list-style: none; margin: 0 0 12px; padding: 0; background: #fff; border-radius: 12px; }
.hx li { padding: 9px 12px; border-bottom: 1px solid #F0F2F5; }
.hx li:last-child { border-bottom: 0; }
.hx small { display: block; font-size: 9.5px; color: #7A8594; text-transform: uppercase; letter-spacing: .06em; }
.hx b { font-size: 11.5px; color: var(--ink); }
.appx__stage.is-visible .hx li { animation: rowIn .6s var(--ease) both; animation-delay: calc(.4s + var(--i) * .15s); }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.mod { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.mod > span { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent-2); color: var(--accent-2); display: grid; place-items: center; font-family: var(--serif); transition: background .3s, color .3s; }
.mod:hover > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.mod h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.mod p { margin: 0; color: rgba(255,255,255,.68); font-size: .88rem; }
.norms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.norm { padding: 26px 26px 24px; border: 1px solid var(--line); position: relative; transition: border-color .3s, transform .5s var(--ease); }
.norm::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.norm:hover { transform: translateY(-4px); border-color: var(--ink); }
.norm:hover::before { transform: scaleY(1); }
.norm__tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.norm h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 8px 0 6px; }
.norm p { margin: 0; color: var(--muted); font-size: .92rem; }
.integ { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.integ__lead { color: var(--muted); font-size: 1.05rem; }
.integ__list { list-style: none; margin: 24px 0 0; padding: 0; }
.integ__list li { padding: 14px 0 14px 22px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.integ__list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; background: var(--accent); }
.trust { background: var(--ink); color: rgba(255,255,255,.8); padding: 28px 30px; margin-bottom: 20px; }
.trust h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.trust ul { list-style: none; margin: 0; padding: 0; }
.trust li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.trust b { color: var(--accent-2); }
.roles { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.roles th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; }
.roles td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.roles td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ===== Animaciones al hacer scroll ===== */
.reveal { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease), clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.reveal[data-anim="up"] { transform: translateY(36px); }
.reveal[data-anim="fade"] { opacity: 1; }
.reveal[data-anim="mask"] { opacity: 1; }
.reveal[data-anim="mask"] img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.reveal[data-anim="mask"].is-visible img { clip-path: inset(0 0 0 0); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal img, .step, .hero-in, [data-split] .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .bi__line .real { stroke-dashoffset: 0; }
  .bi__line .area, .bi__line .dot, .ai__msg, .ai__l, .toast { opacity: 1 !important; }
  .ai__typing { display: none; }
  .donut .val { stroke-dashoffset: 31; }
  .app__checks li:not(.todo)::before { background: #1E9E62; border-color: #1E9E62; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .caps { grid-template-columns: 1fr; gap: 32px; }
  .caps__tabs { flex-direction: row; border-left: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .caps__tab { padding: 16px 24px 16px 0; white-space: nowrap; }
  .caps__tab:hover { padding-left: 0; }
  .caps__tab::before { left: 0; right: 24px; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .caps__tab.is-active::before { transform: scaleX(1); }
  .steps, .features { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .methods { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .omodel { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .tpanel { grid-template-columns: 1fr; gap: 40px; }
  .sys { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: 1fr 1fr; }
  .appx { grid-template-columns: 1fr; gap: 40px; }
  .appx__stage .toast--1 { left: 0; } .appx__stage .toast--2 { right: 0; }
  .norms { grid-template-columns: 1fr 1fr; }
  .integ { grid-template-columns: 1fr; gap: 40px; }
  .sys__card, .sys__card:nth-child(n+4) { grid-column: auto; }
  .sys__card:last-child { grid-column: 1 / -1; }
  .dashx__head { grid-template-columns: 1fr; gap: 14px; }
  .offer { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .minis { grid-template-columns: repeat(3, 1fr); }
  .footer__grid--4 { grid-template-columns: 1fr 1fr; }
  .phero { min-height: 56vh; padding: 150px 0 64px; }
  .systems__head--mid { margin-top: 80px; }
  .feed__intro { grid-template-columns: 1fr; gap: 16px; }
  .tpanel__stage { order: -1; }
  .tflow { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .mlist { grid-template-columns: 1fr 1fr; }
  .orgfit__body { grid-template-columns: 1fr; gap: 32px; }
  .orgfit__list { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 8px; }
  .orgfit__btn { border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; font-size: .85rem; }
  .orgfit__btn:hover { padding-left: 14px; }
  .orgfit__btn::before { display: none; }
  .orgfit__btn.is-active { background: #fff; color: var(--ink); }
}
@media (max-width: 1180px) {
  .topbar { display: none; }
  .header.is-scrolled .topbar { margin-top: 0; }
  .header__inner { height: 68px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 28px; box-shadow: 0 20px 30px rgba(5,28,44,.1);
    clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); z-index: -1;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a:not(.btn), .header.is-scrolled .nav a:not(.btn) { color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 20px; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 90px 0; }
  .intro, .values, .contact, .section__head--split { grid-template-columns: 1fr; gap: 32px; }
  .intro__text { padding-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin: 64px 0; row-gap: 40px; }
  .caps__panel { grid-template-columns: 1fr; gap: 0; }
  .caps__img { min-height: 260px; height: 260px; }
  .caps__body { padding: 32px 28px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry { height: 300px; }
  .industry p { max-height: 80px; opacity: 1; margin-top: 8px; }
  .cta { grid-template-columns: 1fr; }
  .cta__media { min-height: 280px; height: 280px; }
  .cta__body { padding: 64px 24px; }
  .hero__tab { font-size: .82rem; padding-right: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  .brand__logo { height: 22px; }
  .hero { padding: 120px 0 130px; }
  .hero__actions { gap: 1.4rem; }
  .hero__tab { font-size: 0; padding: 18px 8px 20px 0; }
  .hero__tab small { font-size: .72rem; margin: 0; }
  .industries, .steps, .features, .form__row, .footer__grid, .methods, .mlist, .services, .omodel { grid-template-columns: 1fr; }
  .presence { grid-template-columns: 1fr; }
  .presence__media { min-height: 220px; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px 120px; min-height: 0; }
  .collage__tile--main { grid-row: auto; grid-column: 1 / 3; }
  .collage__tile figcaption { font-size: .66rem; }
  .presence__body { padding: 36px 24px; }
  .sfilters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sfilter { white-space: nowrap; }
  .ttabs { grid-template-columns: 1fr 1fr; }
  .sys { grid-template-columns: 1fr; }
  .benefits, .svc, .mods, .norms { grid-template-columns: 1fr; }
  .appx__stage { min-height: 0; }
  .sys__card .dash-link + .dash-link { margin-left: 0; }
  .sys__card .dash-link { display: flex; }
  .sys__card:last-child { grid-column: auto; }
  .dtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dtab { white-space: nowrap; }
  .minis { grid-template-columns: 1fr 1fr; }
  .mini { height: 120px; }
  .footer__grid--4 { grid-template-columns: 1fr; }
  .subnav__inner { gap: 22px; }
  .section--tight { padding: 72px 0; }
  .dashx { margin-top: 56px; }
  .feed { padding: 24px 18px; }
  .feed__caption { padding: 16px; gap: 14px; }
  .feed__step { font-size: 1.7rem; }
  .systems { margin-top: 72px; padding-top: 56px; }
  .ttab { font-size: .88rem; padding: 12px 10px 14px 0; }
  .ttabs__bar { display: none; }
  .ttab.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
  .tflow { grid-template-columns: 1fr 1fr; }
  .tpanel__stage--app { min-height: 0; }
  .toast { font-size: .7rem; max-width: 160px; padding: 9px 12px; }
  .toast b { font-size: .75rem; }
  .toast--1 { left: 0; top: 10%; } .toast--2 { right: 0; bottom: 8%; }
  .mtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mtab { white-space: nowrap; padding-right: 20px; }
  .method { padding: 28px 22px 24px; }
  .orgfit { padding: 36px 22px; margin-top: 64px; }
  .orgfit__head { grid-template-columns: 1fr; gap: 12px; }
  .industry { height: 260px; }
  .quote { padding: 80px 0; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
