:root {
    --ha-bg: #f4efe7;
    --ha-panel: #fffaf4;
    --ha-panel-strong: #ffffff;
    --ha-border: rgba(44, 37, 29, 0.14);
    --ha-ink: #241d16;
    --ha-muted: #6c5d4f;
    --ha-accent: #bf2a27;
    --ha-accent-dark: #8e1917;
    --ha-accent-soft: rgba(191, 42, 39, 0.12);
    --ha-steel: #5d6168;
    --ha-assistant: #efe0d0;
    --ha-user: #241d16;
    --ha-user-ink: #fffaf2;
    --ha-shadow: 0 20px 60px rgba(36, 29, 22, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
        url("/honorarios_asistente/static/src/public/img/BrutalismoImagen.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #efe7dd;
    color: var(--ha-ink);
    font-family: Arial, sans-serif;
}

/* Keep the conversational experience aligned with the public calculators. */
.ha-page,
.ha-page * {
    font-family: Arial, sans-serif;
}

.ha-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.ha-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0 2px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.ha-breadcrumb a {
    color: var(--ha-accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ha-breadcrumb a:hover {
    color: var(--ha-accent);
    opacity: 0.9;
}

.ha-breadcrumb span {
    color: var(--ha-muted);
    opacity: 0.7;
}

.ha-breadcrumb strong {
    color: var(--ha-ink);
    font-weight: 700;
}

.ha-hero {
    margin-bottom: 28px;
    display: grid;
    gap: 20px;
}

.ha-brand-bar {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    border: 1px solid rgba(191, 42, 39, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.92)),
        linear-gradient(120deg, rgba(191, 42, 39, 0.12), transparent 45%);
    box-shadow: var(--ha-shadow);
}

.ha-brand-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(36, 29, 22, 0.08));
}

.ha-brand-copy {
    max-width: 820px;
}

.ha-eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--ha-accent);
}

.ha-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.ha-title-directive {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(191, 42, 39, 0.24);
    background: rgba(191, 42, 39, 0.08);
    color: var(--ha-accent-dark);
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    font-weight: 700;
}

.ha-copy {
    margin-bottom: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ha-muted);
}

.ha-calculator-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ha-calculator-card {
    position: relative;
    min-height: 220px;
    padding: 20px;
    display: grid;
    grid-template-rows: 116px auto;
    gap: 18px;
    border-radius: 24px;
    border: 1px solid var(--ha-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 235, 0.96));
    box-shadow: var(--ha-shadow);
    overflow: hidden;
    opacity: 0.72;
    transform: translateY(0) scale(0.985);
}

.ha-flow-card {
    cursor: pointer;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        opacity 0.28s ease,
        background 0.28s ease;
}

.ha-flow-card:hover {
    transform: translateY(-8px) scale(1);
    border-color: rgba(191, 42, 39, 0.28);
    box-shadow: 0 30px 70px rgba(36, 29, 22, 0.14);
    opacity: 0.92;
}

.ha-calculator-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -44px auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(191, 42, 39, 0.14), rgba(191, 42, 39, 0));
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.ha-calculator-card-active {
    opacity: 1;
    border-color: rgba(191, 42, 39, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 242, 0.98));
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 34px 78px rgba(191, 42, 39, 0.16);
}

.ha-calculator-card-active::after,
.ha-flow-card:hover::after {
    opacity: 1;
    transform: scale(1.12);
}

.ha-calculator-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ha-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(191, 42, 39, 0.26);
    animation: ha-badge-pop 0.3s ease;
}

.ha-calculator-media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(93, 97, 104, 0.08), rgba(191, 42, 39, 0.04));
    transition: transform 0.28s ease, background 0.28s ease;
}

