.ecs-list-bottom-actions:has(.intercesor-index-actions) {
    justify-content: stretch;
}

.intercesor-index-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.intercesor-index-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.intercesor-index-action-group-links {
    justify-content: flex-start;
    gap: 1.75rem;
    min-width: 0;
}

.intercesor-index-action-group-primary {
    justify-content: flex-end;
    margin-left: auto;
}

.intercesor-index-notice {
    margin: 0;
    color: #7a3354;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.ecs-edit-footer .intercesor-index-notice {
    margin-right: auto;
}

.intercesor-index-link {
    color: #5f5a69;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.18s ease;
}

.intercesor-index-link:hover,
.intercesor-index-link:focus-visible {
    color: var(--ecs-color-primary);
    outline: none;
}

@media (max-width: 991.98px) {
    .intercesor-index-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .intercesor-index-action-group-primary {
        margin-left: 0;
    }

    .intercesor-index-action-group,
    .intercesor-index-action-group .ecs-list-primary-action {
        width: 100%;
    }
}

.intercesores-edit-page .ecs-select {
    width: 100%;
    min-height: 2.1rem;
    padding: 1.05rem 1.75rem 0 0;
    border: 0;
    background: transparent;
    color: #17131c;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    outline: none;
    appearance: auto;
}

.intercesor-section-block {
    display: grid;
    gap: 1rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(214, 212, 216, 0.72);
}

.intercesor-section-header,
.intercesor-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.intercesor-section-header > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 1.35rem;
}

.intercesor-general-top-grid,
.intercesor-personal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.intercesor-section-header h2,
.intercesor-card-header h3 {
    margin: 0;
    color: #17131c;
    font-size: 1.05rem;
    font-weight: 800;
}

.intercesor-section-header p,
.intercesor-card-header p {
    margin: 0.15rem 0 0;
    color: #77717f;
    font-size: 0.86rem;
    font-weight: 650;
}

.intercesor-read-card {
    display: grid;
    align-content: center;
    gap: 0.25rem;
    min-height: 4rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #f8f7f8;
}

.intercesor-read-card span {
    color: #77717f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.intercesor-read-card strong {
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.intercesor-switch-card,
.intercesor-certify-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
    cursor: pointer;
}

.intercesor-switch-card input,
.intercesor-certify-card input {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    accent-color: var(--ecs-color-primary);
}

.intercesor-switch-card strong,
.intercesor-certify-card strong {
    display: block;
    color: #17131c;
    font-size: 0.94rem;
    font-weight: 800;
}

.intercesor-switch-card em {
    display: block;
    margin-top: 0.2rem;
    color: #77717f;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 650;
}

.intercesor-languages {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
}

.intercesor-language-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.7rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
}

.intercesor-language-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--ecs-color-primary);
}

.intercesor-language-check span {
    color: #17131c;
    font-size: 0.9rem;
    font-weight: 750;
}

.intercesor-languages-other {
    flex: 1 1 14rem;
    min-width: 12rem;
}

#languagesGroup.is-invalid .intercesor-language-check,
#languagesGroup.is-invalid .intercesor-languages-other .ecs-control {
    border-color: #c53030;
}

.intercesor-certify-card {
    margin-top: 1.35rem;
    background: #fff5f8;
    border-color: #f3c4d4;
}

.intercesor-certify-card > .material-symbols-outlined {
    color: var(--ecs-color-primary);
}

.intercesor-textarea {
    min-height: 5.75rem;
    resize: vertical;
}

.intercesor-experience-card,
.intercesor-doc-card,
.intercesor-info-banner {
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.1rem;
    background: #fff;
}

