/* Colaborador — consulta de socios desde la web. */

.esc-colab {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 0 32px;
    font-family: var(--esc-font, inherit);
    color: var(--esc-text, #1f2328);
}

.esc-colab__head { margin-bottom: 22px; }

.esc-colab__kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--esc-orange, #fb6900);
}

.esc-colab__title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.05;
}
.esc-colab__title span { color: var(--esc-orange, #fb6900); }

.esc-colab__intro {
    margin: 0;
    max-width: 62ch;
    color: #5b6470;
    font-size: 14px;
    line-height: 1.55;
}

.esc-colab__gate {
    padding: 22px;
    border: 1px dashed #e6d9ca;
    border-radius: 16px;
    background: #fffdfb;
}
.esc-colab__gate p { margin: 0 0 12px; }

.esc-colab__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #6b6f76;
}

.esc-colab__search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.esc-colab__search-row input {
    flex: 1 1 260px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e6d9ca;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 14px;
}
.esc-colab__search-row input:focus {
    outline: none;
    border-color: var(--esc-orange, #fb6900);
    box-shadow: 0 0 0 3px rgba(251, 105, 0, .12);
}

.esc-colab__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--esc-orange, #fb6900);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.esc-colab__btn:hover { filter: brightness(1.04); text-decoration: none; color: #fff; }
.esc-colab__btn--ghost {
    background: #fff;
    color: #1f2328;
    border: 1px solid #e6d9ca;
}
.esc-colab__btn--ghost:hover { color: #1f2328; background: #fff5ec; }

.esc-colab__scanner {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #17120e;
    color: #fff;
}
.esc-colab__scanner[hidden] { display: none; }
.esc-colab__scanner #esc-colab-reader { max-width: 340px; margin: 0 auto; }
.esc-colab__link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #ffb27a;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.esc-colab__btn:disabled { opacity: .65; cursor: default; }

.esc-colab__status { min-height: 18px; margin: 8px 0 0; font-size: 12.5px; color: #6b6f76; }
.esc-colab__status.is-error { color: #b3261e; }

.esc-colab__results { margin-top: 14px; }

.esc-colab__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #efe4d7;
    border-radius: 14px;
    overflow: hidden;
    background: #fffdfa;
}
.esc-colab__list li + li { border-top: 1px solid #f1e8dd; }

.esc-colab__hit {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.esc-colab__hit:hover { background: #fff5ec; }
.esc-colab__hit strong { font-size: 14px; }
.esc-colab__hit span { color: #6b6f76; font-size: 12.5px; }
.esc-colab__arrow { margin-left: auto; color: var(--esc-orange, #fb6900) !important; font-weight: 800; }

.esc-colab__sheet { margin-top: 18px; }

.esc-colab__card {
    padding: 18px;
    border: 1px solid #efe4d7;
    border-radius: 18px;
    background: #fffdfa;
}

.esc-colab__person {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.esc-colab__person h3 { margin: 0; font-size: 20px; font-weight: 900; }
.esc-colab__person p { margin: 3px 0 0; color: #6b6f76; font-size: 13px; }

.esc-colab__close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid #e6d9ca;
    border-radius: 50%;
    background: #fff;
    color: #6b6f76;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.esc-colab__qr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #f8f3ec;
}
.esc-colab__qr img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #fff;
}
.esc-colab__qr code {
    font-size: 12px;
    word-break: break-all;
}

.esc-colab__section { margin-top: 18px; }
.esc-colab__section h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6b6f76;
}

.esc-colab__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.esc-colab__table th {
    padding: 7px 8px;
    text-align: left;
    font-size: 11px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6b6f76;
    border-bottom: 1px solid #efe4d7;
}
.esc-colab__table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f4ece2;
    vertical-align: top;
}
.esc-colab__sub {
    display: block;
    margin-top: 2px;
    color: #7a7f87;
    font-size: 11.5px;
}

.esc-colab__chip {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.esc-colab__chip.is-ok { background: #e6f5ea; color: #145c28; }
.esc-colab__chip.is-wait { background: #fdf3e3; color: #8a5a12; }

.esc-colab__inscs { margin: 0; padding: 0; list-style: none; }
.esc-colab__insc {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #f4ece2;
}
.esc-colab__insc strong { font-size: 13.5px; }
.esc-colab__insc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #5b6470; }

.esc-colab__empty { margin: 0; color: #7a7f87; font-size: 13px; }

.esc-colab__edit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.esc-colab__edit label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6b6f76;
}
.esc-colab__edit input {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #e6d9ca;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #1f2328;
    text-transform: none;
    letter-spacing: 0;
}
.esc-colab__edit input:focus {
    outline: none;
    border-color: var(--esc-orange, #fb6900);
    box-shadow: 0 0 0 3px rgba(251, 105, 0, .12);
}
.esc-colab__edit-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.esc-colab__edit-msg { font-size: 12.5px; color: #6b6f76; }
.esc-colab__edit-msg.is-ok { color: #145c28; font-weight: 700; }
.esc-colab__edit-msg.is-error { color: #b3261e; font-weight: 700; }

/* ------------------------------ Panel -------------------------------- */

.esc-colab-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.esc-colab-admin__card {
    padding: 18px;
    border: 1px solid #efe4d7;
    border-radius: 16px;
    background: #fffdfa;
}
.esc-colab-admin__card h2 { margin: 0 0 4px; font-size: 16px; }
.esc-colab-admin__state { margin: 6px 0; color: #145c28; font-weight: 800; font-size: 13px; }
.esc-colab-admin__list { margin: 12px 0 0; padding: 0; list-style: none; }
.esc-colab-admin__item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid #f1e8dd;
}
.esc-colab-admin__item strong { display: block; font-size: 13.5px; }
.esc-colab-admin__item--fixed { border-top: 0; }
.esc-colab-admin__empty { color: #7a7f87; font-size: 13px; padding: 8px 0; }
.esc-colab-admin__search { display: flex; gap: 8px; margin-top: 10px; }
.esc-colab-admin__search input { flex: 1 1 auto; min-height: 32px; }

/* Chapa de estado del panel (esta pantalla no carga escuderias.css). */
.esc-colab-admin .esc-admin__chip {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    background: #f1f2f4;
    color: #4a4f57;
}
.esc-colab-admin .esc-admin__chip--ok { background: #e6f5ea; color: #145c28; }
.esc-colab-admin .esc-admin__sub,
.esc-colab-admin .esc-admin__mail { margin: 4px 0; color: #646970; font-size: 12.5px; }