.ha-calculator-media img {
    width: 100%;
    max-width: 260px;
    max-height: 92px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.ha-calculator-text {
    position: relative;
    z-index: 1;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.ha-calculator-text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    transition: color 0.28s ease;
}

.ha-calculator-text p {
    margin: 0;
    color: var(--ha-muted);
    line-height: 1.45;
    transition: color 0.28s ease;
}

.ha-flow-card:hover .ha-calculator-media,
.ha-calculator-card-active .ha-calculator-media {
    transform: translateY(-3px);
    background:
        linear-gradient(180deg, rgba(93, 97, 104, 0.1), rgba(191, 42, 39, 0.08));
}

.ha-flow-card:hover .ha-calculator-media img,
.ha-calculator-card-active .ha-calculator-media img {
    transform: scale(1.03);
    filter: saturate(1.02) contrast(1.01);
    opacity: 1;
}

.ha-flow-card:hover .ha-calculator-text,
.ha-calculator-card-active .ha-calculator-text {
    transform: translateY(-2px);
    opacity: 1;
}

.ha-flow-card:hover .ha-calculator-text strong,
.ha-calculator-card-active .ha-calculator-text strong {
    color: var(--ha-accent-dark);
}

.ha-flow-card:hover .ha-calculator-text p,
.ha-calculator-card-active .ha-calculator-text p {
    color: #4f4236;
}

@keyframes ha-badge-pop {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ha-layout {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.ha-footer-signature {
    margin-top: 34px;
    padding: 8px 6px 0;
}

.ha-footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(36, 29, 22, 0.22), rgba(255, 255, 255, 0));
    margin-bottom: 18px;
}

.ha-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    padding: 10px 18px;
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(36, 29, 22, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.ha-footer-content p {
    position: relative;
    margin: 0;
    padding: 0 18px;
    color: rgba(36, 29, 22, 0.82);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ha-footer-content p + p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: rgba(36, 29, 22, 0.18);
    transform: translateY(-50%);
}

.ha-footer-content a {
    color: var(--ha-accent-dark);
    text-decoration: none;
    font-weight: 700;
}

.ha-footer-content a:hover {
    text-decoration: underline;
}

.ha-chat-panel,
.ha-card {
    background: linear-gradient(180deg, var(--ha-panel-strong), var(--ha-panel));
    border: 1px solid var(--ha-border);
    border-radius: 24px;
    box-shadow: var(--ha-shadow);
}

.ha-chat-panel {
    min-height: clamp(620px, calc(100vh - 180px), 780px);
    align-self: stretch;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.ha-chat-header,
.ha-card {
    padding: 20px;
}

.ha-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    border-bottom: 1px solid var(--ha-border);
}

.ha-chat-header p,
.ha-card h2 {
    margin: 0;
}

.ha-chat-header p {
    color: var(--ha-muted);
}

.ha-location-reminder {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin: 12px 20px 0;
    padding: 14px 16px;
    border: 1px solid #efd9bf;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff4e6, #fffaf4);
}

.ha-location-reminder-icon {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50% 50% 50% 0;
    background: var(--ha-accent);
    transform: rotate(-45deg);
}

.ha-location-reminder-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.ha-location-reminder-content {
    min-width: 0;
    flex: 1 1 auto;
}

.ha-location-reminder strong {
    color: var(--ha-ink);
}

.ha-location-reminder p {
    margin: 4px 0 0;
    color: var(--ha-muted);
    font-size: 13px;
    line-height: 1.4;
}

.ha-location-reminder.is-complete {
    border-color: #b9d9c1;
    background: linear-gradient(90deg, #eff9f1, #fbfefb);
}

.ha-location-reminder.is-complete strong {
    color: #17613a;
}

.ha-location-reminder.is-complete .ha-location-reminder-icon {
    background: #17613a;
}

.ha-location-button {
    flex: 0 0 auto;
    padding: 10px 16px;
    box-shadow: 0 5px 12px rgba(178, 30, 37, 0.2);
    white-space: nowrap;
}

.ha-location-reminder.is-complete .ha-location-button {
    background: #17613a;
    box-shadow: 0 5px 12px rgba(23, 97, 58, 0.18);
}

.ha-location-reminder .ha-secondary-button {
    flex: 0 0 auto;
    padding: 9px 14px;
}

.ha-messages {
    min-height: 0;
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ha-message {
    max-width: 85%;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ha-message.assistant {
    align-self: flex-start;
    background: var(--ha-assistant);
}

.ha-message.user {
    align-self: flex-end;
    background: var(--ha-user);
    color: var(--ha-user-ink);
}

.ha-form {
    border-top: 1px solid var(--ha-border);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.ha-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    border: 1px solid var(--ha-border);
    border-radius: 16px;
    padding: 16px;
    font: inherit;
    color: var(--ha-ink);
    background: rgba(255, 255, 255, 0.92);
}

.ha-form-actions {
    display: flex;
    justify-content: flex-end;
}

.ha-primary-button,
.ha-secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
}

.ha-primary-button {
    background: var(--ha-accent);
    color: #fff;
}

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

.ha-pdf-card .ha-field {
    margin-top: 16px;
}

.ha-pdf-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ha-pdf-actions .ha-secondary-button {
    display: block;
    text-align: center;
    text-decoration: none;
}

.ha-pdf-status:empty {
    display: none;
}

.ha-pdf-status:not(:empty) {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #b9d9c1;
    border-radius: 12px;
    background: #eff9f1;
    color: #17613a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ha-pdf-status.is-error {
    border-color: #efb9b9;
    background: #fff0f0;
    color: #8d171d;
}

.ha-deliverable-documents-card[hidden] {
    display: none;
}

.ha-deliverable-documents {
    display: grid;
    gap: 12px;
}

.ha-deliverable-document {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--ha-border);
    border-left: 4px solid var(--ha-accent);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.ha-deliverable-document strong {
    color: var(--ha-ink);
    font-size: 14px;
}

.ha-deliverable-document span {
    overflow: hidden;
    color: var(--ha-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-deliverable-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.ha-deliverable-document-actions a {
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.ha-secondary-button {
    background: transparent;
    color: var(--ha-ink);
    border: 1px solid var(--ha-border);
}

.ha-flow-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 14px;
    background: #fffaf4;
    color: var(--ha-accent-dark);
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 20px 38px rgba(36, 29, 22, 0.24);
    border: 1px solid var(--ha-accent);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ha-flow-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#ha-current-model-copy {
    color: var(--ha-accent-dark);
}

.ha-confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    margin: 10vh auto 0;
    padding: 20px 20px 18px;
    border-radius: 18px;
    border: 1px solid var(--ha-accent);
    background: #fffaf4;
    box-shadow: 0 26px 48px rgba(36, 29, 22, 0.22);
}

.ha-confirm-dialog h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--ha-accent-dark);
}

.ha-confirm-dialog p {
    margin: 0;
    color: #4f4236;
    line-height: 1.5;
}

.ha-confirm-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ha-side-panel {
    display: grid;
    gap: 20px;
    align-content: start;
}

.ha-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 16px;
}

.ha-card-copy {
    margin: 6px 0 0;
    color: var(--ha-muted);
    line-height: 1.45;
}

.ha-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.ha-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ha-muted);
}

