/* Landing de agencias de KREED (kreed.com.co/agencias). Página estática: sin dependencias. */
:root {
  --ink: #0b1832;
  --muted: #5f6f89;
  --blue: #155dfc;
  --blue-2: #3f7dff;
  --cyan: #2fc7e7;
  --green: #25b884;
  --navy: #071632;
  --navy-2: #0c2148;
  --line: #e2eaf4;
  --pale: #f4f7fc;
  --brand: #155dfc;
  --radius: 22px;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 3px; border-radius: 8px; }
.ag-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.ag-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.ag-skip:focus { left: 12px; }
.ag-center { text-align: center; }

/* Botones */
.ag-btn { position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; will-change: transform; }
.ag-btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.ag-btn-xl { min-height: 58px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.ag-btn-block { width: 100%; }
.ag-btn-primary { background: linear-gradient(135deg, #2a70ff, #1249c8); color: #fff; box-shadow: 0 14px 34px #155dfc55, inset 0 1px 0 #ffffff40; overflow: hidden; }
.ag-btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff55 50%, transparent 65%); transform: translateX(-120%); animation: ag-sheen 3.6s ease-in-out infinite; }
.ag-btn-primary:hover { box-shadow: 0 18px 42px #155dfc75, inset 0 1px 0 #ffffff40; }
.ag-btn-ghost { border: 1px solid #ffffff38; background: #ffffff12; color: #fff; backdrop-filter: blur(8px); }
.ag-btn-ghost:hover { background: #ffffff22; }
.ag-btn-outline { border: 1.5px solid #cdd9ec; background: #fff; color: var(--ink); }
.ag-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.ag-btn-light { background: #fff; color: var(--navy); box-shadow: 0 14px 34px #0000002e; }
.ag-btn:hover { transform: translateY(-2px); }
.ag-arrow { display: inline-block; transition: transform .2s ease; }
.ag-btn:hover .ag-arrow { transform: translateX(4px); }
.ag-play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

/* Encabezado */
.ag-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.ag-header.is-scrolled { background: #071632e8; box-shadow: 0 1px 0 #ffffff14, 0 12px 30px #04102780; backdrop-filter: blur(16px); }
.ag-header-inner { display: flex; min-height: 72px; align-items: center; gap: 30px; }
.ag-logo img { width: 132px; height: auto; }
.ag-nav { display: flex; gap: 26px; margin-left: 14px; }
.ag-nav a, .ag-link { color: #c7d5ee; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.ag-nav a:hover, .ag-link:hover { color: #fff; }
.ag-header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ag-menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #ffffff30; border-radius: 12px; background: #ffffff10; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ag-menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: #fff; }

/* Hero */
.ag-hero { position: relative; padding: 138px 0 0; background: radial-gradient(1200px 600px at 78% -10%, #1a3f96 0%, transparent 60%), linear-gradient(180deg, #061229 0%, #071632 55%, #0a1d40 100%); color: #fff; overflow: hidden; }
.ag-hero-glow { position: absolute; inset: -30% -10% auto auto; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, #2fc7e755 0%, #155dfc30 40%, transparent 70%); filter: blur(30px); animation: ag-drift 14s ease-in-out infinite alternate; pointer-events: none; }
.ag-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); pointer-events: none; }
.ag-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.ag-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px; border: 1px solid #ffffff2b; border-radius: 999px; background: #ffffff10; color: #d6e3ff; font-size: 13px; font-weight: 650; }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee6a4; box-shadow: 0 0 0 0 #3ee6a480; animation: ag-ping 2s ease-out infinite; }
.ag-hero h1 { font-size: clamp(38px, 5.1vw, 66px); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; text-wrap: balance; }
.ag-shine { background: linear-gradient(100deg, #7fb0ff 0%, #2fc7e7 35%, #ffffff 50%, #2fc7e7 65%, #7fb0ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ag-shine 5s linear infinite; }
.ag-lead { max-width: 560px; margin-top: 22px; color: #c3d1ea; font-size: 18px; line-height: 1.65; }
.ag-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ag-hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #b6c6e3; font-size: 14px; font-weight: 550; }
.ag-hero-proof li { display: flex; align-items: center; gap: 8px; }
.ag-hero-proof li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #25b88430 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%233ee6a4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ag-rise { opacity: 0; transform: translateY(22px); animation: ag-rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }

/* Maqueta que cambia de marca */
.ag-stage { position: relative; perspective: 1400px; }
.ag-mock { border: 1px solid #ffffff26; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px #020a1fb3, 0 0 0 8px #ffffff0d; overflow: hidden; transform: rotateY(-9deg) rotateX(4deg); transform-origin: left center; animation: ag-float 7s ease-in-out infinite; }
.ag-mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f7f9fd; }
.ag-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5deec; }
.ag-mock-url { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.ag-mock-url b { font-weight: 650; color: var(--brand); transition: color .6s ease; }
.ag-mock-body { display: grid; grid-template-columns: 152px 1fr; min-height: 318px; }
.ag-mock-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfcfe; }
.ag-mock-side > span { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ag-mock-side > span.is-on { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); transition: background .6s ease, color .6s ease; }
.ag-mock-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 4px; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.ag-mock-brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s ease, transform .3s ease; }
.ag-mock-logo { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; transition: background .6s ease, transform .5s cubic-bezier(.3,1.6,.5,1); }
.ag-mock.is-swapping .ag-mock-logo { transform: scale(.6) rotate(-20deg); }
.ag-mock.is-swapping .ag-mock-brand b { opacity: 0; transform: translateY(6px); }
.ag-mock-main { padding: 14px; }
.ag-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-mock-kpis div { padding: 10px; border-radius: 12px; background: var(--pale); }
.ag-mock-kpis small { display: block; color: var(--muted); font-size: 9.5px; font-weight: 600; }
.ag-mock-kpis b { font-size: 18px; letter-spacing: -.03em; }
.ag-mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ag-mock-cols div { display: flex; flex-direction: column; gap: 7px; padding: 9px; border-radius: 12px; background: #f7f9fd; }
.ag-mock-cols em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.ag-mock-cols span { height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px #0b183214; }
.ag-mock-cols span.is-accent { border-left: 3px solid var(--brand); transition: border-color .6s ease; }
.ag-toast { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 15px 11px 11px; border: 1px solid #ffffff; border-radius: 15px; background: #ffffffee; color: var(--ink); box-shadow: 0 18px 40px #020a1f66; backdrop-filter: blur(10px); font-size: 12.5px; line-height: 1.3; animation: ag-bob 5.5s ease-in-out infinite; }
.ag-toast b { display: block; font-weight: 750; }
.ag-toast small { color: var(--muted); font-size: 11px; }
.ag-toast-ico { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 10px; background: #e7efff; color: var(--blue); font-weight: 800; }
.ag-toast-ico.is-green { background: #dff7ee; color: #129b6b; }
.ag-toast-ico.is-wa { background: #dcf8e6; color: #1faa53; }
.ag-toast-a { top: -22px; right: -14px; animation-delay: -.6s; }
.ag-toast-b { bottom: 62px; left: -34px; animation-delay: -2.2s; }
.ag-toast-c { bottom: -20px; right: 8px; animation-delay: -3.8s; }

/* Cifras */
.ag-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 84px; border-top: 1px solid #ffffff1c; }
.ag-stats > div { padding: 30px 24px 38px; border-left: 1px solid #ffffff1c; }
.ag-stats > div:first-child { border-left: 0; padding-left: 0; }
.ag-stats dt { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ag-stats dd { margin-top: 8px; color: #a9bbdb; font-size: 14px; line-height: 1.5; }

/* Franja */
.ag-marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ag-marquee-track { display: flex; width: max-content; gap: 46px; padding: 20px 0; animation: ag-marquee 38s linear infinite; }
.ag-marquee span { display: inline-flex; align-items: center; gap: 46px; color: #8292ab; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.ag-marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Secciones */
.ag-section { padding: 104px 0; }
.ag-soft { background: var(--pale); }
.ag-over { margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ag-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.ag-section h2 { font-size: clamp(30px, 3.9vw, 48px); font-weight: 790; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.ag-section h2 span { color: var(--blue); }
.ag-heading > p:last-child, .ag-video-copy > p:not(.ag-over) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.ag-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
.ag-reveal.is-in { opacity: 1; transform: none; }

/* Video */
.ag-video-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.ag-video-copy .ag-btn { margin-top: 28px; }
.ag-video-frame { position: relative; padding: 3px; border-radius: 26px; background: conic-gradient(from var(--a, 0deg), #155dfc, #2fc7e7, #25b884, #155dfc); box-shadow: 0 34px 80px #0b183238; overflow: hidden; }
.ag-video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: 23px; object-fit: cover; background: var(--navy); }
.ag-video-play { position: absolute; inset: 3px; border-radius: 23px; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, transparent 40%, #07163280); color: #fff; }
.ag-video-play .ag-play { display: block; width: 84px; height: 84px; border: 0; border-radius: 50%; background: #155dfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center/38px no-repeat; box-shadow: 0 0 0 0 #155dfc80; animation: ag-pulse 2.2s ease-out infinite; }
.ag-video-play[hidden] { display: none; }

/* Marca blanca */
.ag-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ag-card { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px #0b18320a; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.ag-card:hover { transform: translateY(-6px); border-color: #c5d6f5; box-shadow: 0 24px 50px #155dfc1f; }
.ag-spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), #155dfc1c, transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ag-spot:hover::before { opacity: 1; }
.ag-card h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -.025em; }
.ag-card p { color: var(--muted); font-size: 15px; }
.ag-ico { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #eaf1ff, #dff6fb); color: var(--blue); font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.ag-ico-logo::after { content: ""; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--cyan)); animation: ag-spin 8s linear infinite; }
.ag-ico-colors { display: flex; gap: 3px; }
.ag-ico-colors i { width: 10px; height: 22px; border-radius: 5px; animation: ag-eq 1.8s ease-in-out infinite; }
.ag-ico-colors i:nth-child(1) { background: var(--blue); }
.ag-ico-colors i:nth-child(2) { background: var(--cyan); animation-delay: -.5s; }
.ag-ico-colors i:nth-child(3) { background: var(--green); animation-delay: -1s; }

/* Ingresos */
.ag-dark { background: radial-gradient(900px 500px at 12% 0%, #14337a 0%, transparent 60%), var(--navy); color: #fff; }
.ag-dark .ag-over { color: #6fd8ee; }
.ag-dark h2 span { color: #6fa3ff; }
.ag-dark .ag-heading > p:last-child { color: #b3c3e0; }
.ag-income-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ag-income { padding: 32px 28px; border: 1px solid #ffffff1f; border-radius: var(--radius); background: linear-gradient(180deg, #ffffff12, #ffffff06); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.ag-income:hover { transform: translateY(-6px); border-color: #6fa3ff80; background: linear-gradient(180deg, #ffffff1c, #ffffff0a); }
.ag-income-n { display: block; font-size: 15px; font-weight: 800; letter-spacing: .1em; background: linear-gradient(90deg, #6fa3ff, #2fc7e7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-income h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.ag-income p { color: #b9c8e4; font-size: 15px; }
.ag-income-eg { margin-top: 20px; padding-top: 18px; border-top: 1px dashed #ffffff2b; }
.ag-income-eg strong { color: #5fe6b1; font-weight: 750; }

/* Calculadora */
.ag-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 30px 70px #0b183214; overflow: hidden; }
.ag-calc-form { display: flex; flex-direction: column; gap: 26px; padding: 40px; }
.ag-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 6px; border: 0; border-radius: 16px; background: var(--pale); }
.ag-seg legend { float: left; width: 100%; grid-column: 1 / -1; margin-bottom: 4px; padding: 4px 8px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.ag-seg label { position: relative; }
.ag-seg input { position: absolute; opacity: 0; inset: 0; }
.ag-seg span { display: block; padding: 12px 10px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.ag-seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 4px 14px #0b18321a; }
.ag-seg input:focus-visible + span { outline: 3px solid #7fb0ff; }
.ag-range > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 15px; font-weight: 650; }
.ag-range output { color: var(--blue); font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ag-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), #dde6f3 var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
.ag-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border: 4px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 4px 12px #155dfc66; transition: transform .15s ease; }
.ag-range input::-moz-range-thumb { width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 4px 12px #155dfc66; }
.ag-range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.ag-calc-hint { color: var(--muted); font-size: 13px; }
.ag-calc-result { display: flex; flex-direction: column; padding: 40px; background: radial-gradient(500px 300px at 100% 0%, #1b4bb5 0%, transparent 65%), var(--navy); color: #fff; }
.ag-calc-label { color: #a9bbdb; font-size: 14px; font-weight: 650; }
.ag-calc-big { margin-top: 4px; font-size: clamp(46px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ag-calc-big small { color: #8fa4cb; font-size: 18px; font-weight: 650; letter-spacing: 0; }
.ag-calc-big.is-negative { color: #ffb4a8; }
.ag-bar { display: flex; height: 12px; margin: 22px 0 6px; border-radius: 12px; background: #ffffff1c; overflow: hidden; }
.ag-bar i { height: 100%; transition: width .5s cubic-bezier(.2,.7,.2,1); }
#bar-cost { width: 17%; background: #ffffff55; }
#bar-profit { width: 83%; background: linear-gradient(90deg, #25b884, #5fe6b1); }
.ag-calc-lines { margin: 14px 0 26px; }
.ag-calc-lines div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #ffffff1a; color: #c3d1ea; font-size: 14.5px; }
.ag-calc-lines dd { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-calc-lines .is-total { border-bottom: 0; color: #fff; font-weight: 700; }
.ag-calc-lines .is-total dd { color: #5fe6b1; font-size: 18px; }
.ag-calc-result .ag-btn { margin-top: auto; }
.ag-table-wrap { margin-top: 34px; overflow-x: auto; }
.ag-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.ag-table caption { margin-bottom: 12px; color: var(--muted); font-size: 14px; text-align: left; }
.ag-table th, .ag-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.ag-table thead th { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ag-table tbody th { font-weight: 700; }
.ag-table strong { color: #0e9565; }
.ag-note { margin-top: 14px; color: #7a899f; font-size: 13px; }

/* Pasos */
.ag-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: paso; }
.ag-steps li { position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px #0b18320d; }
.ag-steps b { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #2a70ff, #1249c8); color: #fff; font-size: 19px; box-shadow: 0 10px 22px #155dfc45; }
.ag-steps h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.ag-steps p { color: var(--muted); font-size: 15px; }

/* Planes */
.ag-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 24px; align-items: stretch; }
.ag-plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 12px 36px #0b18320d; transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.ag-plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px #0b18321f; }
.ag-plan.is-featured { border: 0; background: linear-gradient(180deg, #0c2148, #071632); color: #fff; box-shadow: 0 30px 70px #0716326b, 0 0 0 2px #2f7bff; }
.ag-flag { align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(90deg, #2a70ff, #2fc7e7); color: #fff; font-size: 12px; font-weight: 750; }
.ag-plan h3 { font-size: 24px; letter-spacing: -.03em; }
.ag-plan-for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.is-featured .ag-plan-for { color: #b3c3e0; }
.ag-price { margin: 22px 0; }
.ag-price b { font-size: 58px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ag-price span { color: var(--muted); font-size: 15px; font-weight: 650; }
.is-featured .ag-price span { color: #a9bbdb; }
.ag-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; font-size: 15px; }
.ag-list li { position: relative; padding-left: 30px; }
.ag-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #25b88426 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.3l2.8 2.8 5.6-6' fill='none' stroke='%2325b884' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ag-list li.is-off { color: #98a5b9; text-decoration: line-through; text-decoration-color: #c5cedb; }
.ag-list li.is-off::before { background: #eef2f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%2398a5b9' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Demo */
.ag-demo { padding: 0 0 104px; }
.ag-demo-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; padding: 38px 46px; border-radius: 30px; background: linear-gradient(120deg, #155dfc, #1249c8 55%, #0d8fb3); color: #fff; box-shadow: 0 30px 70px #155dfc47; }
.ag-demo-inner img { width: 150px; margin: -60px 0 -38px; filter: drop-shadow(0 18px 24px #04102766); animation: ag-bob 6s ease-in-out infinite; }
.ag-demo h2 { font-size: clamp(24px, 2.6vw, 32px); }
.ag-demo p { margin-top: 10px; color: #dbe7ff; font-size: 16px; }

/* Preguntas */
.ag-faq-wrap { max-width: 860px; }
.ag-faq details { border-bottom: 1px solid var(--line); }
.ag-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; list-style: none; cursor: pointer; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: "+"; display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--pale); color: var(--blue); font-size: 20px; font-weight: 500; transition: transform .3s ease, background .3s ease; }
.ag-faq details[open] summary::after { transform: rotate(45deg); background: #e4edff; }
.ag-faq details p { padding: 0 48px 26px 4px; color: var(--muted); animation: ag-rise .4s ease both; }

/* Cierre y pie */
.ag-final { position: relative; padding: 110px 0; background: linear-gradient(180deg, #071632, #0a1d40); color: #fff; text-align: center; overflow: hidden; }
.ag-final .ag-hero-glow { inset: auto auto -60% 50%; margin-left: -380px; }
.ag-final-inner { position: relative; max-width: 780px; }
.ag-final h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.ag-final p { margin-top: 18px; color: #c3d1ea; font-size: 18px; }
.ag-final .ag-hero-actions { justify-content: center; }
.ag-footer { padding: 34px 0; background: #050f24; color: #93a5c6; font-size: 14px; }
.ag-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.ag-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-right: auto; }
.ag-footer a:hover { color: #fff; }
.ag-sticky { position: fixed; z-index: 40; right: 22px; bottom: max(20px, env(safe-area-inset-bottom)); display: inline-flex; min-height: 54px; align-items: center; gap: 10px; padding: 0 24px; border-radius: 16px; background: linear-gradient(135deg, #2a70ff, #1249c8); color: #fff; font-size: 15px; font-weight: 750; box-shadow: 0 16px 38px #155dfc66; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.ag-sticky.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Animaciones */
@keyframes ag-rise { to { opacity: 1; transform: none; } }
@keyframes ag-shine { to { background-position: -220% 0; } }
@keyframes ag-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ag-ping { 70%, 100% { box-shadow: 0 0 0 9px #3ee6a400; } }
@keyframes ag-pulse { 70%, 100% { box-shadow: 0 0 0 26px #155dfc00; } }
@keyframes ag-drift { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes ag-float { 0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); } }
@keyframes ag-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ag-marquee { to { transform: translateX(-50%); } }
@keyframes ag-spin { to { transform: rotate(360deg); } }
@keyframes ag-eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* Adaptable */
@media (max-width: 1040px) {
  .ag-nav, .ag-link { display: none; }
  .ag-menu-toggle { display: flex; order: 3; margin-left: 0; }
  .ag-nav.is-open { position: absolute; top: 72px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px; border: 1px solid #ffffff22; border-radius: 18px; background: #0a1d40f7; box-shadow: 0 24px 50px #020a1fb3; }
  .ag-nav.is-open a { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
  .ag-hero-inner, .ag-video-inner, .ag-calc { grid-template-columns: 1fr; }
  .ag-stage { max-width: 620px; margin: 10px auto 0; }
  .ag-mock { transform: none; animation-name: ag-bob; }
  .ag-brand-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-income-grid, .ag-steps { grid-template-columns: 1fr; }
  .ag-stats { grid-template-columns: repeat(2, 1fr); }
  .ag-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ag-stats > div:nth-child(n+3) { border-top: 1px solid #ffffff1c; }
  .ag-demo-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 34px 26px; }
  .ag-demo-inner img { margin: -70px 0 0; }
}
@media (max-width: 680px) {
  .ag-wrap { width: calc(100% - 36px); }
  .ag-section { padding: 72px 0; }
  .ag-hero { padding-top: 112px; }
  .ag-header-actions .ag-btn { display: none; }
  .ag-header-actions { margin-left: auto; }
  .ag-btn-xl { width: 100%; }
  .ag-lead { font-size: 16.5px; }
  .ag-mock-body { grid-template-columns: 112px 1fr; min-height: 260px; }
  .ag-mock-kpis b { font-size: 14px; }
  .ag-toast { font-size: 11.5px; padding: 8px 11px 8px 8px; }
  .ag-toast-a { right: -6px; }
  .ag-toast-b { left: -8px; bottom: 44px; }
  .ag-toast-c { display: none; }
  .ag-stats { margin-top: 64px; }
  .ag-stats > div { padding: 22px 14px 26px; }
  .ag-brand-grid, .ag-plans { grid-template-columns: 1fr; }
  .ag-calc-form, .ag-calc-result { padding: 26px 22px; }
  .ag-plan { padding: 30px 24px; }
  .ag-faq summary { font-size: 16.5px; padding: 20px 2px; }
  .ag-faq details p { padding-right: 8px; }
  .ag-demo { padding-bottom: 72px; }
  .ag-sticky { left: 16px; right: 16px; justify-content: center; }
  .ag-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ag-rise, .ag-reveal { opacity: 1; transform: none; }
}

/* Registro de agencias (/agencias/registro) */
.ar-body { background: var(--pale); }
.ar-header { position: sticky; }
.ar-header .ag-header-actions { gap: 22px; }
.ar-main { padding: 56px 0 96px; }
.ar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: start; }
.ar-plans h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.ar-sub { margin: 12px 0 26px; color: var(--muted); }
.ar-plan-list { display: grid; gap: 16px; }
.ar-plan { position: relative; display: block; width: 100%; padding: 22px 24px 22px 58px; border: 2px solid transparent; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px #0b18320f; color: var(--ink); text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; animation: ag-rise .5s ease both; }
.ar-plan:hover { transform: translateY(-2px); box-shadow: 0 16px 36px #0b18321a; }
.ar-plan::before { content: ""; position: absolute; left: 22px; top: 24px; width: 22px; height: 22px; border: 2px solid #c5d0e0; border-radius: 50%; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ar-plan.is-on { border-color: var(--plan, var(--blue)); box-shadow: 0 18px 42px #155dfc24; }
.ar-plan.is-on::before { border-color: var(--plan, var(--blue)); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px var(--plan, var(--blue)); }
.ar-plan:disabled { opacity: .6; cursor: default; transform: none; }
.ar-plan-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.ar-plan-head b { margin-right: auto; font-size: 19px; letter-spacing: -.02em; }
.ar-plan-head strong { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.ar-plan-head small { color: var(--muted); font-size: 13px; }
.ar-plan-copy { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.ar-plan-trial { display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: 999px; background: #dff7ee; color: #0e8f61; font-size: 12.5px; font-weight: 750; }
.ar-plan-features { display: grid; gap: 6px; margin-top: 14px; color: #44546e; font-size: 14px; }
.ar-plan-features li { position: relative; padding-left: 20px; }
.ar-plan-features li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ar-trust { display: grid; gap: 10px; margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.ar-trust li { position: relative; padding-left: 28px; }
.ar-trust li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #25b88426 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.3l2.8 2.8 5.6-6' fill='none' stroke='%2325b884' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ar-empty { padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px #0b18320f; }
.ar-empty h2 { font-size: 21px; letter-spacing: -.025em; }
.ar-empty p { margin: 8px 0 20px; color: var(--muted); }
.ar-empty-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-card { position: sticky; top: 96px; padding: 34px; border-radius: 26px; background: #fff; box-shadow: 0 24px 60px #0b183217; }
.ar-card h2 { font-size: 26px; font-weight: 790; letter-spacing: -.035em; }
.ar-card form { display: grid; gap: 16px; }
.ar-card .ag-over { margin-bottom: -6px; }
.ar-summary { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #eef4ff, #e9f9f4); }
.ar-summary b { font-size: 15px; }
.ar-summary span { color: #0e8f61; font-size: 15px; font-weight: 750; }
.ar-summary small { color: var(--muted); font-size: 13px; }
.ar-field { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.ar-field input { width: 100%; min-height: 50px; padding: 0 15px; border: 1.5px solid #d6dfec; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.ar-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #155dfc1f; outline: 0; }
.ar-field small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ar-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ar-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.ar-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.ar-check a { color: var(--blue); font-weight: 650; text-decoration: underline; }
.ar-error { padding: 12px 14px; border-radius: 12px; background: #fff0ee; color: #b3261e; font-size: 14px; font-weight: 600; }
.ar-status { min-height: 20px; color: var(--muted); font-size: 13px; text-align: center; }
.ag-btn:disabled { cursor: progress; opacity: .8; transform: none; }
.ag-btn.is-busy::before { content: ""; width: 17px; height: 17px; border: 2.5px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: ag-spin .8s linear infinite; }
.ar-success { display: grid; gap: 16px; outline: 0; animation: ag-rise .5s ease both; }
.ar-success[hidden], .ar-card form[hidden], .ar-skeleton[hidden] { display: none; }
.ar-success-mark { width: 62px; height: 62px; border-radius: 50%; background: #25b884 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/38px no-repeat; box-shadow: 0 12px 28px #25b88455; }
.ar-success p { color: var(--muted); }
.ar-success-data { border-radius: 16px; background: var(--pale); }
.ar-success-data div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ar-success-data div:last-child { border-bottom: 0; }
.ar-success-data dt { color: var(--muted); }
.ar-success-data dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ar-skeleton { display: grid; gap: 14px; }
.ar-skeleton i { height: 50px; border-radius: 13px; background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: ag-shine 1.4s linear infinite; }
@media (max-width: 1040px) {
  .ar-grid { grid-template-columns: 1fr; gap: 32px; }
  .ar-card { position: static; }
  .ar-header .ag-link { display: inline; }
}
@media (max-width: 680px) {
  .ar-main { padding: 32px 0 64px; }
  .ar-card { padding: 24px 20px; }
  .ar-header .ar-back:first-child { display: none; }
}
