:root {
    --hp-red: #bf2a27;
    --hp-red-dark: #8e1917;
    --hp-ink: #241d16;
    --hp-muted: #685b50;
    --hp-panel: rgba(255, 250, 244, 0.94);
    --hp-border: rgba(44, 37, 29, 0.14);
    --hp-shadow: 0 24px 56px rgba(36, 29, 22, 0.12);
    --hp-body: Arial, sans-serif;
    --hp-display: Arial, sans-serif;
}

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

body {
    margin: 0;
    background-image:
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.48), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
        url("/honorarios_asistente/static/src/public/img/BrutalismoImagen.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--hp-ink);
    font-family: Arial, sans-serif;
}

/* All public calculator views use the same readable application typeface. */
.hp-page,
.hp-page * {
    font-family: Arial, sans-serif;
}

.hp-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 26px 24px 56px;
}

.hp-header,
.hp-hero,
.hp-panel,
.hp-option-card,
.hp-flow-card {
    border: 1px solid var(--hp-border);
    background: var(--hp-panel);
    box-shadow: var(--hp-shadow);
}

.hp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 32px;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 34px rgba(36, 29, 22, 0.1);
}

.hp-header img {
    max-width: 300px;
    width: 45%;
    height: auto;
}

.hp-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hp-header a {
    color: var(--hp-ink);
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}

.hp-breadcrumb a {
    color: var(--hp-red);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hp-header a:last-child {
    padding: 13px 20px;
    border-radius: 5px;
    background: var(--hp-red);
    color: #fff;
}

.hp-hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 54px 56px 42px;
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(90deg, rgba(255, 250, 244, 0.94), rgba(255, 250, 244, 0.66)),
        radial-gradient(circle at 88% 38%, rgba(255, 255, 255, 0.6), transparent 22%);
    box-shadow: 0 24px 70px rgba(36, 29, 22, 0.12);
}

.hp-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    top: -42px;
    width: 360px;
    height: 260px;
    border-radius: 0 0 120px 120px;
    background: rgba(255, 255, 255, 0.34);
    transform: skewX(-12deg);
}

.hp-hero-copy {
    position: relative;
    z-index: 1;
}

.hp-hero h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.hp-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--hp-muted);
    font-size: 18px;
    line-height: 1.45;
}

.hp-eyebrow {
    margin: 0 0 8px;
    color: var(--hp-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-start-section {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.hp-access-shell {
    padding: 28px 70px 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 100%, rgba(191, 42, 39, 0.08), transparent 24%),
        rgba(255, 250, 244, 0.95);
}

.hp-access-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.hp-access-title span {
    position: relative;
    height: 1px;
    background: rgba(191, 42, 39, 0.35);
}

.hp-access-title span::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-red);
}

.hp-access-title span:last-child::after {
    right: auto;
    left: -4px;
}

.hp-access-title h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.035em;
    text-align: center;
}

.hp-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 32px;
}

.hp-panel {
    border-radius: 20px;
    padding: 22px;
}

.hp-panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.hp-muted {
    color: var(--hp-muted);
    line-height: 1.45;
}

.hp-start-form {
    display: grid;
    gap: 14px;
}

.hp-access-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 30px;
    border: 1px solid rgba(191, 42, 39, 0.28);
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.76);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-access-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(191, 42, 39, 0.08);
    pointer-events: none;
}

.hp-access-card > * {
    position: relative;
    z-index: 1;
}

.hp-access-card:hover,
.hp-access-card:focus-within {
    border-color: var(--hp-red);
    transform: translateY(-2px);
}

.hp-access-card h3 {
    margin: 0;
    color: var(--hp-red-dark);
    font-size: 28px;
}