.ha-result-empty {
    color: var(--ha-muted);
}

.ha-detail-list {
    display: grid;
    gap: 14px;
}

.ha-detail-row {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(44, 37, 29, 0.1);
}

.ha-detail-row span {
    color: var(--ha-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ha-detail-row strong {
    font-size: 16px;
    font-weight: 600;
}

.ha-mini-map,
.ha-map-preview-large {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(93, 97, 104, 0.12), rgba(191, 42, 39, 0.08)),
        linear-gradient(180deg, #f4eee8, #efe4d8);
}

.ha-mini-map {
    min-height: 168px;
    margin-bottom: 14px;
}

.ha-map-preview-large {
    min-height: 320px;
}

.ha-mini-map .gm-style,
.ha-map-preview-large .gm-style {
    border-radius: 20px;
}

.ha-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.65;
}

.ha-map-pin,
.ha-map-pin-large {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    background: var(--ha-accent);
    transform: rotate(-45deg);
    box-shadow: 0 12px 28px rgba(191, 42, 39, 0.24);
}

.ha-map-pin {
    left: 50%;
    top: 42%;
    margin-left: -9px;
}

.ha-map-pin-large {
    left: 54%;
    top: 38%;
    width: 22px;
    height: 22px;
}

.ha-map-pin::after,
.ha-map-pin-large::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}

.ha-map-label,
.ha-map-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.9);
    backdrop-filter: blur(10px);
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

.ha-address-summary {
    display: grid;
    gap: 8px;
}