.intercesor-experience-card {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.intercesor-card-header {
    justify-content: space-between;
    align-items: flex-start;
}

.intercesor-experience-row .ecs-select-wrap,
.intercesor-experience-row .ecs-select-custom {
    width: 100%;
}

.intercesor-experience-row .ecs-select-button {
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #fff;
    color: #17131c;
    font-size: 0.9rem;
    font-weight: 700;
}

.intercesor-experience-row .ecs-select-button .material-symbols-outlined {
    color: var(--ecs-color-primary);
}

.intercesor-experience-row .ecs-select-button:focus-visible {
    border-color: var(--ecs-color-primary);
}

.intercesor-experience-remove {
    width: 2.75rem;
    height: 2.75rem;
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
}

.intercesor-experience-remove:hover,
.intercesor-experience-remove:focus-visible {
    border-color: rgba(220, 38, 38, 0.32);
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.intercesor-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.intercesor-doc-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.intercesor-doc-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.intercesor-doc-card header strong {
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
}

.intercesor-doc-card header span {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.intercesor-dropzone,
.intercesor-doc-empty {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 10rem;
    padding: 1rem;
    border: 2px dashed rgba(206, 50, 105, 0.25);
    border-radius: 1rem;
    background: #fcfbfc;
    color: #17131c;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.intercesor-dropzone.is-dragging,
.intercesor-dropzone:hover {
    border-color: var(--ecs-color-primary);
    background: #fff5f8;
}

.intercesor-dropzone.is-invalid,
.intercesor-experience-card.is-invalid,
.intercesores-edit-page .is-invalid,
.intercesores-edit-page .ecs-field:has(.is-invalid) {
    border-color: #dc2626 !important;
}

.intercesor-dropzone.is-invalid {
    background: #fff5f5;
}

.intercesor-doc-empty {
    border-color: rgba(108, 117, 125, 0.25);
    background: #f8f7f8;
    color: #77717f;
    cursor: default;
}

.intercesor-doc-icon,
.intercesor-doc-empty .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: rgba(206, 50, 105, 0.08);
    color: var(--ecs-color-primary);
}

.intercesor-dropzone strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intercesor-dropzone small {
    margin-top: 0.25rem;
    color: #77717f;
    font-size: 0.76rem;
    font-weight: 650;
}

.intercesor-dropzone small.is-error {
    color: #dc2626;
    font-weight: 800;
}

.intercesor-dropzone small.is-pending {
    color: #d97706;
    font-weight: 800;
}

.intercesor-doc-delete {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.intercesor-info-banner {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1.35rem;
    padding: 1rem;
    background: #fff5f8;
    border-color: #f3c4d4;
}

.intercesor-info-banner .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 1.8rem;
}

.intercesor-info-banner strong,
.intercesor-info-banner span {
    display: block;
}

.intercesor-info-banner strong {
    color: #17131c;
    font-weight: 800;
}

.intercesor-info-banner span {
    color: #77717f;
    font-weight: 650;
}

@media (max-width: 767.98px) {
    .intercesor-general-top-grid,
    .intercesor-personal-grid {
        grid-template-columns: 1fr;
    }

    .intercesor-section-header,
    .intercesor-card-header,
    .intercesor-info-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .intercesor-card-header .ecs-edit-secondary-action,
    .intercesores-edit-page .ecs-edit-footer > * {
        width: 100%;
    }

    /* Participant intercesores index: mobile card list only */
    body.intercesores-participant-list .ecs-list-page {
        padding-top: 0.85rem;
        padding-bottom: 1.75rem;
    }

    body.intercesores-participant-list .ecs-list-hero h1 {
        font-size: 1.7rem;
        line-height: 1.08;
    }

    body.intercesores-participant-list .ecs-list-filter-panel {
        gap: 0.75rem;
        padding: 0.85rem;
        border-radius: 1.1rem;
    }

    body.intercesores-participant-list .ecs-list-filter-grid,
    body.intercesores-participant-list .ecs-list-field {
        width: 100%;
        min-width: 0;
    }

    body.intercesores-participant-list .intercesor-index-actions {
        gap: 0.75rem;
    }

    body.intercesores-participant-list .intercesor-index-action-group-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    body.intercesores-participant-list .intercesor-index-link {
        display: flex;
        align-items: center;
        min-height: 2.65rem;
        padding: 0.55rem 0.85rem;
        border: 1px solid #efecef;
        border-radius: 0.9rem;
        background: #faf9fb;
        font-size: 0.88rem;
    }

    body.intercesores-participant-list .intercesor-index-action-group-primary {
        flex-direction: column;
        gap: 0.55rem;
    }

    body.intercesores-participant-list .intercesor-index-action-group-primary .ecs-list-primary-action {
        width: 100%;
        justify-content: center;
        min-height: 2.85rem;
        font-size: 0.9rem;
    }

    body.intercesores-participant-list .ecs-list-table thead {
        display: none;
    }

    body.intercesores-participant-list .ecs-list-table,
    body.intercesores-participant-list .ecs-list-table tbody,
    body.intercesores-participant-list .ecs-list-table tr,
    body.intercesores-participant-list .ecs-list-table td {
        display: block;
        width: 100%;
    }

    body.intercesores-participant-list .ecs-list-table-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.intercesores-participant-list .intercesores-row-participant {
        display: grid;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
        padding: 0.9rem;
        border: 1px solid rgba(214, 212, 216, 0.92);
        border-radius: 1.1rem;
        background: #fff;
    }

    body.intercesores-participant-list .intercesores-row-participant:hover {
        background: #fff;
    }

    body.intercesores-participant-list .intercesores-row-participant td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0;
        border: 0;
        font-size: 0.92rem;
        font-weight: 650;
    }

    body.intercesores-participant-list .intercesores-row-participant td::before {
        content: attr(data-label);
        color: #7a7580;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        flex: 0 0 auto;
    }

    body.intercesores-participant-list .intercesores-row-participant td[data-label="Solicitante"] {
        display: block;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid #f0eef2;
        font-size: 1rem;
        font-weight: 800;
        color: #17131c;
    }

    body.intercesores-participant-list .intercesores-row-participant td[data-label="Solicitante"]::before {
        display: block;
        margin-bottom: 0.2rem;
    }

    body.intercesores-participant-list .intercesores-row-participant td[data-label="Acciones"] {
        justify-content: flex-end;
        padding-top: 0.4rem;
        border-top: 1px solid #f0eef2;
    }

    body.intercesores-participant-list .intercesores-row-participant td[data-label="Acciones"]::before {
        margin-right: auto;
    }

    body.intercesores-participant-list .ecs-list-row-action {
        width: 2.55rem;
        height: 2.55rem;
    }

    body.intercesores-participant-list .ecs-soft-badge {
        font-size: 0.78rem;
    }
}
