* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --ink: #0b1727;
    --muted: #5b6478;
    --line: #e4e9f0;
    --brand: #059669;
    --brand-dark: #047857;
    --accent: #0ea5e9;
    --accent-2: #f59e0b;
    --bg: #f8fafc;
    --grad: linear-gradient(135deg,#059669 0%,#0ea5e9 100%);
}
body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .15s; border: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(5,150,105,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(5,150,105,.45); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); text-decoration: none; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { transform: translateY(-1px); text-decoration: none; }

/* Nav */
nav { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; box-shadow: 0 4px 10px rgba(5,150,105,.4); }
.brand-name { letter-spacing: -.02em; color: var(--ink); }
.brand-name span { color: var(--brand); }
.brand-img { height: 70px; width: auto; display: block; }
footer .brand-img { height: 56px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 14px; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(5,150,105,.18), transparent 65%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -150px; left: -100px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(14,165,233,.15), transparent 65%); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ecfdf5; color: var(--brand-dark); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; margin: 16px 0 18px; }
h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 18px; }
.hero-badges span { font-size: 13px; font-weight: 700; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
.hero-badges span::before { content: '✓'; font-weight: 900; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 24px; color: var(--brand-dark); font-weight: 900; }
.stat span { font-size: 12px; color: var(--muted); }

/* Mock board */
.hero-mock { position: relative; perspective: 1200px; }
.mock { --mock-tilt: rotateY(-8deg) rotateX(4deg); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(11,23,39,.25); transform: var(--mock-tilt); }
@media (max-width: 880px) { .mock { --mock-tilt: rotateY(0) rotateX(0); } }
.mock-head { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-head span { width: 11px; height: 11px; border-radius: 50%; background: #e4e9f0; }
.mock-head span:nth-child(1) { background: #fb7185; }
.mock-head span:nth-child(2) { background: #fbbf24; }
.mock-head span:nth-child(3) { background: #34d399; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.mock-col { background: #f1f5f9; border-radius: 8px; padding: 8px; }
.mock-col h4 { font-size: 9px; text-transform: uppercase; color: #475569; margin-bottom: 6px; letter-spacing: .05em; }
.mock-card { background: #fff; border-radius: 6px; padding: 8px; margin-bottom: 6px; border-left: 3px solid #94a3b8; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 11px; }
.mock-card.urgent { border-left-color: #ef4444; }
.mock-card.high { border-left-color: #f97316; }
.mock-card.medium { border-left-color: #3b82f6; }
.mock-card strong { font-size: 11px; display: block; margin-bottom: 4px; color: #0b1727; }
.mock-card .mock-chip { font-size: 8px; padding: 1px 5px; border-radius: 3px; background: #ecfdf5; color: #065f46; font-weight: 700; display: inline-block; }
.mock-card .mock-meta { display: flex; justify-content: space-between; margin-top: 4px; color: #94a3b8; font-size: 9px; }
.mock-avatar { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 800; }

/* Sections */
section { padding: 80px 0; scroll-margin-top: 100px; }
section.tinted { background: linear-gradient(180deg,#f8fafc,#fff); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Features — secciones pilar con 4 cards: 2x2 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -10px rgba(11,23,39,.12); border-color: transparent; }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: #ecfdf5; color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-icon svg { width: 24px; height: 24px; stroke: var(--brand-dark); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; margin-bottom: 8px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 14px; }

/* Workflow */
.workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; position: relative; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; background: var(--grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; box-shadow: 0 6px 14px rgba(5,150,105,.35); }
.step h3 { font-size: 16px; margin: 14px 0 6px; font-weight: 800; }
.step p { font-size: 13px; color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 20px 40px -10px rgba(5,150,105,.25); transform: scale(1.02); position: relative; }
.plan.featured::before { content: 'Más popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.plan-name { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.plan-price { font-size: 36px; font-weight: 900; margin: 8px 0 14px; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 14px 0 24px; flex: 1; }
.plan li { padding: 7px 0; font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: '✓'; color: var(--brand); font-weight: 900; flex-shrink: 0; }
.plan .btn { width: 100%; justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: '−'; }
details p { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* CTA bottom */
.cta-band { background: var(--grad); color: #fff; padding: 60px 0; text-align: center; border-radius: 22px; margin: 60px auto; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.92); margin-bottom: 24px; font-size: 17px; }

/* Footer */
footer { background: #091326; color: #cbd5e1; padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 800; }
footer a { color: #cbd5e1; font-weight: 500; font-size: 14px; display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #94a3b8; }

/* Footer brand */
footer .brand { color: #fff; }
footer .brand-name { color: #fff; }
footer .brand-name span { color: #34d399; }
.foot-tagline { margin-top: 12px; font-size: 13px; color: #94a3b8; max-width: 280px; }

/* Badge nuevo */
.badge-new { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }
.badge-soon { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }

/* Qué es Tributia — pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -12px rgba(11,23,39,.16); border-color: var(--brand); text-decoration: none; }
.pillar-num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; margin-bottom: 16px; box-shadow: 0 6px 14px rgba(5,150,105,.35); }
.pillar h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.pillar p { color: var(--muted); font-size: 14.5px; flex: 1; }
.pillar-link { margin-top: 18px; font-weight: 800; font-size: 14px; color: var(--brand-dark); }
.pillar-link::after { content: ' →'; transition: margin-left .15s; }
.pillar:hover .pillar-link::after { margin-left: 4px; }

/* Auditoría DIAN */
.audit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .audit-grid { grid-template-columns: 1fr; } }
.audit-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; transition: transform .2s, box-shadow .2s; }
.audit-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -10px rgba(11,23,39,.12); }
.audit-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.audit-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.audit-card ul { list-style: none; }
.audit-card li { padding: 5px 0; font-size: 13.5px; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.audit-card li::before { content: '✓'; color: var(--brand); font-weight: 900; flex-shrink: 0; }
.audit-note { text-align: center; margin: 32px auto 0; color: var(--muted); font-size: 14px; max-width: 640px; }

/* Ahorro de tiempo — banda oscura */
#ahorro { background: #0b1727; }
#ahorro h2 { color: #fff; }
#ahorro .section-head p { color: #cbd5e1; }
#ahorro .eyebrow { background: rgba(52,211,153,.15); color: #34d399; }
.savings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .savings { grid-template-columns: 1fr; } }
.saving-card { background: #fff; border-radius: 16px; padding: 26px; }
.saving-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.saving-card h3 { font-size: 17px; font-weight: 800; }
.saving-tag { background: var(--grad); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.saving-row { display: flex; gap: 10px; padding: 10px 0; font-size: 14px; }
.saving-row.before { color: var(--muted); border-bottom: 1px dashed var(--line); }
.saving-row.before::before { content: '✗'; color: #ef4444; font-weight: 900; flex-shrink: 0; }
.saving-row.after { color: var(--ink); }
.saving-row.after::before { content: '✓'; color: var(--brand); font-weight: 900; flex-shrink: 0; }
.savings-note { text-align: center; margin: 36px auto 0; color: #94a3b8; font-size: 15px; max-width: 620px; }

/* Audiencias */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.audience-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.audience-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.audience-card p { color: var(--muted); font-size: 14px; }

/* Nota planes */
.plans-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.plan-audit { margin: 2px 0 6px; padding: 12px 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; display: flex; flex-direction: column; gap: 4px; }
.plan-audit-title { font-weight: 800; font-size: 13.5px; color: var(--brand-dark); display: flex; align-items: center; gap: 4px; }
.plan-audit-desc { font-size: 12.5px; color: var(--muted); }
.plan-audit-bottom { margin: 14px 0 0; }
.plans-disclaimer { text-align: center; margin-top: 10px; color: #94a3b8; font-size: 12px; }

/* Animación mock hero */
.hero-mock { animation: hero-mock-in .8s cubic-bezier(.2,.7,.3,1) both; }
@keyframes hero-mock-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.mock { animation: mock-float 7s ease-in-out 1.4s infinite; }
@keyframes mock-float {
    0%, 100% { transform: var(--mock-tilt) translateY(0); }
    50% { transform: var(--mock-tilt) translateY(-10px); }
}
.mock-card { animation: mock-card-in .5s ease-out both; }
@keyframes mock-card-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.mock-col:nth-child(1) .mock-card:nth-child(2) { animation-delay: .35s; }
.mock-col:nth-child(1) .mock-card:nth-child(3) { animation-delay: .5s; }
.mock-col:nth-child(2) .mock-card:nth-child(2) { animation-delay: .65s; }
.mock-col:nth-child(3) .mock-card:nth-child(2) { animation-delay: .8s; }
.mock-card.urgent {
    animation-name: mock-card-in, mock-pulse;
    animation-duration: .5s, 3.2s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
}
@keyframes mock-pulse {
    0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
    50% { box-shadow: 0 6px 16px rgba(239,68,68,.28); }
}
.mock-drag { position: absolute; left: 2.5%; top: 76%; width: calc((100% - 16px) / 3 - 16px); z-index: 2; pointer-events: none; opacity: 0; animation: mock-drag 10s ease-in-out 2.4s infinite; }
.mock-drag .mock-card { margin-bottom: 0; animation: none; box-shadow: 0 10px 24px -6px rgba(11,23,39,.28); }
@keyframes mock-drag {
    0% { left: 2.5%; top: 76%; opacity: 0; transform: scale(1); }
    6% { opacity: 1; }
    12% { left: 2.5%; top: 76%; transform: scale(1.06) rotate(-2.5deg); }
    32% { left: 35.8%; top: 58%; transform: scale(1.06) rotate(2deg); }
    38% { left: 35.8%; top: 58%; transform: scale(1) rotate(0deg); }
    58% { left: 35.8%; top: 58%; opacity: 1; transform: scale(1); }
    64% { left: 35.8%; top: 58%; transform: scale(1.06) rotate(2deg); }
    84% { left: 69.2%; top: 47%; transform: scale(1.06) rotate(-1.5deg); }
    90% { left: 69.2%; top: 47%; transform: scale(1); }
    96% { opacity: 1; }
    100% { left: 69.2%; top: 47%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-mock, .mock, .mock-card { animation: none; }
    .mock-card { opacity: 1; }
    .mock-drag { display: none; }
}