.ha-address-summary p {
    margin: 0;
    color: var(--ha-muted);
}

.ha-address-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(191, 42, 39, 0.1);
    color: var(--ha-accent-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ha-tech-card summary {
    cursor: pointer;
    font-weight: 700;
}

.ha-tech-stack {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.ha-tech-stack h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.ha-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.ha-modal.is-open {
    display: block;
}

.ha-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 29, 22, 0.42);
    backdrop-filter: blur(6px);
}

.ha-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 241, 0.98));
    box-shadow: 0 30px 80px rgba(36, 29, 22, 0.22);
}

.ha-modal-dialog-map {
    width: min(1100px, calc(100vw - 32px));
}

.ha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

.ha-modal-header h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
}

.ha-modal-close {
    border: 0;
    background: transparent;
    color: var(--ha-muted);
    font: inherit;
    cursor: pointer;
}

.ha-modal-form {
    display: grid;
    gap: 18px;
}

.ha-field {
    display: grid;
    gap: 8px;
}

.ha-field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--ha-ink);
}

.ha-required {
    color: var(--ha-accent);
    font-style: normal;
    font-weight: 900;
}

.ha-field input {
    width: 100%;
    border: 1px solid rgba(44, 37, 29, 0.14);
    border-radius: 16px;
    padding: 15px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ha-ink);
}

.ha-field input:invalid {
    border-color: var(--ha-accent);
    box-shadow: 0 0 0 3px rgba(193, 37, 42, 0.12);
}

.ha-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.ha-result-total {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 12px;
}

.ha-result-list {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 980px) {
    .ha-brand-bar,
    .ha-calculator-strip,
    .ha-layout {
        grid-template-columns: 1fr;
    }

    .ha-chat-panel {
        min-height: clamp(560px, calc(100vh - 120px), 700px);
    }
}

@media (max-width: 640px) {
    .ha-page {
        padding: 28px 14px 42px;
    }

    .ha-brand-bar,
    .ha-chat-header,
    .ha-card,
    .ha-form,
    .ha-messages {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ha-location-reminder {
        padding-left: 16px;
        padding-right: 16px;
        flex-direction: column;
        align-items: stretch;
        margin-left: 16px;
        margin-right: 16px;
        gap: 10px;
    }

    .ha-location-reminder-icon {
        display: none;
    }

    .ha-brand-logo {
        max-width: 220px;
    }

    .ha-calculator-card {
        min-height: 0;
    }

    .ha-hero h1 {
        line-height: 1;
    }

    .ha-card-head,
    .ha-modal-header,
    .ha-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ha-footer-content {
        border-radius: 18px;
        justify-content: flex-start;
        padding: 10px 14px;
        gap: 0;
    }

    .ha-footer-content p {
        width: 100%;
        padding: 7px 0;
        white-space: normal;
    }

    .ha-footer-content p + p::before {
        left: 0;
        top: 0;
        width: 100%;
        height: 1px;
        transform: none;
    }

    .ha-modal-dialog {
        padding: 20px 16px;
        margin: 16px auto;
    }

.ha-modal-header h2 {
        font-size: 28px;
    }
}

.ha-page .honorarios-interest-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 18px 22px;
    border: 1px solid var(--ha-border);
    border-radius: 20px;
    background: linear-gradient(90deg, var(--ha-panel-strong), var(--ha-panel));
    box-shadow: var(--ha-shadow);
}

.ha-page .honorarios-interest-links-head > span {
    color: var(--ha-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ha-page .honorarios-interest-links-head p {
    margin: 5px 0 0;
    color: var(--ha-muted);
    font-size: 13px;
}

.ha-page .honorarios-interest-links-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.ha-page .honorarios-interest-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--ha-border);
    border-radius: 999px;
    color: var(--ha-accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.ha-page .honorarios-interest-links-list a:hover,
.ha-page .honorarios-interest-links-list a:focus-visible {
    border-color: var(--ha-accent);
    background: var(--ha-accent);
    color: #fff;
}

@media (max-width: 640px) {
    .ha-page .honorarios-interest-links {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .ha-page .honorarios-interest-links-list {
        justify-content: flex-start;
    }
}
