:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #667085;
    --line: #e4e7ec;
    --surface: #ffffff;
    --soft: #f6f8fb;
    --soft-green: #eefaf5;
    --accent: #12b981;
    --accent-strong: #07865d;
    --blue: #2463eb;
    --blue-soft: #eef4ff;
    --warning: #f5b544;
    --shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 0 6vw;
    border-bottom: 1px solid rgba(228, 231, 236, 0.86);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    font-weight: 800;
}

.brand img {
    width: 118px;
    height: auto;
}

.brand span {
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.nav-links a:hover,
.nav-action {
    color: var(--accent-strong);
}

.nav-action {
    padding: 10px 14px;
    border: 1px solid rgba(18, 185, 129, 0.24);
    border-radius: 7px;
    background: var(--soft-green);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
    gap: 52px;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: 70px 6vw 86px;
    background:
        radial-gradient(circle at 80% 20%, rgba(18, 185, 129, 0.16), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 62%);
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(48px, 6.7vw, 84px);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
}

.lead {
    max-width: 720px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 800;
    white-space: nowrap;
}

.button.primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(18, 185, 129, 0.22);
}

.button.primary:hover {
    background: var(--accent-strong);
}

.button.secondary {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
}

.button.secondary.light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    background: transparent;
}

.button.full {
    width: 100%;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

.upload-demo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.upload-card,
.processing-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.upload-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    min-height: 420px;
    padding: 34px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(238, 250, 245, 0.92), #ffffff),
        var(--surface);
}

.upload-dropzone {
    position: relative;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.upload-hidden-input,
.upload-dropzone input[type="file"] {
    display: none;
}

.upload-dropzone.is-dragging {
    border-color: rgba(18, 185, 129, 0.72);
    background:
        linear-gradient(180deg, rgba(220, 252, 241, 0.98), #ffffff),
        var(--surface);
    transform: translateY(-2px);
}

.upload-drop-label {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    width: 100%;
    min-height: 300px;
    padding: 26px;
    border: 2px dashed rgba(18, 185, 129, 0.36);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.upload-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
}

.upload-copy {
    max-width: 360px;
    color: var(--muted);
    line-height: 1.5;
}

.upload-file-name {
    max-width: 100%;
    padding: 8px 11px;
    overflow: hidden;
    border: 1px solid rgba(18, 185, 129, 0.24);
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--soft-green);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-error {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

body.home-importing .upload-dropzone {
    pointer-events: none;
}

body.home-importing .upload-dropzone::after {
    content: "Subiendo factura...";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 108px;
    border: 2px dashed rgba(18, 185, 129, 0.46);
    border-radius: 8px;
    color: var(--accent-strong);
    background: #ffffff;
    font-weight: 900;
}

.upload-card h2 {
    margin-bottom: 0;
}

.upload-card p {
    max-width: 360px;
    color: var(--muted);
    line-height: 1.5;
}

.processing-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--accent-strong);
    font-weight: 850;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(18, 185, 129, 0.16);
}

.field-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border-radius: 7px;
    background: var(--soft);
}

.field-row span {
    color: var(--muted);
}

.integration-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 6vw;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.integration-strip p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.integration-copy {
    display: grid;
    gap: 5px;
}

.integration-copy span {
    color: var(--muted);
    line-height: 1.45;
}

.integration-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.integration-logos span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--soft);
    font-weight: 850;
}

.split-section,
.included-section,
.pricing-section,
.faq-section {
    padding: 76px 6vw;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 30px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.workflow-grid,
.included-grid {
    display: grid;
    gap: 16px;
}

.workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.included-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.included-grid article,
.price-card,
.faq-list details,
.checkout-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.workflow-grid article,
.included-grid article {
    padding: 23px;
}

.workflow-grid span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--blue);
    font-weight: 900;
}

.workflow-grid p,
.included-grid p,
.pricing-copy p,
.price-card li,
.faq-list p,
.cta-band p {
    color: var(--muted);
    line-height: 1.55;
}

.included-section {
    background: var(--soft);
}

.pricing-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 42px;
    align-items: center;
}

.pricing-section-wide {
    grid-template-columns: 1fr;
    align-items: start;
}

.pricing-copy {
    max-width: 760px;
}

.plans-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
}

.plans-grid .price-card {
    flex: 1 1 0;
    min-width: 0;
}

.price-card {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 28px;
}

.price-card.highlighted {
    border-color: rgba(18, 185, 129, 0.36);
    box-shadow: var(--shadow);
}

.discount-label {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--soft-green);
    font-size: 13px;
    font-weight: 900;
}

.plan-name {
    margin: 0;
    color: var(--blue);
    font-weight: 900;
}

.price {
    margin-bottom: 0;
    font-size: 38px;
    font-weight: 900;
}

.price span {
    color: var(--muted);
    font-size: 18px;
}

.price-note {
    margin-top: -12px;
    color: var(--muted);
    font-size: 14px;
}

