/* Base Structure */
.org-hierarchy {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Level 1 - Director */
.org-level-1 {
    margin-bottom: 20px;
    text-align: center;
}

/* Level 2 - Subdirectores */
.org-level-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

/* Cards */
.org-card {
    background: #f7f3f3;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 2;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.15);
}

.director {
    border-left: 5px solid #e4a11b;
}

.subdirector {
    border-left: 5px solid #1d3557;
}

/* Avatars */
.org-avatar {
    margin: 0 auto 15px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

/* Badges */
.org-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    background: #002147;
    color: white;
}

.subdirector .org-badge {
    background: #6c757d;
}

/* Connectors */
.org-connector {
    position: relative;
    display: flex;
    justify-content: center;
}

.main-connector {
    height: 40px;
    width: 100%;
}

.branch-connector {
    height: 30px;
    width: 2px;
}

.org-line {
    width: 2px;
    background: linear-gradient(to bottom, #002147, #6c757d);
    height: 100%;
}

.org-node {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #002147;
}

/* Responsive */
@media (max-width: 992px) {
    .org-level-2 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .org-branch {
        width: 100%;
        max-width: 300px;
    }

    .branch-connector {
        height: 20px;
    }
}

/* Typography */
.org-card h3 {
    color: #002147;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.org-card h4 {
    color: #002147;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.org-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}
