@import url('./marketplace-dashboard.css?v=2.0.0');

/* =========================================================
   WORKGOU · MERCADO DE NEGOCIOS
   Estilos exclusivos del módulo. Versión 5.1.0
   ========================================================= */

.wg-business-marketplace-page {
    --wg-market-primary: #048ce2;
    --wg-market-primary-dark: #0377c2;
    --wg-market-soft: #eaf6fd;
    --wg-market-bg: #f5f8fb;
    --wg-market-card: #ffffff;
    --wg-market-ink: #182433;
    --wg-market-muted: #66778a;
    --wg-market-line: #dce6ef;
    background: var(--wg-market-bg);
    color: var(--wg-market-ink);
}

/* Mercado de negocios - Fase 4: preparacion del cierre */
.wg-transaction-list-page,
.wg-transaction-page {
    background: #f5f8fb;
    padding: 52px 0 84px;
}

.wg-transaction-page-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.wg-transaction-page-heading h1,
.wg-transaction-heading h1 {
    color: #12263a;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 8px 0 12px;
}

.wg-transaction-page-heading p,
.wg-transaction-heading p {
    color: #617286;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.wg-transaction-list {
    display: grid;
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.wg-transaction-list-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe8f0;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(25, 55, 82, 0.07);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(250px, 1.5fr) minmax(150px, .7fr) minmax(170px, .7fr) auto;
    padding: 22px 24px;
}

.wg-transaction-list-card__main h2 {
    color: #162b3e;
    font-size: 19px;
    font-weight: 750;
    margin: 8px 0 5px;
}

.wg-transaction-list-card__main p,
.wg-transaction-list-card__amount span,
.wg-transaction-list-card__progress span {
    color: #6b7c8f;
    font-size: 13px;
    margin: 0;
}

.wg-transaction-list-card__amount,
.wg-transaction-list-card__progress {
    display: grid;
    gap: 7px;
}

.wg-transaction-list-card__amount strong {
    color: #12263a;
    font-size: 19px;
}

.wg-transaction-list-card__progress > div {
    display: flex;
    justify-content: space-between;
}

.wg-transaction-list-card__progress > div b {
    color: #048ce2;
    font-size: 13px;
}

.wg-transaction-list-card__progress i,
.wg-transaction-progress-card i {
    background: #e6edf3;
    border-radius: 4px;
    display: block;
    height: 7px;
    overflow: hidden;
}

.wg-transaction-list-card__progress i span,
.wg-transaction-progress-card i span {
    background: #048ce2;
    display: block;
    height: 100%;
}

.wg-transaction-status {
    background: #edf6fd;
    border: 1px solid #cfe7f8;
    border-radius: 5px;
    color: #0879bf;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;
    padding: 6px 9px;
    width: fit-content;
}

.wg-transaction-status.is-ready_for_payment {
    background: #e9f8f0;
    border-color: #bce7ce;
    color: #167a43;
}

.wg-transaction-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 22px 0 28px;
}

.wg-transaction-ready {
    align-items: center;
    background: #eaf8f1;
    border: 1px solid #bce7ce;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
}

.wg-transaction-ready svg,
.wg-transaction-confirm-card > svg {
    fill: none;
    flex: 0 0 auto;
    height: 42px;
    stroke: #16834a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 42px;
}

.wg-transaction-ready h2 {
    color: #155c39;
    font-size: 20px;
    margin: 0 0 4px;
}

.wg-transaction-ready p {
    color: #37725a;
    line-height: 1.6;
    margin: 0;
}

.wg-transaction-progress-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe8f0;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 18px;
    padding: 17px 20px;
}

.wg-transaction-progress-card > div {
    display: grid;
}

.wg-transaction-progress-card span {
    color: #6b7c8f;
    font-size: 12px;
}

.wg-transaction-progress-card strong {
    color: #20374b;
    font-size: 14px;
}

.wg-transaction-progress-card > b {
    color: #048ce2;
    font-size: 15px;
}

.wg-transaction-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.wg-transaction-main,
.wg-transaction-side {
    display: grid;
    gap: 18px;
}

.wg-transaction-card {
    background: #ffffff;
    border: 1px solid #dfe8f0;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(25, 55, 82, 0.055);
    padding: 24px;
}

.wg-transaction-section-heading {
    align-items: end;
    border-bottom: 1px solid #e8eef4;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.wg-transaction-section-heading h2 {
    color: #172d41;
    font-size: 21px;
    font-weight: 750;
    margin: 0;
}

.wg-transaction-section-heading p {
    color: #738397;
    font-size: 13px;
    margin: 0;
    text-align: right;
}

.wg-transaction-money-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wg-transaction-money-grid > div {
    background: #f7f9fb;
    border: 1px solid #e6edf3;
    border-radius: 6px;
    display: grid;
    gap: 5px;
    padding: 16px;
}

.wg-transaction-money-grid > div.is-highlight {
    background: #edf7fd;
    border-color: #c9e5f7;
}

.wg-transaction-money-grid span {
    color: #6a7a8c;
    font-size: 12px;
}

.wg-transaction-money-grid strong {
    color: #172d41;
    font-size: 20px;
}

.wg-transaction-money-grid .is-highlight strong {
    color: #0479c4;
}

.wg-transaction-note {
    background: #f7fafc;
    border-left: 3px solid #048ce2;
    color: #5d6f81;
    font-size: 13px;
    line-height: 1.65;
    margin: 16px 0 0;
    padding: 11px 13px;
}

.wg-transaction-terms {
    display: grid;
    gap: 16px;
}

.wg-transaction-terms > div > span {
    color: #67798b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.wg-transaction-terms p {
    color: #344b5f;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.wg-transaction-term-pair {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wg-transaction-term-pair p {
    background: #f7f9fb;
    border-radius: 6px;
    padding: 14px;
}

.wg-transaction-term-pair b {
    color: #048ce2;
    font-size: 20px;
}

.wg-transaction-checklist {
    display: grid;
    gap: 10px;
}

.wg-transaction-checklist article {
    align-items: center;
    background: #fbfcfd;
    border: 1px solid #e3eaf0;
    border-radius: 6px;
    display: flex;
    gap: 13px;
    padding: 13px 14px;
}

.wg-transaction-checklist article.is-complete {
    background: #f1faf5;
    border-color: #c9e9d6;
}

.wg-transaction-checklist form {
    margin: 0;
}

.wg-transaction-checklist button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b9c7d3;
    border-radius: 4px;
    display: flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.wg-transaction-checklist button:disabled {
    cursor: default;
    opacity: .65;
}

.wg-transaction-checklist svg {
    fill: none;
    height: 17px;
    stroke: transparent;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 17px;
}

.wg-transaction-checklist .is-complete button {
    background: #16834a;
    border-color: #16834a;
}

.wg-transaction-checklist .is-complete svg {
    stroke: #ffffff;
}

.wg-transaction-checklist h3 {
    color: #283f53;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 3px;
}

.wg-transaction-checklist p {
    color: #7a8998;
    font-size: 12px;
    margin: 0;
}

.wg-transaction-confirm-card > svg {
    display: block;
    margin: 0 auto 12px;
    stroke: #048ce2;
}

.wg-transaction-confirm-card h2,
.wg-transaction-safety h2 {
    color: #172d41;
    font-size: 19px;
    margin: 0 0 18px;
    text-align: center;
}

.wg-party-confirmation {
    align-items: center;
    border-bottom: 1px solid #e8eef4;
    display: flex;
    gap: 10px;
    padding: 11px 0;
}

.wg-party-confirmation i {
    background: #dce5ec;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.wg-party-confirmation.is-confirmed i {
    background: #18a05a;
}

