/* =========================================================
   We Love Medellín · Encuentra tu parche
   ========================================================= */

.wlm-patch-page {
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 56, 92, 0.08), transparent 28%),
        linear-gradient(180deg, #fffaf7 0, #fff 520px);
}

.wlm-patch-main {
    padding-bottom: 70px;
}

.patch-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand, #ff385c);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Guest */
.patch-guest {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    align-items: center;
    gap: 72px;
    overflow: hidden;
    padding: 80px 0 100px;
}

.patch-guest-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.patch-guest-copy h1 {
    margin: 20px 0 0;
    color: var(--ink, #111);
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(58px, 7vw, 104px);
    line-height: 0.91;
    letter-spacing: -0.07em;
    font-weight: 850;
}

.patch-guest-copy h1 em {
    color: var(--brand, #ff385c);
    font-style: normal;
}

.patch-guest-copy > p {
    max-width: 660px;
    margin: 28px 0 0;
    color: var(--muted, #5f6673);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.58;
}

.patch-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.patch-guest-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 34px;
    color: #656b76;
    font-size: 13px;
    font-weight: 750;
}

.patch-guest-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.patch-guest-trust i {
    color: var(--brand, #ff385c);
}

.patch-guest-preview {
    position: relative;
    z-index: 2;
    min-height: 570px;
}

.patch-preview-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 80px rgba(31, 24, 28, 0.16);
    backdrop-filter: blur(18px);
}

.patch-preview-card-one {
    top: 52px;
    left: 6%;
    width: 330px;
    transform: rotate(-4deg);
}

.patch-preview-card-two {
    top: 240px;
    right: 2%;
    width: 350px;
    transform: rotate(4deg);
}

.patch-preview-card-three {
    bottom: 44px;
    left: 17%;
    width: 315px;
    transform: rotate(-1deg);
}

.patch-preview-photo {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #ff8096, #ff385c);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.patch-preview-card:nth-child(2) .patch-preview-photo {
    background: linear-gradient(145deg, #7c3aed, #4f46e5);
}

.patch-preview-card > i {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #111;
    color: #fff;
    font-size: 26px;
}

.patch-preview-card span,
.patch-preview-card small {
    display: block;
    color: var(--muted, #5f6673);
    font-size: 12px;
    font-weight: 700;
}

.patch-preview-card span {
    color: var(--brand, #ff385c);
    font-weight: 900;
}

.patch-preview-card strong {
    display: block;
    margin: 4px 0;
    color: #111;
    font-size: 20px;
}

.patch-guest-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.patch-guest-orb-one {
    width: 520px;
    height: 520px;
    right: 2%;
    top: 36px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 169, 182, 0.82), rgba(255, 56, 92, 0.18) 60%, transparent 70%);
}

.patch-guest-orb-two {
    width: 340px;
    height: 340px;
    right: 28%;
    bottom: 10px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
}

/* Authenticated app */
.patch-app {
    padding: 34px 0 0;
}

.patch-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 38px;
    border: 1px solid #efe9e5;
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 0, rgba(255, 56, 92, 0.1), transparent 34%),
        #fff;
    box-shadow: 0 18px 50px rgba(37, 29, 33, 0.07);
}

.patch-hero h1 {
    margin: 8px 0 0;
    color: #111;
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(38px, 4.2vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.patch-hero p {
    max-width: 710px;
    margin: 14px 0 0;
    color: var(--muted, #5f6673);
    font-size: 16px;
    line-height: 1.55;
}

.patch-hero-user {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border: 1px solid #ece8e5;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(27, 22, 25, 0.08);
}

.patch-hero-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #ff8096, #ff385c);
    color: #fff;
    font-weight: 900;
}

.patch-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patch-hero-user > div {
    min-width: 0;
    flex: 1;
}

.patch-hero-user small,
.patch-hero-user strong {
    display: block;
}

.patch-hero-user small {
    color: #9297a0;
    font-size: 11px;
    font-weight: 750;
}

.patch-hero-user strong {
    margin-top: 2px;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patch-hero-user button,
.patch-round-action {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #e9e5e2;
    border-radius: 15px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.patch-hero-user button:hover,
.patch-round-action:hover {
    border-color: var(--brand, #ff385c);
    color: var(--brand, #ff385c);
}

.patch-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.patch-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

.patch-nav {
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 1px solid #ebe7e4;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(32, 25, 28, 0.06);
}

.patch-nav button {
    position: relative;
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 19px;
    background: transparent;
    color: #464a52;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.patch-nav button:hover {
    background: #faf7f5;
}

.patch-nav button.is-active {
    background: #fff0f3;
    color: var(--brand-dark, #d91f47);
}

.patch-nav button > i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f4f3f2;
    color: #5b5e65;
}

.patch-nav button.is-active > i {
    background: var(--brand, #ff385c);
    color: #fff;
}

.patch-nav button span {
    min-width: 0;
    display: block;
}

.patch-nav button strong,
.patch-nav button small {
    display: block;
}

.patch-nav button strong {
    font-size: 13.5px;
    font-weight: 850;
}

.patch-nav button small {
    margin-top: 2px;
    overflow: hidden;
    color: #9699a0;
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patch-nav button b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: var(--brand, #ff385c);
    color: #fff;
    font-size: 10px;
}

.patch-sidebar-card {
    padding: 20px;
    border-radius: 24px;
    background: #141316;
    color: #fff;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.16);
}

.patch-sidebar-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(255, 56, 92, 0.18);
    color: #ff6b84;
}

.patch-sidebar-card strong {
    display: block;
    font-size: 15px;
}

.patch-sidebar-card p {
    margin: 8px 0 18px;
    color: #b7b5bb;
    font-size: 12px;
    line-height: 1.55;
}

.patch-sidebar-card button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.patch-content {
    min-width: 0;
}

.patch-view {
    animation: patch-view-in 0.25s ease;
}

@keyframes patch-view-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.patch-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.patch-section-head span {
    color: var(--brand, #ff385c);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.patch-section-head h2 {
    margin: 7px 0 0;
    color: #111;
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.patch-section-head p {
    margin: 9px 0 0;
    color: var(--muted, #5f6673);
    font-size: 14px;
    line-height: 1.55;
}

.patch-discovery-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 12px;
}

.patch-search {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid #e8e4e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(35, 28, 31, 0.04);
}

.patch-search > i {
    color: #9b9da4;
}

.patch-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
}

.patch-search button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #f2f1f0;
    cursor: pointer;
}

.patch-discovery-tools select,
.patch-modal-card select,
.patch-modal-card input,
.patch-modal-card textarea {
    width: 100%;
    border: 1px solid #e5e1de;
    border-radius: 16px;
    background: #fff;
    color: #171717;
    outline: none;
}

.patch-discovery-tools select {
    min-height: 56px;
    padding: 0 14px;
}

.patch-discovery-tools select:focus,
.patch-modal-card select:focus,
.patch-modal-card input:focus,
.patch-modal-card textarea:focus {
    border-color: var(--brand, #ff385c);
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.1);
}

.patch-interest-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 2px 6px;
    scrollbar-width: none;
}

.patch-interest-strip::-webkit-scrollbar { display: none; }

.patch-interest-strip button {
    min-width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #e8e4e1;
    border-radius: 999px;
    background: #fff;
    color: #5a5d64;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.patch-interest-strip button:hover,
.patch-interest-strip button.is-active {
    border-color: var(--brand, #ff385c);
    background: #fff0f3;
    color: var(--brand-dark, #d91f47);
}

.patch-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 16px 0 14px;
    color: #737780;
    font-size: 12px;
    font-weight: 750;
}

.patch-results-meta button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand, #ff385c);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

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

.patch-person-grid.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.patch-person-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ebe7e4;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(37, 29, 33, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.patch-person-card:hover {
    transform: translateY(-3px);
    border-color: #ddd5d1;
    box-shadow: 0 22px 54px rgba(37, 29, 33, 0.1);
}

.patch-person-media {
    position: relative;
    min-height: 176px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 23%),
        linear-gradient(145deg, #fff0f3, #f4efff);
}

.patch-person-avatar {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 34px;
    background: linear-gradient(145deg, #ff8096, #ff385c);
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(31, 24, 28, 0.16);
}

.patch-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patch-score {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.88);
    color: #fff;
    backdrop-filter: blur(8px);
}

.patch-score strong { font-size: 13px; }
.patch-score small { color: #d7d5da; font-size: 9px; }

.patch-verified {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand, #ff385c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.patch-person-copy {
    flex: 1;
    padding: 18px 18px 14px;
}

.patch-person-name {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.patch-person-name h3 {
    margin: 0;
    color: #111;
    font-size: 19px;
    letter-spacing: -0.025em;
}

.patch-person-name a {
    display: inline-block;
    margin-top: 2px;
    color: #969aa2;
    font-size: 11px;
    font-weight: 750;
}

.patch-person-name > span {
    min-width: max-content;
    color: #858991;
    font-size: 10px;
    font-weight: 750;
}

.patch-person-headline {
    min-height: 42px;
    margin: 12px 0 0;
    color: #555963;
    font-size: 12px;
    line-height: 1.55;
}

.patch-person-goal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: #33363d;
    font-size: 10.5px;
    font-weight: 850;
}

.patch-person-goal i { color: var(--brand, #ff385c); }

.patch-shared-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.patch-shared-interests span,
.patch-connection-card > div > div span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f6f4f3;
    color: #62666e;
    font-size: 9.5px;
    font-weight: 750;
}

.patch-common-event {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    padding: 10px;
    border: 1px solid #f1e4e7;
    border-radius: 15px;
    background: #fff8fa;
}

.patch-common-event > i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--brand, #ff385c);
    color: #fff;
}

.patch-common-event span { min-width: 0; }
.patch-common-event small,
.patch-common-event strong,
.patch-common-event em { display: block; }
.patch-common-event small { color: var(--brand, #ff385c); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.patch-common-event strong { margin-top: 1px; overflow: hidden; color: #222; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.patch-common-event em { margin-top: 2px; color: #8e9198; font-size: 9px; font-style: normal; }

.patch-reasons {
    display: grid;
    gap: 5px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.patch-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #72767f;
    font-size: 9.5px;
    line-height: 1.35;
}

.patch-reasons i {
    margin-top: 2px;
    color: #16a34a;
    font-size: 8px;
}

.patch-person-card > footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 0 18px 18px;
}

.patch-person-primary,
.patch-person-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--brand, #ff385c);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.patch-person-primary:hover { background: var(--brand-dark, #d91f47); }
.patch-person-primary.is-pending,
.patch-person-primary:disabled { background: #f1efee; color: #858991; cursor: default; }

.patch-person-secondary {
    border: 1px solid #e7e3e0;
    background: #fff;
    color: #44474e;
}

.patch-loading-card {
    height: 510px;
    border-radius: 28px;
    background: linear-gradient(90deg, #f3f1f0 25%, #faf9f8 50%, #f3f1f0 75%);
    background-size: 200% 100%;
    animation: patch-shimmer 1.4s infinite;
}

@keyframes patch-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Empty and loaders */
.patch-empty {
    grid-column: 1 / -1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 1px dashed #ddd7d3;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.patch-empty > i {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #fff0f3;
    color: var(--brand, #ff385c);
    font-size: 22px;
}

.patch-empty h3 { margin: 18px 0 0; color: #111; font-size: 20px; }
.patch-empty p { max-width: 480px; margin: 8px 0 20px; color: #777b83; font-size: 13px; line-height: 1.5; }
.patch-empty.is-error > i { background: #fff4e5; color: #d97706; }

.patch-inline-loader {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #858991;
    font-size: 13px;
}

/* Requests */
.patch-subtabs {
    display: inline-flex;
    gap: 5px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid #e9e5e2;
    border-radius: 999px;
    background: #fff;
}

.patch-subtabs button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #666a72;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.patch-subtabs button.is-active { background: #111; color: #fff; }
.patch-subtabs b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 9px; }

.patch-request-list {
    display: grid;
    gap: 12px;
}

.patch-request-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px;
    border: 1px solid #e9e5e2;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(35, 28, 31, 0.045);
}

.patch-request-avatar,
.patch-connection-avatar,
.patch-invite-avatar,
.patch-mini-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #ff8096, #ff385c);
    color: #fff;
    font-weight: 900;
}

.patch-request-avatar { width: 62px; height: 62px; border-radius: 20px; }
.patch-request-avatar img,
.patch-connection-avatar img,
.patch-invite-avatar img,
.patch-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.patch-request-copy h3 { display: inline; margin: 0; color: #111; font-size: 16px; }
.patch-request-copy h3 i { color: var(--brand, #ff385c); font-size: 12px; }
.patch-request-copy > div > a { margin-left: 7px; color: #9699a0; font-size: 11px; font-weight: 700; }
.patch-request-copy > p { margin: 7px 0; color: #666a72; font-size: 12px; line-height: 1.45; }

.patch-request-context {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-dark, #d91f47);
    font-size: 10.5px;
    font-weight: 850;
}

.patch-request-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.patch-request-actions .btn { min-height: 40px; padding: 0 14px; font-size: 11px; }
.patch-request-actions > span { color: #858991; font-size: 11px; font-weight: 750; }
.patch-text-danger { border: 0; background: transparent; color: #d33b4f; font: inherit; font-size: 10.5px; font-weight: 850; cursor: pointer; }

/* Connections */
.patch-connection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.patch-connection-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid #e9e5e2;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(35, 28, 31, 0.05);
}

.patch-connection-avatar { width: 78px; height: 78px; border-radius: 24px; font-size: 21px; }
.patch-connection-card h3 { display: inline; margin: 0; color: #111; font-size: 18px; }
.patch-connection-card h3 i { color: var(--brand, #ff385c); font-size: 12px; }
.patch-connection-card a:not(.btn) { margin-left: 6px; color: #979aa1; font-size: 10px; }
.patch-connection-card p { margin: 7px 0 10px; color: #666a72; font-size: 11px; line-height: 1.45; }
.patch-connection-card > div > div { display: flex; flex-wrap: wrap; gap: 5px; }
.patch-connection-card footer { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 5px; }
.patch-connection-card footer .btn { flex: 1; min-height: 42px; }
.patch-connection-card footer button { width: 42px; border: 1px solid #e6e2df; border-radius: 14px; background: #fff; cursor: pointer; }

/* Group patches */
.patch-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.patch-group-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #e9e5e2;
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(35, 28, 31, 0.05);
}

.patch-group-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.patch-group-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #111;
    color: #fff;
}

.patch-group-card > header > span {
    color: #777b83;
    font-size: 10px;
    font-weight: 850;
}

.patch-group-card h3 { margin: 17px 0 0; color: #111; font-size: 19px; letter-spacing: -0.025em; }
.patch-group-card > p { min-height: 54px; margin: 7px 0 0; color: #666a72; font-size: 11px; line-height: 1.55; }

.patch-group-context {
    margin-top: 14px;
    padding: 10px;
    border-radius: 15px;
    background: #faf7f5;
}

.patch-group-context a,
.patch-group-context > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b3e45;
    font-size: 10.5px;
    font-weight: 800;
}

.patch-group-context i { color: var(--brand, #ff385c); }
.patch-group-context small { display: block; margin-left: auto; color: #95989f; font-size: 8.5px; }

.patch-group-owner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.patch-mini-avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 10px; }
.patch-group-owner small,
.patch-group-owner strong { display: block; }
.patch-group-owner small { color: #989ba2; font-size: 8px; }
.patch-group-owner strong { color: #44474e; font-size: 10.5px; }
.patch-group-card > footer { margin-top: auto; padding-top: 16px; }
.patch-group-card > footer .btn { width: 100%; min-height: 43px; }

/* Modals */
body.patch-modal-open { overflow: hidden; }
.patch-modal[hidden] { display: none !important; }

.patch-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
}

.patch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 12, 15, 0.58);
    backdrop-filter: blur(8px);
    animation: patch-modal-fade 0.18s ease;
}

.patch-modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(860px, calc(100vh - 36px));
    overflow-y: auto;
    padding: 24px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
    animation: patch-modal-rise 0.24s cubic-bezier(.22,.9,.3,1);
}

.patch-preferences-card { width: min(760px, 100%); }
.patch-invite-card { width: min(540px, 100%); }

@keyframes patch-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes patch-modal-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

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

.patch-modal-card > header span {
    color: var(--brand, #ff385c);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patch-modal-card > header h2 {
    margin: 5px 0 0;
    color: #111;
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: 29px;
    letter-spacing: -0.045em;
}

.patch-modal-card > header > button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid #e7e3e0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.patch-modal-card form {
    display: grid;
    gap: 16px;
}

.patch-modal-card label > span,
.patch-interest-picker > div:first-child > span {
    display: block;
    margin-bottom: 7px;
    color: #3c3f46;
    font-size: 11px;
    font-weight: 850;
}

.patch-modal-card input,
.patch-modal-card select {
    min-height: 50px;
    padding: 0 13px;
}

.patch-modal-card textarea {
    min-height: 110px;
    padding: 13px;
    resize: vertical;
}

.patch-form-grid,
.patch-privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.patch-interest-picker {
    padding: 16px;
    border: 1px solid #e9e5e2;
    border-radius: 20px;
    background: #fcfbfa;
}

.patch-interest-picker > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.patch-interest-picker small { color: #92959d; font-size: 9.5px; }

.patch-interest-category + .patch-interest-category { margin-top: 13px; }
.patch-interest-category > strong { display: block; margin-bottom: 7px; color: #92959d; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.patch-interest-category > div { display: flex; flex-wrap: wrap; gap: 6px; }

.patch-interest-category button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #e5e1de;
    border-radius: 999px;
    background: #fff;
    color: #5c6068;
    font: inherit;
    font-size: 9.5px;
    font-weight: 750;
    cursor: pointer;
}

.patch-interest-category button.is-active {
    border-color: var(--brand, #ff385c);
    background: #fff0f3;
    color: var(--brand-dark, #d91f47);
}

.patch-toggle-list {
    display: grid;
    gap: 8px;
}

.patch-toggle-list label {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e9e5e2;
    border-radius: 16px;
    cursor: pointer;
}

.patch-toggle-list input {
    width: 20px;
    height: 20px;
    min-height: 0;
    accent-color: var(--brand, #ff385c);
}

.patch-toggle-list label > span { margin: 0; }
.patch-toggle-list strong,
.patch-toggle-list small { display: block; }
.patch-toggle-list strong { color: #33363d; font-size: 11px; }
.patch-toggle-list small { margin-top: 2px; color: #95989f; font-size: 9.5px; font-weight: 600; }

.patch-modal-card form > footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}

.patch-modal-card form > footer > p {
    flex: 1;
    margin: 0;
    color: #858991;
    font-size: 10px;
}

.patch-invite-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 19px;
    background: #faf7f5;
}

.patch-invite-avatar { width: 58px; height: 58px; border-radius: 18px; }
.patch-invite-person small,
.patch-invite-person strong,
.patch-invite-person span { display: block; }
.patch-invite-person small { color: #9699a0; font-size: 9px; }
.patch-invite-person strong { margin-top: 2px; color: #111; font-size: 16px; }
.patch-invite-person span { color: #858991; font-size: 10px; }

.patch-context-preview {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #f1e1e5;
    border-radius: 17px;
    background: #fff8fa;
}

.patch-context-preview > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--brand, #ff385c);
    color: #fff;
}

.patch-context-preview small,
.patch-context-preview strong,
.patch-context-preview span { display: block; }
.patch-context-preview small { color: var(--brand, #ff385c); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.patch-context-preview strong { margin-top: 2px; color: #222; font-size: 11px; }
.patch-context-preview span { margin-top: 2px; color: #8d9097; font-size: 9px; }
.patch-context-preview button { border: 0; background: transparent; color: #777b83; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }

/* Toast */
.patch-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 700;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 17px;
    border-radius: 17px;
    background: #151417;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 20px 55px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
}

.patch-toast.is-visible { opacity: 1; transform: none; }
.patch-toast.is-error { background: #a52036; }
.patch-toast.is-success { background: #171719; }

/* Responsive */
@media (max-width: 1260px) {
    .patch-person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .patch-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .patch-guest { grid-template-columns: 1fr; gap: 30px; padding-top: 54px; }
    .patch-guest-copy { max-width: 820px; }
    .patch-guest-preview { min-height: 470px; max-width: 680px; width: 100%; margin: 0 auto; }
    .patch-shell { grid-template-columns: 1fr; }
    .patch-sidebar { position: static; }
    .patch-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .patch-nav button { min-height: 72px; justify-content: center; text-align: center; }
    .patch-nav button > i { display: none; }
    .patch-nav button small { white-space: normal; }
    .patch-sidebar-card { display: none; }
}

@media (max-width: 760px) {
    .wlm-patch-main { width: min(100% - 24px, var(--container)); }
    .patch-app { padding-top: 18px; }
    .patch-hero { align-items: flex-start; padding: 24px; border-radius: 27px; }
    .patch-hero-user { min-width: auto; }
    .patch-hero-user > div { display: none; }
    .patch-shell { margin-top: 18px; gap: 20px; }
    .patch-nav { position: sticky; top: 84px; z-index: 30; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; padding: 5px; border-radius: 20px; }
    .patch-nav button { min-height: 54px; padding: 7px 4px; border-radius: 15px; }
    .patch-nav button strong { font-size: 10px; }
    .patch-nav button small { display: none; }
    .patch-nav button b { position: absolute; top: 3px; right: 3px; }
    .patch-section-head { align-items: flex-start; }
    .patch-section-head h2 { font-size: 31px; }
    .patch-discovery-tools { grid-template-columns: 1fr; }
    .patch-person-grid,
    .patch-connection-grid,
    .patch-group-grid { grid-template-columns: 1fr; }
    .patch-request-card { grid-template-columns: 52px minmax(0, 1fr); }
    .patch-request-avatar { width: 52px; height: 52px; border-radius: 17px; }
    .patch-request-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .patch-form-grid,
    .patch-privacy-grid { grid-template-columns: 1fr; }
    .patch-modal { align-items: end; padding: 0; }
    .patch-modal-card { width: 100%; max-height: 92dvh; border-radius: 28px 28px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
    .patch-toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
    .patch-guest { min-height: auto; padding: 48px 0 70px; }
    .patch-guest-copy h1 { font-size: 57px; }
    .patch-guest-copy > p { font-size: 17px; }
    .patch-guest-actions { display: grid; }
    .patch-guest-preview { min-height: 390px; }
    .patch-preview-card { padding: 13px; border-radius: 21px; }
    .patch-preview-card-one { top: 20px; left: 0; width: 280px; }
    .patch-preview-card-two { top: 158px; right: 0; width: 290px; }
    .patch-preview-card-three { bottom: 14px; left: 4%; width: 270px; }
    .patch-preview-photo { width: 64px; height: 64px; border-radius: 19px; }
    .patch-preview-card > i { width: 60px; height: 60px; border-radius: 19px; }
    .patch-preview-card strong { font-size: 16px; }
    .patch-hero { display: block; }
    .patch-hero-user { width: max-content; margin-top: 18px; }
    .patch-results-meta { align-items: flex-start; flex-direction: column; }
    .patch-person-media { min-height: 190px; }
    .patch-person-avatar { width: 122px; height: 122px; }
    .patch-request-actions { flex-wrap: wrap; }
    .patch-modal-card form > footer { flex-wrap: wrap; }
    .patch-modal-card form > footer .btn { flex: 1; }
}

/* Ciudad base: no prometemos geodistancia hasta tener coordenadas aproximadas de usuario. */
.patch-location-field {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border, #ededed);
    border-radius: 16px;
    background: var(--paper-soft, #f7f7f7);
}

.patch-location-field > span {
    color: var(--soft, #8d95a1);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.patch-location-field strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink, #111);
    font-size: 15px;
}

.patch-location-field strong i {
    color: var(--brand, #ff385c);
}

.patch-location-field small {
    color: var(--muted, #5f6673);
    font-size: 11.5px;
    line-height: 1.35;
}

/* Acciones de seguridad en tarjetas de personas */
.patch-person-more {
    position: relative;
    flex: 0 0 auto;
}

.patch-person-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: 190px;
    padding: 7px;
    border: 1px solid var(--border, #ededed);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(17, 17, 17, .16);
}

.patch-person-menu[hidden] {
    display: none !important;
}

.patch-person-menu a,
.patch-person-menu button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--ink, #111);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.patch-person-menu a:hover,
.patch-person-menu button:hover {
    background: var(--paper-soft, #f7f7f7);
}

.patch-person-menu i {
    width: 17px;
    color: var(--muted, #5f6673);
    text-align: center;
}

.patch-person-menu .is-danger,
.patch-person-menu .is-danger i {
    color: #c6283e;
}

.patch-report-person {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--brand-soft, #fff0f3);
    color: var(--brand-dark, #d91f47);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.patch-report-card {
    width: min(560px, calc(100vw - 28px));
}

/* =========================================================
   V1.1 · Layout aislado + filtros accesibles
   Evita colisiones con PixelUI/globales y elimina filtros cortados.
   ========================================================= */

/*
 * Usamos clases específicas del módulo además de las clases originales.
 * Esto evita que un selector global de PixelUI modifique el grid o su gap.
 */
.wlm-patch-page .wlm-patch-layout {
    display: grid !important;
    grid-template-columns: minmax(248px, 270px) minmax(0, 1fr) !important;
    column-gap: clamp(36px, 3.2vw, 52px) !important;
    row-gap: 28px !important;
    align-items: start !important;
    margin-top: 30px !important;
}

.wlm-patch-page .wlm-patch-sidebar {
    min-width: 0;
}

.wlm-patch-page .wlm-patch-content {
    min-width: 0;
    width: 100%;
    padding-inline-start: 2px;
}

/* Filtros por interés: todos visibles en escritorio, sin recortes. */
.patch-interest-filter {
    min-width: 0;
    margin-top: 14px;
    padding: 14px 16px 15px;
    border: 1px solid #ece7e3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 7px 24px rgba(35, 28, 31, 0.035);
}

.patch-interest-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
}

.patch-interest-filter-head > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #383b42;
    font-size: 11px;
    font-weight: 850;
}

.patch-interest-filter-head > span i {
    color: var(--brand, #ff385c);
}

.patch-interest-filter-head > small {
    color: #9699a1;
    font-size: 10.5px;
    line-height: 1.35;
    text-align: right;
}

.patch-interest-browser {
    min-width: 0;
}

.wlm-patch-page .patch-interest-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding: 0;
    scrollbar-width: auto;
}

.wlm-patch-page .patch-interest-strip::-webkit-scrollbar {
    display: initial;
}

.patch-interest-strip button {
    scroll-snap-align: start;
}

.patch-interest-scroll {
    display: none;
}

@media (max-width: 1180px) and (min-width: 1025px) {
    .wlm-patch-page .wlm-patch-layout {
        grid-template-columns: 250px minmax(0, 1fr) !important;
        column-gap: 32px !important;
    }
}

@media (max-width: 1024px) {
    .wlm-patch-page .wlm-patch-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        column-gap: 0 !important;
        row-gap: 22px !important;
    }

    .wlm-patch-page .wlm-patch-content {
        padding-inline-start: 0;
    }
}

/*
 * En pantallas compactas la fila sí es horizontal, pero ahora tiene:
 * - botones laterales;
 * - scrollbar visible y delgado;
 * - rueda de mouse convertida a desplazamiento horizontal por JS;
 * - soporte táctil nativo.
 */
@media (max-width: 760px) {
    .patch-interest-filter {
        margin-inline: -2px;
        padding: 12px 10px 10px;
        border-radius: 18px;
    }

    .patch-interest-filter-head {
        align-items: flex-start;
        margin-bottom: 9px;
    }

    .patch-interest-filter-head > small {
        max-width: 145px;
        font-size: 9.5px;
    }

    .patch-interest-browser {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        align-items: center;
        gap: 6px;
    }

    .wlm-patch-page .patch-interest-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 1px 8px;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 56, 92, 0.42) #f2efed;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .wlm-patch-page .patch-interest-strip::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    .wlm-patch-page .patch-interest-strip::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #f2efed;
    }

    .wlm-patch-page .patch-interest-strip::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 56, 92, 0.42);
    }

    .patch-interest-scroll {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 1px solid #e7e2de;
        border-radius: 13px;
        background: #fff;
        color: #40434a;
        cursor: pointer;
        box-shadow: 0 5px 16px rgba(35, 28, 31, 0.06);
    }

    .patch-interest-scroll:not(:disabled):hover,
    .patch-interest-scroll:not(:disabled):focus-visible {
        border-color: var(--brand, #ff385c);
        color: var(--brand, #ff385c);
        outline: none;
    }

    .patch-interest-scroll:disabled {
        opacity: 0.28;
        cursor: default;
        box-shadow: none;
    }
}

@media (max-width: 440px) {
    .patch-interest-filter-head > small {
        display: none;
    }
}

/*
 * Los avatares siempre muestran iniciales como base. La imagen solo se revela
 * cuando el navegador confirma que cargó correctamente; nunca aparece el icono
 * roto del navegador.
 */
.wlm-patch-page [data-patch-avatar] {
    position: relative;
    isolation: isolate;
}

.wlm-patch-page [data-patch-avatar] > .patch-avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: inherit;
    font: inherit;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.wlm-patch-page [data-patch-avatar] > img[data-patch-avatar-image] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
}

.wlm-patch-page [data-patch-avatar].is-loaded > img[data-patch-avatar-image] {
    opacity: 1;
    visibility: visible;
}

.wlm-patch-page [data-patch-avatar].is-loaded > .patch-avatar-fallback {
    visibility: hidden;
}

.wlm-patch-page [data-patch-avatar].is-broken > img[data-patch-avatar-image],
.wlm-patch-page [data-patch-avatar] > img[data-patch-avatar-image][hidden] {
    display: none !important;
}
