@font-face {
    font-family: "Manrope";
    src: url("/client-assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --font-family-base: "Manrope", "Segoe UI", Arial, sans-serif;
    --color-ink: #111315;
    --color-ink-soft: #292d31;
    --color-graphite: #3c4248;
    --color-muted: #697078;
    --color-border-strong: #c9cdd2;
    --color-border: #dfe2e6;
    --color-surface-dark: #17191c;
    --color-surface-medium: #eceef0;
    --color-surface-soft: #f5f6f7;
    --color-surface: #ffffff;
    --color-focus: #40464d;
    --color-danger: #7a2f35;
    --color-danger-soft: #f7eeee;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-soft: 0 8px 24px rgb(17 19 21 / 8%);
    --shadow-hover: 0 10px 28px rgb(17 19 21 / 13%);
    --shadow-dialog: 0 24px 64px rgb(17 19 21 / 22%);
    --transition-fast: 160ms ease;
    --layout-gutter: clamp(1rem, 3vw, 3rem);
    --public-content-max: 1600px;
    --public-page-title-size: clamp(2rem, 3.5vw, 3.25rem);
    --public-section-title-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

html, body { font-family: var(--font-family-base); }
body { color: var(--color-ink); background: var(--color-surface-soft); font-weight: 400; }
h1, h2, h3 { color: var(--color-ink); font-weight: 650; }
.hero h1, .contact-band h2 { color: var(--color-surface); }
.page-heading h1, .project-review-heading h1, .downloads-heading h1, .billing-heading h1 { font-size: var(--public-page-title-size); }
.content-section h2, .downloads-section h2, .billing-section > h2 { font-size: var(--public-section-title-size); }
.hero { background: var(--color-surface-dark); }
.hero--central-mark { position: relative; isolation: isolate; overflow: hidden; }
.hero--central-mark::before {
    position: absolute;
    z-index: -1;
    inset: clamp(2rem, 6vw, 6rem) var(--layout-gutter) clamp(2rem, 6vw, 6rem) 38%;
    content: "";
    background: var(--hero-mark) right center / contain no-repeat;
    opacity: 0.28;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 35%) 35%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 35%) 35%, #000 100%);
    pointer-events: none;
}
.hero--central-mark .hero__content { position: relative; z-index: 1; }
.content-section, .page-shell { background: transparent; }
.newsletter-section { color: var(--color-ink); background: var(--color-surface-medium); }
.contact-band { background: var(--color-surface-dark); }
.site-header { border-color: var(--color-graphite); background: rgb(23 25 28 / 96%); }
.site-footer { background: var(--color-surface); }

.public-contact {
    padding: clamp(4rem, 8vw, 7rem) max(var(--layout-gutter), calc((100% - 1600px) / 2 + var(--layout-gutter)));
    color: var(--color-surface);
    background: var(--color-surface-dark);
}
.public-contact__inner { max-width: 52rem; }
.public-contact h2 { margin: 0.2em 0 0.45em; color: inherit; font-size: clamp(2rem, 4vw, 3.75rem); }
.newsletter-section h2, .public-contact h2, .contact-band h2 { font-size: var(--public-section-title-size); }
.public-contact p { max-width: 46rem; line-height: 1.7; }
.public-contact__email { display: inline-block; margin-top: 0.75rem; color: inherit; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 650; text-underline-offset: 0.3em; }