.wg-party-confirmation div {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.wg-party-confirmation strong {
    color: #344b5f;
    font-size: 13px;
}

.wg-party-confirmation span {
    color: #788897;
    font-size: 12px;
}

.wg-transaction-confirm-form {
    margin-top: 18px;
}

.wg-transaction-confirm-form label {
    align-items: flex-start;
    color: #5f7081;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.wg-transaction-confirm-form input {
    margin-top: 3px;
}

.wg-transaction-confirm-form .wg-business-btn {
    justify-content: center;
    width: 100%;
}

.wg-confirmed-message {
    background: #eaf8f1;
    border-radius: 5px;
    color: #167a43;
    font-size: 13px;
    margin: 16px 0 0;
    padding: 11px;
    text-align: center;
}

.wg-transaction-safety {
    background: #fffaf0;
    border-color: #f0ddb1;
}

.wg-transaction-safety h2 {
    color: #76591a;
    margin-bottom: 8px;
    text-align: left;
}

.wg-transaction-safety p {
    color: #725f36;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 12px;
}

.wg-transaction-safety a {
    color: #047bc6;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .wg-transaction-list-card {
        grid-template-columns: minmax(0, 1fr) minmax(150px, .6fr);
    }

    .wg-transaction-list-card__progress {
        grid-column: 1;
    }

    .wg-transaction-list-card > .wg-business-btn {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .wg-transaction-grid {
        grid-template-columns: 1fr;
    }

    .wg-transaction-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wg-transaction-list-page,
    .wg-transaction-page {
        padding: 32px 0 54px;
    }

    .wg-transaction-list-card,
    .wg-transaction-heading,
    .wg-transaction-progress-card,
    .wg-transaction-section-heading {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .wg-transaction-list-card {
        gap: 16px;
        padding: 19px;
    }

    .wg-transaction-list-card > .wg-business-btn {
        justify-content: center;
        width: 100%;
    }

    .wg-transaction-heading {
        gap: 14px;
    }

    .wg-transaction-heading .wg-transaction-status {
        align-self: flex-start;
    }

    .wg-transaction-ready {
        align-items: flex-start;
    }

    .wg-transaction-ready svg {
        height: 34px;
        width: 34px;
    }

    .wg-transaction-progress-card {
        gap: 9px;
    }

    .wg-transaction-progress-card > b {
        align-self: flex-end;
    }

    .wg-transaction-card {
        padding: 19px;
    }

    .wg-transaction-section-heading {
        align-items: flex-start;
        gap: 5px;
    }

    .wg-transaction-section-heading p {
        text-align: left;
    }

    .wg-transaction-money-grid,
    .wg-transaction-term-pair,
    .wg-transaction-side {
        grid-template-columns: 1fr;
    }
}

.wg-business-marketplace-page .aiz-main-wrapper > .p-0.m-0.bg-white {
    background: var(--wg-market-bg) !important;
}

.wg-business-marketplace-page .wg-business-shell {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.wg-business-marketplace-page svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-business-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--wg-market-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wg-business-btn {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    transition: .2s ease;
}

.wg-business-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.wg-business-btn--primary {
    border-color: var(--wg-market-primary);
    background: var(--wg-market-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(4, 140, 226, .17);
}

.wg-business-btn--primary:hover {
    border-color: var(--wg-market-primary-dark);
    background: var(--wg-market-primary-dark);
    color: #ffffff;
}

.wg-business-btn--secondary {
    border-color: #cbd9e5;
    background: #ffffff;
    color: var(--wg-market-ink);
}

.wg-business-btn--secondary:hover {
    border-color: var(--wg-market-primary);
    color: var(--wg-market-primary);
}

.wg-business-btn--block {
    width: 100%;
}

.wg-business-backlink {
    display: inline-flex;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 26px;
    align-items: center;
    color: var(--wg-market-primary);
    font-size: 13px;
    font-weight: 750;
}

.wg-business-backlink svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Landing */

.wg-business-v2 .wg-business-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
    border-bottom: 1px solid var(--wg-market-line);
    background: radial-gradient(circle at 50% 120%, rgba(4, 140, 226, .12), transparent 42%), linear-gradient(180deg, #ffffff, #f5fbff);
    text-align: center;
}

.wg-business-v2 .wg-business-hero .wg-business-shell {
    display: flex;
    max-width: 900px;
    flex-direction: column;
    align-items: center;
}

.wg-business-hero__mark,
.wg-business-closing__icon,
.wg-business-step-icon,
.wg-market-empty > span,
.wg-market-access-box > span {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e1f3fd;
    color: var(--wg-market-primary);
}

.wg-business-hero__mark {
    margin-bottom: 18px;
}

.wg-business-hero__mark svg,
.wg-business-closing__icon svg,
.wg-business-step-icon svg,
.wg-market-empty svg,
.wg-market-access-box > span svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.wg-business-v2 .wg-business-hero h1 {
    max-width: 850px;
    margin: 0 auto 18px;
    color: var(--wg-market-ink);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 780;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.wg-business-v2 .wg-business-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--wg-market-muted);
    font-size: 17px;
    line-height: 1.65;
}

.wg-business-actions,
.wg-business-trustline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.wg-business-actions {
    gap: 12px;
    margin-top: 28px;
}

.wg-business-trustline {
    gap: 20px;
    margin-top: 24px;
    color: #536477;
    font-size: 13px;
}

.wg-business-trustline span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.wg-business-trustline svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--wg-market-primary);
    stroke-width: 1.8;
}

.wg-business-section,
.wg-market-catalog {
    padding: 68px 0;
    background: #ffffff;
}

.wg-business-section--soft,
.wg-market-catalog {
    border-top: 1px solid var(--wg-market-line);
    border-bottom: 1px solid var(--wg-market-line);
    background: var(--wg-market-bg);
}

.wg-business-section__heading--centered,
.wg-business-section__heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.wg-business-section__heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--wg-market-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wg-business-section__heading h2 {
    margin: 0;
    color: var(--wg-market-ink);
    font-size: clamp(29px, 3.5vw, 42px);
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.wg-business-section__heading p {
    margin: 12px auto 0;
    color: var(--wg-market-muted);
    font-size: 15px;
    line-height: 1.65;
}

.wg-business-types,
.wg-business-visibility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wg-business-type-card,
.wg-business-visibility-grid article {
    display: flex;
    min-width: 0;
    padding: 27px 23px;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--wg-market-line);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(20, 55, 82, .045);
    text-align: center;
}

.wg-business-type-card {
    min-height: 390px;
}

.wg-business-type-card__icon {
    display: flex;
    width: 50px;
    height: 50px;
    margin-bottom: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e1f3fd;
    color: var(--wg-market-primary);
}

.wg-business-type-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.wg-business-type-card h3,
.wg-business-visibility-grid h3 {
    margin: 0 0 10px;
    color: var(--wg-market-ink);
    font-size: 21px;
    font-weight: 760;
}

.wg-business-type-card > p,
.wg-business-visibility-grid p {
    margin: 0;
    color: var(--wg-market-muted);
    font-size: 14px;
    line-height: 1.65;
}

.wg-business-type-card > p {
    min-height: 70px;
}

.wg-business-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    justify-content: center;
}

.wg-business-category-list span {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 10px;
    align-items: center;
    border: 1px solid #d9e7f0;
    border-radius: 4px;
    background: #f7fafc;
    color: #526477;
    font-size: 11px;
}

.wg-business-visibility-grid article {
    min-height: 280px;
}

.wg-business-step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
}

.wg-business-visibility-grid article > strong {
    margin-bottom: 7px;
    color: var(--wg-market-primary);
    font-size: 12px;
}

.wg-business-visibility-grid p {
    max-width: 310px;
}

/* Catálogo y filtros */

.wg-market-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, .7fr)) auto;
    gap: 9px;
    margin-bottom: 28px;
    padding: 15px;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
}

.wg-market-filters input,
.wg-market-filters select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cad9e5;
    border-radius: 5px;
    outline: 0;
    background: #ffffff;
    color: var(--wg-market-ink);
    font-family: inherit;
    font-size: 13px;
}

.wg-market-filters input:focus,
.wg-market-filters select:focus {
    border-color: var(--wg-market-primary);
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .09);
}

.wg-market-filters__search {
    position: relative;
}

.wg-market-filters__search input {
    padding-left: 40px;
}

.wg-market-filters__search svg {
    position: absolute;
    top: 14px;
    left: 13px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #758699;
    stroke-width: 1.8;
}

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

.wg-market-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(20, 55, 82, .06);
}

.wg-market-card__image {
    position: relative;
    display: flex;
    height: 215px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #eaf3f8;
}

.wg-market-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.wg-market-card:hover .wg-market-card__image img {
    transform: scale(1.025);
}

.wg-market-card__image > span svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: #79bde7;
    stroke-width: 1.5;
}

