/* Cielance v2 · inmersivo (pedido del fundador, 1-dic-2026): héroe nocturno, piezas vivas, microinteracciones.
   Se carga después de site.css. Todo lo que se mueve respeta prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- navegación nocturna ---------- */
.nav.nav--tone { background: #0b2545; border-bottom-color: rgba(157,180,211,.18); color: #fff; }
.nav__logo .cl-logo--neg { display: none; }
.nav--tone .nav__logo .cl-logo--neg { display: block; } .nav--tone .nav__logo .cl-logo--pos { display: none; }
.nav--tone .nav__link { color: #fff; }
.nav--tone .nav__menu { background: #0b2545; color: #fff; border-bottom: 1px solid rgba(157,180,211,.18); }
.nav--tone .menu-col .t-label { color: var(--cl-nube); }
.nav--tone .menu-col a { color: #fff; } .nav--tone .menu-col a span { color: var(--cl-nube); }
.nav--tone .menu-card .t-small { color: var(--cl-nube); }
.nav--tone .nav__toggle { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.nav--tone .btn--primary { background: #59b7ff; color: #0b2545; }
.nav--tone .btn--primary:hover { background: #8fd0ff; }
.nav.is-open { color: var(--ink); }
.nav__actions .btn--primary { transition: box-shadow .4s ease, background .2s ease; }
html.past-hero .nav--tone .nav__actions .btn--primary { box-shadow: 0 0 0 4px rgba(89,183,255,.22), 0 8px 28px rgba(89,183,255,.35); }

/* ---------- botones: brillo y efecto magnético ---------- */
.btn.is-magnetic { translate: var(--tx, 0) var(--ty, 0); transition: translate .25s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, background .2s ease; }
:is(.ground-inverse, .hero-night) .btn--primary { background: #59b7ff; color: #0b2545; box-shadow: 0 10px 34px rgba(89,183,255,.3); }
:is(.ground-inverse, .hero-night) .btn--primary:hover { background: #8fd0ff; box-shadow: 0 14px 44px rgba(89,183,255,.45); }
:is(.ground-inverse, .hero-night) .btn--secondary { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
:is(.ground-inverse, .hero-night) .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- brillo que sigue al puntero en secciones oscuras ---------- */
.has-glow { position: relative; }
.has-glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(89,183,255,.10), transparent 60%); }
.has-glow:hover::after { opacity: 1; }
.has-glow > .wrap { position: relative; z-index: 1; }

/* ---------- aparición suave ---------- */
.fx .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.fx .rv.is-in { opacity: 1; transform: none; }

/* ---------- héroe nocturno ---------- */
main > .hero.hero-night { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 75% 35%, #173f73 0%, #0b2545 55%, #081d38 100%); color: #fff; }
.hero-night__scene, .hero-night > canvas[data-stars] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-night__poster { position: absolute; right: 0; top: 0; bottom: 0; width: 60%; z-index: 0; transition: opacity .6s ease; }
.hero-night__poster > .cx { border-radius: 0; background: none; }
.hero-night.scene-on .hero-night__poster { opacity: 0; }
.hero-night > .wrap { position: relative; z-index: 1; }
main > .hero.hero-night:not(.hero--split) > .wrap { display: flex; justify-content: flex-start; align-items: center; }
.hero-night__text { position: relative; width: min(100%, 640px); margin-right: auto; display: flex; flex-direction: column; gap: var(--s-5); }
.hero-night__text::before { content: ""; position: absolute; left: -200px; top: -160px; width: 900px; height: 1000px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8,29,56,.9), rgba(8,29,56,0)); }
.hero-night .hero__kicker { color: var(--cl-nube); }
.hero-night .hero__kicker .dot { background: var(--cl-cielo); }
.hero-night__text h1 { color: #fff; font-size: clamp(40px, 5vw, 80px); line-height: .98; letter-spacing: -0.04em; margin: 0; }
.hero-night .hero__lead { color: #dbe7f5; max-width: 46ch; }
.hero-night .hero-fact { color: var(--cl-nube); }
.hero-night__text .btn-row { gap: var(--s-3); }
.hero-night__text .btn { height: 54px; padding-inline: 28px; font-size: 17px; }
.rot { display: inline-grid; color: var(--cl-cielo); }
.rot__w { grid-area: 1 / 1; opacity: 0; transform: translateY(.42em); transition: opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1); white-space: nowrap; }
.rot__w.is-on { opacity: 1; transform: none; transition: opacity .45s ease .22s, transform .6s cubic-bezier(.22,1,.36,1) .22s; }
.rot__w.is-out { opacity: 0; transform: translateY(-.42em); }
.rot__w--still { display: none; }
@media (prefers-reduced-motion: reduce) { .rot__w { display: none; } .rot__w--still { display: inline; opacity: 1; transform: none; } }
html:not(.fx) .rot__w { display: none; } html:not(.fx) .rot__w--still { display: inline; opacity: 1; transform: none; }
.hero-facts-row { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.hero-facts-row li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(157,180,211,.3); font-size: 13px; color: #dbe7f5; background: rgba(255,255,255,.04); }
.hero-facts-row b { color: #fff; font-weight: 600; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.4); }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .hero-scroll::after { animation: cl-scroll 1.8s ease-in-out infinite; } }
@keyframes cl-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 767px) {
  .hero-night__text::before { left: -60px; top: -80px; width: 560px; height: 620px; }
  .hero-night__poster { width: 100%; top: auto; height: 42%; }
  .hero-night__text .btn-row { flex-direction: column; align-items: stretch; }
  .hero-night__text .btn { height: 50px; }
  .hero-scroll, .hero-night .hero-fact { display: none; }
}
/* héroes interiores en la misma noche */
.hero--split.hero-night .hero__text { position: relative; }
.hero--split.hero-night .hero__text h1, .hero--split.hero-night .hero__lead { color: #fff; }
.hero--split.hero-night .hero__lead { color: #dbe7f5; }
.hero--split.hero-night .hero__media { background: transparent; box-shadow: 0 0 0 1px rgba(157,180,211,.25), 0 30px 80px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: no-preference) {
  .fx .hero--split.hero-night .orb__node { animation: orb-float 6s ease-in-out infinite; }
  .fx .hero--split.hero-night .orb__node:nth-of-type(odd) { animation-delay: -3s; }
  .fx .hero--split.hero-night .io__node { animation: orb-float 7s ease-in-out infinite; }
  .fx .hero--split.hero-night .io__node:nth-of-type(odd) { animation-delay: -3.5s; }
}
@keyframes orb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- capacidades con mini interfaces vivas ---------- */
.cap { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-bg); border: 1px solid var(--line); text-decoration: none; color: inherit; height: 100%;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; }
.cap:hover, .cap:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(11,37,69,.12); border-color: rgba(29,106,176,.35); }
.cap__head { display: flex; align-items: center; gap: var(--s-3); }
.cap__head h3 { font-size: var(--t-card); line-height: 1.25; }
.cap .cl-picto { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.cap:hover .cl-picto { transform: rotate(-8deg) scale(1.08); }
.cap__go { margin-top: auto; font-weight: 500; color: var(--action); }
.cap__go::after { content: " →"; display: inline-block; transition: transform .3s ease; } .cap:hover .cap__go::after { transform: translateX(4px); }
.mini { position: relative; height: 150px; border-radius: var(--r-md); background: linear-gradient(160deg, #0b2545, #13315c); color: #fff; overflow: hidden; font: 500 12px/1.3 var(--font-text); padding: 14px; }
.mini-chat .q, .mini-chat .a { max-width: 84%; padding: 7px 10px; border-radius: 10px; margin-bottom: 8px; }
.mini-chat .q { margin-left: auto; background: rgba(255,255,255,.14); }
.mini-chat .a { background: #59b7ff; color: #0b2545; }
.mini-chat .typing { position: absolute; left: 14px; bottom: 52px; display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.12); opacity: 0; }
.mini-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; }
.mini-chat .src { font-size: 11px; color: var(--cl-nube); }
.mini-pipe .row { position: absolute; left: 40px; right: 40px; top: 58px; height: 2px; background: rgba(157,180,211,.4); }
.mini-pipe .nd { position: absolute; top: 38px; width: 84px; text-align: center; }
.mini-pipe .nd b { display: block; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 10px; background: #13315c; border: 1px solid rgba(157,180,211,.5); }
.mini-pipe .nd:nth-of-type(2) { left: 0; } .mini-pipe .nd:nth-of-type(3) { left: calc(50% - 42px); } .mini-pipe .nd:nth-of-type(4) { right: 0; }
.mini-pipe .dot { position: absolute; top: 55px; left: 40px; width: 8px; height: 8px; border-radius: 50%; background: #59b7ff; box-shadow: 0 0 12px #59b7ff; opacity: 0; }
.mini-flow ol, .mini-gov ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mini-flow li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
.mini-flow li i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(157,180,211,.75); flex: none; position: relative; }
.mini-flow li i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #59b7ff; }
.mini-cost .lbl { color: var(--cl-nube); }
.mini-cost .bars { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 86px; display: flex; align-items: flex-end; gap: 6px; }
.mini-cost .bars i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(157,180,211,.45); height: var(--h); transform-origin: bottom; }
.mini-cost .bars i:last-child { background: #59b7ff; }
.mini-dep .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 10px 0 8px; overflow: hidden; }
.mini-dep .bar i { display: block; height: 100%; width: 100%; background: #59b7ff; transform-origin: left; }
.mini-dep code { font: 500 11px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--cl-nube); display: block; }
.mini-dep .ok { margin-top: 6px; display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(89,183,255,.2); color: #cfeaff; }
.mini-gov li { display: flex; gap: 8px; align-items: center; }
.mini-gov li b { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(157,180,211,.75); position: relative; flex: none; }
.mini-gov li b::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #59b7ff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .is-live .mini-chat .typing { animation: mc-t 4.2s infinite; } .is-live .mini-chat .typing i { animation: mc-dot 1.2s infinite ease-in-out; }
  .is-live .mini-chat .typing i:nth-child(2) { animation-delay: .15s; } .is-live .mini-chat .typing i:nth-child(3) { animation-delay: .3s; }
  .is-live .mini-chat .a { animation: mc-a 4.2s infinite; }
  .is-live .mini-pipe .dot { animation: mp 2.7s infinite linear; } .is-live .mini-pipe .dot.d2 { animation-delay: .9s; } .is-live .mini-pipe .dot.d3 { animation-delay: 1.8s; }
  .is-live .mini-flow li i::after { animation: mf 4s infinite; } .is-live .mini-flow li:nth-child(2) i::after { animation-delay: .5s; } .is-live .mini-flow li:nth-child(3) i::after { animation-delay: 1s; } .is-live .mini-flow li:nth-child(4) i::after { animation-delay: 1.5s; }
  .is-live .mini-cost .bars i { animation: mcb 3.2s infinite ease-in-out; } .is-live .mini-cost .bars i:nth-child(odd) { animation-delay: .4s; }
  .is-live .mini-dep .bar i { animation: md 3.4s infinite cubic-bezier(.4,0,.2,1); }
  .is-live .mini-gov li b::after { animation: mg 4s infinite; } .is-live .mini-gov li:nth-child(2) b::after { animation-delay: .6s; } .is-live .mini-gov li:nth-child(3) b::after { animation-delay: 1.2s; }
}
@keyframes mc-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes mc-t { 0%, 8% { opacity: 0; } 12%, 40% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes mc-a { 0%, 42% { opacity: 0; transform: translateY(6px); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes mp { 0% { left: 40px; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: calc(100% - 48px); opacity: 0; } }
@keyframes mf { 0%, 10% { transform: scale(0); } 22%, 100% { transform: scale(1); } }
@keyframes mcb { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.7); } }
@keyframes md { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes mg { 0%, 12% { transform: rotate(45deg) scale(0); } 25%, 100% { transform: rotate(45deg) scale(1); } }

/* ---------- arquitectura: del dato al agente ---------- */
.arch { position: relative; border-radius: var(--r-lg); background: linear-gradient(160deg, #0b2545, #10294d); color: #fff; padding: var(--s-6); overflow: hidden; }
.arch__layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; z-index: 1; }
.arch__layer { all: unset; box-sizing: border-box; display: grid; gap: 4px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid rgba(157,180,211,.3); cursor: default; transition: background .3s, border-color .3s; }
.arch__layer:focus-visible { outline: 2px solid #59b7ff; outline-offset: 2px; }
.arch__layer b { font: 500 17px/1.2 var(--font-display); }
.arch__layer span { font-size: 13px; color: var(--cl-nube); }
.arch svg { display: block; width: 100%; height: auto; margin-top: var(--s-3); }
.arch .a-edge { fill: none; stroke: rgba(157,180,211,.32); stroke-width: 1.4; }
.arch .a-node rect { fill: #13315c; stroke: rgba(157,180,211,.5); transition: fill .3s, stroke .3s, opacity .3s; }
.arch .a-node text { fill: #fff; font: 500 15px Inter, system-ui, sans-serif; }
.arch .a-pulse { fill: #59b7ff; }
.arch[data-on="0"] .a-node:not([data-l="0"]), .arch[data-on="1"] .a-node:not([data-l="1"]), .arch[data-on="2"] .a-node:not([data-l="2"]), .arch[data-on="3"] .a-node:not([data-l="3"]) { opacity: .35; }
.arch[data-on="0"] .a-node[data-l="0"] rect, .arch[data-on="1"] .a-node[data-l="1"] rect, .arch[data-on="2"] .a-node[data-l="2"] rect, .arch[data-on="3"] .a-node[data-l="3"] rect { fill: #1d6ab0; stroke: #59b7ff; }
.arch[data-on="0"] [data-layer="0"], .arch[data-on="1"] [data-layer="1"], .arch[data-on="2"] [data-layer="2"], .arch[data-on="3"] [data-layer="3"] { background: rgba(89,183,255,.14); border-color: #59b7ff; }
.arch .a-node { transition: opacity .3s; }
@media (max-width: 767px) { .arch { padding: var(--s-4); } .arch__layers { grid-template-columns: 1fr 1fr; } .arch svg { display: none; } }

/* ---------- ruta de vuelo guiada por el scroll ---------- */
.route-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: var(--s-6) 0 0; list-style: none; padding: 0; }
.route-steps li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-bg); border: 1px solid var(--line); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), border-color .5s ease, box-shadow .5s ease; }
.route-steps h3 { font-size: var(--t-card); display: flex; align-items: center; gap: var(--s-2); }
.route-steps .t-stat { font-family: var(--font-display); }
.route-steps .deliv { font-size: var(--t-small); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.route-steps .deliv b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.is-scrubbed .route-steps li { opacity: .4; transform: translateY(10px); }
.is-scrubbed .route-steps li.is-on { opacity: 1; transform: none; border-color: rgba(29,106,176,.45); box-shadow: 0 14px 36px rgba(11,37,69,.1); }
@media (max-width: 1023px) { .route-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .route-steps { grid-template-columns: 1fr; } }

/* ---------- explorador de industrias ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
.explorer__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.explorer__tab { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--s-3); padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--p-bg); cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.25; min-height: 48px; transition: border-color .2s, background .2s, transform .2s; }
.explorer__tab .cl-picto { width: 30px; height: 30px; }
.explorer__tab:hover { border-color: rgba(29,106,176,.45); transform: translateY(-1px); }
.explorer__tab[aria-selected="true"] { background: #0b2545; color: #fff; border-color: #0b2545; }
.explorer__tab[aria-selected="true"] .cl-picto { --cl-ink: #fff; --cl-soft-f: #1e4573; }
.explorer__tab:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.explorer__panel { border-radius: var(--r-lg); background: linear-gradient(160deg, #0b2545, #13315c); color: #fff; padding: var(--s-7); min-height: 420px; }
.explorer__panel .cl-picto { width: 72px; height: 72px; --cl-ink: #fff; --cl-soft-f: #1e4573; }
.explorer__panel h3 { font: 500 var(--t-h3)/1.15 var(--font-display); margin-top: var(--s-4); }
.explorer__panel ol { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); counter-reset: u; }
.explorer__panel li { counter-increment: u; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(157,180,211,.22); }
.explorer__panel li::before { content: counter(u, decimal-leading-zero); font: 500 14px var(--font-display); color: #59b7ff; }
.explorer__panel .link { color: #cfeaff; margin-top: var(--s-5); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .explorer__panel.is-in li { animation: ex-in .55s cubic-bezier(.22,1,.36,1) both; }
  .explorer__panel.is-in li:nth-child(2) { animation-delay: .08s; } .explorer__panel.is-in li:nth-child(3) { animation-delay: .16s; }
  .explorer__panel.is-in .cl-picto { animation: ex-ic .6s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes ex-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ex-ic { from { opacity: 0; transform: scale(.8) rotate(-10deg); } to { opacity: 1; transform: none; } }
.explorer:not(.is-ready) .explorer__panel + .explorer__panel { margin-top: var(--s-4); }
@media (max-width: 1023px) { .explorer { grid-template-columns: 1fr; } .explorer__tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .explorer__tabs { grid-template-columns: 1fr 1fr; } .explorer__panel { padding: var(--s-5); min-height: 0; } }

/* ---------- ofertas de entrada ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.strip a { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-bg); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.strip a:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(11,37,69,.12); }
.strip h3 { font-size: var(--t-card); }
.strip .dur { font: 500 28px/1 var(--font-display); letter-spacing: -0.02em; color: var(--cl-deep); }
.strip .who { font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .strip { grid-template-columns: 1fr; } }

/* ---------- por qué Cielance ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
.why li { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(157,180,211,.22); }
.why .cl-picto { width: 56px; height: 56px; --cl-ink: #fff; --cl-soft-f: #1e4573; stroke-dasharray: 180; stroke-dashoffset: 0; }
.why h3 { font-size: var(--t-card); color: #fff; } .why p { color: #dbe7f5; }
@media (prefers-reduced-motion: no-preference) { .fx .why.rv .cl-picto { stroke-dashoffset: 180; transition: stroke-dashoffset 1.8s cubic-bezier(.22,1,.36,1) .25s; } .fx .why.rv.is-in .cl-picto { stroke-dashoffset: 0; } }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); margin: var(--s-7) 0 0; padding: var(--s-6) 0 0; border-top: 1px solid rgba(157,180,211,.22); list-style: none; }
.facts li { display: grid; gap: 4px; } .facts .t-stat { color: #fff; font-family: var(--font-display); } .facts li > span:last-child { color: var(--cl-nube); font-size: 14px; }
@media (max-width: 1023px) { .why { grid-template-columns: 1fr 1fr; } .facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .why { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- preguntas frecuentes ---------- */
.faq-list { display: grid; gap: var(--s-2); }
.faq-list details { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--p-bg); transition: border-color .3s; }
.faq-list details[open] { border-color: rgba(29,106,176,.45); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); font: 500 var(--t-card)/1.3 var(--font-display); min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 26px/1 var(--font-display); color: var(--action); transition: transform .3s ease; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 var(--s-5) var(--s-5); max-width: 70ch; }
.faq-list summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-md); }

/* ---------- cierre con cielo animado ---------- */
footer.closing { position: relative; overflow: hidden; }
footer.closing > canvas[data-stars] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
footer.closing > .wrap { position: relative; z-index: 1; }
.close-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: stretch; }
.close-actions .btn--xl { flex: 1 1 520px; }
.close-actions .btn--secondary { height: auto; min-height: 56px; padding-inline: 32px; font-size: 18px; }
@media (max-width: 639px) { .close-actions { flex-direction: column; } .close-actions .btn--xl { flex: none; } }
nav.actionbar .btn { width: 100%; }

.orb__name { color: var(--cl-navy); }
@media (max-width: 767px) {
  .hero-night__scene { opacity: .5; }
  .hero-night__text h1 { font-size: clamp(38px, 10.5vw, 56px); }
}

.explorer > *, .explorer__panels, .explorer__panel { min-width: 0; }
.explorer__panel li { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .nav:not(.is-open) .nav__actions .btn--primary { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) { #capacidades .cap { grid-column: span 6; } }

html, body { overflow-x: clip; }
main > .hero.hero-night { overflow: clip; }

/* ---------- operaciones de punta a punta (Ops) ---------- */
.ops { position: relative; border-radius: var(--r-lg); background: radial-gradient(90% 120% at 50% 50%, #13315c, #0b2545 70%); border: 1px solid rgba(157,180,211,.2); overflow: hidden; }
.ops svg { display: block; width: 100%; height: auto; }
.ops__track { fill: none; stroke: rgba(157,180,211,.35); stroke-width: 2; stroke-dasharray: 3 7; }
.ops__track--glow { stroke: rgba(89,183,255,.25); stroke-width: 10; stroke-dasharray: none; filter: blur(6px); }
.ops__pulse { fill: #59b7ff; }
.ops__stage circle { fill: #0b2545; stroke: #fff; stroke-width: 2.5; transition: fill .3s, stroke .3s, r .3s; }
.ops__stage text { fill: #fff; font: 500 18px Outfit, system-ui, sans-serif; letter-spacing: -0.01em; transition: fill .3s; }
.ops__core circle { fill: #59b7ff; } .ops__core text { fill: #0b2545; font: 600 16px Outfit, system-ui, sans-serif; }
.ops[data-on="0"] [data-s="0"] circle, .ops[data-on="1"] [data-s="1"] circle, .ops[data-on="2"] [data-s="2"] circle, .ops[data-on="3"] [data-s="3"] circle, .ops[data-on="4"] [data-s="4"] circle { fill: #59b7ff; stroke: #59b7ff; r: 17; }
.ops[data-on="0"] [data-s="0"] text, .ops[data-on="1"] [data-s="1"] text, .ops[data-on="2"] [data-s="2"] text, .ops[data-on="3"] [data-s="3"] text, .ops[data-on="4"] [data-s="4"] text { fill: #8fd0ff; }
.ops-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-5); list-style: none; padding: 0; }
.ops-cards li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-4); border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(157,180,211,.22); transition: border-color .3s, background .3s, transform .3s; cursor: default; }
.ops-cards li:hover, .ops-cards li:focus-within, .ops-cards li:focus { border-color: #59b7ff; background: rgba(89,183,255,.1); transform: translateY(-2px); outline: none; }
.ops-cards .cl-picto { width: 36px; height: 36px; --cl-ink: #fff; --cl-soft-f: #1e4573; }
.ops-cards h3 { font-size: 17px; color: #fff; } .ops-cards p { font-size: 14px; color: #dbe7f5; }
.ops-status { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); list-style: none; padding: 0; }
.ops-status li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(157,180,211,.25); font-size: 13px; color: #dbe7f5; }
.ops-status li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #59b7ff; box-shadow: 0 0 0 0 rgba(89,183,255,.6); }
@media (prefers-reduced-motion: no-preference) { .is-live .ops-status li::before, .ops-status.is-live li::before { animation: ops-ping 2.4s infinite; } }
@keyframes ops-ping { 0% { box-shadow: 0 0 0 0 rgba(89,183,255,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(89,183,255,0); } }
@media (max-width: 1023px) { .ops-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .ops-cards { grid-template-columns: 1fr; } .ops__stage text { font-size: 26px; } }
/* mini de la línea Ops en el inicio: tubería + estado de SLO y costo */
.mini-ops .stages { display: flex; gap: 6px; }
.mini-ops .stages span { flex: 1; padding: 5px 0; text-align: center; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 11px; }
.mini-ops .stages span.on { background: rgba(89,183,255,.28); }
.mini-ops .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mini-ops .kpi { padding: 8px; border-radius: 8px; background: rgba(255,255,255,.06); }
.mini-ops .kpi b { display: block; font-size: 11px; color: var(--cl-nube); font-weight: 500; }
.mini-ops .kpi i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, #59b7ff var(--v), rgba(255,255,255,.12) var(--v)); }
@media (prefers-reduced-motion: no-preference) { .is-live .mini-ops .stages span { animation: mo-st 4s infinite; } .is-live .mini-ops .stages span:nth-child(2) { animation-delay: .8s; } .is-live .mini-ops .stages span:nth-child(3) { animation-delay: 1.6s; } .is-live .mini-ops .stages span:nth-child(4) { animation-delay: 2.4s; } }
@keyframes mo-st { 0%, 15% { background: rgba(89,183,255,.45); } 30%, 100% { background: rgba(255,255,255,.08); } }

main > section.section--auto { height: auto; min-height: 100svh; }
.ops-kicker { color: var(--cl-cielo); }

/* plataformas: solo nombres, en la tipografía de la marca (sin logotipos de terceros) */
.plat-words { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); }
.plat-words li { font: 500 clamp(22px, 2.4vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(157,180,211,.28); background: rgba(255,255,255,.04); transition: border-color .3s, background .3s, color .3s; }
.plat-words li:hover { border-color: #59b7ff; background: rgba(89,183,255,.12); color: #cfeaff; }
@media (prefers-reduced-motion: no-preference) { .fx .plat-words li { animation: pw-in .8s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 70ms); } }
@keyframes pw-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cl-tool { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: rgba(29,106,176,.15); position: relative; }
.cl-tool::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #1d6ab0; }

.plat-note { margin-top: var(--s-4); color: var(--cl-nube); }
#plataformas .plat-grid { margin-top: var(--s-6); }
.plat-lede { margin-top: var(--s-5); color: #fff; }
.plat-lede + .plat-note { margin-top: var(--s-2); }

/* QA multi-dispositivo (1-dic-2026) */
.nav__logo { min-height: 44px; display: inline-flex; align-items: center; }
.nav__links .nav__link { min-height: 44px; display: inline-flex; align-items: center; }
.field :is(input, select, textarea) { font-size: 16px; }
.form__hp { display: none !important; }
.mailbox .mail-big { overflow-wrap: anywhere; }
.closing__cta, .closing__cta > *, .section-head, .section-head > * { min-width: 0; }
@media (max-width: 400px) {
  .explorer__tabs { grid-template-columns: minmax(0, 1fr); }
  .tz { padding: var(--s-4); } .tz__row { grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-2); }
  .tz__scale { grid-template-columns: 84px minmax(0, 1fr); }
  .mailbox { padding: var(--s-4); }
}
.field :is(input, select, textarea) { font-size: 16px !important; }
.nav__actions .nav__lang { min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--s-3); }
.hero-scroll { height: 46px; width: 28px; }
.explorer__panel .link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 639px) { main .grid > :is(.tz, .mailbox, [class*="start-"]) { grid-column: 1 / -1; } }
@media (max-width: 400px) {
  .tz .tz__row, .tz .tz__scale { grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-2); }
  .tz .tz__track { min-width: 0; }
  main .mailbox { padding: var(--s-4); grid-template-columns: minmax(0, 1fr); }
  .mailbox .btn { white-space: normal; height: auto; min-height: 44px; text-align: center; }
}

@media (max-width: 767px) { .hero-night__text h1 { font-size: clamp(34px, 10vw, 52px); } }

@media (max-width: 767px) { .hero-night__poster { display: none; } .hero-night__scene { opacity: 1; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--tone .nav__links { gap: 0; }
  .nav--tone .nav__links .nav__link { padding-inline: 8px; font-size: 14px; }
  .nav--tone .nav__actions { gap: var(--s-2); }
  .nav--tone .nav__actions .btn { padding-inline: var(--s-4); font-size: 14px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nav--tone .nav__links > .nav__item:last-child { display: none; } }

/* ---------- títulos sin palabras partidas ---------- */
h1, h2, h3, .t-h1, .t-h2, .t-h3 { hyphens: manual !important; -webkit-hyphens: manual !important; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
body { hyphens: manual; -webkit-hyphens: manual; }

/* ---------- símbolo que se dibuja ---------- */
.lsym { overflow: visible; }
.lsym__lines line { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.lsym__dots circle { fill: #fff; }
.lsym__star { fill: #59b7ff; }
.lsym__halo { fill: #59b7ff; opacity: .18; transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .fx .lsym__lines line { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: lsym-draw .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d); }
  .fx .lsym__dots circle { opacity: 0; animation: lsym-fade .5s ease-out forwards; animation-delay: var(--d); }
  .fx .lsym__halo { animation: lsym-pulse 2.8s ease-in-out infinite; }
}
@keyframes lsym-draw { to { stroke-dashoffset: 0; } }
@keyframes lsym-fade { to { opacity: 1; } }
@keyframes lsym-pulse { 0%, 100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.5); opacity: .34; } }

/* ---------- órbita viva de los héroes interiores (panel oscuro de vidrio) ---------- */
.lorb { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: radial-gradient(80% 70% at 50% 45%, rgba(29,106,176,.30), rgba(11,37,69,.6) 72%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lorb__canvas, .lorb__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.lorb__ring { fill: none; stroke: rgba(157,180,211,.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lorb__ring--dash { stroke-dasharray: 3 9; }
.lorb > .lsym { position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.lorb__node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-decoration: none; color: #fff; z-index: 2; min-width: 44px; min-height: 44px; outline: none; }
.lorb__node .cl-picto { width: 60px; height: 60px; padding: 10px; border-radius: 50%; background: rgba(11,37,69,.88); border: 1px solid rgba(157,180,211,.45); --cl-ink: #fff; --cl-soft-f: #1e4573; transition: border-color .25s, background .25s, transform .25s, box-shadow .25s; }
.lorb__name { font: 500 13px/1.2 var(--font-text); color: #fff; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(11,37,69,.8); }
.lorb__node--quiet .cl-picto { width: 50px; height: 50px; padding: 8px; }
.lorb__node--quiet .lorb__name { position: absolute; top: calc(100% + 2px); opacity: 0; transition: opacity .2s; pointer-events: none; }
.lorb__desc { position: absolute; top: calc(100% + 30px); left: 50%; transform: translate(-50%, 4px); width: 220px; padding: 8px 10px; border-radius: 10px; background: #fff; color: #0b2545; font: 400 13px/1.4 var(--font-text); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 3; }
.lorb__node:is(:hover, :focus-visible, .is-on) { z-index: 5; }
.lorb__node:is(:hover, :focus-visible, .is-on) .cl-picto { border-color: #59b7ff; background: #13315c; transform: scale(1.1) translateY(-2px); box-shadow: 0 0 0 6px rgba(89,183,255,.2), 0 10px 24px rgba(0,0,0,.35); }
.lorb__node:is(:hover, :focus-visible, .is-on) :is(.lorb__desc, .lorb__name) { opacity: 1; }
.lorb__node:is(:hover, :focus-visible, .is-on) .lorb__desc { transform: translate(-50%, 0); }
.lorb__node:focus-visible .cl-picto { outline: 2px solid #59b7ff; outline-offset: 3px; }
.lorb__node.is-pulse .cl-picto { border-color: #59b7ff; box-shadow: 0 0 0 4px rgba(89,183,255,.18); }
@media (max-width: 639px) {
  .lorb__node .cl-picto, .lorb__node--quiet .cl-picto { width: 40px; height: 40px; padding: 6px; }
  .lorb__name { font-size: 11px; padding: 1px 6px; }
  .lorb__desc { width: 170px; font-size: 12px; }
  .lorb > .lsym { width: 32%; }
}

/* ---------- Nosotros: ciel → élan → lance ---------- */
.nm > .lsym { position: absolute; left: 50%; top: 36%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .fx .nm__w { animation: nm-word 7.5s ease-in-out infinite; animation-play-state: var(--play, running); }
  .fx .nm__w:nth-of-type(2) { animation-delay: 2.5s; } .fx .nm__w:nth-of-type(3) { animation-delay: 5s; }
  .fx .nm:not(.is-live) .nm__w { animation-play-state: paused; }
  .fx .hero-night .cx__orbit--dash { animation: cx-dash 40s linear infinite; }
  .fx .bk__slot.is-on { animation: bk-pulse 2.4s ease-in-out infinite; }
}
@keyframes nm-word { 0%, 100% { opacity: .55; transform: none; } 8%, 26% { opacity: 1; transform: translateY(-4px); } 34% { opacity: .55; transform: none; } }
.nm__w { transition: opacity .3s; }
@keyframes cx-dash { to { stroke-dashoffset: -400; } }
@keyframes bk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29,106,176,.5); } 50% { box-shadow: 0 0 0 8px rgba(29,106,176,0); } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero--split.hero-night .hero__text h1 { font-size: clamp(40px, 4.6vw, 64px); } }

/* ---------- reproductor de ejemplos por industria (Servicios) ---------- */
.xp-frame { position: relative; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 80% 0%, #1a4478 0%, #0b2545 60%); padding: var(--s-5); box-shadow: 0 30px 70px rgba(11,37,69,.28), 0 0 0 1px rgba(157,180,211,.18); color: #fff; min-height: 560px; display: flex; }
.xp { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; }
.xp__top { display: flex; gap: var(--s-3); align-items: center; }
.xp__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.xp__chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid rgba(157,180,211,.3); background: rgba(255,255,255,.04); font: 500 13px/1 var(--font-text); color: #dbe7f5; transition: background .25s, border-color .25s, color .25s; }
.xp__chip .cl-picto { width: 26px; height: 26px; --cl-ink: #fff; --cl-soft-f: #1e4573; }
.xp__chip:hover { border-color: #59b7ff; color: #fff; }
.xp__chip[aria-selected="true"] { background: #59b7ff; color: #0b2545; border-color: #59b7ff; }
.xp__chip[aria-selected="true"] .cl-picto { --cl-ink: #0b2545; --cl-soft-f: #bfe4ff; --cl-star: #0b2545; }
.xp__chip:focus-visible, .xp__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.xp__pause { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(157,180,211,.35); display: grid; place-items: center; flex: none; }
.xp__pause svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp__pause .i-play { display: none; fill: #fff; stroke: none; }
.xp.is-paused .xp__pause .i-pause { display: none; } .xp.is-paused .xp__pause .i-play { display: block; }
.xp__bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.xp__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1d6ab0, #59b7ff); transform-origin: left; transform: scaleX(0); }
.xp.is-auto:not(.is-paused) .xp__bar i { animation: xp-bar var(--dur, 7s) linear forwards; }
@keyframes xp-bar { to { transform: scaleX(1); } }
.xp__stage { position: relative; flex: 1; display: grid; }
.xp__panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: var(--s-3); }
.xp__panel.is-on { animation: xp-in .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes xp-in { from { opacity: 0; transform: translateX(22px) scale(.985); } to { opacity: 1; transform: none; } }
.xp__head { display: flex; align-items: center; gap: var(--s-3); }
.xp__badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #59b7ff, #1d6ab0); box-shadow: 0 8px 22px rgba(89,183,255,.35); flex: none; }
.xp__badge .cl-picto { width: 30px; height: 30px; --cl-ink: #fff; --cl-soft-f: rgba(255,255,255,.25); --cl-star: #0b2545; }
.xp__head b { display: block; font: 500 18px/1.2 var(--font-display); }
.xp__head span { font-size: 12px; color: var(--cl-nube); }

/* maqueta común: vidrio oscuro con profundidad */
.xm { position: relative; flex: 1; border-radius: 14px; padding: 14px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(157,180,211,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.25); font: 400 13px/1.45 var(--font-text); color: #e6effa; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.xm b { font-weight: 600; color: #fff; }
.xm svg { display: block; }
.xm-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(157,180,211,.18); }
.xm-av { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fd0ff, #1d6ab0); box-shadow: 0 0 12px rgba(89,183,255,.6); }
.xm-live { margin-left: auto; font-size: 11px; color: #bfe4ff; display: inline-flex; align-items: center; gap: 6px; }
.xm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #59b7ff; box-shadow: 0 0 8px #59b7ff; }
.xm-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(89,183,255,.2); border: 1px solid rgba(89,183,255,.5); color: #cfeaff; font-weight: 500; }
.xm-cap { font-size: 11px; color: var(--cl-nube); display: block; margin-bottom: 4px; }
.xm em svg, .xm-fields em svg { width: 14px; height: 14px; fill: none; stroke: #0b2545; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* chat */
.xm-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; }
.xm-msg--me { margin-left: auto; background: rgba(255,255,255,.14); border-bottom-right-radius: 4px; }
.xm-msg--bot { background: linear-gradient(135deg, #59b7ff, #3d9ae8); color: #06203f; border-bottom-left-radius: 4px; box-shadow: 0 10px 26px rgba(89,183,255,.35); }
.xm-think { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #bfe4ff; }
.xm-think i { width: 6px; height: 6px; border-radius: 50%; background: #bfe4ff; }
.xm-think span { margin-left: 6px; }
.xm-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.xm-src { padding: 4px 10px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(157,180,211,.35); }
.xm-src::before { content: "↗ "; color: #59b7ff; }
/* documento */
.xm-doc { flex-direction: row; flex-wrap: wrap; }
.xm-paper { position: relative; flex: 0 0 40%; padding: 12px; border-radius: 10px; background: #f4f8fd; color: #0b2545; overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.xm-paper b { color: #0b2545; font-size: 12px; }
.xm-paper i { display: block; height: 6px; border-radius: 3px; background: #c9d7e8; }
.xm-scan { position: absolute; left: 0; right: 0; height: 26px; top: -30px; background: linear-gradient(180deg, transparent, rgba(89,183,255,.5), transparent); }
.xm-fields { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.xm-fields li { display: grid; grid-template-columns: 1fr auto 18px; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
.xm-fields li span { color: var(--cl-nube); font-size: 11px; }
.xm-fields em { width: 18px; height: 18px; border-radius: 50%; background: #59b7ff; display: grid; place-items: center; }
.xm-doc .xm-tag { flex-basis: 100%; }
/* voz */
.xm-wave { display: flex; align-items: center; gap: 3px; height: 64px; }
.xm-wave i { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(180deg, #8fd0ff, #1d6ab0); }
.xm-transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xm-transcript li { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.07); }
.xm-transcript li.is-agent { background: rgba(89,183,255,.2); }
.xm-transcript b { display: block; font-size: 11px; color: var(--cl-nube); font-weight: 500; }
/* tablero */
.xm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xm-kpis div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(157,180,211,.18); }
.xm-kpis span { display: block; font-size: 11px; color: var(--cl-nube); }
.xm-kpis b { font: 600 20px/1.2 var(--font-display); color: #fff; letter-spacing: -0.01em; }
.xm-chart svg { width: 100%; height: 96px; overflow: visible; }
.xm-ops .xm-chart svg { height: 70px; }
.xm-line { fill: none; stroke: #59b7ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(89,183,255,.7)); vector-effect: non-scaling-stroke; }
.xm-dot { fill: #fff; filter: drop-shadow(0 0 6px #59b7ff); }
.xm-slo { stroke: #f2c14e; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.xm-bars { display: grid; gap: 5px; }
.xm-bars div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; font-size: 11px; }
.xm-bars i { display: block; height: 9px; border-radius: 5px; width: var(--w); background: linear-gradient(90deg, #1d6ab0, #59b7ff); box-shadow: 0 0 10px rgba(89,183,255,.35); transform-origin: left; }
/* búsqueda */
.xm-q { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; color: #0b2545; font-weight: 500; }
.xm-q svg { width: 16px; height: 16px; fill: none; stroke: #1d6ab0; stroke-width: 2; flex: none; }
.xm-ans { padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(89,183,255,.28), rgba(89,183,255,.08)); border: 1px solid rgba(89,183,255,.45); }
.xm-ans span { display: block; font-size: 11px; color: #bfe4ff; }
.xm-ans b { font: 600 34px/1.1 var(--font-display); }
.xm-ans em { display: block; font-style: normal; font-size: 11px; color: var(--cl-nube); }
/* flujo */
.xm-flow ol { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; position: relative; }
.xm-flow li { position: relative; display: flex; gap: 10px; align-items: center; padding: 6px 0 6px 0; }
.xm-flow li em { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(157,180,211,.6); display: grid; place-items: center; flex: none; background: #0b2545; position: relative; z-index: 1; }
.xm-flow li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 28px; bottom: -6px; width: 2px; background: rgba(157,180,211,.25); }
.xm-flow li::before { content: ""; position: absolute; left: 7px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: #59b7ff; box-shadow: 0 0 10px #59b7ff; opacity: 0; z-index: 2; }
.xm-flow li em svg { opacity: 0; }
/* matriz */
.xm-grid { position: relative; flex: 1; min-height: 220px; border-radius: 10px; background:
  linear-gradient(rgba(157,180,211,.2), rgba(157,180,211,.2)) 50% 0 / 1px 100% no-repeat,
  linear-gradient(rgba(157,180,211,.2), rgba(157,180,211,.2)) 0 50% / 100% 1px no-repeat, rgba(255,255,255,.03); }
.xm-hot { position: absolute; left: 50%; top: 0; width: 50%; height: 50%; border-radius: 0 10px 0 0; background: radial-gradient(circle at 70% 30%, rgba(89,183,255,.28), transparent 70%); }
.xm-ax { position: absolute; font-size: 10px; color: var(--cl-nube); }
.xm-ax--y { left: 6px; top: 6px; } .xm-ax--x { right: 8px; bottom: 6px; }
.xm-pt { position: absolute; left: var(--x); bottom: var(--y); transform: translate(-6px, 6px); display: flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.xm-pt i { width: 12px; height: 12px; border-radius: 50%; background: #9db4d3; flex: none; }
.xm-pt.is-top i { background: #59b7ff; box-shadow: 0 0 12px #59b7ff; }
.xm-pt.is-top { color: #fff; font-weight: 600; }
.xm-pt[style*="--x:8"], .xm-pt[style*="--x:7"], .xm-pt[style*="--x:6"] { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), 6px); }
/* lista de controles */
.xm-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.xm-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #1d6ab0, #59b7ff); transform-origin: left; }
.xm-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.xm-checks li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.06); }
.xm-checks li em { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(157,180,211,.6); display: grid; place-items: center; flex: none; }
/* app y despliegue */
.xm-app { flex-direction: row; gap: 14px; }
.xm-phone { flex: 0 0 52%; border-radius: 22px; padding: 10px; background: #f4f8fd; color: #0b2545; border: 5px solid #13315c; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.xm-phone__top { text-align: center; padding: 4px 0 6px; border-bottom: 1px solid #dde7f2; }
.xm-phone__top b { color: #0b2545; }
.xm-row { display: flex; justify-content: space-between; gap: 6px; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(11,37,69,.08); font-size: 12px; }
.xm-row em { font-style: normal; color: #1d6ab0; font-weight: 500; }
.xm-cta { margin-top: auto; text-align: center; padding: 9px; border-radius: 10px; background: #1d6ab0; color: #fff; font-weight: 500; font-size: 12px; }
.xm-deploy { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.xm-deploy code { font: 500 11px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--cl-nube); }
/* ops */
.xm-pipe { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.xm-pipe span { padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(157,180,211,.25); white-space: nowrap; }
.xm-pipe i { flex: 1; height: 2px; background: rgba(157,180,211,.3); min-width: 8px; }

/* ---------- la animación: corre en el ejemplo activo, en pantalla y sin «reducir movimiento» ---------- */
@media (prefers-reduced-motion: no-preference) {
  .xp.is-live .xp__panel.is-on [style*="--d"]:is(.xm-msg, .xm-think, .xm-src, .xm-fields li, .xm-tag, .xm-transcript li, .xm-kpis div, .xm-ans, .xm-flow li, .xm-checks li, .xm-row, .xm-cta, .xm-pipe span) { animation: xm-pop .5s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d); }
  .xp.is-live .xp__panel.is-on .xm-think { animation: xm-think 1.1s ease both; animation-delay: var(--d); }
  .xp.is-live .xp__panel.is-on .xm-think i { animation: xm-dot 0.9s infinite ease-in-out; } .xp.is-live .xp__panel.is-on .xm-think i:nth-child(2) { animation-delay: .15s; } .xp.is-live .xp__panel.is-on .xm-think i:nth-child(3) { animation-delay: .3s; }
  .xp.is-live .xp__panel.is-on .xm-scan { animation: xm-scan 2.8s ease-in-out .3s 2 both; }
  .xp.is-live .xp__panel.is-on .xm-fields li em { animation: xm-pop .4s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--d) + .25s); }
  .xp.is-live .xp__panel.is-on .xm-wave i { animation: xm-wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
  .xp.is-live .xp__panel.is-on .xm-line { stroke-dasharray: 1 1; animation: xm-draw 1.6s cubic-bezier(.22,1,.36,1) .5s both; }
  .xp.is-live .xp__panel.is-on .xm-area { animation: xm-fade 1s ease 1.2s both; }
  .xp.is-live .xp__panel.is-on .xm-dot { animation: xm-glow 1.6s ease-in-out 2s infinite both; }
  .xp.is-live .xp__panel.is-on .xm-bars i { animation: xm-grow .9s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d); }
  .xp.is-live .xp__panel.is-on .xm-flow li::before { animation: xm-travel .9s ease-in-out both; animation-delay: calc(var(--d) + .5s); }
  .xp.is-live .xp__panel.is-on .xm-flow li em { animation: xm-done .4s ease both; animation-delay: calc(var(--d) + .35s); }
  .xp.is-live .xp__panel.is-on .xm-flow li em svg { animation: xm-fade .3s ease both; animation-delay: calc(var(--d) + .4s); }
  .xp.is-live .xp__panel.is-on .xm-checks li em { animation: xm-done .4s ease both; animation-delay: calc(var(--d) + .3s); }
  .xp.is-live .xp__panel.is-on .xm-checks .xm-prog i, .xp.is-live .xp__panel.is-on .xm-deploy .xm-prog i { animation: xm-grow 3.4s cubic-bezier(.4,0,.2,1) .4s both; }
  .xp.is-live .xp__panel.is-on .xm-pt i { animation: xm-glow 2s ease-in-out infinite; animation-delay: calc(var(--d) + .6s); }
}
@keyframes xm-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.xp.is-live .xp__panel.is-on .xm-pt { animation: xm-fade .6s ease both; animation-delay: var(--d); }
@keyframes xm-think { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes xm-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes xm-scan { from { top: -30px; } to { top: 100%; } }
@keyframes xm-wave { 0%, 100% { height: 18%; } 50% { height: 92%; } }
@keyframes xm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes xm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xm-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(89,183,255,.6); filter: drop-shadow(0 0 4px #59b7ff); } 50% { box-shadow: 0 0 0 7px rgba(89,183,255,0); filter: drop-shadow(0 0 10px #59b7ff); } }
@keyframes xm-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes xm-travel { 0% { opacity: 0; transform: translateY(-14px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
@keyframes xm-done { from { background: #0b2545; border-color: rgba(157,180,211,.6); } to { background: #59b7ff; border-color: #59b7ff; box-shadow: 0 0 12px rgba(89,183,255,.6); } }
.xm-flow li em, .xm-checks li em { background: #59b7ff; border-color: #59b7ff; }
.xm-flow li em svg { opacity: 1; }
@media (max-width: 639px) {
  .xp-frame { padding: var(--s-3); min-height: 0; }
  .xp__chip { font-size: 12px; padding-right: 10px; }
  .xm-kpis b { font-size: 16px; }
  .xm-doc, .xm-app { flex-direction: column; }
  .xm-paper, .xm-phone { flex-basis: auto; }
  .xm-bars div { grid-template-columns: 72px 1fr; }
  .xm-pt { font-size: 10px; }
}

/* ---------- visor de arquitecturas de referencia (Servicios) ---------- */
.av { position: relative; border-radius: var(--r-lg); padding: var(--s-6); color: #fff; background: radial-gradient(120% 90% at 85% 0%, #1b4a82 0%, #0b2545 55%, #081d38 100%); box-shadow: 0 40px 90px rgba(11,37,69,.35), 0 0 0 1px rgba(157,180,211,.2); overflow: hidden; }
.av::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.2px); background-size: 46px 46px; opacity: .12; }
.av > * { position: relative; }
.av__top { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; }
.av__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.av__tab, .av__clouds button, .av__btn, .av__comp { all: unset; box-sizing: border-box; cursor: pointer; }
.av__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 6px; border-radius: 999px; border: 1px solid rgba(157,180,211,.3); background: rgba(255,255,255,.04); font: 500 14px/1.1 var(--font-text); color: #dbe7f5; transition: background .25s, border-color .25s, color .25s; }
.av__tab .cl-picto { width: 30px; height: 30px; --cl-ink: #fff; --cl-soft-f: #1e4573; }
.av__tab:hover { border-color: #59b7ff; color: #fff; }
.av__tab[aria-selected="true"] { background: #59b7ff; border-color: #59b7ff; color: #0b2545; }
.av__tab[aria-selected="true"] .cl-picto { --cl-ink: #0b2545; --cl-soft-f: #bfe4ff; --cl-star: #0b2545; }
.av__clouds { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(157,180,211,.25); }
.av__clouds button { min-height: 36px; padding: 0 14px; border-radius: 999px; font: 500 13px/36px var(--font-text); color: #dbe7f5; }
.av__clouds button[aria-checked="true"] { background: #fff; color: #0b2545; }
:is(.av__tab, .av__clouds button, .av__btn, .av__comp):focus-visible { outline: 2px solid #59b7ff; outline-offset: 2px; }
.av__note { margin-top: var(--s-3); font-size: 13px; color: var(--cl-nube); }
.av__desc { margin: var(--s-4) 0; color: #dbe7f5; max-width: 80ch; }
.av__stage { position: relative; border-radius: 16px; padding: var(--s-4); background: rgba(255,255,255,.03); border: 1px solid rgba(157,180,211,.18); }
.av__cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.av__layers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s-5); }
.av__layer { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(157,180,211,.2); }
.av__lh { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(157,180,211,.18); }
.av__lh .cl-picto { width: 30px; height: 30px; --cl-ink: #fff; --cl-soft-f: #1e4573; }
.av__lh b { font: 500 14px/1.2 var(--font-display); }
.av__comp { position: relative; display: block; padding: 9px 10px; border-radius: 10px; background: rgba(11,37,69,.75); border: 1px solid rgba(157,180,211,.32); font: 500 12.5px/1.3 var(--font-text); color: #fff; text-align: left; min-height: 44px; transition: border-color .3s, background .3s, box-shadow .3s, transform .3s; }
.av__comp:hover, .av__comp.is-active { border-color: #59b7ff; background: #13315c; box-shadow: 0 0 0 4px rgba(89,183,255,.18), 0 0 24px rgba(89,183,255,.35); }
.av__comp.is-active { transform: translateY(-2px); }
.av__comp.is-done { border-color: rgba(89,183,255,.55); }
.av__tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: 220px; padding: 8px 10px; border-radius: 10px; background: #fff; color: #0b2545; font: 400 12.5px/1.4 var(--font-text); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 14px 34px rgba(0,0,0,.35); z-index: 5; }
.av__comp:is(:hover, :focus-visible, .is-tip) .av__tip { opacity: 1; transform: translate(-50%, 0); }
.av__lab { transition: opacity .2s; }
.av__cross { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: var(--s-4); }
.av__cross span { position: relative; overflow: hidden; padding: 8px 12px; border-radius: 10px; font: 500 12.5px/1.2 var(--font-text); text-align: center; color: #cfeaff; background: rgba(89,183,255,.1); border: 1px dashed rgba(89,183,255,.45); }
.av__cross span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); }
.av__foot { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: start; margin-top: var(--s-5); }
.av__ctrl { display: flex; align-items: center; gap: 6px; }
.av__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(157,180,211,.35); }
.av__btn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av__btn .i-play { display: none; fill: #fff; stroke: none; }
.av.is-paused .av__btn--play .i-pause { display: none; } .av.is-paused .av__btn--play .i-play { display: block; }
.av__count { font-size: 13px; color: var(--cl-nube); margin-left: 6px; white-space: nowrap; }
.av__count b { color: #fff; }
.av__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.av__steps li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; color: #c9d8ea; background: rgba(255,255,255,.04); border: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.av__steps li b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(157,180,211,.25); color: #fff; }
.av__steps li.is-active { background: rgba(89,183,255,.16); border-color: rgba(89,183,255,.5); color: #fff; }
.av__steps li.is-active b, .av__steps li.is-done b { background: #59b7ff; color: #0b2545; }
@media (prefers-reduced-motion: no-preference) {
  .av.is-live .av__panel.is-in .av__layer { animation: av-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--li) * 120ms); }
  .av.is-live .av__cross span::after { animation: av-shimmer 3.6s ease-in-out infinite; }
  .av.is-live .av__cross span:nth-child(2)::after { animation-delay: .9s; } .av.is-live .av__cross span:nth-child(3)::after { animation-delay: 1.8s; } .av.is-live .av__cross span:nth-child(4)::after { animation-delay: 2.7s; }
}
@keyframes av-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes av-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (max-width: 1023px) {
  .av { padding: var(--s-4); }
  .av__layers { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .av__layer { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .av__lh { grid-column: 1 / -1; }
  .av__cross { grid-template-columns: 1fr 1fr; }
  .av__foot { grid-template-columns: 1fr; }
  .av__tip { left: 0; transform: translate(0, 4px); } .av__comp:is(:hover, :focus-visible, .is-tip) .av__tip { transform: none; }
}
.disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.disc li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-4); border-radius: var(--r-md); background: var(--p-bg); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.disc li:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11,37,69,.1); }
.disc h3 { font-size: 17px; } .disc p { font-size: 14px; }
@media (max-width: 1023px) { .disc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .disc { grid-template-columns: 1fr; } }

.arch-kicker { color: var(--cl-deep); }
.disc .cl-picto { width: 44px; height: 44px; }
.disc__gov { background: #0b2545 !important; display: grid; align-content: center; }
.disc__gov p { color: #dbe7f5; font-size: 15px !important; }
.ra-head { margin: var(--s-8) 0 var(--s-4); } .ra-head h3 { font-size: var(--t-h3); } .ra-head p { margin-top: var(--s-2); }
.arch-faq { margin-top: var(--s-6); max-width: 75ch; } .arch-faq h3 { font-size: var(--t-card); } .arch-faq p { margin-top: var(--s-2); }
@media (max-width: 639px) {
  .av__clouds { display: flex; flex-wrap: wrap; width: 100%; border-radius: 16px; gap: 2px; }
  .av__clouds button { flex: 1 1 auto; text-align: center; white-space: nowrap; min-height: 44px; line-height: 44px; padding: 0 10px; }
}

/* ---------- v5 · chips del reproductor, tarjetas de disciplinas y flujo horizontal del visor ---------- */
.xp__chips { gap: 8px; }
.xp__chip { position: relative; overflow: hidden; gap: 8px; padding: 5px 16px 5px 5px; border-color: rgba(157,180,211,.28); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); font-size: 13.5px; transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s; }
.xp__ci { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(89,183,255,.14); border: 1px solid rgba(89,183,255,.28); transition: background .3s, border-color .3s, box-shadow .3s; }
.xp__chip .cl-picto { width: 22px; height: 22px; }
.xp__chip:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); }
.xp__chip[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(89,183,255,.34), rgba(29,106,176,.42)); border-color: rgba(89,183,255,.85); box-shadow: 0 0 0 3px rgba(89,183,255,.16), 0 8px 26px rgba(89,183,255,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.xp__chip[aria-selected="true"] .cl-picto { --cl-ink: #0b2545; --cl-soft-f: #bfe4ff; --cl-star: #0b2545; }
.xp__chip[aria-selected="true"] .xp__ci { background: #59b7ff; border-color: #bfe4ff; box-shadow: 0 0 14px rgba(89,183,255,.8); }
.xp__cp { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: #bfe4ff; transform: scaleX(0); transform-origin: left; opacity: 0; }
.xp__chip[aria-selected="true"] .xp__cp { opacity: 1; transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .xp.is-auto:not(.is-paused) .xp__chip[aria-selected="true"] .xp__cp { animation: xp-bar var(--dur) linear both; }
  .xp__chip[aria-selected="true"] .xp__ci { animation: xp-ci 2.4s ease-in-out infinite; }
}
@keyframes xp-ci { 50% { box-shadow: 0 0 22px rgba(89,183,255,1); } }

/* disciplinas: 4 + 3 + gobierno, tarjetas de vidrio unidas por una línea */
.disc { gap: var(--s-4); }
.disc li { position: relative; padding: var(--s-5) var(--s-4) var(--s-4); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(234,244,255,.8)); border: 1px solid rgba(89,183,255,.25); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px rgba(11,37,69,.06); }
.disc li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, #59b7ff, #1d6ab0) top / 100% 3px no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.disc li:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(11,37,69,.14), 0 0 0 1px rgba(89,183,255,.45); }
.disc li:hover::after { transform: none; }
.disc__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.disc__ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #0b2545, #1d4f8a); box-shadow: 0 8px 22px rgba(11,37,69,.25); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.disc__ic .cl-picto { width: 34px !important; height: 34px !important; --cl-ink: #fff; --cl-soft-f: #1e4573; --cl-star: #59b7ff; }
.disc li:hover .disc__ic { transform: rotate(-4deg) scale(1.06); box-shadow: 0 10px 28px rgba(89,183,255,.45); }
.disc__n { position: relative; z-index: 1; padding-left: 8px; background: inherit; font: 500 13px/1 var(--font-display); color: #1d6ab0; letter-spacing: .08em; }
.disc__d { padding-top: var(--s-2); border-top: 1px dashed rgba(89,183,255,.35); }
@media (min-width: 1024px) {
  /* línea de constelación que une los íconos de cada fila */
  .disc li:not(:nth-child(4n)):not(:last-child) .disc__top::before { content: ""; position: absolute; left: 56px; right: calc(var(--s-4) * -2); top: 27px; height: 2px; background: linear-gradient(90deg, rgba(89,183,255,.75), rgba(89,183,255,.2)); }
  .disc li:not(:nth-child(4n)):not(:last-child) .disc__top::after { content: ""; position: absolute; right: calc(var(--s-4) * -1.5 - 5px); top: 23px; width: 10px; height: 10px; border-radius: 50%; background: #59b7ff; box-shadow: 0 0 12px #59b7ff; z-index: 2; }
  .disc__n { display: none; }
}
.disc__gov { border: 0 !important; background: radial-gradient(120% 120% at 100% 0%, #1d4f8a, #0b2545 60%) !important; }
.disc__gov p { font: 500 17px/1.45 var(--font-display) !important; color: #fff !important; }
@media (prefers-reduced-motion: no-preference) {
  .fx .disc.is-live li { animation: disc-in .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 7) * 70ms); }
  .fx .disc.is-live li:hover { animation: none; }
}
@keyframes disc-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* visor: flujo horizontal claro en escritorio (capas de izquierda a derecha con flechas) */
@media (min-width: 1024px) {
  .av__layers { counter-reset: lay; }
  .av__layer { position: relative; }
  .av__layer:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(var(--s-5) * -1 + 3px); width: calc(var(--s-5) - 6px); height: 14px; transform: translateY(-50%); background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 7h20M15 1l6 6-6 6' fill='none' stroke='%2359b7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 6px rgba(89,183,255,.8)); z-index: 2; }
  .av__lh { flex-direction: column; align-items: flex-start; gap: 6px; }
  .av__lh::before { content: counter(lay, decimal-leading-zero); counter-increment: lay; font: 500 11px/1 var(--font-display); letter-spacing: .1em; color: #59b7ff; }
}
.av__layer.has-active { border-color: rgba(89,183,255,.6); box-shadow: 0 0 30px rgba(89,183,255,.18) inset; }
@media (max-width: 639px) {
  .disc { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 16px; margin-inline: -2px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .disc li { flex: 0 0 84%; scroll-snap-align: start; }
  .disc li:hover { transform: none; }
}