.hp-access-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hp-card-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d21f1c, #8e1917);
    color: #fff;
    box-shadow: 0 16px 28px rgba(142, 25, 23, 0.22);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.hp-card-icon-soft {
    background: linear-gradient(145deg, #a99a87, #645b50);
    box-shadow: 0 16px 28px rgba(36, 29, 22, 0.16);
}

.hp-access-badge {
    justify-self: start;
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hp-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-access-badge-soft {
    background: transparent;
    color: var(--hp-muted);
}

.hp-start-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.hp-start-form input,
.hp-chat-form textarea {
    width: 100%;
    border: 1px solid var(--hp-border);
    border-radius: 7px;
    padding: 13px 15px;
    color: var(--hp-ink);
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.hp-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    font-weight: 400 !important;
}

.hp-check input {
    width: auto;
    margin-top: 4px;
}

.hp-error {
    color: var(--hp-red-dark);
    font-weight: 700;
}

.hp-card-error {
    margin-top: -2px;
    color: var(--hp-red-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
}

.hp-card-error:empty {
    display: none;
}

.hp-pdf-send-status:not(:empty) {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(174, 28, 36, 0.32);
    border-radius: 10px;
    background: rgba(255, 239, 239, 0.94);
    box-shadow: 0 2px 7px rgba(78, 29, 29, 0.08);
    color: #8d171d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.hp-options,
.hp-flow-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hp-landing .hp-options {
    grid-template-columns: 1fr;
}

.hp-option-card,
.hp-flow-card {
    min-height: 230px;
    border-radius: 20px;
    color: var(--hp-ink);
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hp-landing .hp-option-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 120px;
    padding: 18px 70px;
    text-align: left;
}

.hp-landing .hp-option-card strong {
    color: var(--hp-ink);
}

.hp-landing .hp-option-card small {
    justify-self: end;
    border: 1px dashed rgba(104, 91, 80, 0.38);
    background: rgba(255, 250, 244, 0.76);
    color: #a88a65;
}

.hp-option-card:hover,
.hp-flow-card:hover,
.hp-flow-card.is-active {
    border-color: var(--hp-red);
    transform: translateY(-3px);
}

.hp-option-card strong,
.hp-flow-card strong {
    display: block;
    color: var(--hp-red-dark);
    font-size: 24px;
}

.hp-option-card small {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(191, 42, 39, 0.1);
    color: var(--hp-red-dark);
    font-weight: 700;
}

.hp-option-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(36, 29, 22, 0.08);
    color: #4a4a4a;
    font-size: 20px;
    font-weight: 800;
}

.hp-landing .hp-option-icon {
    margin: 0;
    color: #a88a65;
}

.hp-option-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hp-option-card.is-selected {
    border-color: var(--hp-red);
    cursor: default;
}

.hp-start-button {
    justify-self: stretch;
    margin-top: 4px;
    border-radius: 7px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
}

.hp-public-button {
    border-color: #5d554d;
    background: #5d554d;
}

.hp-privacy-link,
.hp-forgot-link {
    justify-self: start;
    color: var(--hp-red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-forgot-link {
    justify-self: center;
    font-size: 14px;
}

.hp-landing {
    position: relative;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background-image:
        url("/honorarios_asistente/static/src/public/img/CPNAA_Landing_Honorarios.jpg");
    background-position: center top;
    background-size: cover;
}

.hp-landing .hp-header {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 76px;
    padding: 8px clamp(38px, 6vw, 86px);
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(36, 29, 22, 0.08);
}

.hp-landing .hp-header img {
    display: block;
    width: clamp(245px, 22vw, 310px);
    max-width: 310px;
    max-height: 60px;
    object-fit: contain;
}

.hp-landing .hp-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
    min-width: 0;
    margin-left: clamp(36px, 5vw, 76px);
}

.hp-landing .hp-header a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.hp-landing .hp-header a:last-child {
    margin-left: auto;
    border: 1px solid rgba(191, 42, 39, 0.78);
    border-radius: 10px;
    background: transparent;
    color: var(--hp-red);
}

.hp-landing .hp-hero {
    position: relative;
    z-index: 2;
    min-height: 314px;
    margin: 0;
    padding: 32px clamp(42px, 8vw, 122px) 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hp-landing .hp-hero::after {
    display: none;
}

.hp-landing .hp-hero-copy {
    max-width: 760px;
}

.hp-landing .hp-eyebrow {
    color: #4d4741;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.22em;
}

.hp-landing .hp-hero h1 {
    max-width: 840px;
    font-size: clamp(48px, 4.55vw, 68px);
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.hp-landing .hp-hero h1 span {
    color: var(--hp-red-dark);
}

.hp-title-rule {
    display: block;
    width: 74px;
    height: 3px;
    margin: 12px 0 12px;
    background: var(--hp-red);
}

.hp-landing .hp-hero p {
    max-width: 780px;
    color: #463f38;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.hp-feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 670px;
    margin-top: 24px;
}

.hp-feature-row span {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 12px;
    color: #4b443e;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
}

.hp-feature-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(191, 42, 39, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(36, 29, 22, 0.1);
}

.hp-mini-icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.hp-landing .hp-start-section {
    position: relative;
    z-index: 3;
    max-width: 1290px;
    margin: -60px auto 0;
    padding: 0 38px;
}

.hp-landing .hp-access-shell {
    padding: 0;
    background: transparent;
}

.hp-landing .hp-access-grid {
    gap: clamp(34px, 4.6vw, 66px);
}

.hp-landing .hp-access-card {
    min-height: 300px;
    padding: 34px 40px 24px;
    border: 1px solid rgba(44, 37, 29, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.91), rgba(255, 250, 244, 0.88)),
        radial-gradient(circle at 10% 20%, rgba(191, 42, 39, 0.07), transparent 24%);
    box-shadow: 0 18px 34px rgba(36, 29, 22, 0.13);
}

.hp-landing .hp-access-card::after {
    display: none;
}

.hp-landing .hp-member-access-card {
    border: 2px solid var(--hp-red);
    background:
        linear-gradient(180deg, rgba(255, 251, 249, 0.96), rgba(253, 238, 235, 0.9)),
        radial-gradient(circle at 10% 20%, rgba(191, 42, 39, 0.12), transparent 28%);
    box-shadow: 0 18px 34px rgba(142, 25, 23, 0.18);
}

.hp-landing .hp-public-access-card {
    border: 2px solid #18716b;
    background:
        linear-gradient(180deg, rgba(247, 255, 252, 0.96), rgba(231, 247, 243, 0.9)),
        radial-gradient(circle at 10% 20%, rgba(24, 113, 107, 0.12), transparent 28%);
    box-shadow: 0 18px 34px rgba(19, 94, 89, 0.17);
}

.hp-landing .hp-member-access-card:hover,
.hp-landing .hp-member-access-card:focus-within {
    border-color: var(--hp-red-dark);
}

.hp-landing .hp-public-access-card:hover,
.hp-landing .hp-public-access-card:focus-within {
    border-color: #105750;
}

.hp-card-ribbon {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    display: inline-flex;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--hp-red);
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-member-access-card .hp-card-ribbon {
    background: var(--hp-red);
}

.hp-public-access-card .hp-card-ribbon {
    background: #18716b;
}

.hp-landing .hp-access-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.hp-landing .hp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(241, 228, 210, 0.78);
    box-shadow: none;
}

.hp-member-access-card .hp-card-icon {
    background: rgba(191, 42, 39, 0.13);
}

.hp-public-access-card .hp-card-icon {
    background: rgba(24, 113, 107, 0.13);
}

.hp-landing .hp-card-icon::before {
    content: none;
}

.hp-landing .hp-card-icon::after {
    content: none;
}

.hp-landing .hp-card-icon img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.hp-landing .hp-access-card p,
.hp-landing .hp-check,
.hp-landing .hp-privacy-link,
.hp-landing .hp-forgot-link {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hp-landing .hp-access-card p {
    max-width: 420px;
    margin: 0;
    color: #4d4741;
    font-size: 17px;
    line-height: 1.35;
}

.hp-landing .hp-access-identity {
    display: block;
    margin: 0 0 7px;
    color: var(--hp-red-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.hp-member-access-card .hp-access-identity,
.hp-member-access-card .hp-field-icon {
    color: var(--hp-red-dark);
}

.hp-public-access-card .hp-access-identity,
.hp-public-access-card .hp-field-icon {
    color: #105750;
}

.hp-landing .hp-start-form {
    gap: 10px;
}

.hp-landing .hp-start-form label:not(.hp-check) {
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 0;
}

.hp-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    border: 1px solid rgba(44, 37, 29, 0.15);
    border-right: 0;
    border-radius: 7px 0 0 7px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--hp-red);
}

.hp-field-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hp-landing .hp-start-form input {
    min-height: 40px;
    border-radius: 0 7px 7px 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.hp-landing .hp-check {
    display: inline-grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    color: #4d4741;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
}

.hp-landing .hp-check input {
    appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 0;
    background: url("/honorarios_asistente/static/src/public/img/icons/checkbox.png") center / contain no-repeat;
    cursor: pointer;
}

.hp-landing .hp-check input:checked {
    background-image: url("/honorarios_asistente/static/src/public/img/icons/check.png");
}

.hp-landing .hp-privacy-link {
    margin-left: 35px;
    color: var(--hp-red);
    font-size: 14px;
}

.hp-landing .hp-start-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-height: 44px;
    margin-top: 6px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #c4070d, #a60d14);
    box-shadow: 0 12px 24px rgba(166, 13, 20, 0.18);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hp-member-access-card .hp-start-button {
    background: linear-gradient(90deg, #c4070d, #a60d14);
    box-shadow: 0 12px 24px rgba(166, 13, 20, 0.22);
}

.hp-public-access-card .hp-start-button {
    background: linear-gradient(90deg, #18716b, #105750);
    box-shadow: 0 12px 24px rgba(16, 87, 80, 0.22);
}

.hp-landing .hp-start-button span {
    position: absolute;
    right: 22px;
    font-size: 22px;
}

.hp-landing .hp-forgot-link {
    color: var(--hp-red);
}

.hp-public-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: -8px;
    color: #5e5750;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
}

.hp-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 250, 244, 0.82);
    color: #9a8060;
    font-size: 11px;
    font-weight: 800;
}

.hp-footer-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hp-public-footer p {
    margin: 0;
}

.hp-public-footer a {
    color: var(--hp-red);
    font-weight: 700;
    text-decoration: none;
}

.hp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hp-breadcrumb a:hover {
    color: var(--hp-ink);
}

.hp-breadcrumb span {
    color: var(--hp-muted);
    font-weight: 500;
}

.hp-breadcrumb strong[aria-current="page"] {
    color: var(--hp-ink);
    font-weight: 800;
}

.hp-chat-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
    gap: 28px;
}

.hp-chat-hero img {
    width: 100%;
    max-width: 300px;
}

.hp-flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.hp-flow-card {
    min-height: 160px;
    padding: 18px;
    opacity: 0.72;
}

.hp-flow-card.is-active {
    opacity: 1;
}

.hp-flow-card img {
    display: block;
    max-width: 220px;
    width: 100%;
    height: 86px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.hp-selection {
    min-height: 100vh;
}

.hp-selection-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
    gap: 28px;
}

.hp-selection-hero img {
    width: 100%;
    max-width: 300px;
}

.hp-selection-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 22px;
    margin-top: 22px;
}

.hp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-section-head span {
    color: var(--hp-red-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-section-head strong {
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hp-module-choice {
    position: relative;
    min-height: 280px;
    padding: 24px;
    border: 1px solid rgba(191, 42, 39, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 100%, rgba(191, 42, 39, 0.08), transparent 34%),
        rgba(255, 252, 248, 0.82);
    color: var(--hp-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-module-choice:hover,
.hp-module-choice:focus,
.hp-module-choice.is-selected {
    border-color: var(--hp-red);
    box-shadow: 0 18px 34px rgba(191, 42, 39, 0.15);
    transform: translateY(-3px);
}

.hp-module-choice:disabled,
.hp-module-choice.is-disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

.hp-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 18px;
    border-radius: 24px;
    background: rgba(241, 228, 210, 0.78);
}

.hp-module-icon img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.hp-module-choice small {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(191, 42, 39, 0.1);
    color: var(--hp-red-dark);
    font-size: 12px;
    font-weight: 800;
}

.hp-module-choice strong {
    display: block;
    margin-bottom: 8px;
    color: var(--hp-red-dark);
    font-size: 26px;
}

.hp-module-choice > span:not(.hp-module-icon) {
    display: block;
    color: var(--hp-muted);
    line-height: 1.35;
}

.hp-history-panel {
    align-self: start;
}

.hp-selection-summary {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(191, 42, 39, 0.07);
}

.hp-history-list {
    display: grid;
    gap: 10px;
}

.hp-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.hp-history-item strong {
    color: var(--hp-ink);
}

.hp-history-item span {
    justify-self: end;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(191, 42, 39, 0.1);
    color: var(--hp-red-dark);
    font-size: 12px;
    font-weight: 800;
}

.hp-history-item small {
    grid-column: 1 / -1;
    color: var(--hp-muted);
}

.hp-history-status {
    justify-self: start;
    padding: 3px 8px;
    border-radius: 999px;
    color: #12613f;
    background: #e4f4eb;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.hp-history-download {
    justify-self: end;
    color: var(--hp-red);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
}

.hp-history-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.hp-history-actions .hp-history-download {
    justify-self: auto;
}

.hp-history-result {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.hp-history-result .hp-panel {
    padding: 28px;
}

.hp-history-result-breakdown {
    display: grid;
    gap: 9px;
    margin: 22px 0;
}

.hp-history-result-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hp-history-result-text {
    white-space: pre-wrap;
    color: var(--hp-ink);
    line-height: 1.6;
}

.hp-history-result .hp-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    border-color: var(--hp-red);
    background: var(--hp-red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.hp-history-result .hp-secondary-button:hover,
.hp-history-result .hp-secondary-button:focus-visible {
    background: var(--hp-red-dark);
    border-color: var(--hp-red-dark);
    color: #fff;
}

.hp-chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.hp-chat-panel {
    min-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    overflow: hidden;
}

.hp-chat-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-chat-head p {
    margin: 4px 0 0;
    color: var(--hp-red-dark);
}

.hp-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    overflow: auto;
}

.hp-message {
    max-width: 86%;
    padding: 13px 15px;
    border-radius: 16px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.hp-message.assistant {
    align-self: flex-start;
    background: #efe0d0;
}

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

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

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

.hp-primary-button {
    border: 1px solid var(--hp-red);
    background: var(--hp-red);
    color: #fff;
}

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

.hp-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

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

.hp-summary span {
    color: var(--hp-muted);
}

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

.hp-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: var(--hp-muted);
}

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

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

.hp-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

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

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

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

.hp-confirm-dialog h3 {
    margin: 0 0 10px;
    color: var(--hp-red-dark);
}

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

@media (max-width: 860px) {
    .hp-page {
        padding: 22px 14px 40px;
    }

    .hp-header,
    .hp-access-grid,
    .hp-chat-layout,
    .hp-chat-hero,
    .hp-selection-hero,
    .hp-selection-layout,
    .hp-module-grid,
    .hp-flow-strip {
        grid-template-columns: 1fr;
    }

    .hp-header {
        display: grid;
    }

    .hp-header img {
        width: 100%;
    }

    .hp-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .hp-hero h1 {
        font-size: 36px;
    }

    .hp-options {
        grid-template-columns: 1fr;
    }

    .hp-access-shell,
    .hp-landing .hp-option-card {
        padding: 22px;
    }

    .hp-access-title {
        grid-template-columns: 1fr;
    }

    .hp-access-title span {
        display: none;
    }

    .hp-landing .hp-option-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hp-landing .hp-option-card small {
        justify-self: center;
    }

    .hp-landing {
        padding: 0 0 32px;
    }

    .hp-landing .hp-header {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 18px;
    }

    .hp-landing .hp-header img {
        width: 100%;
        max-width: 260px;
    }

    .hp-landing .hp-header nav {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hp-landing .hp-header nav a:first-child,
    .hp-landing .hp-header nav a:last-child {
        justify-self: auto;
    }

    .hp-landing .hp-hero {
        min-height: auto;
        padding: 42px 22px 34px;
    }

    .hp-landing .hp-hero::after,
    .hp-landing .hp-hero::before {
        display: none;
    }

    .hp-landing .hp-hero h1 {
        font-size: clamp(42px, 15vw, 58px);
        white-space: normal;
    }

    .hp-feature-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .hp-landing .hp-start-section {
        margin-top: 22px;
        padding: 0 16px;
    }

    .hp-landing .hp-access-card {
        padding: 42px 22px 28px;
    }

    .hp-landing .hp-access-heading {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: flex-start;
        margin-top: 34px;
    }

    .hp-public-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

/* Project Management forms */
.hp-forms-page,
.hp-gp-page {
    min-height: 100vh;
}

.hp-form-selector-panel {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 28px;
}

.hp-form-calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hp-form-calculator-card {
    appearance: none;
    border: 1px solid rgba(201, 32, 43, 0.24);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(62, 43, 35, 0.12);
    color: var(--hp-ink);
    cursor: pointer;
    min-height: 230px;
    padding: 28px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-form-calculator-card:hover,
.hp-form-calculator-card.is-ready {
    border-color: var(--hp-red);
}

.hp-form-calculator-card:hover {
    box-shadow: 0 24px 60px rgba(154, 20, 26, 0.18);
    transform: translateY(-3px);
}

.hp-form-calculator-card img {
    display: block;
    height: 82px;
    margin: 0 auto 22px;
    max-width: 170px;
    object-fit: contain;
}

.hp-form-calculator-card strong {
    color: var(--hp-red-dark);
    display: block;
    font-family: var(--hp-display);
    font-size: 24px;
    line-height: 1.1;
}

.hp-form-calculator-card small {
    background: rgba(201, 32, 43, 0.1);
    border-radius: 999px;
    color: var(--hp-red-dark);
    display: inline-flex;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 12px;
    padding: 6px 12px;
    text-transform: uppercase;
}

.hp-form-calculator-card.is-disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.55;
}

.hp-forms-history {
    margin-top: 26px;
}

.hp-gp-page .hp-selection-hero {
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 12px;
    padding: 24px 34px;
    border-radius: 24px;
}

.hp-gp-page .hp-selection-hero h1 {
    max-width: 760px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.98;
}

.hp-gp-page .hp-selection-hero p {
    max-width: 820px;
    margin-top: 10px;
    font-size: 16px;
}

.hp-gp-hero img {
    max-width: 170px;
}

.hp-gp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.65fr);
    gap: 24px;
    margin: 24px auto 0;
    max-width: 1360px;
}

.hp-gp-main-column {
    display: grid;
    gap: 18px;
}

.hp-gp-form-card,
.hp-gp-result-card,
.hp-gp-proposal-card {
    padding: 28px;
}

.hp-form-section-title {
    background: var(--hp-red);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 8px 0 18px;
    padding: 10px 14px;
    text-align: center;
}

.hp-form-support-title {
    border-top: 1px solid rgba(72, 56, 47, 0.12);
    color: var(--hp-red-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 20px 0 14px;
    padding-top: 18px;
    text-transform: uppercase;
}

.hp-gp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.hp-gp-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-gp-form-card label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.hp-gp-form-card label span {
    color: var(--hp-ink);
    font-size: 13px;
}

.hp-gp-form-card input,
.hp-gp-form-card select {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(72, 56, 47, 0.2);
    border-radius: 12px;
    color: var(--hp-ink);
    min-height: 46px;
    padding: 10px 13px;
}

.hp-gp-form-card .hp-money-field {
    gap: 7px;
}

.hp-money-input {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(72, 56, 47, 0.2);
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 46px;
    overflow: hidden;
}

.hp-money-input b {
    color: var(--hp-red-dark);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 0 13px;
}

.hp-money-input input {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 44px;
    padding-left: 0;
    padding-right: 0;
}

.hp-money-input input:focus {
    outline: none;
}

.hp-gp-project-value {
    margin: 18px 0;
}

.hp-gp-calculate {
    margin-top: 20px;
    width: 100%;
}

.hp-gp-support-grid {
    align-items: end;
    margin-top: 16px;
}

.hp-gp-result {
    display: grid;
    gap: 12px;
}

.hp-gp-result p,
.hp-gp-total {
    align-items: center;
    border-bottom: 1px solid rgba(72, 56, 47, 0.12);
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 12px 0;
}

.hp-gp-total strong {
    color: var(--hp-red-dark);
    font-size: 28px;
}

.hp-gp-result strong {
    color: var(--hp-ink);
}

.hp-gp-proposal-card label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.hp-gp-proposal-card label span {
    color: var(--hp-ink);
    font-size: 13px;
}

.hp-gp-proposal-card input {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(72, 56, 47, 0.2);
    border-radius: 12px;
    color: var(--hp-ink);
    min-height: 46px;
    padding: 10px 13px;
}

.hp-gp-proposal-copy {
    color: var(--hp-muted);
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 16px;
}

.hp-gp-warnings {
    background: rgba(201, 32, 43, 0.08);
    border: 1px solid rgba(201, 32, 43, 0.18);
    border-radius: 16px;
    color: var(--hp-red-dark);
    margin-top: 10px;
    padding: 14px;
}

.hp-gp-warnings ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.hp-siha-legacy-result {
    color: #263746;
    display: grid;
    gap: 16px;
}

.hp-siha-legacy-hero {
    align-items: center;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 4px 0 10px;
    text-align: center;
}

.hp-siha-legacy-hero span {
    color: #313941;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.12;
}

.hp-siha-legacy-hero strong {
    color: #cf1235;
    font-family: Arial, sans-serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hp-siha-legacy-band {
    background: #243746;
    border-radius: 4px 4px 0 0;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 12px;
    text-align: center;
}

.hp-siha-legacy-grid {
    display: grid;
    gap: 14px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-siha-legacy-grid-two {
    margin-top: 4px;
}

.hp-siha-legacy-cell {
    border: 1px solid rgba(36, 55, 70, 0.32);
    display: grid;
    text-align: center;
}

.hp-siha-legacy-cell b {
    background: #243746;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 9px;
}

.hp-siha-legacy-cell span {
    background: rgba(235, 240, 243, 0.84);
    color: #263746;
    font-family: Arial, sans-serif;
    font-size: 17px;
    padding: 10px;
}

.hp-siha-result-table {
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    width: 100%;
}

.hp-siha-result-table th {
    background: #243746;
    color: #fff;
    font-size: 13px;
    padding: 9px 10px;
    text-align: center;
}

.hp-siha-result-table td {
    background: rgba(235, 240, 243, 0.84);
    border: 1px solid rgba(36, 55, 70, 0.24);
    color: #263746;
    padding: 9px 10px;
}

.hp-siha-result-table td:last-child {
    font-weight: 800;
    text-align: right;
}

.hp-siha-result-table .is-subtotal td {
    background: #aeb4b9;
    color: #fff;
    font-weight: 900;
}

.hp-siha-data-table td:first-child {
    font-weight: 800;
    width: 42%;
}

.hp-siha-formula-box,
.hp-siha-observation-box {
    background: rgba(235, 240, 243, 0.84);
    border: 1px solid rgba(36, 55, 70, 0.24);
    color: #263746;
    font-family: Arial, sans-serif;
    padding: 12px 14px;
}

.hp-siha-formula-box {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.hp-siha-observation-box {
    display: grid;
    gap: 6px;
    line-height: 1.45;
}

.hp-siha-observation-box strong {
    color: #243746;
}

.hp-siha-total-row {
    align-items: center;
    background: #d20f32;
    color: #fff;
    display: grid;
    font-family: Arial, sans-serif;
    font-weight: 900;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr);
    padding: 12px 14px;
    text-transform: uppercase;
}

.hp-siha-total-row strong {
    color: #fff;
    font-size: 18px;
    text-align: right;
}

.hp-siha-total-row.is-main {
    font-size: 16px;
}

.hp-gp-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hp-siha-form-card {
    overflow: hidden;
}

.hp-siha-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.hp-siha-steps button {
    appearance: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(201, 32, 43, 0.16);
    border-radius: 16px;
    color: var(--hp-muted);
    cursor: pointer;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-height: 96px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-siha-steps button b {
    align-items: center;
    background: rgba(201, 32, 43, 0.12);
    border-radius: 50%;
    color: var(--hp-red-dark);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.hp-siha-steps button span {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.hp-siha-steps button.is-active {
    border-color: rgba(201, 32, 43, 0.52);
    box-shadow: 0 12px 24px rgba(201, 32, 43, 0.1);
    color: var(--hp-ink);
    transform: translateY(-1px);
}

.hp-siha-steps button.is-active b {
    background: var(--hp-red);
    color: #fff;
}

.hp-siha-step-panel {
    display: none;
}

.hp-siha-step-panel.is-active {
    display: grid;
}

.hp-siha-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hp-siha-deliverable-group {
    display: grid;
    gap: 10px;
}

.hp-siha-optional-deliverables {
    border-top: 1px solid rgba(74, 57, 48, 0.12);
    margin-top: 18px;
    padding-top: 18px;
}

.hp-siha-deliverable-group-title {
    color: var(--hp-red-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.hp-siha-deliverable-group-title span {
    color: var(--hp-muted);
    font-size: 11px;
    letter-spacing: 0;
    margin-left: 6px;
    text-transform: none;
}

.hp-siha-primary-deliverables {
    grid-template-columns: 1fr;
}

.hp-siha-check-item {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(72, 56, 47, 0.14);
    border-radius: 14px;
    cursor: pointer;
    display: flex !important;
    gap: 10px;
    padding: 12px;
}

.hp-siha-check-item input {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 2px;
    min-height: 0;
    width: 18px;
}

.hp-siha-check-item > span {
    display: grid;
    gap: 3px;
}

.hp-siha-check-item strong {
    font-size: 13px;
    line-height: 1.25;
}

.hp-siha-check-item small {
    color: var(--hp-red-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.hp-siha-manual-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hp-siha-nav-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
}

.hp-siha-nav-actions .hp-secondary-link,
.hp-siha-nav-actions .hp-primary-button {
    min-width: 140px;
}

#hp-siha-error:not(:empty) {
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(174, 28, 36, 0.28);
    border-radius: 10px;
    background: rgba(255, 242, 242, 0.9);
}

.hp-gp-form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.hp-form-location-prompt {
    align-items: center;
    background: linear-gradient(90deg, #fff3e3, #fffaf4);
    border: 1px solid #efcfad;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.hp-form-location-prompt > div {
    flex: 1 1 auto;
    min-width: 0;
}

.hp-form-location-prompt strong {
    color: var(--hp-ink);
    display: block;
}

.hp-form-location-prompt p {
    color: var(--hp-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 3px 0 0;
}

.hp-form-location-icon {
    background: var(--hp-red);
    border-radius: 50% 50% 50% 0;
    flex: 0 0 25px;
    height: 25px;
    position: relative;
    transform: rotate(-45deg);
    width: 25px;
}

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

.hp-form-location-prompt .hp-primary-button {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
    width: auto;
}

.hp-gp-form-actions .hp-gp-calculate {
    margin-top: 0;
    min-width: 140px;
    width: auto;
}

.hp-new-calculation {
    margin-right: auto;
}

.hp-secondary-link {
    align-items: center;
    border: 1px solid rgba(201, 32, 43, 0.28);
    border-radius: 999px;
    color: var(--hp-red-dark);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
}

.hp-secondary-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hp-form-calculator-grid,
    .hp-gp-layout,
    .hp-gp-grid,
    .hp-gp-grid-three,
    .hp-gp-grid-two,
    .hp-siha-steps,
    .hp-siha-check-grid,
    .hp-siha-manual-values {
        grid-template-columns: 1fr;
    }

    .hp-siha-nav-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* GP assistant-like side cards */
.hp-gp-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.65fr);
    align-items: start;
}

.hp-gp-side-panel {
    display: grid;
    gap: 14px;
}

.hp-gp-side-card {
    padding: 18px;
}

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

.hp-gp-card-head h2 {
    color: var(--hp-ink);
    font-family: var(--hp-display);
    font-size: 21px;
    line-height: 1;
    margin: 0;
}

.hp-gp-card-head p {
    color: rgba(50, 40, 35, 0.78);
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.hp-gp-small-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
}

.hp-gp-detail-list {
    display: grid;
    gap: 5px;
}

.hp-gp-detail-row {
    align-items: baseline;
    border-bottom: 1px solid rgba(72, 56, 47, 0.12);
    display: grid;
    gap: 9px;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 27px;
}

.hp-gp-detail-row span {
    color: rgba(87, 63, 51, 0.86);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hp-gp-detail-row strong {
    color: var(--hp-ink);
    font-family: var(--hp-display);
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-gp-mini-map {
    border-radius: 16px;
    height: 132px;
    margin: 4px 0 10px;
    overflow: hidden;
}

.hp-gp-address-summary {
    display: grid;
    gap: 4px;
}

.hp-gp-address-badge {
    align-self: start;
    background: rgba(201, 32, 43, 0.11);
    border-radius: 999px;
    color: var(--hp-red-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    justify-self: start;
    letter-spacing: 0.07em;
    padding: 4px 8px;
    text-transform: uppercase;
}

.hp-gp-address-summary strong {
    color: var(--hp-ink);
    font-family: var(--hp-display);
    font-size: 16px;
    line-height: 1.2;
}

.hp-gp-address-summary p {
    color: rgba(50, 40, 35, 0.76);
    font-size: 13px;
    margin: 0;
}

.hp-gp-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 4000;
}

/* Google Places inserta este menú al final del documento; debe quedar sobre los modales. */
.pac-container {
    z-index: 5000 !important;
}

.hp-gp-modal.is-open {
    display: flex;
}

.hp-gp-modal-backdrop {
    backdrop-filter: blur(4px);
    background: rgba(32, 25, 22, 0.42);
    inset: 0;
    position: absolute;
}

.hp-gp-modal-dialog {
    background: rgba(255, 251, 246, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(32, 25, 22, 0.28);
    max-width: 780px;
    padding: 26px;
    position: relative;
    width: min(92vw, 780px);
}

.hp-gp-modal-dialog-map {
    max-width: 1120px;
    width: min(94vw, 1120px);
}

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

.hp-gp-modal-header h2 {
    color: var(--hp-ink);
    font-family: var(--hp-display);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1;
    margin: 0;
}

.hp-gp-modal-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--hp-ink);
    cursor: pointer;
    font: inherit;
    padding: 8px 0;
}

.hp-gp-modal-form {
    display: grid;
    gap: 16px;
}

.hp-gp-modal-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.hp-gp-modal-form label span {
    color: var(--hp-ink);
    font-size: 13px;
}

.hp-required {
    color: var(--hp-red-dark);
    font-style: normal;
    font-weight: 900;
}

.hp-gp-modal-form input,
.hp-gp-modal-form select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(72, 56, 47, 0.2);
    border-radius: 14px;
    min-height: 48px;
    padding: 10px 14px;
}

.hp-fm-variance-grid .hp-check {
    align-items: center;
    align-self: end;
    display: grid;
    gap: 9px;
    min-height: 48px;
}

.hp-fm-variance-grid .hp-check input {
    accent-color: var(--hp-red);
    height: 18px;
    margin: 0;
    width: 18px;
}

.hp-gp-map-large {
    border-radius: 18px;
    height: 320px;
    overflow: hidden;
}

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

.hp-gp-modal-actions .hp-secondary-link,
.hp-gp-modal-actions .hp-primary-button {
    min-width: 150px;
}

@media (max-width: 900px) {
    .hp-gp-layout {
        grid-template-columns: 1fr;
    }

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

.hp-siha-uses-container {
    display: grid;
    gap: 0;
    margin: 16px 0 12px;
}

.hp-siha-project-data-card {
    border: 1px solid rgba(196, 38, 34, 0.16);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.hp-siha-project-type-row {
    display: flex;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 57, 48, 0.12);
}

.hp-siha-project-type-row label {
    width: min(100%, 330px);
}

.hp-siha-use-row {
    padding: 16px 0 0;
}

.hp-siha-use-row + .hp-siha-use-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(74, 57, 48, 0.12);
}

.hp-siha-use-row > [data-siha-remove-use],
#hp-siha-add-use {
    display: flex;
    width: fit-content;
    margin-left: auto;
}

.hp-siha-use-row .hp-gp-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 14px;
    width: 100%;
}

.hp-siha-use-row .hp-gp-grid-two > label {
    min-width: 0;
}

.hp-siha-use-row .hp-gp-grid-two select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-siha-use-row .hp-gp-grid-two > label:nth-child(3) {
    max-width: 330px;
}

@media (max-width: 900px) {
    .hp-siha-project-type-row {
        display: block;
    }

    .hp-siha-project-type-row label {
        width: 100%;
    }

    .hp-siha-use-row .hp-gp-grid-two {
        grid-template-columns: 1fr;
    }

    .hp-siha-use-row .hp-gp-grid-two > label:nth-child(3) {
        max-width: none;
    }
}

.hp-siha-repetitive-block {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-top: 14px;
}

.hp-siha-repetitive-block.is-hidden,
.hp-siha-stratum-field.is-hidden {
    display: none;
}

.hp-gp-form-card .hp-siha-inline-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    color: #4d4038;
}

.hp-gp-form-card .hp-siha-inline-check input {
    width: 20px;
    height: 20px;
    accent-color: #c92d29;
}

.hp-gp-form-card .hp-siha-unit-count {
    display: grid;
    gap: 7px;
    max-width: 300px;
    margin: 0;
    transition: opacity 0.2s ease;
}

.hp-gp-form-card .hp-siha-unit-count.is-disabled {
    opacity: 0.45;
}

.hp-gp-form-card .hp-siha-unit-count input {
    max-width: 110px;
}

.hp-inline-help {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(201, 45, 41, 0.08);
    color: #6a554c;
    font-size: 13px;
    line-height: 1.35;
}

.hp-siha-reference-message {
    background: rgba(238, 218, 198, 0.72);
    border: 1px solid rgba(157, 28, 28, 0.08);
    color: #3b2a24;
    font-size: 14px;
    margin: 12px 0 14px;
    padding: 14px 18px;
}

.hp-siha-reference-message strong {
    color: var(--hp-red-dark);
    font-weight: 900;
}

.hp-siha-value-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    max-width: 420px;
}

/* Factor Multiplicador form */
.hp-fm-layout .hp-gp-main-column {
    gap: 18px;
}

.hp-fm-form-card .hp-gp-section-title {
    margin-top: 18px;
}

.hp-fm-factor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.hp-fm-factor-group {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(196, 38, 34, 0.16);
    border-radius: 18px;
    padding: 14px 16px;
}

.hp-fm-factor-group h3 {
    color: var(--hp-red-dark);
    font-size: 13px;
    letter-spacing: 0.09em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hp-fm-factor-option {
    align-items: flex-start;
    color: #3b2a24;
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.hp-fm-factor-option + .hp-fm-factor-option {
    border-top: 1px solid rgba(74, 57, 48, 0.1);
}

.hp-fm-factor-option input {
    accent-color: var(--hp-red);
    flex: 0 0 auto;
    height: 20px;
    margin-top: 2px;
    width: 20px;
}

.hp-fm-factor-option span {
    display: grid;
    gap: 3px;
    line-height: 1.25;
}

.hp-fm-factor-option small {
    color: var(--hp-red-dark);
    font-weight: 900;
}

.hp-fm-vat-check {
    align-self: end;
    min-height: 50px;
}

.hp-fm-result-card .hp-gp-result-line {
    align-items: center;
}

@media (max-width: 900px) {
    .hp-fm-factor-grid {
        grid-template-columns: 1fr;
    }
}

/* Factor Multiplicador wizard */
.hp-fm-page .hp-fm-hero {
    grid-template-columns: 180px 1fr;
}

.hp-fm-page .hp-fm-hero .hp-hero-logo {
    max-width: 150px;
}

.hp-fm-steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(86px, 1fr));
}

.hp-fm-steps button {
    min-height: 96px;
    padding: 12px 8px;
}

.hp-fm-steps button span {
    font-size: 12px;
    line-height: 1.2;
}

.hp-fm-step-panel {
    display: none;
}

.hp-fm-step-panel.is-active {
    display: block;
}

.hp-fm-service-card {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(196, 38, 34, 0.18);
    border-radius: 18px;
    padding: 18px;
}

.hp-fm-service-card select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.hp-fm-service-card option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-fm-factor-table,
.hp-fm-personnel-table {
    margin: 12px 0;
    overflow-x: auto;
}

.hp-fm-factor-table table,
.hp-fm-personnel-table table {
    background: rgba(255, 255, 255, 0.72);
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.hp-fm-factor-table th,
.hp-fm-personnel-table th {
    background: #243746;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 6px 7px;
    text-transform: uppercase;
}

.hp-fm-factor-table td,
.hp-fm-personnel-table td {
    border-bottom: 1px solid rgba(36, 55, 70, 0.12);
    color: #243746;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    padding: 3px 7px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.hp-fm-factor-table tr {
    height: 38px;
}

.hp-fm-factor-table th:nth-child(1),
.hp-fm-factor-table td:nth-child(1) {
    width: 47%;
}

.hp-fm-factor-table th:nth-child(2),
.hp-fm-factor-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 28%;
}

.hp-fm-factor-table th:nth-child(3),
.hp-fm-factor-table td:nth-child(3) {
    width: 16%;
}

.hp-fm-factor-table th:nth-child(4),
.hp-fm-factor-table td:nth-child(4) {
    text-align: center;
    width: 9%;
}

.hp-fm-personnel-table th:nth-child(1),
.hp-fm-personnel-table td:nth-child(1) {
    width: 17%;
}

.hp-fm-personnel-table th:nth-child(2),
.hp-fm-personnel-table td:nth-child(2) {
    width: 18%;
}

.hp-fm-personnel-table th:nth-child(3),
.hp-fm-personnel-table td:nth-child(3) {
    width: 10%;
}

.hp-fm-personnel-table th:nth-child(4),
.hp-fm-personnel-table td:nth-child(4),
.hp-fm-personnel-table th:nth-child(5),
.hp-fm-personnel-table td:nth-child(5) {
    width: 12%;
}

.hp-fm-personnel-table th:nth-child(6),
.hp-fm-personnel-table td:nth-child(6) {
    width: 16%;
}

.hp-fm-personnel-table th:nth-child(7),
.hp-fm-personnel-table td:nth-child(7) {
    overflow: visible;
    white-space: normal;
    width: 15%;
}

.hp-fm-unplanned-help {
    margin-bottom: 8px;
}

.hp-fm-unplanned-table th:nth-child(1),
.hp-fm-unplanned-table td:nth-child(1) {
    width: 72%;
}

.hp-fm-unplanned-table th:nth-child(2),
.hp-fm-unplanned-table td:nth-child(2) {
    width: 28%;
}

.hp-fm-factor-table input[type="checkbox"] {
    accent-color: var(--hp-red);
    height: 18px;
    width: 18px;
}

.hp-gp-form-card label.hp-fm-percentage-input {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.hp-fm-percentage-input input {
    border: 1px solid rgba(36, 55, 70, 0.26);
    border-radius: 7px;
    color: #243746;
    font: inherit;
    flex: 0 0 72px;
    min-height: 34px;
    padding: 5px 7px;
    text-align: right;
    width: 72px;
}

.hp-fm-percentage-input input:disabled {
    background: #f4f0ed;
    border-color: rgba(36, 55, 70, 0.14);
    color: #928981;
    cursor: not-allowed;
}

.hp-fm-percentage-input span {
    color: #59616a;
    font-weight: 800;
}

.hp-fm-subtotal-bar {
    align-items: center;
    background: linear-gradient(135deg, #cf1f28, #a91635);
    border-radius: 18px;
    color: #fff;
    display: flex;
    font-weight: 900;
    gap: 16px;
    justify-content: space-between;
    margin: 12px 0 6px;
    padding: 11px 16px;
}

.hp-fm-subtotal-bar strong {
    font-size: 21px;
}

.hp-fm-personnel-editor,
.hp-fm-variance-grid {
    margin-top: 16px;
}

.hp-fm-add-button {
    justify-self: start;
    margin: 12px 0 16px;
}

.hp-fm-personnel-table th button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    padding: 0;
    text-transform: inherit;
}

.hp-fm-personnel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 96px;
}

.hp-fm-personnel-actions button {
    background: #fff;
    border: 1px solid rgba(196, 38, 34, 0.25);
    border-radius: 999px;
    color: var(--hp-red-dark);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 6px;
}

.hp-fm-result-detail {
    display: grid;
    gap: 10px;
}

.hp-fm-result-table-wrap {
    overflow-x: auto;
}

.hp-fm-result-table {
    border-collapse: collapse;
    font-family: var(--hp-body);
    min-width: 100%;
    width: 100%;
}

.hp-fm-result-table th {
    background: #243746;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.03em;
    padding: 7px 9px;
    text-align: left;
    text-transform: uppercase;
}

.hp-fm-result-table td {
    border-bottom: 1px solid rgba(36, 55, 70, 0.12);
    font-size: 13px;
    padding: 8px 9px;
}

.hp-fm-result-table th:last-child,
.hp-fm-result-table td:last-child {
    text-align: right;
}

.hp-fm-result-table .is-subtotal td {
    background: #dce5e9;
    color: #243746;
    font-weight: 800;
}

.hp-fm-result-table .is-total td {
    background: #c9202b;
    color: #fff;
    font-weight: 900;
}

.hp-fm-personnel-result-table {
    min-width: 820px;
}

.hp-fm-result-total,
.hp-fm-factor-summary {
    align-items: center;
    border-bottom: 1px solid rgba(74, 57, 48, 0.12);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 13px 0;
}

.hp-fm-result-total strong {
    color: #cf123a;
    font-size: 30px;
}

.hp-fm-factor-summary strong {
    color: #2a1d18;
    font-size: 20px;
}

.hp-fm-nav-actions {
    margin-top: 18px;
}

@media (max-width: 1200px) {
    .hp-fm-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hp-fm-page .hp-fm-hero {
        grid-template-columns: 1fr;
    }

    .hp-fm-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.honorarios-interest-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 18px 22px;
    border: 1px solid #ead8d1;
    border-radius: 18px;
    background: rgba(255, 250, 246, 0.93);
    box-shadow: 0 10px 24px rgba(58, 39, 30, 0.08);
}

.honorarios-interest-links-head {
    flex: 0 0 auto;
}

.honorarios-interest-links-head > span {
    color: #a81f24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.honorarios-interest-links-head p {
    margin: 5px 0 0;
    color: #705e54;
    font-size: 13px;
}

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

.honorarios-interest-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d9bdb5;
    border-radius: 999px;
    color: #9f1e23;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.honorarios-interest-links-list a:hover,
.honorarios-interest-links-list a:focus-visible {
    border-color: #c9202b;
    background: #c9202b;
    color: #fff;
}

.honorarios-interest-link-arrow {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 700px) {
    .hp-form-location-prompt {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hp-form-location-prompt .hp-primary-button {
        margin-left: 39px;
        width: calc(100% - 39px);
    }

    .honorarios-interest-links {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

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