.wg-market-privacy,
.wg-market-status {
    display: inline-flex;
    min-height: 27px;
    padding: 5px 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e3eb;
    border-radius: 4px;
    background: #ffffff;
    color: #5c6d7f;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wg-market-card__image .wg-market-privacy {
    position: absolute;
    top: 12px;
    right: 12px;
}

.wg-market-privacy--private {
    border-color: #c5d6e3;
    background: #233347;
    color: #ffffff;
}

.wg-market-privacy--confidential {
    border-color: #9ed6f4;
    background: #e8f6fd;
    color: #0877bc;
}

.wg-market-card__body {
    padding: 21px;
}

.wg-market-card__type {
    display: block;
    margin-bottom: 8px;
    color: var(--wg-market-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wg-market-card h3 {
    margin: 0 0 9px;
    font-size: 19px;
    font-weight: 760;
    line-height: 1.32;
}

.wg-market-card h3 a {
    color: var(--wg-market-ink);
}

.wg-market-card p {
    display: -webkit-box;
    min-height: 67px;
    margin: 0 0 17px;
    overflow: hidden;
    color: var(--wg-market-muted);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wg-market-card__meta {
    display: flex;
    gap: 12px;
    padding-top: 14px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e7edf2;
    color: #748397;
    font-size: 11px;
}

.wg-market-card__meta strong {
    color: var(--wg-market-ink);
    font-size: 15px;
    white-space: nowrap;
}

.wg-market-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 28px;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
}

.wg-market-empty h2,
.wg-market-empty h3 {
    margin: 17px 0 8px;
    color: var(--wg-market-ink);
    font-size: 23px;
    font-weight: 760;
}

.wg-market-empty p {
    margin: 0 auto 20px;
    color: var(--wg-market-muted);
    font-size: 14px;
    line-height: 1.6;
}

.wg-market-pagination {
    margin-top: 28px;
}

/* Calculador y cierre */

.wg-business-calculator {
    display: grid;
    max-width: 920px;
    margin: 0 auto;
    grid-template-columns: 1.2fr .8fr;
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(20, 55, 82, .075);
}

.wg-business-calculator__input,
.wg-business-calculator__result {
    padding: 30px;
}

.wg-business-calculator__input > label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
}

.wg-business-money-input {
    display: flex;
    max-width: 430px;
    min-height: 58px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #bfd1df;
    border-radius: 5px;
}

.wg-business-money-input span {
    display: flex;
    padding: 0 17px;
    align-items: center;
    border-right: 1px solid #dbe5ed;
    background: #f5f9fc;
    color: var(--wg-market-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.wg-business-money-input input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: var(--wg-market-ink);
    font-size: 24px;
    font-weight: 750;
    text-align: center;
}

.wg-business-fee-tiers {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.wg-business-fee-tiers > span {
    display: flex;
    min-height: 38px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2eaf1;
    border-radius: 5px;
    color: #6f7e8e;
    font-size: 12px;
}

.wg-business-fee-tiers > span strong {
    margin-right: 6px;
    color: var(--wg-market-ink);
}

.wg-business-fee-tiers > span.is-active {
    border-color: #9ed5f5;
    background: #edf8fe;
    color: var(--wg-market-primary-dark);
}

.wg-business-calculator__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #cce8f8;
    background: linear-gradient(145deg, #edf8fe, #dff3fd);
    text-align: center;
}

.wg-business-calculator__result > strong {
    margin: 9px 0 8px;
    color: var(--wg-market-primary-dark);
    font-size: clamp(30px, 4vw, 43px);
    letter-spacing: -.04em;
}

.wg-business-calculator__result p,
.wg-business-calculator__note {
    margin: 0;
    color: var(--wg-market-muted);
    font-size: 12px;
}

.wg-business-calculator__note {
    margin-top: 13px;
    text-align: center;
}

.wg-business-closing {
    padding: 0 0 64px;
    background: var(--wg-market-bg);
}

.wg-business-closing__card {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px 32px;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(20, 55, 82, .07);
    text-align: center;
}

.wg-business-closing__icon {
    margin-bottom: 15px;
}

.wg-business-closing__card h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 780;
    letter-spacing: -.035em;
}

.wg-business-closing__card p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: var(--wg-market-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Formularios de comprador y vendedor */

.wg-buyer-auth,
.wg-buyer-profile-page,
.wg-market-form-page,
.wg-market-account-page,
.wg-market-detail-page {
    min-height: 650px;
    padding: 48px 0 64px;
    background: var(--wg-market-bg);
}

.wg-buyer-auth .wg-business-shell,
.wg-market-form-page .wg-business-shell {
    max-width: 920px;
}

.wg-buyer-profile-page .wg-business-shell,
.wg-market-account-page .wg-business-shell,
.wg-market-detail-page .wg-business-shell {
    max-width: 1180px;
}

.wg-buyer-auth__grid {
    display: block;
    max-width: 840px;
    margin: 0 auto;
}

.wg-buyer-auth__intro,
.wg-market-form-heading,
.wg-buyer-profile-heading {
    position: static;
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 0;
    text-align: center;
}

.wg-buyer-auth__intro h1,
.wg-buyer-profile-heading h1,
.wg-market-form-heading h1,
.wg-market-account-heading h1 {
    margin: 0 0 10px;
    color: var(--wg-market-ink);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.wg-buyer-auth__intro > p,
.wg-buyer-profile-heading p,
.wg-market-form-heading p,
.wg-market-account-heading p {
    margin: 0;
    color: var(--wg-market-muted);
    font-size: 15px;
    line-height: 1.65;
}

.wg-buyer-auth__intro ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.wg-buyer-auth__intro li {
    display: flex;
    gap: 9px;
    min-height: 78px;
    padding: 14px;
    align-items: center;
    border: 1px solid var(--wg-market-line);
    border-radius: 5px;
    background: #ffffff;
    color: #536477;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.wg-buyer-auth__intro li svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: var(--wg-market-primary);
    stroke-width: 2;
}

.wg-buyer-form-card,
.wg-buyer-form-section,
.wg-buyer-state-card,
.wg-market-errors {
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(20, 55, 82, .05);
}

.wg-buyer-form-card {
    padding: 34px;
}

.wg-buyer-form-card__heading {
    margin-bottom: 25px;
    text-align: center;
}

.wg-buyer-form-card__heading h2,
.wg-buyer-form-section__heading h2,
.wg-buyer-state-card h2 {
    margin: 4px 0 5px;
    color: var(--wg-market-ink);
    font-size: 22px;
    font-weight: 760;
}

.wg-buyer-form-card__heading p,
.wg-buyer-form-section__heading p,
.wg-buyer-state-card p {
    margin: 0;
    color: var(--wg-market-muted);
    font-size: 13px;
    line-height: 1.55;
}

.wg-business-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wg-business-form-grid--phone {
    grid-template-columns: 115px 1fr;
}

.wg-business-form-grid--investment {
    grid-template-columns: 120px repeat(2, 1fr);
}

.wg-market-money-grid {
    grid-template-columns: 130px 1fr;
}

.wg-business-form-group {
    min-width: 0;
    margin-bottom: 17px;
}

.wg-business-form-group > label {
    display: block;
    margin-bottom: 7px;
    color: #344456;
    font-size: 13px;
    font-weight: 750;
}

.wg-business-form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.wg-business-form-group select,
.wg-business-form-group textarea,
.wg-access-card textarea,
.wg-market-access-box textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cad9e5;
    border-radius: 5px;
    outline: 0;
    background: #ffffff;
    color: var(--wg-market-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.wg-business-form-group textarea,
.wg-access-card textarea,
.wg-market-access-box textarea {
    resize: vertical;
}

.wg-business-form-group input:focus,
.wg-business-form-group select:focus,
.wg-business-form-group textarea:focus,
.wg-access-card textarea:focus,
.wg-market-access-box textarea:focus {
    border-color: var(--wg-market-primary);
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .09);
}

.wg-business-form-group > small {
    display: block;
    margin-top: 6px;
    color: #8290a0;
    font-size: 11px;
}

.wg-business-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.wg-business-choice-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.wg-business-choice-grid label,
.wg-market-privacy-options label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.wg-business-choice-grid input,
.wg-market-privacy-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wg-business-choice-grid span,
.wg-market-privacy-options label > span {
    display: flex;
    min-height: 46px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cad9e5;
    border-radius: 5px;
    background: #ffffff;
    color: #536477;
    font-size: 13px;
    text-align: center;
}

.wg-business-choice-grid input:checked + span,
.wg-market-privacy-options input:checked + span {
    border-color: var(--wg-market-primary);
    background: var(--wg-market-soft);
    color: var(--wg-market-primary-dark);
    box-shadow: inset 0 0 0 1px var(--wg-market-primary);
}

.wg-market-privacy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.wg-market-privacy-options label > span {
    min-height: 90px;
    flex-direction: column;
}

.wg-market-privacy-options strong {
    color: var(--wg-market-ink);
    font-size: 13px;
}

.wg-market-privacy-options small {
    margin-top: 4px;
    color: #778697;
    font-size: 10px;
    line-height: 1.4;
}

.wg-business-check {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    align-items: flex-start;
    color: #526275;
    font-size: 12px;
    line-height: 1.5;
}

.wg-business-check input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    accent-color: var(--wg-market-primary);
}

.wg-buyer-profile-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wg-buyer-status,
.wg-buyer-progress {
    border-radius: 5px;
}

.wg-buyer-progress {
    display: grid;
    max-width: 760px;
    margin: 0 auto 22px;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    background: #ffffff;
}

.wg-buyer-progress > div {
    display: flex;
    gap: 8px;
    padding: 14px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--wg-market-line);
    color: #8290a0;
    font-size: 12px;
}

.wg-buyer-progress > div:last-child {
    border-right: 0;
}

.wg-buyer-progress strong {
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f6;
    font-size: 11px;
}

.wg-buyer-progress .is-active strong,
.wg-buyer-progress .is-complete strong {
    background: var(--wg-market-primary);
    color: #ffffff;
}

.wg-buyer-state-card {
    display: flex;
    gap: 17px;
    max-width: 860px;
    margin: 0 auto;
    padding: 27px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wg-buyer-verification-form,
.wg-market-listing-form {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    gap: 18px;
}

.wg-buyer-form-section {
    display: block;
    overflow: hidden;
}

.wg-buyer-form-section__heading {
    display: flex;
    padding: 25px;
    justify-content: center;
    border-bottom: 1px solid var(--wg-market-line);
    background: #f8fbfd;
    text-align: center;
}

.wg-buyer-form-section__heading > span {
    display: none;
}

.wg-buyer-form-section__body {
    min-width: 0;
    padding: 30px;
}

.wg-business-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wg-business-upload,
.wg-market-image-upload {
    position: relative;
    display: flex;
    min-height: 150px;
    padding: 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #b8cbd9;
    border-radius: 5px;
    background: #f9fbfd;
    text-align: center;
    cursor: pointer;
}

.wg-business-upload svg,
.wg-market-image-upload svg {
    width: 27px;
    height: 27px;
    margin-bottom: 9px;
    fill: none;
    stroke: var(--wg-market-primary);
    stroke-width: 1.8;
}

.wg-business-upload span,
.wg-market-image-upload span {
    margin-top: 5px;
    color: #8290a0;
    font-size: 11px;
}

.wg-business-upload input,
.wg-market-image-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wg-market-existing-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.wg-market-existing-images label {
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    border-radius: 5px;
    background: #ffffff;
}

.wg-market-existing-images img {
    width: 100%;
    height: 115px;
    object-fit: cover;
}

.wg-market-existing-images span {
    display: block;
    padding: 7px;
    font-size: 11px;
    text-align: center;
}

.wg-market-owner-confirm {
    max-width: 800px;
    margin: 5px auto;
    padding: 15px;
    border: 1px solid var(--wg-market-line);
    border-radius: 5px;
    background: #ffffff;
}

.wg-market-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wg-market-errors {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 17px 20px;
    border-color: #efc5ca;
    color: #a43640;
    font-size: 13px;
}

.wg-market-errors ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

/* Panel del vendedor */

.wg-market-account-heading {
    display: flex;
    gap: 22px;
    margin-bottom: 28px;
    align-items: flex-end;
    justify-content: space-between;
}

.wg-market-account-heading--centered {
    justify-content: center;
    text-align: center;
}

.wg-seller-list,
.wg-access-list {
    display: grid;
    gap: 14px;
}

.wg-seller-listing,
.wg-access-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(20, 55, 82, .045);
}

.wg-seller-listing__image {
    min-height: 190px;
    background: #e8f2f7;
}

.wg-seller-listing__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wg-seller-listing__content {
    min-width: 0;
    padding: 21px;
}

.wg-seller-listing__top,
.wg-seller-listing__footer,
.wg-access-card__heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.wg-seller-listing h2,
.wg-access-card h2 {
    margin: 10px 0 7px;
    color: var(--wg-market-ink);
    font-size: 20px;
    font-weight: 760;
}

.wg-seller-listing p,
.wg-access-card > p {
    margin: 0 0 14px;
    color: var(--wg-market-muted);
    font-size: 13px;
    line-height: 1.6;
}

.wg-seller-listing__footer {
    padding-top: 13px;
    border-top: 1px solid #e8eef3;
}

.wg-seller-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.wg-seller-actions form {
    margin: 0;
}

.wg-seller-actions a,
.wg-seller-actions button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--wg-market-primary);
    font-size: 12px;
    font-weight: 750;
}

