/* =========================================================================
   Collage del hero v2 (landings de funcionalidad): la pantalla real es la base
   y cada recurso sale del borde junto al dato que amplía.
   ========================================================================= */
.c2 { position: relative; padding: 44px 9% 56px 7%; --e: cubic-bezier(.16,1,.3,1); }
.c2.reveal { opacity: 1 !important; transform: none !important; }
.c2-bg { position: absolute; inset: 0 0 0 16%; border-radius: 20px; }
.c2--soft .c2-bg { background: radial-gradient(rgba(32,77,229,.14) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(160deg, #EEF2FF, #F6F8FD); box-shadow: inset 0 0 0 1px #E3E8F5; }
.c2--brand .c2-bg { background: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px) 0 0 / 18px 18px, radial-gradient(90% 100% at 70% 0%, #3355ff 0%, #1a2fc2 40%, #020a35 95%); }
.c2-f { position: relative; }
.c2 [data-plx] { translate: 0 var(--py, 0px); }
.c2-scr { position: relative; aspect-ratio: 1.45; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.07), 0 18px 36px -12px rgba(2,10,53,.3), 0 50px 100px -30px rgba(2,10,53,.45); opacity: 0; transform: translateY(36px); transition: opacity .9s var(--e), transform 1.1s var(--e); }
.c2-scr img { position: absolute; max-width: none; height: auto; display: block; }
.c2-hl { position: absolute; border-radius: 8px; border: 2px solid var(--blue); background: rgba(32,77,229,.07); box-shadow: 0 0 0 4px rgba(32,77,229,.12); opacity: 0; transform: scale(1.06); transition: opacity .6s .55s var(--e), transform .7s .55s var(--e); }
.c2.is-in .c2-scr { opacity: 1; transform: none; }
.c2.is-in .c2-hl { opacity: 1; transform: none; }

/* Piezas flotantes */
.c2 svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c2 b { display: block; color: var(--navy); font-weight: 700; } .c2 b span, .c2 small span, .c2 span span { display: inline; }
.c2 small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.c2-c { position: absolute; z-index: 2; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(2,10,53,.06), 0 24px 48px -16px rgba(2,10,53,.4); opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .6s var(--d) var(--e), transform .8s var(--d) var(--e); }
.c2.is-in .c2-c { opacity: 1; transform: none; }
.c2-kpi { width: 200px; padding: 16px 18px; }
.c2-kpi b { margin-top: 6px; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.c2-sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.c2-bar { margin-top: 12px; height: 6px; border-radius: 99px; background: #E9EDF7; overflow: hidden; }
.c2-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width 1.1s calc(var(--d) + .3s) var(--e); }
.c2.is-in .c2-bar i { width: var(--w); }
.c2-spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 12px; }
.c2-spark i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; background: #DCE4FB; transform: scaleY(0); transform-origin: bottom; transition: transform .7s calc(var(--d) + .5s) var(--e); }
.c2-spark i.on { background: var(--blue); }
.c2.is-in .c2-spark i { transform: none; }
.c2-act { width: 272px; padding: 16px; }
.c2-ah { display: flex; gap: 12px; align-items: flex-start; }
.c2-ah b { font-size: 15px; line-height: 1.25; }
.c2-ah div > span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.c2-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; }
.c2-ic svg { width: 19px; height: 19px; }
.c2-ic--warn { background: #FFF4DE; color: #B7791F; }
.c2-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.c2-btn { padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff !important; font-size: 12.5px; font-weight: 600; }
.c2-btn span { color: #fff !important; }
.c2-btn--ghost, .c2-btn--ghost span { background: #EEF2FF; color: var(--blue) !important; }
.c2-list { width: 262px; padding: 14px 16px 8px; }
.c2-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.c2-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #EEF1F7; font-size: 13px; font-weight: 600; color: var(--navy); opacity: 0; transform: translateX(-8px); transition: opacity .5s calc(var(--d) + .7s), transform .6s calc(var(--d) + .7s) var(--e); }
.c2-list small + ul li:first-child { border-top: 0; }
.c2.is-in .c2-list li { opacity: 1; transform: none; }
.c2-pill { flex: none; padding: 3px 9px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 700; }
.c2-pill--ok { background: #E3F6EC; color: #11804A; } .c2-pill--blue { background: #EEF2FF; color: var(--blue); }
.c2-pill--warn { background: #FFF4DE; color: #B7791F; } .c2-pill--mut { background: #F1F3F8; color: var(--muted); }
.c2-alert, .c2-noti { display: flex; gap: 12px; align-items: center; width: 280px; padding: 14px 16px; }
.c2-alert { box-shadow: inset 3px 0 0 #E8A33A, 0 0 0 1px rgba(2,10,53,.06), 0 24px 48px -16px rgba(2,10,53,.4); }
.c2-alert b, .c2-noti b { font-size: 14.5px; line-height: 1.25; }
.c2-alert div > span, .c2-noti div > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.c2-noti > div { flex: 1; }
.c2-ok { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E3F6EC; }
.c2-ok svg { width: 12px; height: 12px; stroke: #11804A; stroke-width: 2.2; }
/* Tooltip anclado a un punto de la pantalla */
.c2-tip { position: absolute; z-index: 2; width: 0; height: 0; }
.c2-tip i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 5px rgba(32,77,229,.18); opacity: 0; transform: scale(.3); transition: opacity .4s var(--d), transform .6s var(--d) cubic-bezier(.34,1.56,.64,1); }
.c2-tip b { position: absolute; left: 0; bottom: 16px; translate: -50% 0; white-space: nowrap; padding: 7px 12px; border-radius: 8px; background: var(--navy); color: #fff !important; font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 24px -10px rgba(2,10,53,.6); opacity: 0; transform: translateY(8px); transition: opacity .5s calc(var(--d) + .2s), transform .6s calc(var(--d) + .2s) var(--e); }
.c2-tip b span { color: #fff !important; }
.c2-tip b::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--navy); transform: rotate(45deg); border-radius: 2px; }
.c2.is-in .c2-tip i, .c2.is-in .c2-tip b { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .c2 { padding: 32px 6% 48px; }
  .c2-c { scale: .8; transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) { .c2 * { transition: none !important; } }