.monthly-note {
    margin-top: -10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.plan-footnote {
    margin-top: -8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.faq-section {
    background: var(--soft);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 960px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 850;
}

.faq-list p {
    margin: 12px 0 0;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 56px 6vw;
    color: #ffffff;
    background: #101828;
}

.cta-band h2 {
    margin-bottom: 8px;
}

.cta-band p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 6vw;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.site-footer a {
    color: var(--accent-strong);
}

.nav-button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.nav-button:hover {
    color: var(--accent-strong);
}

.private-login-page,
.private-area-page {
    min-height: 100vh;
    background: var(--soft);
}

.private-login-page {
    display: grid;
    place-items: center;
    padding: 32px 22px;
}

.private-login-panel {
    display: grid;
    gap: 14px;
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.private-login-brand {
    margin-bottom: 10px;
}

.private-login-panel h1,
.private-login-panel p {
    margin: 0;
}

.private-login-panel p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.private-login-panel label {
    color: var(--ink);
    font-weight: 800;
}

.private-login-panel input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}

.private-area-page {
    padding: 46px 6vw 72px;
}

.private-area-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.private-area-hero h1 {
    max-width: 720px;
    margin-bottom: 12px;
    font-size: 52px;
    line-height: 1;
}

.private-area-hero p:not(.eyebrow),
.private-panel-heading p {
    color: var(--muted);
    line-height: 1.5;
}

.private-alert,
.private-panel,
.private-summary div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.private-alert {
    padding: 18px 20px;
    color: var(--muted);
    line-height: 1.5;
}

.private-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.private-summary div,
.private-config-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.private-summary span,
.private-config-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.private-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.private-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.private-panel-heading h2,
.private-panel-heading p {
    margin: 0;
}

.private-table-wrap {
    overflow-x: auto;
}

.private-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.private-table th,
.private-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.private-table th {
    color: var(--muted);
    background: var(--soft);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.num {
    text-align: right;
    white-space: nowrap;
}

.muted {
    color: var(--muted);
}

.private-config-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.private-config-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.legal-page {
    display: grid;
    gap: 22px;
    padding: 54px 6vw 72px;
    background: var(--soft);
}

.legal-hero,
.legal-panel {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.legal-hero {
    padding: 24px 0 10px;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: 48px;
    line-height: 1.05;
}

.legal-hero p {
    max-width: 740px;
    color: var(--muted);
    font-size: 18px;
}

.legal-panel {
    display: grid;
    gap: 14px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.legal-panel h2,
.legal-panel h3,
.legal-panel p {
    margin: 0;
}

.legal-panel h2 {
    color: var(--blue);
    font-size: 30px;
}

.legal-panel h3 {
    margin-top: 10px;
    font-size: 20px;
}

.legal-panel p,
.legal-panel li {
    color: var(--muted);
    line-height: 1.7;
}

.legal-panel ul {
    margin: 0;
    padding-left: 22px;
}

.legal-panel a {
    color: var(--accent-strong);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-page {
    min-height: calc(100vh - 78px);
    padding: 72px 6vw;
    background: var(--soft);
}

.checkout-panel {
    max-width: 820px;
    padding: 34px;
}

.checkout-panel h1 {
    max-width: 760px;
    font-size: 54px;
    line-height: 1;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.checkout-summary div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfcfd;
}

.checkout-summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.checkout-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.checkout-field {
    display: grid;
    gap: 7px;
}

.checkout-field label,
.checkout-cycle legend {
    color: var(--ink);
    font-weight: 850;
}

.checkout-field input {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}

.checkout-field span {
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
}

.checkout-cycle {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.checkout-cycle label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-weight: 750;
}

@media (max-width: 980px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 22px;
    }

    .brand {
        min-width: 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero,
    .pricing-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 46px 22px 56px;
    }

    .integration-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .split-section,
    .included-section,
    .pricing-section,
    .faq-section,
    .cta-band {
        padding: 48px 22px;
    }

    .workflow-grid,
    .included-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        flex-wrap: nowrap;
        margin-right: -22px;
        margin-left: -22px;
        padding: 0 22px 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .plans-grid .price-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .private-area-page {
        padding: 36px 22px 52px;
    }

    .private-area-hero,
    .private-panel-heading {
        flex-direction: column;
    }

    .private-area-hero h1 {
        font-size: 40px;
    }

    .private-summary,
    .private-config-grid {
        grid-template-columns: 1fr;
    }

    .legal-page {
        padding: 36px 22px 52px;
    }

    .legal-hero h1 {
        font-size: 38px;
    }

    .legal-panel {
        padding: 22px;
    }

    .checkout-page {
        padding: 42px 22px;
    }

    .checkout-panel {
        padding: 24px;
    }

    .checkout-panel h1 {
        font-size: 40px;
    }

    .checkout-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .brand span {
        padding-left: 0;
        border-left: 0;
    }

    .nav-action {
        width: 100%;
        text-align: center;
    }

    .hero-actions .button,
    .cta-band .button {
        width: 100%;
    }
}