.wg-seller-actions .is-danger {
    color: #bf3d48;
}

.wg-market-status--published,
.wg-market-status--approved {
    border-color: #b9dfce;
    background: #edf9f3;
    color: #19794f;
}

.wg-market-status--pending {
    border-color: #b5daf1;
    background: #eef8fe;
    color: #0877ba;
}

.wg-market-status--rejected {
    border-color: #efc4c8;
    background: #fff2f3;
    color: #b53843;
}

.wg-market-review-note,
.wg-market-preview-notice {
    margin-bottom: 13px;
    padding: 11px 13px;
    border: 1px solid #efc4c8;
    border-radius: 5px;
    background: #fff5f6;
    color: #99414a;
    font-size: 12px;
}

.wg-access-card {
    display: block;
    padding: 23px;
}

.wg-access-card__heading span {
    color: var(--wg-market-primary);
    font-size: 11px;
    font-weight: 750;
}

.wg-access-card__form textarea {
    margin-bottom: 10px;
}

.wg-access-card__form > div {
    display: flex;
    gap: 9px;
    justify-content: flex-end;
}

/* Ficha pública */

.wg-market-detail-heading {
    max-width: 920px;
    margin: 0 auto 27px;
    text-align: center;
}

.wg-market-detail-heading__badges,
.wg-market-detail-heading__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.wg-market-detail-heading__badges > span {
    color: var(--wg-market-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.wg-market-detail-heading h1 {
    margin: 13px auto 12px;
    color: var(--wg-market-ink);
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 790;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.wg-market-detail-heading > p {
    max-width: 800px;
    margin: 0 auto 17px;
    color: var(--wg-market-muted);
    font-size: 16px;
    line-height: 1.65;
}

.wg-market-detail-heading__meta {
    color: #6c7d8e;
    font-size: 13px;
}

.wg-market-detail-heading__meta strong {
    color: var(--wg-market-ink);
    font-size: 20px;
}

.wg-market-gallery {
    display: grid;
    height: 470px;
    margin-bottom: 20px;
    grid-template-columns: 1.7fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 7px;
    overflow: hidden;
    border-radius: 6px;
    background: #e5eef4;
}

.wg-market-gallery figure {
    margin: 0;
    overflow: hidden;
}

.wg-market-gallery figure:first-child {
    grid-row: 1 / 3;
}

.wg-market-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wg-market-gallery.has-one-image {
    display: block;
}

.wg-market-gallery__empty {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    align-items: center;
    justify-content: center;
}

.wg-market-gallery__empty svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: #8abedc;
    stroke-width: 1.4;
}

.wg-market-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 18px;
    align-items: start;
}

.wg-market-detail-main {
    display: grid;
    gap: 14px;
}

.wg-market-content-card,
.wg-market-metrics,
.wg-market-access-box {
    padding: 25px;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(20, 55, 82, .04);
}

.wg-market-content-card h2,
.wg-market-metrics h2,
.wg-market-access-box h2 {
    margin: 0 0 12px;
    color: var(--wg-market-ink);
    font-size: 21px;
    font-weight: 760;
}

.wg-market-rich-text {
    color: #536477;
    font-size: 14px;
    line-height: 1.75;
}

.wg-market-detail-aside {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 14px;
}

.wg-market-metrics dl,
.wg-market-sensitive-card dl {
    margin: 0;
}

.wg-market-metrics dl > div,
.wg-market-sensitive-card dl > div {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    justify-content: space-between;
    border-bottom: 1px solid #e7edf2;
}

.wg-market-metrics dl > div:last-child,
.wg-market-sensitive-card dl > div:last-child {
    border-bottom: 0;
}

.wg-market-metrics dt,
.wg-market-sensitive-card dt {
    color: #728294;
    font-size: 12px;
    font-weight: 600;
}

.wg-market-metrics dd,
.wg-market-sensitive-card dd {
    margin: 0;
    color: var(--wg-market-ink);
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.wg-market-access-box {
    text-align: center;
}

.wg-market-access-box > span {
    margin-bottom: 13px;
}

.wg-market-access-box p {
    margin: 0 0 15px;
    color: var(--wg-market-muted);
    font-size: 13px;
    line-height: 1.6;
}

.wg-market-access-box textarea {
    margin-bottom: 10px;
}

.wg-market-sensitive-card__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e3f4fd;
    color: var(--wg-market-primary);
}

.wg-market-sensitive-card__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

@media (max-width: 1199.98px) {
    .wg-market-filters {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }

    .wg-market-filters .wg-business-btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .wg-business-types,
    .wg-business-visibility-grid,
    .wg-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wg-business-type-card {
        min-height: 0;
    }

    .wg-business-type-card > p {
        min-height: 0;
        margin-bottom: 18px;
    }

    .wg-business-calculator {
        max-width: 720px;
        grid-template-columns: 1fr;
    }

    .wg-business-calculator__result {
        min-height: 210px;
        border-top: 1px solid #cce8f8;
        border-left: 0;
    }

    .wg-market-detail-grid {
        grid-template-columns: 1fr;
    }

    .wg-market-detail-aside {
        position: static;
    }

    .wg-market-gallery {
        height: 390px;
    }
}

@media (max-width: 767.98px) {
    .wg-business-marketplace-page .wg-business-shell {
        width: calc(100% - 24px);
    }

    .wg-business-v2 .wg-business-hero {
        padding: 52px 0 48px;
    }

    .wg-business-v2 .wg-business-hero h1 {
        font-size: 36px;
    }

    .wg-business-v2 .wg-business-hero p {
        font-size: 15px;
    }

    .wg-business-trustline {
        gap: 11px;
        flex-direction: column;
        align-items: center;
    }

    .wg-business-section,
    .wg-market-catalog {
        padding: 50px 0;
    }

    .wg-business-types,
    .wg-business-visibility-grid,
    .wg-market-grid {
        grid-template-columns: 1fr;
    }

    .wg-business-visibility-grid article {
        min-height: 0;
    }

    .wg-market-filters {
        grid-template-columns: 1fr;
    }

    .wg-market-card__image {
        height: 230px;
    }

    .wg-business-calculator__input,
    .wg-business-calculator__result,
    .wg-business-closing__card {
        padding: 24px 18px;
    }

    .wg-business-closing {
        padding-bottom: 42px;
    }

    .wg-buyer-auth,
    .wg-buyer-profile-page,
    .wg-market-form-page,
    .wg-market-account-page,
    .wg-market-detail-page {
        padding: 30px 0 42px;
    }

    .wg-buyer-auth__intro ul,
    .wg-market-privacy-options {
        grid-template-columns: 1fr;
    }

    .wg-buyer-auth__intro li {
        min-height: 0;
    }

    .wg-buyer-form-card,
    .wg-buyer-form-section__body,
    .wg-market-content-card,
    .wg-market-metrics,
    .wg-market-access-box {
        padding: 22px 18px;
    }

    .wg-business-form-grid,
    .wg-business-choice-grid,
    .wg-business-upload-grid,
    .wg-market-existing-images {
        grid-template-columns: 1fr;
    }

    .wg-buyer-progress > div {
        gap: 5px;
        padding: 11px 6px;
        flex-direction: column;
        text-align: center;
    }

    .wg-buyer-state-card {
        flex-direction: column;
    }

    .wg-market-account-heading,
    .wg-seller-listing {
        display: block;
    }

    .wg-market-account-heading {
        text-align: center;
    }

    .wg-market-account-heading .wg-business-btn {
        margin-top: 16px;
    }

    .wg-seller-listing__image {
        height: 210px;
    }

    .wg-seller-listing__footer {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .wg-market-gallery {
        display: block;
        height: 300px;
    }

    .wg-market-gallery figure:not(:first-child) {
        display: none;
    }

    .wg-market-gallery figure:first-child {
        height: 100%;
    }

    .wg-market-detail-heading h1 {
        font-size: 35px;
    }
}

@media (max-width: 479.98px) {
    .wg-business-actions,
    .wg-market-form-actions,
    .wg-access-card__form > div {
        width: 100%;
        flex-direction: column;
    }

    .wg-business-actions .wg-business-btn,
    .wg-market-form-actions .wg-business-btn,
    .wg-access-card__form .wg-business-btn {
        width: 100%;
    }

    .wg-market-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   FASE 3 · NEGOCIACIONES
   ========================================================= */

.wg-negotiations-page,
.wg-negotiation-room-page {
    padding: 54px 0 80px;
}

.wg-negotiation-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.wg-negotiation-row {
    display: grid;
    min-width: 0;
    padding: 14px;
    grid-template-columns: 76px minmax(0, 1fr) 180px 170px;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--wg-market-ink);
    box-shadow: 0 8px 24px rgba(25, 55, 85, .05);
    transition: border-color .2s ease, transform .2s ease;
}

.wg-negotiation-row:hover {
    border-color: rgba(4, 140, 226, .55);
    color: var(--wg-market-ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.wg-negotiation-row__image {
    display: flex;
    width: 76px;
    height: 62px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
    background: var(--wg-market-soft);
}

.wg-negotiation-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wg-negotiation-row__image svg {
    width: 26px;
    fill: none;
    stroke: var(--wg-market-primary);
    stroke-width: 1.7;
}

.wg-negotiation-row__content,
.wg-negotiation-row__offer,
.wg-negotiation-row__status {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.wg-negotiation-row__content strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wg-negotiation-row__content small,
.wg-negotiation-row__offer small {
    margin-top: 5px;
    color: var(--wg-market-muted);
    font-size: 13px;
}

.wg-negotiation-row__offer strong {
    margin-top: 2px;
    color: var(--wg-market-primary-dark);
    font-size: 17px;
}

.wg-negotiation-row__status {
    gap: 8px;
    align-items: flex-end;
}

.wg-negotiation-row__status b,
.wg-offer-history b {
    padding: 6px 9px;
    border-radius: 4px;
    background: #edf3f7;
    color: #536476;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.wg-negotiation-row__status b.is-offer_accepted,
.wg-offer-history b.is-accepted {
    background: #e7f7ef;
    color: #14804a;
}

.wg-negotiation-row__status em {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wg-market-primary);
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.wg-negotiation-room-heading {
    display: flex;
    margin: 22px 0 24px;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.wg-negotiation-room-heading h1 {
    margin: 0;
    color: var(--wg-market-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.wg-negotiation-room-heading p {
    margin: 7px 0 0;
    color: var(--wg-market-muted);
    font-size: 15px;
}

.wg-negotiation-agreement {
    display: grid;
    margin-bottom: 20px;
    padding: 20px 22px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid #bfe8d1;
    border-radius: 6px;
    background: #f2fbf6;
}

.wg-negotiation-agreement > svg {
    width: 46px;
    fill: none;
    stroke: #14804a;
    stroke-width: 1.8;
}

.wg-negotiation-agreement span {
    color: #14804a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wg-negotiation-agreement h2 {
    margin: 3px 0;
    color: #116b40;
    font-size: 25px;
}

.wg-negotiation-agreement p {
    margin: 0;
    color: #4f6e5f;
    font-size: 13px;
}

.wg-negotiation-room-grid {
    display: grid;
    grid-template-columns: minmax(340px, .8fr) minmax(480px, 1.2fr);
    gap: 20px;
    align-items: start;
}

.wg-negotiation-offers,
.wg-negotiation-chat {
    overflow: hidden;
    border: 1px solid var(--wg-market-line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(25, 55, 85, .05);
}

.wg-negotiation-section-heading {
    display: flex;
    min-height: 66px;
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wg-market-line);
}

.wg-negotiation-section-heading h2 {
    margin: 0;
    color: var(--wg-market-ink);
    font-size: 19px;
    font-weight: 800;
}

.wg-negotiation-section-heading span {
    color: var(--wg-market-muted);
    font-size: 12px;
}

.wg-current-offer,
.wg-counteroffer-form {
    margin: 18px;
    padding: 18px;
    border: 1px solid #cce6f7;
    border-radius: 5px;
    background: #f5fbff;
}

.wg-current-offer > span {
    display: block;
    color: var(--wg-market-muted);
    font-size: 13px;
}

.wg-current-offer > strong {
    display: block;
    margin: 5px 0;
    color: var(--wg-market-primary-dark);
    font-size: 30px;
    letter-spacing: -.025em;
}

.wg-current-offer > p {
    margin: 10px 0 0;
    color: #4d6074;
    font-size: 14px;
    line-height: 1.6;
}

.wg-current-offer__waiting {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d7e9f4;
    color: var(--wg-market-muted);
    font-size: 13px;
}

.wg-current-offer__actions {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.wg-current-offer__actions form {
    flex: 1;
}

.wg-current-offer__actions .wg-business-btn {
    width: 100%;
}

.wg-link-danger {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c23838;
    font-size: 13px;
    font-weight: 700;
}

.wg-counteroffer-form h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
}

.wg-counteroffer-form label,
.wg-market-negotiate-box label {
    display: block;
    margin-bottom: 13px;
    color: var(--wg-market-ink);
    font-size: 13px;
    font-weight: 700;
}

.wg-counteroffer-form input,
.wg-counteroffer-form textarea,
.wg-market-negotiate-box input,
.wg-market-negotiate-box textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #cbd9e5;
    border-radius: 5px;
    background: #ffffff;
    color: var(--wg-market-ink);
    font: inherit;
    font-weight: 500;
}

.wg-counteroffer-form input:focus,
.wg-counteroffer-form textarea:focus,
.wg-market-negotiate-box input:focus,
.wg-market-negotiate-box textarea:focus {
    border-color: var(--wg-market-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .1);
}

.wg-offer-history {
    border-top: 1px solid var(--wg-market-line);
}

.wg-offer-history article {
    display: flex;
    padding: 15px 19px;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f6;
}

.wg-offer-history article:last-child {
    border-bottom: 0;
}

.wg-offer-history article > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.wg-offer-history article strong {
    font-size: 16px;
}

.wg-offer-history article span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--wg-market-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wg-offer-history b.is-rejected,
.wg-offer-history b.is-withdrawn {
    background: #fff0f0;
    color: #b33b3b;
}

.wg-negotiation-chat__messages {
    height: 540px;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.wg-negotiation-chat__messages .chat-coversation {
    max-width: 82%;
}

.wg-negotiation-chat__composer {
    padding: 14px;
    border-top: 1px solid var(--wg-market-line);
    background: #ffffff;
}

.wg-negotiation-chat__composer textarea {
    width: 100%;
    min-height: 74px;
    padding: 12px;
    resize: vertical;
    border: 1px solid #cbd9e5;
    border-radius: 5px;
    color: var(--wg-market-ink);
    font-size: 14px;
}

.wg-negotiation-chat__composer textarea:focus {
    border-color: var(--wg-market-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .1);
}

.wg-negotiation-chat__composer > div {
    display: flex;
    margin-top: 10px;
    gap: 9px;
    justify-content: flex-end;
}

.wg-market-negotiate-box {
    padding: 21px;
    border: 1px solid #cce6f7;
    border-radius: 6px;
    background: #f5fbff;
    text-align: center;
}

.wg-market-negotiate-box > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--wg-market-primary);
}

.wg-market-negotiate-box > span svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.wg-market-negotiate-box h2 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 800;
}

.wg-market-negotiate-box p {
    margin: 0 0 15px;
    color: var(--wg-market-muted);
    font-size: 13px;
    line-height: 1.55;
}

.wg-market-negotiate-box form {
    margin-top: 15px;
    text-align: left;
}

.wg-market-negotiate-box form .wg-business-btn {
    width: 100%;
}

@media (max-width: 991.98px) {
    .wg-negotiation-row {
        grid-template-columns: 68px minmax(0, 1fr) 150px;
    }

    .wg-negotiation-row__status {
        display: none;
    }

    .wg-negotiation-room-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .wg-negotiations-page,
    .wg-negotiation-room-page {
        padding: 34px 0 56px;
    }

    .wg-negotiation-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .wg-negotiation-row__image {
        width: 58px;
        height: 54px;
    }

    .wg-negotiation-row__offer {
        grid-column: 2;
    }

    .wg-negotiation-room-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wg-negotiation-room-heading .wg-business-btn {
        width: 100%;
    }

    .wg-negotiation-agreement {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wg-negotiation-agreement > svg {
        margin: 0 auto;
    }

    .wg-negotiation-chat__messages {
        height: 430px;
        padding: 14px;
    }
}

@media (max-width: 479.98px) {
    .wg-current-offer__actions,
    .wg-negotiation-chat__composer > div {
        flex-direction: column;
    }

    .wg-current-offer__actions .wg-business-btn,
    .wg-negotiation-chat__composer .wg-business-btn {
        width: 100%;
    }
}

/* Mercado de negocios - Fase 5A: financiacion */
.wg-transaction-page .wg-business-backlink {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

.wg-transaction-heading,
.wg-transaction-ready,
.wg-transaction-funded,
.wg-transaction-payment-pending,
.wg-transaction-progress-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

.wg-transaction-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

.wg-transaction-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wg-transaction-status.is-payment_pending {
    background: #fff7e8;
    border-color: #f1d497;
    color: #95670c;
}

.wg-transaction-status.is-funded {
    background: #e7f8ef;
    border-color: #aee1c3;
    color: #117442;
}

.wg-transaction-funded,
.wg-transaction-payment-pending {
    align-items: center;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
}

.wg-transaction-funded {
    background: #e8f8ef;
    border: 1px solid #b4e2c7;
}

.wg-transaction-payment-pending {
    background: #fff8eb;
    border: 1px solid #efd7a3;
}

.wg-transaction-funded svg,
.wg-transaction-payment-pending svg,
.wg-payment-waiting svg {
    fill: none;
    flex: 0 0 auto;
    height: 42px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 42px;
}

.wg-transaction-funded svg {
    stroke: #16834a;
}

.wg-transaction-payment-pending svg,
.wg-payment-waiting svg {
    stroke: #b58018;
}

.wg-transaction-funded span {
    color: #26845a;
    display: block;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.wg-transaction-funded h2,
.wg-transaction-payment-pending h2 {
    color: #155c39;
    font-size: 20px;
    margin: 0 0 4px;
}

.wg-transaction-payment-pending h2 {
    color: #76591a;
}

.wg-transaction-funded p,
.wg-transaction-payment-pending p {
    color: #47715d;
    line-height: 1.6;
    margin: 0;
}

.wg-transaction-payment-pending p {
    color: #725f36;
}

.wg-funded-summary {
    align-items: center;
    background: #f1faf5;
    border: 1px solid #c6e8d4;
    border-radius: 7px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    padding: 17px;
}

.wg-funded-summary__icon {
    align-items: center;
    background: #16834a;
    border-radius: 50%;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.wg-funded-summary__icon svg {
    fill: none;
    height: 22px;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 22px;
}

.wg-funded-summary span,
.wg-payment-resume span {
    color: #5d806d;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wg-funded-summary h3,
.wg-payment-resume h3,
.wg-payment-unavailable h3,
.wg-payment-waiting h3 {
    color: #1e3c2d;
    font-size: 17px;
    margin: 2px 0 3px;
}

.wg-funded-summary p,
.wg-payment-resume p,
.wg-payment-unavailable p,
.wg-payment-waiting p {
    color: #67798a;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.wg-funded-summary > strong {
    color: #436957;
    font-size: 12px;
    font-weight: 700;
}

.wg-payment-options {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wg-payment-options > label {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6ee;
    border-radius: 7px;
    cursor: pointer;
    display: grid;
    gap: 11px;
    grid-template-columns: auto auto 1fr;
    margin: 0;
    padding: 16px;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wg-payment-options > label:hover,
.wg-payment-options > label:has(input:checked) {
    border-color: #048ce2;
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .09);
}

.wg-payment-options > label.is-disabled {
    background: #f7f9fb;
    cursor: not-allowed;
    opacity: .65;
}

.wg-payment-options input {
    accent-color: #048ce2;
    margin: 0;
}

.wg-payment-option__icon {
    align-items: center;
    border-radius: 6px;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.wg-payment-option__icon.is-paypal {
    background: #e9f1fb;
    color: #003087;
}

.wg-payment-option__icon.is-paypal b {
    font-size: 22px;
    font-style: italic;
    font-weight: 850;
}

.wg-payment-option__icon.is-mp {
    background: #e8f6fd;
}

.wg-payment-option__icon.is-mp svg {
    fill: none;
    height: 25px;
    stroke: #0586ca;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 25px;
}

.wg-payment-options label > span:nth-of-type(2) {
    display: grid;
    gap: 2px;
}

.wg-payment-options strong {
    color: #20374b;
    font-size: 14px;
}

.wg-payment-options small {
    color: #708194;
    font-size: 11px;
}

.wg-payment-options label > i {
    color: #738397;
    font-size: 10px;
    font-style: normal;
    grid-column: 2 / 4;
    padding-left: 49px;
}

.wg-payment-consent {
    align-items: flex-start;
    background: #f7f9fb;
    border-radius: 6px;
    color: #5f7081;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.55;
    margin: 15px 0;
    padding: 12px;
}

.wg-payment-consent input {
    accent-color: #048ce2;
    margin-top: 3px;
}

.wg-payment-submit,
.wg-payment-resume {
    align-items: center;
    background: #edf7fd;
    border: 1px solid #cbe6f7;
    border-radius: 7px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 15px 17px;
}

.wg-payment-submit > div {
    display: grid;
    gap: 2px;
}

.wg-payment-submit span {
    color: #687a8c;
    font-size: 11px;
}

.wg-payment-submit strong {
    color: #0479c4;
    font-size: 21px;
}

.wg-payment-unavailable,
.wg-payment-waiting {
    background: #fffaf0;
    border: 1px solid #eedcb8;
    border-radius: 7px;
    padding: 16px;
}

.wg-payment-waiting {
    align-items: center;
    display: flex;
    gap: 14px;
}

.wg-payment-waiting svg {
    height: 36px;
    width: 36px;
}

.wg-payment-history {
    border-top: 1px solid #e7edf2;
    margin-top: 20px;
    padding-top: 16px;
}

.wg-payment-history h3 {
    color: #344b5f;
    font-size: 13px;
    margin: 0 0 9px;
}

.wg-payment-history > div {
    align-items: center;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 6px 0;
}

.wg-payment-history > div span {
    color: #68798a;
}

.wg-payment-history > div b {
    background: #edf2f6;
    border-radius: 4px;
    color: #647486;
    font-size: 10px;
    padding: 4px 7px;
}

.wg-payment-history > div b.is-approved {
    background: #e6f8ee;
    color: #137442;
}

.wg-payment-history > div b.is-failed,
.wg-payment-history > div b.is-cancelled,
.wg-payment-history > div b.is-duplicate_payment {
    background: #fff0f0;
    color: #b44848;
}

@media (max-width: 760px) {
    .wg-transaction-side {
        grid-template-columns: 1fr;
    }

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

    .wg-payment-submit,
    .wg-payment-resume,
    .wg-funded-summary {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .wg-payment-submit .wg-business-btn,
    .wg-payment-resume .wg-business-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Mercado de negocios - Fase 5B: entrega, inspeccion y disputas */
.wg-transaction-status.is-inspection,
.wg-transaction-status.is-settlement_pending {
    background: #edf7fd;
    border-color: #c3e3f7;
    color: #0879bf;
}

.wg-transaction-status.is-revision_requested {
    background: #fff7e8;
    border-color: #eed39b;
    color: #91620a;
}

.wg-transaction-status.is-disputed {
    background: #fff0f0;
    border-color: #edbcbc;
    color: #a93636;
}

.wg-transaction-status.is-completed {
    background: #e7f8ef;
    border-color: #afe0c3;
    color: #117442;
}

.wg-transaction-status.is-refunded,
.wg-transaction-status.is-partially_refunded {
    background: #f2f3f5;
    border-color: #d5d9df;
    color: #536273;
}

.wg-fulfillment-card label:not(.wg-payment-consent),
.wg-evidence-form label,
.wg-open-dispute label {
    color: #344b5f;
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
}

.wg-fulfillment-card input[type="text"],
.wg-fulfillment-card input[type="file"],
.wg-fulfillment-card select,
.wg-fulfillment-card textarea {
    background: #ffffff;
    border: 1px solid #d9e4ec;
    border-radius: 5px;
    color: #20374b;
    font: inherit;
    font-weight: 400;
    outline: none;
    padding: 11px 12px;
    width: 100%;
}

.wg-fulfillment-card input:focus,
.wg-fulfillment-card select:focus,
.wg-fulfillment-card textarea:focus {
    border-color: #048ce2;
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .09);
}

.wg-delivery-form,
.wg-evidence-form,
.wg-open-dispute form {
    display: grid;
    gap: 15px;
}

.wg-form-intro,
.wg-fulfillment-notice {
    background: #f2f8fc;
    border: 1px solid #d5e8f4;
    border-radius: 7px;
    padding: 16px;
}

.wg-form-intro h3,
.wg-fulfillment-notice h3 {
    color: #1d3b51;
    font-size: 17px;
    margin: 0 0 5px;
}

.wg-form-intro p,
.wg-fulfillment-notice p {
    color: #65788a;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.wg-delivery-items {
    display: grid;
    gap: 9px;
}

.wg-delivery-items > span {
    color: #344b5f;
    font-size: 12px;
    font-weight: 700;
}

.wg-delivery-items > div {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr);
}

.wg-delivery-record,
.wg-dispute-case,
.wg-settlement-summary {
    background: #f8fafc;
    border: 1px solid #dfe8ef;
    border-radius: 7px;
    margin-top: 17px;
    padding: 18px;
}

.wg-delivery-record > header,
.wg-dispute-case > header,
.wg-settlement-summary > div:first-child {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.wg-delivery-record header span,
.wg-dispute-case header span,
.wg-settlement-summary > div:first-child span {
    color: #6d7f91;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.wg-delivery-record h3,
.wg-dispute-case h3,
.wg-settlement-summary h3 {
    color: #20384c;
    font-size: 17px;
    margin: 2px 0 0;
}

.wg-delivery-record time,
.wg-dispute-case header > strong {
    color: #718194;
    font-size: 11px;
}

.wg-delivery-record > p,
.wg-dispute-case > p,
.wg-settlement-summary > p {
    color: #596c7f;
    line-height: 1.65;
    margin: 14px 0;
    white-space: pre-line;
}

.wg-delivery-record__items {
    display: grid;
    gap: 8px;
}

.wg-delivery-record__items > div {
    background: #ffffff;
    border: 1px solid #e2e9ef;
    border-radius: 5px;
    display: grid;
    gap: 3px;
    padding: 11px 12px;
}

.wg-delivery-record__items strong {
    color: #274158;
    font-size: 13px;
}

.wg-delivery-record__items span {
    color: #647688;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-line;
}

.wg-private-files {
    border-top: 1px solid #e2e9ef;
    display: grid;
    gap: 7px;
    margin-top: 15px;
    padding-top: 14px;
}

.wg-private-files > strong {
    color: #344b5f;
    font-size: 12px;
}

.wg-private-files a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe8ef;
    border-radius: 5px;
    color: #277db2;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    padding: 9px 11px;
}

.wg-private-files svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 20px;
}

.wg-private-files small {
    color: #7b8a99;
}

.wg-inspection-deadline,
.wg-buyer-response {
    background: #fff8ea;
    border: 1px solid #edd5a2;
    border-radius: 5px;
    display: grid;
    gap: 3px;
    margin-top: 14px;
    padding: 11px 12px;
}

.wg-inspection-deadline span,
.wg-inspection-deadline small,
.wg-buyer-response p {
    color: #775f31;
    font-size: 12px;
    margin: 0;
}

.wg-inspection-actions {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
}

.wg-inspection-actions > form {
    background: #ffffff;
    border: 1px solid #dfe8ef;
    border-radius: 7px;
    display: grid;
    gap: 12px;
    padding: 15px;
}

.wg-settlement-summary dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0 0;
}

.wg-settlement-summary dl > div {
    background: #ffffff;
    border: 1px solid #e1e8ee;
    border-radius: 5px;
    padding: 10px;
}

.wg-settlement-summary dt {
    color: #738296;
    font-size: 10px;
}

.wg-settlement-summary dd {
    color: #244158;
    font-size: 14px;
    font-weight: 750;
    margin: 3px 0 0;
}

.wg-evidence-list {
    display: grid;
    gap: 9px;
}

.wg-evidence-list article {
    background: #ffffff;
    border: 1px solid #e0e8ee;
    border-radius: 5px;
    padding: 12px;
}

.wg-evidence-list time {
    color: #82909e;
    float: right;
    font-size: 10px;
}

.wg-evidence-list p {
    color: #5d7082;
    font-size: 12px;
    line-height: 1.55;
    margin: 8px 0;
    white-space: pre-line;
}

.wg-evidence-list a {
    color: #0484d2;
    font-size: 12px;
}

.wg-evidence-form {
    border-top: 1px solid #e1e8ee;
    margin-top: 14px;
    padding-top: 14px;
}

.wg-open-dispute {
    border-top: 1px solid #e1e8ee;
    margin-top: 18px;
    padding-top: 14px;
}

.wg-open-dispute summary {
    color: #a34141;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

@media (max-width: 760px) {
    .wg-delivery-items > div,
    .wg-inspection-actions,
    .wg-settlement-summary dl {
        grid-template-columns: 1fr;
    }

    .wg-delivery-record > header,
    .wg-dispute-case > header,
    .wg-settlement-summary > div:first-child {
        display: grid;
    }

    .wg-private-files a {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wg-private-files small {
        grid-column: 2;
    }
}

/* Coherencia visual y navegación del Mercado de Negocios */
.wg-business-marketplace-page main,
.wg-business-marketplace-page .wg-business-module-nav {
    font-family: "Inter", Arial, sans-serif;
}

.wg-business-module-nav {
    background: #ffffff;
    border-bottom: 1px solid #dfe8ed;
    border-top: 1px solid #e7edf1;
    position: relative;
    z-index: 20;
}

.wg-business-module-nav__scroll {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: center;
    min-height: 58px;
}

.wg-business-module-nav a,
.wg-business-module-nav summary {
    border-bottom: 2px solid transparent;
    color: #587080;
    cursor: pointer;
    display: block;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 750;
    list-style: none;
    padding: 19px 12px 16px;
    white-space: nowrap;
}

.wg-business-module-nav summary::-webkit-details-marker {
    display: none;
}

.wg-business-module-nav a:hover,
.wg-business-module-nav a.is-active,
.wg-business-module-nav__more.is-active > summary,
.wg-business-module-nav__more[open] > summary {
    border-bottom-color: #048ce2;
    color: #047fc9;
}

.wg-business-module-nav__more {
    position: relative;
}

.wg-business-module-nav__more > div {
    background: #ffffff;
    border: 1px solid #dce7ed;
    border-radius: 5px;
    box-shadow: 0 14px 32px rgba(24, 54, 75, .13);
    display: grid;
    min-width: 190px;
    padding: 7px;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
}

.wg-business-module-nav__more > div a {
    border: 0;
    border-radius: 4px;
    padding: 10px 11px;
}

.wg-business-module-nav__more > div a:hover {
    background: #edf8fe;
}

.wg-business-module-nav__mobile-only {
    display: none !important;
}

/* Calculadora de comisión mediante control deslizante */
.wg-business-range-calculator {
    background: #ffffff;
    border: 1px solid #dce7ed;
    border-radius: 6px;
    box-shadow: 0 12px 34px rgba(22, 55, 78, .07);
    margin: 0 auto;
    max-width: 820px;
    overflow: hidden;
}

.wg-business-range-calculator__value {
    padding: 26px 28px 8px;
    text-align: center;
}

.wg-business-range-calculator__value > span {
    color: #607586;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.wg-business-range-calculator__value > strong {
    color: #20394b;
    font-size: 27px;
    letter-spacing: -.025em;
}

.wg-business-range-calculator__control {
    padding: 24px 36px 30px;
}

.wg-business-range-calculator__control input[type="range"] {
    --wg-range-progress: 10%;
    appearance: none;
    background: linear-gradient(
        to right,
        #048ce2 0,
        #048ce2 var(--wg-range-progress),
        #e4ebf0 var(--wg-range-progress),
        #e4ebf0 100%
    );
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    height: 9px;
    margin: 0;
    padding: 0;
    touch-action: pan-x;
    width: 100%;
}

.wg-business-range-calculator__control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #048ce2;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(4, 140, 226, .32);
    height: 25px;
    width: 25px;
}

.wg-business-range-calculator__control input[type="range"]::-moz-range-thumb {
    background: #048ce2;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(4, 140, 226, .32);
    height: 19px;
    width: 19px;
}

.wg-business-range-calculator__control input[type="range"]:focus-visible {
    outline: 3px solid rgba(4, 140, 226, .22);
    outline-offset: 7px;
}

.wg-business-range-calculator__scale {
    color: #788b99;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin-top: 15px;
}

.wg-business-range-calculator__result {
    background: #edf8fe;
    border-top: 1px solid #cce8f8;
    padding: 28px;
    text-align: center;
}

.wg-business-range-calculator__result > p {
    color: #526b7c;
    font-size: 14px;
    margin: 0;
}

.wg-business-range-calculator__result > p strong {
    color: #20394b;
}

.wg-business-range-calculator__rate {
    color: #048ce2;
    display: block;
    font-size: 46px;
    letter-spacing: -.045em;
    line-height: 1;
    margin: 11px 0 16px;
}

.wg-business-range-calculator__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
}

.wg-business-range-calculator__summary > span {
    color: #607586;
    font-size: 13px;
}

.wg-business-range-calculator__summary strong {
    color: #20394b;
}

/* Estado vacío de Cierres: evita el SVG sin tamaño que ocupaba la pantalla */
.wg-business-empty-state {
    background: #ffffff;
    border: 1px solid #dce7ed;
    border-radius: 6px;
    margin: 0 auto;
    max-width: 760px;
    padding: 54px 28px;
    text-align: center;
}

.wg-business-empty-state > svg {
    fill: none;
    height: 56px;
    stroke: #048ce2;
    stroke-width: 1.7;
    width: 56px;
}

.wg-business-empty-state > h2 {
    color: #20394b;
    font-size: 22px;
    font-weight: 750;
    margin: 18px 0 7px;
}

.wg-business-empty-state > p {
    color: #667b8a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 560px;
}

.wg-business-empty-state > .wg-business-btn,
.wg-market-empty > .wg-business-btn {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .wg-business-module-nav__scroll {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .wg-business-module-nav__more {
        display: none;
    }

    .wg-business-module-nav__mobile-only {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .wg-business-module-nav .wg-business-shell {
        width: calc(100% - 24px);
    }

    .wg-business-module-nav a,
    .wg-business-module-nav summary {
        padding-left: 9px;
        padding-right: 9px;
    }

    .wg-business-range-calculator__value {
        padding: 22px 18px 5px;
    }

    .wg-business-range-calculator__control {
        padding: 23px 20px 27px;
    }

    .wg-business-range-calculator__scale {
        font-size: 10px;
    }

    .wg-business-range-calculator__result {
        padding: 25px 18px;
    }

    .wg-business-range-calculator__summary {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .wg-business-empty-state {
        padding: 40px 20px;
    }
}