.public-footer { padding: clamp(2.5rem, 5vw, 4rem) var(--layout-gutter); text-align: center; }
.public-footer__inner { width: 100%; max-width: 72rem; margin-inline: auto; }
.public-footer__copyright { margin: 0 0 1rem; color: var(--color-ink-soft); font-weight: 600; }
.public-footer__legal { margin: 0; color: var(--color-muted); font-size: 0.875rem; line-height: 1.75; }
.public-footer__legal a { color: var(--color-ink); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

@media (max-width: 700px) {
    .hero--central-mark::before { inset: 28% -15% 8% 20%; opacity: 0.16; }
    .public-contact { padding-inline: var(--layout-gutter); }
    .public-footer { padding-inline: var(--layout-gutter); text-align: left; }
}

/* Public project review modules */
.project-review-page { max-width: 1760px; padding-inline: clamp(1rem, 2vw, 2rem); }
.project-review-heading { padding: clamp(1.5rem, 3vw, 3.25rem) 0 0.75rem; }
.project-review-heading h1 { margin: 0; font-size: var(--public-page-title-size); line-height: 1.08; letter-spacing: -0.035em; }

.project-module {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}
.project-module__header {
    display: flex;
    padding: 1.15rem 1.25rem;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    color: var(--color-surface);
    background: linear-gradient(115deg, var(--color-surface-dark), var(--color-graphite));
}
.project-module__intro { flex: 0 1 28rem; }
.project-module__title-line { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.project-module__title-line h2 { margin: 0; color: inherit; font-size: 1.2rem; letter-spacing: -0.015em; }
.project-module__intro > p { margin: 0.35rem 0 0; color: #dfe2e6; font-size: 0.82rem; line-height: 1.45; }
.project-module__accent { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #aeb5bc; box-shadow: 0 0 0 4px rgb(255 255 255 / 8%); }
.project-module--abiertos .project-module__accent { background: #8fc2ee; }
.project-module--pendientes .project-module__accent { background: #e7bd69; }
.project-module--cerrados .project-module__accent { background: #86c9a8; }

.project-module__filters { display: grid; flex: 1 1 46rem; grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) auto auto; margin: 0; padding: 0; align-items: end; gap: 0.65rem; border: 0; background: transparent; }
.project-module__filters label { gap: 0.25rem; color: #f5f6f7; font-size: 0.72rem; }
.project-module__filters input, .project-module__filters select { min-height: 38px; padding-block: 0.45rem; border-color: #858b92; font-size: 0.82rem; }
.project-module__filters .button { min-height: 38px; border-color: #c9cdd2; font-size: 0.76rem; white-space: nowrap; }
.project-module__filter-button { color: var(--color-ink); background: var(--color-surface); }
.project-module__clear { color: var(--color-surface); background: transparent; }

.project-module__table-wrap { border: 0; border-radius: 0; }
.project-table { font-size: 0.8rem; }
.project-table th { padding: 0.65rem 0.75rem; color: var(--color-muted); background: var(--color-surface-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase; white-space: nowrap; }
.project-table td { padding: 0.7rem 0.75rem; color: var(--color-ink-soft); line-height: 1.45; }
.project-table tbody tr:nth-child(even) { background: #fafafa; }
.project-table tbody tr:hover { background: var(--color-surface-medium); }
.project-table td:first-child { color: var(--color-ink); font-weight: 650; white-space: nowrap; }
.project-table__action { min-height: 34px; padding: 0.35rem 0.65rem; border-color: var(--color-border-strong); color: var(--color-ink); background: var(--color-surface); font-size: 0.72rem; white-space: nowrap; }
.project-module__empty { margin: 0; border: 0; border-radius: 0; padding: 2.5rem 1.25rem; text-align: center; }
.project-module__footer { display: flex; min-height: 58px; padding: 0.65rem 1.25rem; align-items: center; justify-content: flex-end; border-top: 1px solid var(--color-border); background: var(--color-surface-soft); }
.project-module__pagination { margin: 0; gap: 0.5rem; font-size: 0.78rem; }
.project-module__pagination a { min-height: 34px; display: inline-flex; padding: 0.4rem 0.7rem; align-items: center; border: 1px solid var(--color-border); background: var(--color-surface); }
.project-module__pagination span { color: var(--color-muted); }

@media (max-width: 1050px) {
    .project-module__header { align-items: stretch; flex-direction: column; }
    .project-module__intro { flex-basis: auto; }
    .project-module__filters { flex-basis: auto; }
}

@media (max-width: 700px) {
    .project-module__header { padding: 1rem; }
    .project-module__filters { grid-template-columns: 1fr; }
    .project-module__filters > * { width: 100%; }
    .project-module__footer { justify-content: center; }
    .project-module__pagination { justify-content: center; }
}

/* Public download catalog */
.downloads-page { width: 100%; max-width: var(--public-content-max); margin-inline: auto; padding: clamp(2rem, 5vw, 5rem) var(--layout-gutter); }
.downloads-heading h1 { margin: 0 0 clamp(2.5rem, 6vw, 5rem); font-size: var(--public-page-title-size); }
.downloads-section { margin-block: clamp(2.5rem, 6vw, 5rem); }
.downloads-section h2 { margin: 0 auto 1.5rem; max-width: 960px; font-size: var(--public-section-title-size); }
.download-list, .downloads-empty { width: min(100%, 960px); margin-inline: auto; }
.download-list { display: grid; gap: 0.85rem; }
.download-box { display: flex; width: 100%; min-height: 64px; padding: 1rem 1.15rem; align-items: center; justify-content: space-between; gap: 1.25rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius-md); color: #fff; background: rgb(45 49 53 / 78%); text-decoration: none; transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast); }
.download-box:hover { background: rgb(35 39 43 / 86%); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.download-box__name { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.download-box__action { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; gap: 0.5rem; font-weight: 700; }
.downloads-empty { padding: 1rem; border-left: 3px solid var(--color-border-strong); color: var(--color-muted); }
@media (max-width: 600px) { .download-box { align-items: stretch; flex-direction: column; gap: 0.5rem; } .download-box__action { justify-content: flex-end; } }

/* Public billing guide */
.billing-page { width: 100%; max-width: var(--public-content-max); margin-inline: auto; padding: clamp(2rem, 5vw, 5rem) var(--layout-gutter); }
.billing-heading { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.billing-heading h1 { margin: 0; font-size: var(--public-page-title-size); letter-spacing: -0.04em; }
.billing-section { margin-block: clamp(3rem, 7vw, 6rem); }
.billing-section > h2 { max-width: 64rem; margin: 0 0 1.5rem; font-size: var(--public-section-title-size); }
.billing-company-grid, .billing-examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.billing-company-card, .billing-example-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-soft); }
.billing-company-card { padding: clamp(1.25rem, 2.5vw, 2rem); }
.billing-company-card h3, .billing-example-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.45; }
.billing-details { margin: 1.5rem 0 0; }
.billing-details div { padding-block: 0.75rem; border-top: 1px solid var(--color-border); }
.billing-details dt { margin-bottom: 0.2rem; color: var(--color-muted); font-size: 0.78rem; font-weight: 650; }
.billing-details dd { margin: 0; color: var(--color-ink-soft); line-height: 1.5; overflow-wrap: anywhere; }
.billing-details .billing-rfc { color: var(--color-ink); font-weight: 650; }
.billing-third-party-note { margin: 1.25rem 0 0; padding: 1.15rem 1.25rem; border-left: 3px solid var(--color-border-strong); border-radius: var(--radius-md); color: var(--color-ink-soft); background: var(--color-surface-soft); line-height: 1.65; }
.billing-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-soft); }
.billing-regime-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.billing-regime-table caption, .billing-example-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.billing-regime-table th, .billing-regime-table td { padding: 1rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.billing-regime-table thead th { color: var(--color-surface); background: var(--color-surface-dark); font-size: 0.8rem; letter-spacing: 0.025em; }
.billing-regime-table tbody th[scope="rowgroup"] { width: 34%; color: var(--color-ink); font-size: 0.84rem; }
.billing-regime-table tbody th[scope="row"] { color: var(--color-ink-soft); font-weight: 600; }
.billing-regime-table tbody th { background: var(--color-surface); }
.billing-regime-table tbody td { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.billing-examples-grid { align-items: start; }
.billing-example-column { display: grid; min-width: 0; gap: 1rem; }
.billing-example-intro { min-height: 13rem; padding: clamp(1rem, 2vw, 1.5rem); border-top: 3px solid var(--color-ink-soft); background: var(--color-surface-soft); }
.billing-example-intro h3 { margin: 0 0 0.75rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.billing-example-intro p { margin: 0.55rem 0; color: var(--color-ink-soft); line-height: 1.65; }
.billing-example-card { padding: 1.25rem; }
.billing-example-table { width: 100%; min-width: 0; margin-top: 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.billing-example-table th, .billing-example-table td { padding: 0.45rem 0; border: 0; color: var(--color-ink-soft); font-size: 0.87rem; }
.billing-example-table th { padding-right: 1rem; color: var(--color-ink-soft); background: transparent; text-align: left; font-weight: 550; }
.billing-example-table td { text-align: right; white-space: nowrap; }
.billing-example-table .billing-example-total th, .billing-example-table .billing-example-total td { padding-top: 0.8rem; border-top: 1px solid var(--color-ink-soft); color: var(--color-ink); font-weight: 750; }
.billing-disclaimer { margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.25rem, 3vw, 2rem); border-top: 2px solid var(--color-border-strong); border-radius: var(--radius-md); color: var(--color-ink-soft); background: var(--color-surface-soft); line-height: 1.7; }
@media (max-width: 1000px) { .billing-examples-grid { grid-template-columns: 1fr; } .billing-example-intro { min-height: 0; } }
@media (max-width: 640px) { .billing-page { padding-inline: var(--layout-gutter); } .billing-company-grid { grid-template-columns: 1fr; } .billing-company-card, .billing-example-card { padding: 1rem; } .billing-regime-table th, .billing-regime-table td { padding: 0.75rem; } }
