/* v3: titular en dos líneas, panel de ejemplo mejorado y visuales con movimiento */
.ag h1 .h1l { display: block; }
.ag h1 .h1l:first-child { font-size: 1.12em; }

/* cliente de ejemplo dentro del panel */
.side-foot .client { display: flex; align-items: center; gap: 8px; padding: 8px 9px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 650; font-size: 12px; line-height: 1.2; }
.side-foot .client img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.side-foot .client small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); }

/* piezas comunes del panel */
.ag-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ag-stats .agst { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ag-stats .agst span { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); }
.ag-stats .agst b { font-size: 1.45rem; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.ag-stats .agst em { font-style: normal; font-size: 12px; color: var(--text-2); }
.ag-stats .agst.blue { background: linear-gradient(180deg, #F3F7FF, #fff); border-color: #C8DAFB; } .ag-stats .agst.blue b { color: #1D4ED8; }
.ag-stats .agst.good b { color: #15803D; } .ag-stats .agst.warn b { color: #B45309; }
.ag-split { display: grid; grid-template-columns: minmax(190px, .8fr) 1.7fr; gap: 12px; align-items: start; }
.ag-split.b { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
.ag-cov, .ag-card2 { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ag-cov .cv { display: grid; grid-template-columns: 1fr 38px; gap: 5px 8px; align-items: center; margin-top: 10px; }
.ag-cov .cn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--navy); grid-column: 1 / -1; }
.ag-cov .cn .ai-mark { width: 15px; height: 15px; } .ag-cov .cv b { font-size: 12px; text-align: right; color: var(--navy); font-variant-numeric: tabular-nums; grid-row: 2; grid-column: 2; } .ag-cov .cv .pbar { grid-row: 2; grid-column: 1; }
.pbar { height: 8px; border-radius: 999px; background: #E8EEF8; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60A5FA, #2563EB); transform-origin: left; }
.pbar.full i { background: linear-gradient(90deg, #4ADE80, #16A34A); } .pbar.me i { background: linear-gradient(90deg, #2DD4BF, #0F766E); }
.app-view:not([hidden]) .pbar i { animation: hv-grow 1s cubic-bezier(.22,1,.36,1) both; }
@keyframes hv-grow { from { transform: scaleX(0); } }
.zc { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #F1F5FC; color: #3A4256; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dl { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl.up { background: #DCFCE7; color: #166534; } .dl.down { background: #FEE2E2; color: #B91C1C; } .dl.eq { background: #EEF1F6; color: #778195; }
.ag-table tbody tr { transition: background .2s; } .ag-table tbody tr:hover { background: #F7FAFF; }
.ag-table .ok { box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.app-view:not([hidden]) .ag-table tbody tr { animation: hv-row .5s cubic-bezier(.22,1,.36,1) both; }
.app-view:not([hidden]) .ag-table tbody tr:nth-child(2) { animation-delay: .05s; } .app-view:not([hidden]) .ag-table tbody tr:nth-child(3) { animation-delay: .1s; } .app-view:not([hidden]) .ag-table tbody tr:nth-child(4) { animation-delay: .15s; } .app-view:not([hidden]) .ag-table tbody tr:nth-child(n+5) { animation-delay: .2s; }
@keyframes hv-row { from { opacity: 0; transform: translateX(-10px); } }

/* trabajo */
.ag-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ag-prog .agpg { display: grid; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ag-prog .agpg span { font-size: 11.5px; font-weight: 600; color: var(--text-3); } .ag-prog .agpg b { font-size: 1.5rem; letter-spacing: -.03em; color: var(--navy); line-height: 1; } .ag-prog .agpg small { font-size: .85rem; font-weight: 500; color: var(--text-3); }
.ag-prog .agpg em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #B45309; } .ag-prog .agpg.done em { color: #15803D; }
.ag-wk { margin-bottom: 14px; } .ag-wk .wb { display: flex; align-items: flex-end; gap: 12px; height: 104px; padding: 18px 12px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ag-wk .wb > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ag-wk .wb i { position: relative; display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #60A5FA, #2563EB); transform-origin: bottom; }
.ag-wk .wb u { position: absolute; left: 0; right: 0; top: -17px; text-align: center; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--navy); }
.ag-wk .wb span { font-size: 11px; color: var(--text-3); }
.app-view:not([hidden]) .ag-wk .wb i { animation: hv-bar .9s cubic-bezier(.22,1,.36,1) both; } .app-view:not([hidden]) .ag-wk .wb > div:nth-child(2) i { animation-delay: .08s; } .app-view:not([hidden]) .ag-wk .wb > div:nth-child(3) i { animation-delay: .16s; } .app-view:not([hidden]) .ag-wk .wb > div:nth-child(4) i { animation-delay: .24s; }
@keyframes hv-bar { from { transform: scaleY(0); } }
.ag-work .when, .ag-work .sch { margin-left: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #F1F5FC; color: #778195; white-space: nowrap; }
.ag-work .sch { background: #FEF3C7; color: #92400E; }
.app-view:not([hidden]) .ag-work li { animation: hv-row .5s cubic-bezier(.22,1,.36,1) both; } .app-view:not([hidden]) .ag-work li:nth-child(2) { animation-delay: .06s; } .app-view:not([hidden]) .ag-work li:nth-child(3) { animation-delay: .12s; } .app-view:not([hidden]) .ag-work li:nth-child(4) { animation-delay: .18s; } .app-view:not([hidden]) .ag-work li:nth-child(5) { animation-delay: .24s; }

/* competidores */
.ag-card2 { display: grid; gap: 4px; align-content: start; }
.ag-donut { position: relative; width: 150px; height: 150px; margin: 6px auto; } .ag-donut svg { width: 100%; height: 100%; display: block; }
.app-view:not([hidden]) .ag-donut svg { animation: hv-donut 1.1s cubic-bezier(.22,1,.36,1) both; } @keyframes hv-donut { from { opacity: 0; transform: rotate(-70deg) scale(.82); } }
.ag-donut .agdc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ag-donut .agdc b { font-size: 1.55rem; letter-spacing: -.03em; color: var(--navy); line-height: 1; } .ag-donut .agdc span { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ag-leg { display: grid; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; } .ag-leg li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); } .ag-leg i { width: 10px; height: 10px; border-radius: 3px; } .ag-leg b { margin-left: auto; color: var(--navy); }
.ag-rank2 { display: grid; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.ag-rank2 li { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #EEF2F8; border-radius: 12px; background: #fff; }
.ag-rank2 li.me { border-color: #7DD3C7; background: linear-gradient(90deg, #F0FDFA, #fff); box-shadow: 0 10px 24px -18px rgba(15,118,110,.7); }
.ag-rank2 .pos { font-size: 12px; font-weight: 700; color: var(--text-3); text-align: center; }
.av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; } .av.me { border-radius: 8px; }
.ag-rank2 .nm { display: grid; gap: 5px; min-width: 0; } .ag-rank2 .nm b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-rank2 .nm em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #0F766E; color: #fff; }
.ag-rank2 .ct { font-size: 14px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; } .ag-rank2 .ct small { font-weight: 500; color: var(--text-3); font-size: 11px; }
.app-view:not([hidden]) .ag-rank2 li { animation: hv-row .55s cubic-bezier(.22,1,.36,1) both; } .app-view:not([hidden]) .ag-rank2 li:nth-child(2) { animation-delay: .07s; } .app-view:not([hidden]) .ag-rank2 li:nth-child(3) { animation-delay: .14s; } .app-view:not([hidden]) .ag-rank2 li:nth-child(4) { animation-delay: .21s; }
.ag-loss { margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ag-loss .ls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 0; border-top: 1px solid #EEF2F8; font-size: 13px; } .ag-loss .ls:first-of-type { border-top: 0; }
.ag-loss .lq { flex: 1 1 200px; color: var(--navy); font-weight: 600; } .ag-loss .lw { color: var(--text-2); } .ag-loss .lw b { color: #B91C1C; } .ag-loss .lt { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; }

/* informes */
.ag-rep { margin-bottom: 14px; padding: 16px; border: 1px solid #C8DAFB; border-radius: 16px; background: linear-gradient(180deg, #F3F7FF, #fff); box-shadow: 0 24px 40px -32px rgba(37,99,235,.55); }
.ag-rep .agrh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; } .ag-rep .agrd { font-weight: 700; color: var(--navy); font-size: 14.5px; } .ag-rep .agrs { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ag-rep .new { font-style: normal; font-size: 11px; font-weight: 700; color: #166534; background: #DCFCE7; padding: 2px 9px; border-radius: 999px; }
.ag-rep .agrk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; } .ag-rep .agrk div { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border: 1px solid #E3EAF6; border-radius: 12px; } .ag-rep .agrk span { font-size: 11px; color: var(--text-3); } .ag-rep .agrk b { font-size: 1.3rem; letter-spacing: -.03em; color: #1D4ED8; }
.ag-rep .agrn { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); }
.ag-rep .agrl b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); } .ag-rep .agrl ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; } .ag-rep .agrl li { position: relative; padding-left: 22px; font-size: 13px; color: var(--navy); } .ag-rep .agrl li::before { content: '→'; position: absolute; left: 2px; color: #2563EB; font-weight: 700; }
.ag-oldr { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; } .ag-oldr li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; } .ag-oldr b { display: block; color: var(--navy); font-size: 13.5px; } .ag-oldr span { font-size: 12.5px; color: var(--text-2); } .ag-oldr .sp { margin-left: auto; flex: none; width: 84px; height: 26px; }
.app-view:not([hidden]) .ag-rep { animation: hv-row .6s cubic-bezier(.22,1,.36,1) both; } .app-view:not([hidden]) .ag-oldr li { animation: hv-row .55s cubic-bezier(.22,1,.36,1) both; } .app-view:not([hidden]) .ag-oldr li:nth-child(2) { animation-delay: .08s; } .app-view:not([hidden]) .ag-oldr li:nth-child(3) { animation-delay: .16s; }

@media (max-width: 900px) { .ag-split, .ag-split.b { grid-template-columns: 1fr; } .ag-prog { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-rep .agrk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ag-stats { grid-template-columns: 1fr; } .ag-rank2 li { grid-template-columns: 16px 28px minmax(0, 1fr) auto; } .ag-rank2 .dl { display: none; } }

/* visuales con movimiento: arrancan al entrar en pantalla */
@property --p { syntax: '<number>'; inherits: false; initial-value: 62; }
@keyframes hv-in { 0% { opacity: 0; transform: translateY(8px); } 14%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes hv-pop { 0%, 30% { opacity: 0; transform: scale(.6); } 46%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
@keyframes hv-draw { 0% { stroke-dashoffset: var(--len, 300); } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes hv-scale-x { 0%, 8% { transform: scaleX(0); } 45%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes hv-node { 0%, 12% { fill: #fff; stroke: #9DB6E4; } 28%, 85% { fill: #DCE9FF; stroke: #2563EB; } 100% { fill: #fff; stroke: #9DB6E4; } }
@keyframes hv-fade { 0%, 100% { opacity: .85; } 50% { opacity: .2; } }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hv-shine { to { background-position: -200% 0; } }
@keyframes hv-ring { 0% { --p: 6; } 55%, 100% { --p: 62; } }
@keyframes hv-grow-y { 0%, 6% { transform: scaleY(0); } 40%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes hv-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow: 0 0 0 5px rgba(37,99,235,.22); } }
@keyframes hv-twinkle { 0%, 100% { letter-spacing: 2px; filter: none; } 50% { letter-spacing: 5px; filter: brightness(1.15) saturate(1.3); } }

.how-art.live .ha-serp i { animation: hv-fade 3.2s ease-in-out infinite; } .how-art.live .ha-serp i:nth-child(2) { animation-delay: .25s; } .how-art.live .ha-serp i:nth-child(3) { animation-delay: .5s; } .how-art.live .ha-serp i:nth-child(4) { animation-delay: .75s; } .how-art.live .ha-serp i:nth-child(5) { animation-delay: 1s; }
.how-art.live .ha-arrow { animation: hv-fade 2s ease-in-out infinite; }
.how-art.live .ha-ans b { animation: hv-in 5.6s ease infinite both; } .how-art.live .ha-ans b:nth-of-type(2) { animation-delay: .5s; } .how-art.live .ha-ans b:nth-of-type(3) { animation-delay: 1s; }
.how-art.live .ha-ans b.me { animation: hv-in 5.6s ease .5s infinite both, hv-glow 2.8s ease-in-out 1s infinite; }
.how-art.live .ha-read li { animation: hv-in 6s ease infinite both; } .how-art.live .ha-read li:nth-child(2) { animation-delay: .6s; } .how-art.live .ha-read li:nth-child(3) { animation-delay: 1.2s; }
.how-art.live .ha-read .rank i { display: inline-block; animation: hv-pop 6s ease infinite both; }
.ha-race path:nth-of-type(2) { stroke-dasharray: 260; --len: 260; } .how-art.live .ha-race path:nth-of-type(2) { animation: hv-draw 5s ease-in-out infinite; }
.ha-race circle { transform-box: fill-box; transform-origin: center; } .how-art.live .ha-race circle { animation: hv-pop 5s ease infinite both; }
.how-art.live .ha-audit .ring { animation: hv-ring 5s ease-in-out infinite; } .how-art.live .ha-audit li.bad { animation: hv-fade 2.4s ease-in-out infinite; } .how-art.live .ha-audit li.bad:nth-child(2) { animation-delay: .6s; }
.ha-code s { transform-origin: left; } .how-art.live .ha-code s { animation: hv-scale-x 5s ease infinite; } .how-art.live .ha-code s:nth-of-type(2) { animation-delay: .35s; } .how-art.live .ha-code s:nth-of-type(3) { animation-delay: .7s; }
.how-art.live .ha-code .pub { animation: hv-pop 5s ease 1.2s infinite both; } .ha-code code::after { content: '▍'; margin-left: 2px; color: #60A5FA; animation: hv-fade 1s steps(2) infinite; }
.ha-net g:nth-of-type(2) circle { fill: #fff; } .how-art.live .ha-net g:nth-of-type(2) circle { animation: hv-node 5s ease infinite; } .how-art.live .ha-net g:nth-of-type(2) circle:nth-child(2) { animation-delay: .5s; } .how-art.live .ha-net g:nth-of-type(2) circle:nth-child(3) { animation-delay: 1s; } .how-art.live .ha-net g:nth-of-type(2) circle:nth-child(4) { animation-delay: 1.5s; } .how-art.live .ha-net g:nth-of-type(2) circle:nth-child(5) { animation-delay: 2s; }
.ha-meas path:nth-of-type(2) { stroke-dasharray: 320; --len: 320; } .how-art.live .ha-meas path:nth-of-type(2) { animation: hv-draw 5s ease-in-out infinite; } .how-art.live .ha-meas path:nth-of-type(1) { animation: hv-pop 5s ease infinite both; } .how-art.live .ha-meas .chip { animation: hv-pop 5s ease infinite both; }
.ha-ba i { transform-origin: bottom; } .how-art.live .ha-ba i { animation: hv-grow-y 5s cubic-bezier(.22,1,.36,1) infinite; } .how-art.live .ha-ba > div:nth-of-type(2) i { animation-delay: .35s; } .how-art.live .ha-ba em { animation: hv-pop 5s ease .5s infinite both; }
.how-art.live .ha-acc li { animation: hv-in 5.6s ease infinite both; } .how-art.live .ha-acc li:nth-child(2) { animation-delay: .5s; } .how-art.live .ha-acc li:nth-child(3) { animation-delay: 1s; }
.how-art.live .ha-qual svg { animation: hv-float 3s ease-in-out infinite; } .how-art.live .ha-qual b { animation: hv-glow 2.6s ease-in-out infinite; border-radius: 8px; }
.how-art.live .ha-chat p { animation: hv-in 6s ease infinite both; } .how-art.live .ha-chat b { animation: hv-in 6s ease .9s infinite both; }
.how-art.live .ha-pro .stars { animation: hv-twinkle 2.6s ease-in-out infinite; }
.how-art.live .ha-cita svg { animation: hv-float 1.8s ease-in-out infinite; } .how-art.live .ha-cita span { animation: hv-glow 2.4s ease-in-out infinite; }
.how-art.live .ha-prod .tile { background: linear-gradient(110deg, #DCE9FF 30%, #F4F8FF 50%, #DCE9FF 70%) 0 0 / 200% 100%; animation: hv-shine 2.4s linear infinite; } .how-art.live .ha-prod em { display: inline-block; animation: hv-pop 5s ease infinite both; }

@media (prefers-reduced-motion: reduce) { .how-art.live *, .app-view:not([hidden]) *, .how-art.live { animation: none !important; } }
@media (min-width: 700px) { .ag h1 .h1l { white-space: nowrap; } }
.ag h1 .rot { display: inline-flex; margin: 0 0 0 .12em; }

/* transparencia: el flujo en cuatro pasos y la garantía */
.ag-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.ag-flow li:not(.arr) { display: grid; align-content: start; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-weight: 650; font-size: 1.02rem; line-height: 1.3; color: var(--navy); box-shadow: 0 26px 50px -38px rgba(11,23,54,.45); }
.ag-flow li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #3B82F6, #2563EB); color: #fff; font-size: 14px; }
.ag-flow .arr { align-self: center; width: 26px; height: 2px; background: #9DB6E4; position: relative; }
.ag-flow .arr::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid #9DB6E4; border-right: 0; }
.ag-gcard { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 36px); border: 1px solid #C8DAFB; border-radius: 26px; background: linear-gradient(180deg, #F3F7FF, #fff); box-shadow: 0 40px 70px -48px rgba(37,99,235,.55); }
.ag-gcard .gbig { margin: 0; font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #2563EB; }
.ag-gcard h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 1.4vw + .7rem, 1.6rem); line-height: 1.25; letter-spacing: -.02em; color: var(--navy); }
.ag-gcard p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .ag-flow { grid-template-columns: 1fr 1fr; } .ag-flow .arr { display: none; } .ag-gcard { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .ag-flow { grid-template-columns: 1fr; } }
.ag h2.guarantee { text-align: center; justify-content: center; align-items: center; }
.ag h2.guarantee > span { text-align: center; }
.start-note:empty { display: none; }
.av.logo { display: block; flex: none; }
