/* ── Page container ───────────────────────────────────────── */
.acceso-container {
    max-width: 1400px;
    width: 80%;
    margin: 60px auto;
    font-family: 'Nunito Sans';
    align-items: center;
    display: flex;
    flex-direction: column;
}
 
/* ── Page header ──────────────────────────────────────────── */
.acceso-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}
 
.acceso-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    margin-top: 40px;
}
 
.acceso-title {
    font-size: 32px;
    font-weight: 700;
    color: #043259;
    margin: 0 0 8px;
}
 
.acceso-desc {
    font-size: 16px;
    color: #4d6F8C;
    margin: 0;
}
 
/* ── Section card ─────────────────────────────────────────── */
.acceso-section {
    background: white;
    border: 2px solid #60A699;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    width: 60%;
}
 
.acceso-section-header {
    background: rgba(176, 217, 205, 0.35);
    padding: 16px 24px;
    border-bottom: 2px solid #036A6F;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
 
.acceso-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #043259;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.acceso-section-title img {
    width: 22px;
    height: 22px;
}
 
.acceso-invite-btn {
    padding: 8px 20px;
    background: #043259;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
 
.acceso-invite-btn:hover {
    background: #60A699;
}
 
/* ── Delegate list ────────────────────────────────────────── */
.acceso-delegate-list {
    padding: 0;
}
 
.acceso-delegate-empty {
    padding: 32px;
    text-align: center;
    color: #4d6F8C;
    font-size: 14px;
    line-height: 1.8;
}
 
.acceso-delegate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(96, 166, 153, 0.2);
    transition: background 0.2s;
}
 
.acceso-delegate-item:last-child {
    border-bottom: none;
}
 
.acceso-delegate-item:hover {
    background: rgba(176, 217, 205, 0.1);
}
 
.acceso-delegate-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
 
.acceso-delegate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: rgba(4, 50, 89, 0.08);
    border: 1px solid #B0D9CD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #043259;
    flex-shrink: 0;
    font-family: 'Nunito Sans', sans-serif;
}
 
.acceso-delegate-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
 
.acceso-delegate-name {
    font-size: 15px;
    font-weight: 700;
    color: #043259;
}
 
.acceso-delegate-email {
    font-size: 13px;
    color: #4d6F8C;
}
 
.acceso-delegate-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.acceso-role-tag {
    background: rgba(176, 217, 205, 0.35);
    border: 1px solid #B0D9CD;
    color: #036A6F;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
}
 
.acceso-status-badge {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
}
 
.acceso-status-badge.active {
    background: rgba(96, 166, 153, 0.15);
    color: #036A6F;
}
 
.acceso-status-badge.pending {
    background: rgba(247, 145, 28, 0.12);
    color: #F7911C;
}
 
.acceso-resend-btn {
    background: none;
    border: 1px solid rgba(247, 145, 28, 0.4);
    color: #F7911C;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.2s;
}
 
.acceso-resend-btn:hover {
    background: rgba(247, 145, 28, 0.1);
}
 
.acceso-remove-btn {
    background: none;
    border: 1px solid rgba(229, 97, 99, 0.3);
    color: #E56163;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.2s;
}
 
.acceso-remove-btn:hover {
    background: rgba(229, 97, 99, 0.1);
    border-color: #E56163;
}
 
/* ── How it works section ─────────────────────────────────── */
.acceso-how {
    padding: 20px 24px;
    font-size: 14px;
    color: #4d6F8C;
    line-height: 2;
}
 
.acceso-how strong {
    color: #043259;
}
 
/* ── Back button ──────────────────────────────────────────── */
.acceso-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #043259;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Nunito Sans';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto 40px;
    text-decoration: none;
    transition: background 0.2s;
}
 
.acceso-back-btn:hover {
    background: #60A699;
    text-decoration: none;
}
 
.acceso-back-btn img {
    width: 16px;
    height: 16px;
}
 
/* ── Invite modal ─────────────────────────────────────────── */
.acceso-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 50, 89, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
 
.acceso-modal-overlay.active {
    display: flex;
}
 
.acceso-modal {
    background: white;
    border-radius: 5px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 4px 4px 0 #60A699;
    border: 1px solid #B0D9CD;
    font-family: 'Nunito Sans', sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}
 
.acceso-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
 
.acceso-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #043259;
    margin: 0;
}
 
.acceso-field {
    margin-bottom: 16px;
}
 
.acceso-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #043259;
    margin-bottom: 6px;
}
 
.acceso-field input,
.acceso-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #B0D9CD;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #043259;
    background: rgba(176, 217, 205, 0.1);
    box-sizing: border-box;
    transition: border-color 0.2s;
}
 
.acceso-field input:focus,
.acceso-field select:focus {
    outline: none;
    border-color: #60A699;
    box-shadow: 0 0 0 3px rgba(96, 166, 153, 0.1);
}
 
.acceso-field-row {
    display: flex;
    gap: 12px;
}
 
.acceso-field-row .acceso-field {
    flex: 1;
}
 
/* Role options */
.acceso-role-options {
    display: flex;
    gap: 8px;
}
 
.acceso-role-opt {
    flex: 1;
    border: 2px solid #B0D9CD;
    border-radius: 5px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: white;
}
 
.acceso-role-opt.selected {
    border-color: #043259;
    background: rgba(4, 50, 89, 0.04);
}
 
.acceso-role-opt-name {
    font-size: 12px;
    font-weight: 700;
    color: #043259;
    display: block;
    margin-bottom: 3px;
}

.acceso-role-opt-name img {
    width: 12px;
    height: 12px;
}
 
.acceso-role-opt-desc {
    font-size: 11px;
    color: #4d6F8C;
    display: block;
}
 
.acceso-modal-error {
    color: #E56163;
    font-size: 13px;
    padding: 10px;
    background: rgba(229, 97, 99, 0.08);
    border-radius: 5px;
    margin-top: 12px;
    display: none;
}
 
.acceso-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
 
.acceso-btn-primary {
    padding: 12px 24px;
    background: #043259;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
 
.acceso-btn-primary:hover {
    background: #60A699;
}
 
.acceso-btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #043259;
    border: 2px solid #B0D9CD;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
 
.acceso-btn-secondary:hover {
    border-color: #60A699;
    color: #60A699;
}
 
/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .acceso-container {
        width: 95%;
        margin: 20px auto;
    }
 
    .acceso-section {
        width: 90%;
    }
 
    .acceso-delegate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
 
    .acceso-delegate-right {
        flex-wrap: wrap;
    }
 
    .acceso-field-row {
        flex-direction: column;
    }
 
    .acceso-role-options {
        flex-direction: column;
    }
 
    .acceso-modal-actions {
        flex-direction: column;
    }
 
    .acceso-btn-primary,
    .acceso-btn-secondary {
        width: 100%;
    }
 
    .acceso-back-btn {
        width: 90%;
        padding: 8px 16px;
    }
}