/* ============================================================
   DIRECTORIO DE GERENCIAS
   ============================================================ */
.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    justify-items: center;
}

.manager-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.manager-card:hover {
    transform: translateY(-5px);
}

.manager-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

.manager-info {
    padding: 24px;
}

.manager-info h3 {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.17em;
    line-height: 1.6;
}

.manager-info p {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
}

/* ============================================================
   PERFIL GERENTES MODAL
   ============================================================ */
.manager-card {
    cursor: pointer;
    position: relative;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.profile-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 950px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-modal.active .profile-modal-dialog {
    transform: scale(1);
}

.profile-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.profile-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-modal-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.profile-modal-header {
    width: 45%;
    position: relative;
    flex-shrink: 0;
}

.profile-modal-header img {
    width: 100%;
    height: 100%;
    object-position: top;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-modal-body {
    width: 60%;
    padding: 40px 48px;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.profile-modal-body h3 {
    color: var(--blue-deep);
    font-size: 1.75rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.profile-modal-body h4 {
    color: #0066b3;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.manager-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.95rem !important;
    border-radius: 30px;
    display: inline-block;
    color: var(--blue-deep);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    font-weight: 600;
}

.manager-card:hover .manager-btn {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.profile-modal-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 18px;
    background: #f1f5f9;
    border-radius: 20px;
    transition: all 0.2s;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
}

.profile-modal-email:hover {
    background: #e0f2fe;
    color: #0f172a;
    border-color: rgba(0, 102, 179, 0.2);
}

.profile-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-data-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f7ff;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 179, 0.1);
}

.profile-data-chip i {
    font-size: 1.25rem;
    color: #0066b3;
    flex-shrink: 0;
}

.profile-data-chip .chip-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.2;
}

.profile-data-chip strong {
    display: block;
    font-size: 0.95rem;
    color: var(--blue-deep);
    font-weight: 700;
    margin-top: 2px;
}

.profile-modal-history {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-color: #e2e8f0 #ffffff;
    scrollbar-width: thin;
}

.profile-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.profile-action-btn.btn-cv {
    background: var(--blue);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.25);
}

.profile-action-btn.btn-cv:hover {
    background: #004c85;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 53, 102, 0.35);
}

.profile-action-btn.btn-ddjj {
    background: #ffffff;
    color: var(--blue) !important;
    border: 1px solid rgba(0, 102, 179, 0.25);
}

.profile-action-btn.btn-ddjj:hover {
    background: #e0f2fe;
    color: #0f172a;
    border-color: var(--blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-modal-content {
        flex-direction: column;
    }

    .profile-modal-header {
        width: 100%;
        height: 260px;
    }

    .profile-modal-header img {
        position: relative;
    }

    .profile-modal-body {
        width: 100%;
        padding: 28px 20px;
        text-align: left;
    }

    .profile-modal-email {
        align-self: flex-start;
    }

    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .profile-modal-actions {
        flex-direction: column;
    }

    .profile-action-btn {
        width: 100%;
        justify-content: center;
    }
}